Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#4299 closed defect (duplicate)

tex2lyx swallows unicode characters

Reported by: eduardgrebe@… Owned by: nobody@…
Priority: high Milestone: 1.6.0
Component: tex2lyx Version: 1.5.1
Severity: major Keywords: dataloss
Cc: uwestoehr@…

Description

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)

comment:1 by Uwe Stöhr, 17 years ago

Cc: uwestoehr@… added
Component: importtex2lyx
Milestone: 1.6.0
op_sys: LinuxAll
Severity: normalmajor

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.

comment:2 by Uwe Stöhr, 17 years ago

Keywords: dataloss added
Summary: unicode characters incorrectly imported from a latex documenttex2lyx swallows unicode characters

comment:3 by Uwe Stöhr, 16 years ago

blocked: 4377

comment:4 by Uwe Stöhr, 16 years ago

blocked: 4379

comment:5 by Georg Baum, 16 years ago

Resolution: duplicate
Status: newclosed

tex2lyx cannot handle _any_ other encoding than latin1.

* This bug has been marked as a duplicate of 3055 *

comment:6 by Georg Baum, 16 years ago

Resolution: duplicate
Status: closedreopened

Opps, wrong bug number

comment:7 by Georg Baum, 16 years ago

Resolution: duplicate
Status: reopenedclosed

* This bug has been marked as a duplicate of 3035 *

comment:8 by Uwe Stöhr, 16 years ago

blocked: 4377

comment:9 by Uwe Stöhr, 16 years ago

blocked: 4379
Note: See TracTickets for help on using tickets.