# faqs.dict -- a dictionary custom HTMLifying rules for txt2html's -l flag # The strings on the left should become links to the URLs on the right: |ftp.lspace.org| -h-> ftp.lspace.org "Leo Breebaart" -io-> http://www.kronto.org/ "Annotated Pratchett File" -io-> http://www.lspace.org/books/apf/ "Pratchett Quote File" -io-> http://www.lspace.org/books/pqf/ "Frequently Asked Questions List" -io-> http://www.lspace.org/faqs/afp-faq.g.html "Terry Pratchett Bibliography" -io-> http://www.lspace.org/faqs/bibliography.g.html # Override two rules from the default txt2html dictionary: we want "_foo_" # to mean italicise foo ( tag), not underline it ( tag). For this to # work, this file must be fed to txt2html on the command line *before* the # default dictionary. # # The regular expressions in the default dic were also bookended by \B tokens # that caused them not to match on the book titles in the acronym faq. These were # therefore removed from the overriding expressions below. /_([a-z][a-z ]*[a-z])_/ -hi-> $1 /_(\w(\w|\s|\!|\?|,|;|\.|\-)*(\w|\.|\!|\?))_/ -hi-> $1 /_([a-z])_/ -hi-> $1 # Some FAQ maintainers write newsgroup names starting with capitals. # I'd rather that didn't happen at all, but for now I'm adding this # explicit rule that will cause txt2html to recognise such syntax |([^\w\-/\.:\@>])(Alt\.[\w\.+\-]+[\w+\-]+)| -h-> $1$2 # *Some* FAQ maintainers even write newsgroup names in all caps, for # which I can't really blame them, because what else are you going to do # in an all-caps title, but that doesn't change the fact that txt2html # has no good way of dealing with this -- there is no way to specify # that something should simply *not* be URL-ified at all. So for now, at # least I am adding this rule to make it into a news: url instead of # http, but it's all far from ideal. |([^\w\-/\.:\@>])(ALT\.[\w\.+\-]+[\w+\-]+)| -h-> $1$2 # Custom workaround for the fact that demon.ip.support has to be transformed # into *something* (see previous entry), and that I want it to be something # that is at least a valid link. |demon.ip.support| -h-> demon.ip.support # Similar case |irc.lspace.org| -h-> irc.lspace.org