On Saturday 19 July 2008 13:52, Pavel Sanda wrote:
> > Hi all,
> >
> > I have a 300 page book written in MS Word version 97, and I have to
> > convert it to LyX in order to make the second edition.
> >
> > I'll accept all condolences now :-)
> >
> > Believe it or not, the MS Word version was written very much what you
> > guys would call WYSIWYM. I had styles for everything -- almost no
> > appearance was fine tuned. Obviously it's essential that all those styles
> > transfer over into the LyX version.
> >
> > I'll accept all condolences now :-)
>
> you have my condolences :)
>
> > So heres what my plan, unless someone else has a better idea.
>
> this will be ugly hack, but it maybe useful to you - what about to do
> a few word macros which simply put on the begining of section something
> like \begin_layout Section
> and \end_section of the of the section environemnt (or style or how its
> called in word).
>
> this way you can cover the few environments you use in word and then
> you could try to export it as a plain text, add header by vim and
> then try to open it in lyx.
>
> or instead of puting \begin_layout Section you can put there some arbitrary
> string, which you will lately find and replace by appropriate layouts in
> vim in imported lyx file.
>
> of course this is usable only when you are bit acquainted with lyx
> file format...
>
> hth, pavel

This is by far the best solution, in my opinion.

Unfortunately for me, my only Windows machine is a 1997 Pentium II/300 with 
128MB of RAM, which would be painfully slow.

Therefore, I'll be doing the simple stuff on the RTF using Vim with my Athlon 
XP2600+ with 1.5GB of RAM. So far I've:

tweak1.rtf: Put start tags on heading levels 1-7
tweak2.rtf: Put start and end tags on every character style
tweak3.rtf: Put the string "tablecell" in every cell of every table

The next thing I'd like to do is mark and label every grapic so they can be 
quickly restored in the LyX document. I'm trying to see an easy way to do it 
within the RTF file -- if not, I'll do it like you said -- word macros.

My user defined paragraph styles cannot reasonably be tagged in Vim -- the RTF 
can vary too much to detect a pattern, at least without programming in major 
parts of the RTF spec. So for those I'll do just what you say -- Word macros 
to insert start and end tags for each style.

After that, theoretically I can export to plain text, run some scripts to 
convert it to LyX, and then the rest will be reasonably simple cleanup.

Thanks for the great suggestion.

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US

Reply via email to