On 22/08/2015 11:47 p.m., Guillaume Munch wrote:
Le 14/08/2015 21:28, aparsloe a écrit :
Given an enumerated list, say,
...
29. foo food footling
30. bar bard barking
....
selecting a word in an item, say "bard" in the example, and pasting it
into a new paragraph elsewhere starts a new list, so one gets "1. bard".
Is this expected behaviour -- an internal word or character from an
item carries the environment with it? I expected to copy and paste only
the word, "bard" (which is what happens if pasting into a paragraph that
already has some content).
I am quite used to this behaviour and I like it. This way I can choose
whether I paste with or without the environment. And if I want to
paste into a new paragraph without pasting the environment, what I do
is paste before creating the paragraph. (Or, if the environment before
it is not suitable for that, then I introduce a dummy character which
I delete afterwards, but this is often unnecessary.)
One could argue in favour of a different mechanism, but this one is
consistent and has been around for a long time.
Also, if I select the first word in an item, say "bar", and paste into
the (simple) Find dialog (and other dialogs), that shows "30. bar". My
naive expectation is that I would have to copy from just after the "g"
of "footling" down to just after the "r" of "bar" to select and paste
"30. bar". Labelled and itemized lists show analogous behaviour. (This
may all be long established behaviour which I simply haven't noticed
before.)
This proposition makes sense to me. I also did not notice it.
And pasting from LyX into Thunderbird seems to include unexpected new
lines. If I select a word from the middle of a standard paragraph in LyX
and paste it into the middle of a paragraph in Thunderbird, new lines
are included before and after the pasted word. Again, I don't recall
this happening before.
If you compose your emails in html, then Thunderbird uses the
text/html component of the clipboard when available. This component is
generated by LyX using the xhtml export.
But the html generated by LyX is too complicated for Thunderbird and
can become impossible to edit. Also this can lead to messages that
appear differently to the recipient: for instance it once happened
that they would see "LyX document" in the message. This is because the
text/html component of the clipboard contains "<title>LyX
Document</title>" and this was interpreted differently by the other
client.
So I absolutely discourage pasting into Thunderbird as text/html. But
the workaround is easy, just paste as text/plain with "Paste without
formatting" (Ctrl+Maj+V).
For the curious, under Linux one can see what Thunderbird receives
using 'xclip -selection "clipboard" -o -t text/html'.
Incidentally, the html output performed during copy also crashes a
lot, as the readers of this list might have realized (see
<http://www.lyx.org/trac/ticket/9490> and others). Let me use this
occasion to thank Enrico who progresses on a patch that will solve the
reproducible occurrences of this bug.
Guillaume
Thanks for the response. The fact that I hadn't consciously noted these
matters before, suggests they are not burning issues for me.
Andrew
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus