tex2lyx swallows unicode characters
When importing a latex document (.tex) previously used with xetex and edited
with kile, some unicode characters are not imported correctly into lyx. However,
lyx handles unicode just fine once the document has been set as utf8 encoded and
the characters are entered in lyx. I will attach the following example files:
test.tex - a utf8 file that renders correctly with xelatex
test.pdf - text.tex rendered with xetex
test-lyx.lyx - the file imported with LyX (which does not detect that test.tex
is utf8 encoded and applies latin encoding)
test-lyx-changedencoding.lyx - manually changed encoding to utf8 in LyX, but it
still does not render because of invalid characters.
http://launchpadlibrarian.net/10177892/testfiles.tar.bz2
(I use LyX 1.5.1 with texlive on Ubuntu 7.10 i386)
Change History
(9)
Cc: |
uwestoehr@… added
|
Component: |
import → tex2lyx
|
Milestone: |
→ 1.6.0
|
op_sys: |
Linux → All
|
Severity: |
normal → major
|
Keywords: |
dataloss added
|
Summary: |
unicode characters incorrectly imported from a latex document → tex2lyx swallows unicode characters
|
Resolution: |
→ duplicate
|
Status: |
new → closed
|
Resolution: |
duplicate
|
Status: |
closed → reopened
|
Resolution: |
→ duplicate
|
Status: |
reopened → closed
|
The problem are the dashes. tex2lyx imports documents by default in latin1
encoding, therefore the dashes couldn't be converted as they are not defined in
this encoding.
The resulting character in LyX cannot be printed, because LaTeX's utf8 encoding
doesn't know them.
So what we need is an option to load documents as utf-8 in tex2lyx.