Re: Copying and pasting to other apps

2014-04-29 Thread Abdelrazak Younes

On 27/04/2014 23:11, Tommaso Cucinotta wrote:

On 27/04/14 16:58, Georg Baum wrote:

If you copy something, it is put onto the clipboard in three formats: plain 
text, HTML (using the HTML export) and LyX since version 2.1. The pasting 
application is then supposed to select the most appropriate format. In your 
case something goes wrong either on LyX side or on the other side. If you start 
LyX with -dbg action it should tell you what it does.

Cool! In my case, I was simply trying with the system LyX from Ubuntu (2.0.6), 
but I just tried with trunk, and it worked perfectly indeed, including tables 
AND maths! I'm actually impressed by the maths working visually when copied 
from LyX, how is that done? I don't think there's a way one can enter maths 
natively in Thunderbird, is there?


Sound really cool indeed, I will try :-)

Abdel


Re: Copying and pasting to other apps

2014-04-29 Thread Abdelrazak Younes

On 27/04/2014 23:11, Tommaso Cucinotta wrote:

On 27/04/14 16:58, Georg Baum wrote:

If you copy something, it is put onto the clipboard in three formats: plain 
text, HTML (using the HTML export) and LyX since version 2.1. The pasting 
application is then supposed to select the most appropriate format. In your 
case something goes wrong either on LyX side or on the other side. If you start 
LyX with -dbg action it should tell you what it does.

Cool! In my case, I was simply trying with the system LyX from Ubuntu (2.0.6), 
but I just tried with trunk, and it worked perfectly indeed, including tables 
AND maths! I'm actually impressed by the maths working visually when copied 
from LyX, how is that done? I don't think there's a way one can enter maths 
natively in Thunderbird, is there?


Sound really cool indeed, I will try :-)

Abdel


Re: Copying and pasting to other apps

2014-04-28 Thread Georg Baum
Tommaso Cucinotta wrote:

 Cool! In my case, I was simply trying with the system LyX from Ubuntu
 (2.0.6), but I just tried with trunk, and it worked perfectly indeed,
 including tables AND maths! I'm actually impressed by the maths working
 visually when copied from LyX, how is that done? I don't think there's a
 way one can enter maths natively in Thunderbird, is there?

LyX exports formulas as MathML. Obviously Thunderbird can render that, but I 
don't know whether you can also enter it interactively. IMHO, this is not 
important, you can just use LyX to enter math in thunderbird;-)


Georg



Re: Copying and pasting to other apps

2014-04-28 Thread Georg Baum
Tommaso Cucinotta wrote:

> Cool! In my case, I was simply trying with the system LyX from Ubuntu
> (2.0.6), but I just tried with trunk, and it worked perfectly indeed,
> including tables AND maths! I'm actually impressed by the maths working
> visually when copied from LyX, how is that done? I don't think there's a
> way one can enter maths natively in Thunderbird, is there?

LyX exports formulas as MathML. Obviously Thunderbird can render that, but I 
don't know whether you can also enter it interactively. IMHO, this is not 
important, you can just use LyX to enter math in thunderbird;-)


Georg



Copying and pasting to other apps (was: Re: Feature request)

2014-04-27 Thread Tommaso Cucinotta
On 27/04/14 10:18, Abdelrazak Younes wrote:
 So my feature request would be able:
 1) write in LyX
 2) select and copy
 3) paste as html in Thunderbird.

 Maybe this is already possible.

It is indeed, but with a few hiccups:

1) boldface and emphasized font variations do not get copied at all (text gets 
copied as normal plain text only)
2) bullet points and numbered lists *seem* to be copied correctly, but soon you 
realize that the bullet point is actually a bullet char, and the numbers in the 
numbered list are actually numbers in the text, namely, thunderbird doesn't 
understand it's actually editing lists in those cases
3) I get an extra carriage-return between any paragraphs, causing an extra 
empty line being inserted between any two LyX paragraphs -- is that only me ?

And the same exact thing happens if I paste into LibreOffice.

So, a couple of extra questions:
a) when you copy LyX text, is there any way to get (also?) the exported HTML 
into the clipboard ?
b) would we need a special copy as HTML for that?

I personally understand the value of being able to seamlessly copy and paste 
between LyX, Thunderbird and LibreOffice, at least for basic rich text 
capabilities.

Thanks,

T.



Re: Copying and pasting to other apps

2014-04-27 Thread Tommaso Cucinotta
Just a tiny addition: when you re-write with LibreOffice the same exact text 
segment, with a few boldface and emphasized and bullet and numbered lists, and 
copy that to Thunderbird with C-c, C-v, it just works as expected. I also just 
tried a table, and it's copied just OK in Thunderbird, but if you paste it into 
LyX, hmmm...

So, AFAICS, LyX seems to be behind other tools in this regard (copy'n'paste 
interoperability).

T.

On 27/04/14 15:08, Tommaso Cucinotta wrote:
 On 27/04/14 10:18, Abdelrazak Younes wrote:
 So my feature request would be able:
 1) write in LyX
 2) select and copy
 3) paste as html in Thunderbird.

 Maybe this is already possible.
 It is indeed, but with a few hiccups:

 1) boldface and emphasized font variations do not get copied at all (text 
 gets copied as normal plain text only)
 2) bullet points and numbered lists *seem* to be copied correctly, but soon 
 you realize that the bullet point is actually a bullet char, and the numbers 
 in the numbered list are actually numbers in the text, namely, thunderbird 
 doesn't understand it's actually editing lists in those cases
 3) I get an extra carriage-return between any paragraphs, causing an extra 
 empty line being inserted between any two LyX paragraphs -- is that only me ?

 And the same exact thing happens if I paste into LibreOffice.

 So, a couple of extra questions:
 a) when you copy LyX text, is there any way to get (also?) the exported HTML 
 into the clipboard ?
 b) would we need a special copy as HTML for that?

 I personally understand the value of being able to seamlessly copy and paste 
 between LyX, Thunderbird and LibreOffice, at least for basic rich text 
 capabilities.

 Thanks,

 T.




Re: Copying and pasting to other apps (was: Re: Feature request)

2014-04-27 Thread Georg Baum
Tommaso Cucinotta wrote:

 So, a couple of extra questions:
 a) when you copy LyX text, is there any way to get (also?) the exported
 HTML into the clipboard ? b) would we need a special copy as HTML for
 that?

If you copy something, it is put onto the clipboard in three formats: plain 
text, HTML (using the HTML export) and LyX since version 2.1. The pasting 
application is then supposed to select the most appropriate format. In your 
case something goes wrong either on LyX side or on the other side. If you 
start LyX with -dbg action it should tell you what it does.

 I personally understand the value of being able to seamlessly copy and
 paste between LyX, Thunderbird and LibreOffice, at least for basic rich
 text capabilities.

Indeed. Therefore I worked on that last year.


Georg



Re: Copying and pasting to other apps

2014-04-27 Thread Tommaso Cucinotta
On 27/04/14 16:58, Georg Baum wrote:
 If you copy something, it is put onto the clipboard in three formats: plain 
 text, HTML (using the HTML export) and LyX since version 2.1. The pasting 
 application is then supposed to select the most appropriate format. In your 
 case something goes wrong either on LyX side or on the other side. If you 
 start LyX with -dbg action it should tell you what it does. 

Cool! In my case, I was simply trying with the system LyX from Ubuntu (2.0.6), 
but I just tried with trunk, and it worked perfectly indeed, including tables 
AND maths! I'm actually impressed by the maths working visually when copied 
from LyX, how is that done? I don't think there's a way one can enter maths 
natively in Thunderbird, is there?

Thanks,

T.



Copying and pasting to other apps (was: Re: Feature request)

2014-04-27 Thread Tommaso Cucinotta
On 27/04/14 10:18, Abdelrazak Younes wrote:
> So my feature request would be able:
> 1) write in LyX
> 2) select and copy
> 3) paste as html in Thunderbird.
>
> Maybe this is already possible.

It is indeed, but with a few hiccups:

1) boldface and emphasized font variations do not get copied at all (text gets 
copied as normal plain text only)
2) bullet points and numbered lists *seem* to be copied correctly, but soon you 
realize that the bullet point is actually a bullet char, and the numbers in the 
numbered list are actually numbers in the text, namely, thunderbird doesn't 
understand it's actually editing lists in those cases
3) I get an extra carriage-return between any paragraphs, causing an extra 
empty line being inserted between any two LyX paragraphs -- is that only me ?

And the same exact thing happens if I paste into LibreOffice.

So, a couple of extra questions:
a) when you copy LyX text, is there any way to get (also?) the exported HTML 
into the clipboard ?
b) would we need a special "copy as HTML" for that?

I personally understand the value of being able to seamlessly copy and paste 
between LyX, Thunderbird and LibreOffice, at least for basic rich text 
capabilities.

Thanks,

T.



Re: Copying and pasting to other apps

2014-04-27 Thread Tommaso Cucinotta
Just a tiny addition: when you re-write with LibreOffice the same exact text 
segment, with a few boldface and emphasized and bullet and numbered lists, and 
copy that to Thunderbird with C-c, C-v, it just works as expected. I also just 
tried a table, and it's copied just OK in Thunderbird, but if you paste it into 
LyX, hmmm...

So, AFAICS, LyX seems to be behind other tools in this regard (copy'n'paste 
interoperability).

T.

On 27/04/14 15:08, Tommaso Cucinotta wrote:
> On 27/04/14 10:18, Abdelrazak Younes wrote:
>> So my feature request would be able:
>> 1) write in LyX
>> 2) select and copy
>> 3) paste as html in Thunderbird.
>>
>> Maybe this is already possible.
> It is indeed, but with a few hiccups:
>
> 1) boldface and emphasized font variations do not get copied at all (text 
> gets copied as normal plain text only)
> 2) bullet points and numbered lists *seem* to be copied correctly, but soon 
> you realize that the bullet point is actually a bullet char, and the numbers 
> in the numbered list are actually numbers in the text, namely, thunderbird 
> doesn't understand it's actually editing lists in those cases
> 3) I get an extra carriage-return between any paragraphs, causing an extra 
> empty line being inserted between any two LyX paragraphs -- is that only me ?
>
> And the same exact thing happens if I paste into LibreOffice.
>
> So, a couple of extra questions:
> a) when you copy LyX text, is there any way to get (also?) the exported HTML 
> into the clipboard ?
> b) would we need a special "copy as HTML" for that?
>
> I personally understand the value of being able to seamlessly copy and paste 
> between LyX, Thunderbird and LibreOffice, at least for basic rich text 
> capabilities.
>
> Thanks,
>
> T.
>



Re: Copying and pasting to other apps (was: Re: Feature request)

2014-04-27 Thread Georg Baum
Tommaso Cucinotta wrote:

> So, a couple of extra questions:
> a) when you copy LyX text, is there any way to get (also?) the exported
> HTML into the clipboard ? b) would we need a special "copy as HTML" for
> that?

If you copy something, it is put onto the clipboard in three formats: plain 
text, HTML (using the HTML export) and LyX since version 2.1. The pasting 
application is then supposed to select the most appropriate format. In your 
case something goes wrong either on LyX side or on the other side. If you 
start LyX with -dbg action it should tell you what it does.

> I personally understand the value of being able to seamlessly copy and
> paste between LyX, Thunderbird and LibreOffice, at least for basic rich
> text capabilities.

Indeed. Therefore I worked on that last year.


Georg



Re: Copying and pasting to other apps

2014-04-27 Thread Tommaso Cucinotta
On 27/04/14 16:58, Georg Baum wrote:
> If you copy something, it is put onto the clipboard in three formats: plain 
> text, HTML (using the HTML export) and LyX since version 2.1. The pasting 
> application is then supposed to select the most appropriate format. In your 
> case something goes wrong either on LyX side or on the other side. If you 
> start LyX with -dbg action it should tell you what it does. 

Cool! In my case, I was simply trying with the system LyX from Ubuntu (2.0.6), 
but I just tried with trunk, and it worked perfectly indeed, including tables 
AND maths! I'm actually impressed by the maths working visually when copied 
from LyX, how is that done? I don't think there's a way one can enter maths 
natively in Thunderbird, is there?

Thanks,

T.