On Tue, Feb 14, 2012 at 8:05 AM, Jean-Marc Lasgouttes
<lasgout...@lyx.org> wrote:
> Le 14/02/2012 00:47, Richard Heck a écrit :
>
>>> Try out the enclosed minimal lyx file.
>>>
>>> 1. exporting to latex and reimporting into lyx from
>>> FIle>>Import>>Latex(plain) produces garbage characters for the dashes
>>>
>>> 2. However, calling>tex2lyx -e UTF8 from the command line produces
>>> the correct file.
>>
>> Still, it's surprising we fail in this particular case, so I'd guess it
>> is indeed a bug. I'll cross-post to devel.
>
>
> tex2lyx is not really the culprit. The file you attach is broken : it does
> not use xetex/luatex, but it does use "Unicode (XeTeX) (utf8)" as encoding.
> As a result, the latex export of the file does not specify any encoding, and
> tex2lyx is not able to guess it.
>
Sorry, but I don't understand what you mean by "broken" here. If I set
the encoding to pure Unicode (isn't that what "Unicode (XeTeX) (utf8)"
means?) shouldn't that be enough to specify that the file is
Unicode-encoded? That seems obvious to me (which of course may only
reflect my ignorance of Lyx code). If that's not true then I do not
understand what is the meaning of the
Document>>Settings>Language>>Encoding value.

Cheers,

Stefano
-- 
__________________________________________________
Stefano Franchi
Associate Research Professor
Department of Hispanic Studies            Ph:   +1 (979) 845-2125
Texas A&M University                          Fax:  +1 (979) 845-6421
College Station, Texas, USA

stef...@tamu.edu
http://stefano.cleinias.org

Reply via email to