|
From: Jason D. <ja...@in...> - 2003-01-03 20:32:48
|
On Sun, 2002-12-29 at 09:04, David Goodger wrote: > A quick & dirty way to implement what you want would be to indicate the role > of each acronym like this: "`reST`:acronym:" or "`reST`:a:". This will put > the role into a doctree node attribute, which is easy to check for in code. > But the text is butt-ugly and this approach become obsolete (read on). This is what I did. It is ugly but not as much as in HTML. At least the titles can be defined elsewhere. > An application (or document or processing run) could specify a default role, > so a ":role:" prefix or suffix wouldn't be required; plain `backquotes` > would be sufficient. > > Ideally and eventually, the "interpreted" element will disappear from the > Docutils doctree. In its place will be a customizable set of inline > elements including "acronym" and "index_entry", directly created by the > parser. How will that work? Will acronyms and index entries use a different syntax to differentiate themselves from each other? Are are you saying the default role will specify that all interpreted text is a certain type of element? What if you wanted to identify both acronyms and index entries in the same document? What if an acronym was also an index entry? Jason |