discuss: Linux Dictionary Help Required


Previous by date: 3 Jul 2003 12:17:33 -0000 Linux Dictionary Help Required, Binh Nguyen
Next by date: 3 Jul 2003 12:17:33 -0000 Re: Linux Dictionary Help Required, Charles Curley
Previous in thread: 3 Jul 2003 12:17:33 -0000 Linux Dictionary Help Required, Binh Nguyen
Next in thread: 3 Jul 2003 12:17:33 -0000 Re: Linux Dictionary Help Required, Charles Curley

Subject: Re: Linux Dictionary Help Required
From: chris albert ####@####.####
Date: 3 Jul 2003 12:17:33 -0000
Message-Id: <3F041EA1.9090702@mcgill.ca>

Binh

>Hello out there,
>
>I'm currently getting editing for preliminary publication. Does anyone know
>of a way in which to convert the thing to XML/SGML without going insane =)
>(please remember that its about 1300 pages). Its currently organised thus,
>
>Meaning (Tab) Really long line which is the definition
>New-line
>Meaning (Tab) Really long line which is the definition
>New-line
>Meaning (Tab) Really long line which is the definition
>etc....
>
>  
>
This should be easy. I suggest a little perl script that reads the file
from standard input,
spilts each line on the tab, sets two variables $meaning and $def, and
then inserts those
variables into the appropriate xml text , say using 'glossary' tags,
printing to a new file.
Then you can just add the superstructure to that file, to get the final
doc, or an external
file you can include in your doc.

This is possible also with a shell script using sed/awk, or with macros
in an editor like vim,
but I think perl is easiest.

Chris


Previous by date: 3 Jul 2003 12:17:33 -0000 Linux Dictionary Help Required, Binh Nguyen
Next by date: 3 Jul 2003 12:17:33 -0000 Re: Linux Dictionary Help Required, Charles Curley
Previous in thread: 3 Jul 2003 12:17:33 -0000 Linux Dictionary Help Required, Binh Nguyen
Next in thread: 3 Jul 2003 12:17:33 -0000 Re: Linux Dictionary Help Required, Charles Curley


  ©The Linux Documentation Project, 2014. Listserver maintained by dr Serge Victor on ibiblio.org servers. See current spam statz.