On 02/05/17 14:44, F M Salter wrote:
>
>
>
> On 01/05/17 15:02, Enrico Forestieri  wrote:
>> On Sat, Apr 29, 2017 08:27 AM, F M Salter wrote:
>>> ...
>>> ...
>>>     1.  Is this a demonstration of a flawed copying procedure?
>>>     2,  or of something else?
>> This is a limitation of the \pdfmarkupcomment latex macro that does 
>> not allow changing language inside it. You can overcome this by
>> resetting the language changes inside the "PDF (Markup)" inset or, 
>> if you really need them, by making sure that no language switch occurs 
>> inside \pdfmarkupcomment. You can fix your document by changing the
>> language of the "Opts" inset to "English (USA)", then select the 
>> whole "PDF (Markup)" inset (not only its content) and also change its 
>> language to "English (USA)". See the attached.
>> --
>> Enrico 
>>
>> ... 
>> ...
>      Thank you very much for your helpful commentary.  It has 
> increased my understanding of the characteristics of the pdfcomment
> package.  In not understanding the significance of what you had
> written, I did not appreciate that the language components mattered. 
> I won't make a similar mistake again.  However, I previously had asked
> if anyone had any experience of the annotations disappearing.  I had a
> document which suddenly failed to provide the annotations and no
> errors were reported.  After a piecemeal copying of the document into
> a new lyx file, the annotations reappeared.  Adding a few more
> annotations provided output with at least one highlight which extended
> to the page edge and did not carry on to the following line as the
> markup required.  There was at least another peculiarity but I can't
> remember it in detail.  Adding further annotations finally produced
> another file, with no reported errors but with no annotations either! 
> Back to square one.  In trying to resolve this problem, I came across
> the file upon which you have commented.      However, I have also
> carried out another piecemeal copying.  This time using LyX 2.2.2. 
> Again the file created provided annotated output.  I compared the
> working and non-working lyx files in emacs.  The only difference was
> in the white space at one point in the lyx file!  The spacing
> concerned is not part of the documents' text!      There is at least
> one further peculiarity.  Where one word, in a region being
> highlighted, was hyphenated, the word-part carried on to the next line
> was not highlighted, but before and after were! Could it be that this
> is all part of pdfcomment's fragility? Regards Frank Salter 

Reply via email to