[kwlug-disc] Converting a document

john at netdirect.ca john at netdirect.ca
Mon May 18 16:58:04 EDT 2009


It seems to me that you could write a simple sed or awk script to convert those headings to html <h#> tags. Then import to a word processor. 

John Van Ostrand CTO, co-CEO
Net Direct Inc
564 Weber St. N. Unit 12
Waterloo, ON N2L 5C6
Ph: 519-883-1172 x5102
Ph: 866-883-1172 x5102
Fx: 519-883-8533


----- Original Message -----
From: Gary Walsh [gwalsh at notw.ca]
Sent: 05/18/2009 03:47 PM AST
To: kwlug-disc at kwlug.org
Subject: [kwlug-disc] Converting a document



I have a document that I acquired from the web.  At the beginning of the
document is this text: "Sub-section titles are in the form: L#: […].
These can be used to regenerate the structure using a Word Processor."

The document is structured with elements like this: L1: [CONTENTS] :L1,
L3: [Notes] :L3, etc.

I would like to convert the document into a printable format but I
cannot figure out how to do that in any automated way.  Does anyone know
how to do this?  I am unable to find any script or OpenOffice facility
to read that type of markup and convert it to any other format.


-- 
Gary


_______________________________________________
kwlug-disc_kwlug.org mailing list
kwlug-disc_kwlug.org at kwlug.org
http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org



More information about the kwlug-disc_kwlug.org mailing list