Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #16521
| From | Doug Laidlaw <laidlaws@hotkey.net.au> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: xsel: how to I paste to the clipboard in 10 pitch? |
| Date | 2015-12-23 00:57 +1100 |
| Organization | news.aioe.org |
| Message-ID | <n5bkra$jth$1@speranza.aioe.org> (permalink) |
| References | (1 earlier) <n58msv$7kv$1@speranza.aioe.org> <n58nbi$8q3$1@speranza.aioe.org> <n59n5m$tbl$1@dont-email.me> <n5a2fk$akq$1@dont-email.me> <n5a5bb$loc$1@dont-email.me> |
T <T@invalid.invalid> Wrote in message: > On 12/21/2015 03:39 PM, Dan Espen wrote: >> T <T@invalid.invalid> writes: >> >>> On 12/21/2015 03:21 AM, Doug Laidlaw wrote: >>>> Doug Laidlaw <laidlaws@hotkey.net.au> Wrote in message: >>>>> T <T@invalid.invalid> Wrote in message: >>>>>> Hi All, >>>>>> >>>>>> From the command line, I can paste to the clipboard with >>>>>> >>>>>> echo 'abcdefg' | xsel --clipboard >>>>>> >>>>>> How do I tell it I want the text to be formatted >>>>>> in 10 pitch? >>>>>> >>>>>> Many thanks, >>>>>> -T >>>>>> >>>>>> >>>>> >>>>> I am not sure that you can set a pitch for anything on the clipboard. >>>>> It is probably stored there as basic ASCII characters, and will >>>>> acquire the default pitch of any document you paste it into. There >>>>> are applications that will send formatted text to the clipboard, >>>>> but if you paste the text back into a simple text editor, the >>>>> formatting is lost. >>>>> >>>>> Doug. >>>>> >>>>> -- >>>>> >>>> >>>> To continue: if the formattong was preserved, the formatted text >>>> would have to be different ascii characters, and might not be capable >>>> of being imported into a console or simple editor. Have a look at >>>> man xsel. >>>> >>> >>> I am trying to recreate when you have a text editor open and >>> you copy some 10 pitch text to the clipboard. >> >> I can't think of any UNIX software that supports copy/paste of >> font names or sizes. I've only seen that on Windows. >> >> Oddly, I find that behavior less than useful. >> > > > I copy and paste formatted text all the time. Libre Office to > Thunderbird, back and forth, etc.. It would drive me nuts > if I couldn't do it. > Yes, but you aren't using xsel to do that. Try pasting into any text editor such as KWrite or leafpad. The formatting isn't preserved. Think what it is that you are copying and pasting. Each letter starts from an Ascii number. Formatting means either (a) a different number or (b) a batch of numbers. A basic text editor won't recognize the letter if it is represented by a different ASCII code. It displays the letter without its "clothing," the formatting. If it displays the text in 10 cpi Courier, that comes from the editor, not the code string. OpenOffice, even KWrite, can change the font. That is because the font is not an essential part of the character. It is added to the ASCII letter by the program. Doug. --
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
xsel: how to I paste to the clipboard in 10 pitch? T <T@invalid.invalid> - 2015-12-21 02:14 -0800
Re:xsel: how to I paste to the clipboard in 10 pitch? Doug Laidlaw <laidlaws@hotkey.net.au> - 2015-12-21 22:14 +1100
Re:xsel: how to I paste to the clipboard in 10 pitch? Doug Laidlaw <laidlaws@hotkey.net.au> - 2015-12-21 22:21 +1100
Re: xsel: how to I paste to the clipboard in 10 pitch? T <T@invalid.invalid> - 2015-12-21 12:26 -0800
Re: xsel: how to I paste to the clipboard in 10 pitch? Dan Espen <despen@verizon.net> - 2015-12-21 18:39 -0500
Re: xsel: how to I paste to the clipboard in 10 pitch? T <T@invalid.invalid> - 2015-12-21 16:28 -0800
Re: xsel: how to I paste to the clipboard in 10 pitch? Allodoxaphobia <knock_yourself_out@example.net> - 2015-12-22 02:12 +0000
Re: xsel: how to I paste to the clipboard in 10 pitch? T <T@invalid.invalid> - 2015-12-21 18:18 -0800
Re: xsel: how to I paste to the clipboard in 10 pitch? Joe Beanfish <joebeanfish@nospam.duh> - 2015-12-22 14:34 +0000
Re: xsel: how to I paste to the clipboard in 10 pitch? T <T@invalid.invalid> - 2015-12-22 12:24 -0800
Re: xsel: how to I paste to the clipboard in 10 pitch? Dan Espen <despen@verizon.net> - 2015-12-21 22:37 -0500
Re: xsel: how to I paste to the clipboard in 10 pitch? Doug Laidlaw <laidlaws@hotkey.net.au> - 2015-12-22 22:00 +1100
Re: xsel: how to I paste to the clipboard in 10 pitch? no.top.post@gmail.com - 2016-01-28 06:02 +0000
Re: xsel: how to I paste to the clipboard in 10 pitch? Doug Laidlaw <laidlaws@hotkey.net.au> - 2015-12-23 00:57 +1100
Re: xsel: how to I paste to the clipboard in 10 pitch? T <T@invalid.invalid> - 2015-12-22 12:24 -0800
Re: xsel: how to I paste to the clipboard in 10 pitch? The Natural Philosopher <tnp@invalid.invalid> - 2015-12-22 08:22 +0000
Re: xsel: how to I paste to the clipboard in 10 pitch? T <T@invalid.invalid> - 2015-12-23 14:04 -0800
csiph-web