[cl-dwim-devel] patch for cl-l10n to support German

Kambiz Darabi darabi at m-creations.com
Wed Nov 4 17:19:16 UTC 2009


Hello,

the patch adds the minimal necessary support for locale de.

As German does not have a reliable way of 'constructing' the plural
from the singular noun, de-plural-overrides.text unfortunately becomes
the source for plural generation.

In the long run, this is a sub-optimal solution:

- the file would grow into a dictionary with time
- and its complete content would be put into a hash-table at runtime

It would be necessary to use some authoritative dictionary instead of
duplicating work and to look up the plural on the fly (with some
caching added).

Note that for this solution, there has been a change to the format of
*plural-overrides.text and the way the hash-table is created:

Lines in the *-plural-overrides.text file can consist of 3 words on
one line: singular, plural, and n/m/f (neutrum/maskulinum/femininum)
for the article.

Regards


Kambiz


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cl-l10n.german.patch.gz
Type: application/octet-stream
Size: 8362 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cl-dwim-devel/attachments/20091104/b9ad04e2/attachment.obj>


More information about the cl-dwim-devel mailing list