How do I create an online glossary?
May 24, 2006 11:09 AM
Subscribe
How do I create an online glossary?
I'm currently using Excel and exporting to html within the program. The results are
less than stellar.
It would be nice if I could keep the data in CSV format (or something else) so that I could edit it on a spreadsheet. It works fine with searching for terms via the browser and there aren't enough entries to make elaborate search functions necesarry. Does anyone have a recommendation? Freeware program? CSS solution?
posted by imposster to computers & internet (9 comments total)
It's not hard, using a few GREP patterns, to take a CSV file (or tab-separated file) and transform it to an HTML table. Paste on a boilerplate static header and footer, and bob's your uncle.
There's probably a single GREP pattern that would do the whole table at once, but my GREP-fu isn't up to that level.
It's also not that hard to use search/replace to prune the HTML generated by Excel down to something more reasonable (though probably more work).
In either case, you could then add some simple CSS to jazz up the table.
This assumes occasional updating. If you want to update and republish more frequently, you'll probably want either a CMS specifically to maintain the glossary, or a program that can apply a series of transformations to the CSV and emit the proper HTML.
posted by adamrice at 11:24 AM on May 24, 2006