Commit graph

4 commits

Author SHA1 Message Date
Hiroki Sato
7f6342e279 Merge changes from doc/share/sgml/transtable-common.xsl rev 1.3:
|
|Optimize the word search algorithm.  Comparison using product
|set is a better solution to evaluate whether a node is included
|in a partial node-set or not.
|
2005-09-30 16:51:54 +00:00
Hiroki Sato
bca17545f1 Fix a problem of transtable-lookup when there are identical
words in different word-groups.

Spotted by:	Rudolf Cejka (cejkar at fit dot vutbr dot cz)
2005-09-18 05:40:25 +00:00
Hiroki Sato
f8fb55fa47 Ensure the $word (lookup key) is a string, not a node-list or so on. 2004-12-31 05:35:20 +00:00
Hiroki Sato
925e309a67 Improve transtable.{xml,xsl}, including:
- The structure of transtable.xml is revised.  <word> should be
   bracketed with <group>.

 - A sorting order of the FreeBSD mirror sites rendered using
   mirrors.xml has been determined by sort(1).

 - A template "transtable-lookup" has been added for localization on
   word-by-word basis.

 - Replace English month names in news.xml, press.xml, and
   advisories.xml with numbers that correspond to the names.
   The number->name translation is performed on the fly.

 - Since information in mirrors.xml is used in www/ tree, it depends on
   doc/ tree now.  When WITHOUT_DOC is defined it can be built without
   doc/ tree, but some information becomes unavailable.  For example,
   a list of the mirror sites generated in index.html becomes a dummy
   one, and calling "transtable-lookup" with a word returns the word
   itself.

Neither www/ nor doc/ build should be broken due to this commit, but
until the necessary changes are applied in the localized directories,
the transtable does not work; it simply generates non-localized contents
even if transtable.xsl is used.
2004-01-12 21:27:01 +00:00