Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #16509 > unrolled thread
| Started by | T <T@invalid.invalid> |
|---|---|
| First post | 2015-12-21 02:14 -0800 |
| Last post | 2015-12-23 14:04 -0800 |
| Articles | 17 — 7 participants |
Back to article view | Back to comp.os.linux.misc
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
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2015-12-21 02:14 -0800 |
| Subject | xsel: how to I paste to the clipboard in 10 pitch? |
| Message-ID | <n58j9h$fkf$1@dont-email.me> |
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
[toc] | [next] | [standalone]
| From | Doug Laidlaw <laidlaws@hotkey.net.au> |
|---|---|
| Date | 2015-12-21 22:14 +1100 |
| Message-ID | <n58msv$7kv$1@speranza.aioe.org> |
| In reply to | #16509 |
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. --
[toc] | [prev] | [next] | [standalone]
| From | Doug Laidlaw <laidlaws@hotkey.net.au> |
|---|---|
| Date | 2015-12-21 22:21 +1100 |
| Message-ID | <n58nbi$8q3$1@speranza.aioe.org> |
| In reply to | #16510 |
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. --
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2015-12-21 12:26 -0800 |
| Message-ID | <n59n5m$tbl$1@dont-email.me> |
| In reply to | #16511 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Dan Espen <despen@verizon.net> |
|---|---|
| Date | 2015-12-21 18:39 -0500 |
| Message-ID | <n5a2fk$akq$1@dont-email.me> |
| In reply to | #16513 |
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. -- Dan Espen
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2015-12-21 16:28 -0800 |
| Message-ID | <n5a5bb$loc$1@dont-email.me> |
| In reply to | #16514 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Allodoxaphobia <knock_yourself_out@example.net> |
|---|---|
| Date | 2015-12-22 02:12 +0000 |
| Message-ID | <slrnn7hccj.25ju.knock_yourself_out@vps.jonz.net> |
| In reply to | #16515 |
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
--
Marvin L Jones | Marvin | W3DHJ.net | linux
38.238N 104.547W | @ jonz.net | Jonesy | FreeBSD
* Killfiling google & XXXXbanter.com: jonz.net/ng.htm
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2015-12-21 18:18 -0800 |
| Message-ID | <n5abpn$55f$1@dont-email.me> |
| In reply to | #16516 |
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?
[toc] | [prev] | [next] | [standalone]
| From | Joe Beanfish <joebeanfish@nospam.duh> |
|---|---|
| Date | 2015-12-22 14:34 +0000 |
| Message-ID | <n5bn1t$u5e$1@dont-email.me> |
| In reply to | #16517 |
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
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2015-12-22 12:24 -0800 |
| Message-ID | <n5cbcl$pe6$3@dont-email.me> |
| In reply to | #16522 |
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! :-(
[toc] | [prev] | [next] | [standalone]
| From | Dan Espen <despen@verizon.net> |
|---|---|
| Date | 2015-12-21 22:37 -0500 |
| Message-ID | <n5agci$hea$1@dont-email.me> |
| In reply to | #16515 |
T <T@invalid.invalid> writes: > 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. Looks like Firefox and QT applications work too. Guess it's more used than I thought. -- Dan Espen
[toc] | [prev] | [next] | [standalone]
| From | Doug Laidlaw <laidlaws@hotkey.net.au> |
|---|---|
| Date | 2015-12-22 22:00 +1100 |
| Message-ID | <n5baem$qim$1@speranza.aioe.org> |
| In reply to | #16515 |
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. --
[toc] | [prev] | [next] | [standalone]
| From | no.top.post@gmail.com |
|---|---|
| Date | 2016-01-28 06:02 +0000 |
| Message-ID | <n8catr$95n$1@dont-email.me> |
| In reply to | #16520 |
In article <n5baem$qim$1@speranza.aioe.org>, Doug Laidlaw <laidlaws@hotkey.net.au> wrote: > 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. > -- It's worse than that:-- There's a mapping from the textFile to the screen-pixels, which is modulated by font-parameters, and char-encoding. So to paste from the pixels to a textFile, the system needs to know the font-parameters, and char-encoding; to make the reverse mapping. Windows & libre-office know how *they individually*, got there; so they know how to get back. But you can't write with the one system and read-back with a different/incompatible one. And don't talk about ASCII: all the smart-arses are using a system that replaces <single quote> by 3 bytes. It's a disaster in the making.
[toc] | [prev] | [next] | [standalone]
| From | Doug Laidlaw <laidlaws@hotkey.net.au> |
|---|---|
| Date | 2015-12-23 00:57 +1100 |
| Message-ID | <n5bkra$jth$1@speranza.aioe.org> |
| In reply to | #16515 |
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. --
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2015-12-22 12:24 -0800 |
| Message-ID | <n5cbct$pe6$4@dont-email.me> |
| In reply to | #16521 |
On 12/22/2015 05:57 AM, Doug Laidlaw wrote: > 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. > Thank you for the help! This is "officially" over my head! :-(
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2015-12-22 08:22 +0000 |
| Message-ID | <n5b18v$vt6$4@news.albasani.net> |
| In reply to | #16514 |
On 21/12/15 23:39, 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. > I've seen that work with HTML - presumably the cut contains the HTML tags as well. > Oddly, I find that behaviour less than useful. > MM. No argument here. ;-) -- the biggest threat to humanity comes from socialism, which has utterly diverted our attention away from what really matters to our existential survival, to indulging in navel gazing and faux moral investigations into what the world ought to be, whilst we fail utterly to deal with what it actually is.
[toc] | [prev] | [next] | [standalone]
| From | T <T@invalid.invalid> |
|---|---|
| Date | 2015-12-23 14:04 -0800 |
| Message-ID | <n5f5l7$96m$1@dont-email.me> |
| In reply to | #16509 |
On 12/21/2015 02:14 AM, T wrote: > 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 > Well, it turns out that the document I was pasting into was corrupted. I created a new one and pasted over what I needed and now am not having a problem pasting with the default font from something I put in the clipboard with xsel.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.linux.misc
csiph-web