Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #16524
| From | T <T@invalid.invalid> |
|---|---|
| Newsgroups | comp.os.linux.misc |
| Subject | Re: xsel: how to I paste to the clipboard in 10 pitch? |
| Date | 2015-12-22 12:24 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <n5cbcl$pe6$3@dont-email.me> (permalink) |
| References | (4 earlier) <n5a2fk$akq$1@dont-email.me> <n5a5bb$loc$1@dont-email.me> <slrnn7hccj.25ju.knock_yourself_out@vps.jonz.net> <n5abpn$55f$1@dont-email.me> <n5bn1t$u5e$1@dont-email.me> |
On 12/22/2015 06:34 AM, Joe Beanfish wrote: > On Mon, 21 Dec 2015 18:18:57 -0800, T wrote: > >> On 12/21/2015 06:12 PM, Allodoxaphobia wrote: >>> On Mon, 21 Dec 2015 16:28:52 -0800, T wrote: >>>> 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: >>>>>>>>> >>>>>>>>> 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? >>>>>>>> >>>>>>>> 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. >>>>>>> >>>>>>> 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. >>> >>> It drives me nuts when I do *do* it -- copying something from a browser >>> into Libre Office. What I do is open an intermediate "drop" zone: nano. >>> I C&P from browser into nano -- then C&P from nano into Libre Office. >>> >>> Courses - Horses. >>> Jonesy >>> >> >> There is "Paste Special" >> >> Also, paste to a text only editor like Leafpad will >> drop all the formatting. Then recopy and paste >> >> Now how do I deliberately format something? > > As I suspected, the paste receiver has to ask the provider for the > formatting info, it's not in the cut buffer. The formatting is not > available after the source program exits. > > http://stackoverflow.com/questions/3571179/how-does-x11-clipboard-handle-multiple-data-formats > > e.g.: > Copy some formatted text from libreoffice then run > xclip -o -t text/html > then exit libreoffice and try again. You'll not get the formatting. > > So, you don't put formatting in the buffer. You have to hang around to > service a request for the formatting. How to do that is the next question. > I'd start that research at https://en.wikipedia.org/wiki/X_Window_selection > Thank you for the help! This is "officially" over my head! :-(
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