🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.sgml
Article #485

Re: Tool for 'automatic' markup

#485
From: Graham Toal
Date: Thu, 24 Dec 1992 06:39
27 lines
1598 bytes
In article <20180.2b34a24a@ul.ie> murraya@ul.ie writes:
:Do anybody out there know anything about an application to `automatically` 
:generate markuped text, (possibly according to an sgml DTD) from an ordinary 
:ASCII file. 
:
:I like this application to work on user defined rules.

I hacked a custom application to do this myself, to convert tex-like
typesetting input files into fully marked-up SGML database files.

I tried all the common parser-generators, but none would cope with the
ambiguities of a grammar complex enough to describe real data (most of
what I was extracting from these typesetting files was bibliographic
references in various styles).  I eventually wrote a TDRC arbitrary-
lookahead parser transcriber to do the job for me. It ended up looking
a lot like Yacc, was much slower than yacc, and a hell of a lot more
flexible than yacc.

To do the job completely I took about a year to write the program, and
it *always* has to be modified whenever the typesetters/editors make
small changes to their layout.

It's not a job for the fainthearted.  I don't recommend it.

Of course, it depends on your data.  Just how free-form is it?

G
Technical Details
Message-ID: <Bzr3t5.7r0@demon.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!gate.demon.co.uk!demon!gtoal
References: <20180.2b34a24a@ul.ie>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.sgml,comp.text
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!gate.demon.co.uk!demon!gtoal
From: gtoal@pizzabox.demon.co.uk (Graham Toal)
Subject: Re: Tool for 'automatic' markup
Message-ID: <Bzr3t5.7r0@demon.co.uk>
Sender: news@demon.co.uk
Nntp-Posting-Host: pizzabox.demon.co.uk
Organization: Cuddlehogs Anonymous
References: <20180.2b34a24a@ul.ie>
Date: Thu, 24 Dec 1992 06:39:04 GMT
Lines: 27