On Sat, Feb 11, 2012 at 1:00 PM, Mike Orr <[email protected]> wrote:
> I have an
> application with an online glossary, and the glossary is maintained by
> another person using some visual tool. So when I get an update, I use
> BeautifulSoup to parse it.

The way the glossary works, in case anyone is interested, is I parse
the terms and definitions out of the HTML file and put them in a data
structure (currently a pickle file, but I think the next version will
have a database table). I sort them into first-letter groups
(capitalized), and make a page for each letter.

The definitions sometimes contain cross-references to other terms. I
got the maintainer to use an agreed format for cross-reference anchors
(<a href="LETTER#term-lowercase-with-hyphens"> I think), and then I
just keep the anchors in the definitions.


-- 
Mike Orr <[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to