discuss: Linux Dictionary Help Required
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