Juergen Spitzmueller wrote:
> I have no idea where to look at. Now, when I run lyx2lyx manually, I get a
> correct file, but not if I use Georg's gui.
> Anyway, I have to leave now. I'll have a look later.

Now I know what happens: LyX first exports the file to LaTeX, then converts it 
to LyX (v. 1.4) and finally runs lyx2lyx over that file, which certainly 
already contains the garbage (color is imported as ERT, and the quotation 
marks as they are in the LaTeX file, namely >> and <<). The question is: why 
this obscure route?

Look (-dbg any):

LyXFunc::dispatch: cmd:  action: 167 arg: 'lyx13x' x: 0 y: 0
makeLaTeXFile...
  Validating buffer...
filetools(getFormatFromContents)
        File type not recognised before EOF!
filetools(getFormatFromContents)
        Couldn't find a known format!
lyxlex: UNcompressed
Color enabled. Font: Blau, Sprache: Deutsch (neue Rechtschreibung)
LyX needs the following commands when LaTeXing:
***** Packages:\usepackage{color}

***** Macros:
***** Textclass stuff:
***** done.
  Buffer validation done.
lyx document header finished
preamble finished, now the body.
TeXOnePar...     0x8d36e10 ''
SimpleTeXOnePar...     0x8d36e10
SimpleTeXOnePar...done 0x8d36e10
makeLaTeXFile...done
Finished making LaTeX file.
Row count was 15.
Converting from  latex to lyx
Calling /home/juergen/lyx/lyx-qt/src/tex2lyx/tex2lyx -f 'test.tex' > 
'test.lyx'
Overwriting existing file /tmp/lyx/lyx_tmpdir7780RHIgz3/lyx_tmpbuf0/test.lyx
Ignoring options 'T1' of package fontenc.
Converting from  lyx to lyx13x
Calling python '/home/juergen/lyx/lyx-qt/lib/lyx2lyx/lyx2lyx' -t 221 
'test.lyx' > 'test.lyx13'
Datei berschreiben?
----------------------------------------
Die Datei ~/test/test.lyx13 existiert bereits.

M�hten Sie die Datei berschreiben?
Assuming answer is &�erschreiben
&Alle berschreiben
Export &abbrechen
void BufferView::Pimpl::update(Update::flags)[fitcursor = 1, forceupdate = 0, 
singlepar = 0]  buffer: 0x8d36710
ViewMetricsInfo BufferView::Pimpl::metrics(bool) y1: 0 y2: 66 pit1: 0 pit2: 0 
npit: 1 singlepar: 0
void BufferView::Pimpl::updateScrollbar() Updating scrollbar: height: 1 curr 
par: 0 default height 28
verbose dispatch msg (buffer-export lyx13x)

Jürgen

Reply via email to