|
From: Adam C. <ad...@ch...> - 2002-07-09 06:11:55
|
On Sun, 07 Jul 2002 10:29:12 -0400 David Goodger
<go...@us...> wrote:
> Adam Chodorowski wrote:
> > So apparantly ``.. Innehåll::`` is recognized as a valid directive at
> > *some* level, but later turned into a comment instead. I haven't tried
> > finding out what's wrong, yet.
>
> I haven't had a chance to look at the code, and I won't for a few days (we
> have visitors), but I do have an idea. Probably, the directive-detecting
> regular expression is checking for a "simple name" which is alphanumerics
> plus "-", "_", and ".". "Alphanumerics" is probably limited to
> "[a-zA-Z0-9]", and should be expanded to cover the locale's idea of what
> letters should be, including accents. The "å" in "Innehåll" is probably
> throwing it off.
I still haven't had time to investigate further, but it struck me that using
the current locale for this simply won't work: it needs to be determined from
the language (that docutils gets with --language). The reason is in server /
build environments where you need to build the docs correctly in a multitud of
different languages, when the locale will probably be "C". So this needs to be
controlled in some language file, I think.
On the subject of languages, how about adding a directive (or bibliographic
field) for specyfying the language used by the document? This way documents
would be self-contained, and you would not need to pass --language to docutils
to get the correct result. Something in the lines of:
.. Language: sv
or:
:Language: sv
---
Adam Chodorowski <ad...@ch...>
Vampireware, n., a project capable of sucking the lifeblood out of anyone
unfortunate enough to be assigned to it which never actually sees the
light of day, but nonetheless refuses to die.
-- Trygve Lode
|