]> granicus.if.org Git - docbook-dsssl/log
docbook-dsssl
19 years agoFixed typo.
Michael Smith [Tue, 7 Jun 2005 09:34:13 +0000 (09:34 +0000)]
Fixed typo.

19 years agoAdded some Notes section with info contributed by Barry Rountree.
Michael Smith [Tue, 7 Jun 2005 09:27:08 +0000 (09:27 +0000)]
Added some Notes section with info contributed by Barry Rountree.

19 years agoOriginal changelog from the docbook/contrib/xsl/db2man days.
Michael Smith [Tue, 7 Jun 2005 07:38:07 +0000 (07:38 +0000)]
Original changelog from the docbook/contrib/xsl/db2man days.
Adding so that we at least have access to a record of the change
descriptions here (if not the whole CVS history).

19 years agoRemoved unnecessary trailing comma after final term/glossterm
Michael Smith [Tue, 7 Jun 2005 06:21:59 +0000 (06:21 +0000)]
Removed unnecessary trailing comma after final term/glossterm
(closes #1215890; thanks to Sam Steingold for reporting the
problem).

::PROBLEM::
If a varlistentry or glossentry contains multiple term or
glossterm elements, a comma is rendered after the final term or
glossterm. A comma should instead be rendered only after every
term or glossterm _except_ the last.

::FIX::
Reworked template logic for term/glossterm. They are now handled
with an xsl:for-each in the varlistentry/glossentry template,
rather than as separate templates.

HTML and FO stylesheets appear to have the same problem, so we
probably need to port this change to those as well.

19 years agoAdded Tagalog locale file contributed by Ramil Sagum.
Michael Smith [Mon, 6 Jun 2005 09:49:19 +0000 (09:49 +0000)]
Added Tagalog locale file contributed by Ramil Sagum.

19 years agoUppercase titles in x-ref to Refentry children (closes #1215547;
Michael Smith [Mon, 6 Jun 2005 09:39:41 +0000 (09:39 +0000)]
Uppercase titles in x-ref to Refentry children (closes #1215547;
thanks to Jens Granseuer for reporting the problem).

::PROBLEM::
Titles of all first-level sections in man pages are always
rendered in uppercase. But cross-references to those titles are
not uppercase.

::FIX::
Cross-references to titles of all first-level sections of Refentry
output are now rendered in uppercase; that is, titles in x-refs to
Refnamediv, Refsynopsisdiv, Refsect1, and any Refsection that is a
direct child of Refentry.

Also, x-ref to Refnamediv now uses the localized "NAME" title
instead of the using the first Refname child. This makes the
output inconsistent with HTML and FO output, but for man-page
output, it seems to make better sense to have the "NAME". (It may
actually make better sense to do it that way in HTML and FO output
as well.) That said, I guess it's not likely that most people
would put in an x-ref to a Refnamediv section, so maybe it's kind
of a moot point...

19 years agoAdded tl.xml
Michael Smith [Mon, 6 Jun 2005 07:50:04 +0000 (07:50 +0000)]
Added tl.xml

19 years agoAdded Amharic locale file contributed by the The Ge'ez Frontier
Michael Smith [Mon, 6 Jun 2005 05:51:09 +0000 (05:51 +0000)]
Added Amharic locale file contributed by the The Ge'ez Frontier
Foundation.

19 years agoFixed bug [ 1212159 ] Missing navigational links with XHTML chunking
Bob Stayton [Fri, 3 Jun 2005 17:22:31 +0000 (17:22 +0000)]
Fixed bug [ 1212159 ] Missing navigational links with XHTML chunking
which was caused by the following:

1.  When chunk.hierarchy is created, it is a collection of
div elements in a variable, and then that is converted to a
node-set by exlt.

2.  In HTML, there is no namespace, so the div elements are in
no namespace and they work.

3.  In XHTML, the div elements are in the xhtml namespace because
it is the default namespace.  So they cannot be addressed as
just "div", they must have a namespace prefix.

4.  I added an explicit chunkfast namespace to avoid conflict
with the default namespace.

19 years agoAdded support for processing funcparams (closes #1213166; thanks
Michael Smith [Thu, 2 Jun 2005 06:58:00 +0000 (06:58 +0000)]
Added support for processing funcparams (closes #1213166; thanks
to Barry Rountree for reporting).

::PROBLEM::
The funcparams element was not being processed as expected.

::CAUSE::
No logic existed in manpages stylesheets for handling funcparams.

::FIX::
Fixed by taking old code for handling of funcprototype and
children, and replacing it with code ported over from HTML
templates for ANSI-style output.

::AFFECTS::
This change affects handling of all funcprototype output. Along
with adding support for funcparams, the following changes were
also made:

  - removed the space that was being output between funcdef and
    paramdef; example:

      was: float rand (void);
      now: float rand(void);

  - turned off bold formatting for the <type> element when it
    occurs within a funcdef or paramdef

  - moved space -> nobreak-space replacement logic into a separate
    template (for potential re-use elsewhere if we need it)

::TODO::
We need to add an option for K&R style funcprototypes.
See #1213277.

  http://sourceforge.net/tracker/index.php?func=detail&aid=1213277&group_id=21935&atid=516914

19 years agoBacked out patch for #1211477 because it breaks table processing in Saxon.
Michael Smith [Thu, 2 Jun 2005 02:25:17 +0000 (02:25 +0000)]
Backed out patch for #1211477 because it breaks table processing in Saxon.

19 years agoApplied patch from David Green for #1211477, to prevent
Michael Smith [Wed, 1 Jun 2005 17:10:03 +0000 (17:10 +0000)]
Applied patch from David Green for #1211477, to prevent
StackOverflowError encountered when processing tables with ~700
rows with Xalan. Smoke-tested and didn't see any obvious problems
with the fix, so going ahead and committing it so others can test
with snapshot.

19 years agoAlign refnamediv title correctly when refentry.generate.title
Michael Smith [Wed, 1 Jun 2005 11:41:48 +0000 (11:41 +0000)]
Align refnamediv title correctly when refentry.generate.title
is non-zero (closes #1212641).

::Problem:
When refentry.generate.title is non-zero, the title output for
Refnamediv is not aligned flush left.

::Cause:
No code for setting start-indent="" was included in
refentry.title.properties. It should be in order to make the
Refnamediv title output be flush left, as are titles for all other
sectioning children of Refentry

::Fix:
Added code for setting start-indent="" in
refentry.title.properties.

19 years agoGenerate XEP bookmarks for Refentry children. (closes #1212491)
Michael Smith [Wed, 1 Jun 2005 10:45:30 +0000 (10:45 +0000)]
Generate XEP bookmarks for Refentry children. (closes #1212491)

Titled child sections of Refentry (Refsynosisdiv, Refsection, and
Refsect1 to Refsect3) were not included in the match statement
used for generating XEP bookmarks. Don't know whether that was
intentional for some reason or whether it was just an oversight.
But given that both AXF and Passivetex bookmarks are generated for
those same Refentry children, it seems like XEP ones ought to also
be generated, for the sake of consistency if for no other reason.

19 years agoCorrected formatting of generated "Name" title in refentry output
Michael Smith [Wed, 1 Jun 2005 10:25:17 +0000 (10:25 +0000)]
Corrected formatting of generated "Name" title in refentry output
(closes #1212396; thanks to Andreas Lalloo for reporting the
problem).

:Problem::
The "Name" title generated for FO output of Refnamediv in Refentry
is not aligned flush left, as all the other subheadings of
Refentry are, and as the generated Name subheading for Refentry is
in HTML output. Also, the Name title is in a larger font size than
the titles of the other first-level children of Refentry.

:Fix::
The "Name" title generated for FO output of Refnamediv in Refentry
is now handled using the same formatting as that used for all
other first-level children of Refentry.

::Affects:
Along with affecting processing for generated titles for
Refnamediv in FO output, it is possible that this change may have
unanticipated side effects on processing of titles for
Refsynopsisdiv, Refsection, and Refsect1 to Refsect3. The reason
is that part of this change takes the template contents formerly
used only for processing Refsynopsisdiv, Refsection, and Refsect1
to Refsect3, and "repurposes" those template contents for use in
processing the generated title for Refnamediv.

19 years agoFixed bug #1202971, chunktoc doesn't handle the chunk.tocs.and.lots=1
Bob Stayton [Tue, 31 May 2005 07:46:52 +0000 (07:46 +0000)]
Fixed bug #1202971, chunktoc doesn't handle the chunk.tocs.and.lots=1
parameter.

19 years agoThe table.width template can now sum column specs if none use % or *.
Bob Stayton [Tue, 31 May 2005 01:14:27 +0000 (01:14 +0000)]
The table.width template can now sum column specs if none use % or *.

19 years agoAdd support for HTML markup table border attribute, applied to each table cell.
Bob Stayton [Tue, 31 May 2005 01:04:00 +0000 (01:04 +0000)]
Add support for HTML markup table border attribute, applied to each table cell.

19 years agoRe-worked construction of .TH title line (closes #1210488).
Michael Smith [Mon, 30 May 2005 10:59:42 +0000 (10:59 +0000)]
Re-worked construction of .TH title line (closes #1210488).
Also, made comment generated at top of page include version info
(closes #1211254).

Here are the details about the refinements made to the
construction of the .TH title line:

  - "extra1" (which shows up in the center footer of each page):
    If a date cannot be found in the source, we now automatically
    generate a localized "long format" date

  - "extra2" (which shows up in the left footer):
    We now first search for "product version" info; then, if we
    can't find that, a "product name"; if we can't find that, we
    look for "other" info to use. And we can't find that, we leave
    it empty. The exact sequence of elements checked is this:

      1. productnumber in info or refentryinfo
      2. productnumber in info or referenceinfo of parent reference
      3. any refmeta/refmiscinfo that has class = 'version'
      4. productname in info or refentryinfo
      5. productname in info or referenceinfo of parent reference
      6. refmeta/refmiscinfo (first one)
      7. refnamediv/refclass (first one)

  - "extra3" (which shows up in the center header):
    The exact sequence of elements checked is now this:

      1. title in info or referenceinfo of parent reference
      2. refnamediv/refclass (first one)
      3. refmeta/refmiscinfo (first one)

19 years agoFixed typo in comment.
Michael Smith [Sun, 29 May 2005 09:27:08 +0000 (09:27 +0000)]
Fixed typo in comment.

19 years agoStandalone stylesheet for stripping namespaces from DocBook 5/NG
Michael Smith [Sun, 29 May 2005 09:00:28 +0000 (09:00 +0000)]
Standalone stylesheet for stripping namespaces from DocBook 5/NG
docs. You currently need to do two-pass processing to use this:
First, transform your DocBook 5/NG source doc using this, then
transform the result as usual with the manpages/docbook.xsl
stylesheet. Of course you can always run the process using a pipe
if you want. Example:

  xsltproc ./manpages/stripns.xsl myRefEntry.xml \
    | xsltproc ./manpages/docbook.xsl

It may be that there is actually some way to set it up as a
single-pass XSLT process, as is done with the HTML stylesheets.
But I've not yet figured out how to get that to work...

19 years agoAdded support for processing refsection down to any arbitrary
Michael Smith [Sun, 29 May 2005 00:29:09 +0000 (00:29 +0000)]
Added support for processing refsection down to any arbitrary
level of nesting (closes #1210482).

19 years agoAdded support for refsect3 and formalpara processing (closes
Michael Smith [Sat, 28 May 2005 18:01:35 +0000 (18:01 +0000)]
Added support for refsect3 and formalpara processing (closes
#1210478 and #1210479).

Also did some further templates re-organizing, including to the
logic for gathering and processing metadata.

19 years agoPrevious change (adding text-align="left") caused article titles to be displayed...
Jirka Kosek [Sat, 28 May 2005 11:54:15 +0000 (11:54 +0000)]
Previous change (adding text-align="left") caused article titles to be displayed left aligned instead centered. This was backward incompatible change in presentation. Now attribute set is conditional and outputs text-align="center" for titles of standalone articles.

Probably in the future more general fix should be done -- either creating separate article.title.properties, or refactoring FO properties settings between titlepage templates and attribute sets.

19 years agoContext node must be stored/restored in order to get correct language code. (Note...
Jirka Kosek [Sat, 28 May 2005 08:04:31 +0000 (08:04 +0000)]
Context node must be stored/restored in order to get correct language code. (Note that for-each changes current node.)

19 years agoAdded lib directory to the list of directories for which separate Makefile is called
Jirka Kosek [Sat, 28 May 2005 07:09:03 +0000 (07:09 +0000)]
Added lib directory to the list of directories for which separate Makefile is called

19 years agoMade path to chunker.xsl stylesheet relative.
Michael Smith [Sat, 28 May 2005 03:51:38 +0000 (03:51 +0000)]
Made path to chunker.xsl stylesheet relative.

19 years agoPortability tweaks for the build.
Michael Smith [Sat, 28 May 2005 02:55:59 +0000 (02:55 +0000)]
Portability tweaks for the build.

  - pull in cvstools/Makefile.incl, mainly so that we can use
    cvstools/runtrang

  - "trang" -> $(RUNTRANG) so that cvstools/runtrang is used; if
    users don't have trang binary installed, that will find
    trang.jar and run it. Also allows users to manually specify
    what trang they want (e.g., "make RUNTRANG=trang")

  - "clean" target now also removes dbforms* files

  - "clean" target now also does "make -C build clean"

  - "xsltproc" -> $(XSLTPROC)

19 years agoAdded references to newly added parameter l10n.gentext.use.xref.language
Jirka Kosek [Fri, 27 May 2005 16:15:22 +0000 (16:15 +0000)]
Added references to newly added parameter l10n.gentext.use.xref.language

19 years agoAdded header (with RCS keywords and copyright info) to all files
Michael Smith [Fri, 27 May 2005 13:12:26 +0000 (13:12 +0000)]
Added header (with RCS keywords and copyright info) to all files
that lacked it.

19 years agoRemoved. This file has never been included by docbook.xsl, so it
Michael Smith [Fri, 27 May 2005 13:06:30 +0000 (13:06 +0000)]
Removed. This file has never been included by docbook.xsl, so it
serves no purpose at all...

19 years agoModularized a bit further.
Michael Smith [Fri, 27 May 2005 13:01:52 +0000 (13:01 +0000)]
Modularized a bit further.

19 years agoMake build more portable.
Michael Smith [Fri, 27 May 2005 08:41:14 +0000 (08:41 +0000)]
Make build more portable.

Added include for $DOCBOOK_CVS/cvstools dir and:

  - replaced hard-coded "saxon" with $(XSLT)
  - replaced hard-coded "trang" with $(RUNTRANG)
  - added PERL=perl variable and replaced hard-coded "perl" with
    $(PERL)
  - replaced hard-coded rm with $(RM)

19 years agoModularized main "refentry" template a bit.
Michael Smith [Fri, 27 May 2005 04:10:09 +0000 (04:10 +0000)]
Modularized main "refentry" template a bit.

19 years agoMake language codes RFC compliant (closes #1208931; thanks to
Michael Smith [Thu, 26 May 2005 23:29:25 +0000 (23:29 +0000)]
Make language codes RFC compliant (closes #1208931; thanks to
Bernd Groh for reporting).

::PROBLEM:
  Stylesheets output two-part language codes in the form "zh_CN".
  But underscores in language codes are actually neither RFC
  compliant nor compliant with the HTML 4.0 rec. The separator
  should be a hyphen. To quote the specs:

    Section 8.1.1, "Language Codes"[1], in the HTML 4.0 Rec.
    states that:

    [RFC1766] defines and explains the language codes that MUST be
    used in HTML documents.

    Briefly, language codes consist of a primary code and a
    possibly empty series of subcodes:

      language-code = primary-code ( "-" subcode )*

    And in RFC 1766, "Tags for the Identification of
    Languages"[2], the EBNF for "language tag" is given as:

      Language-Tag = Primary-tag *( "-" Subtag )
      Primary-tag = 1*8ALPHA
      Subtag = 1*8ALPHA

    [1] http://www.w3.org/TR/REC-html40/struct/dirlang.html#h-8.1.1
    [2] http://www.ietf.org/rfc/rfc1766.txt

::CAUSE:
  Stylesheets simply pass through language codes unaltered. So if
  users put "zh_CN" in their source, they will get "zh_CN" in
  their HTML output.

::FIX:
  Added a new boolean config parameter, "l10n.lang.value.rfc.compliant",
  set to 1 by default. If it is non-zero, any underscore in a
  language code will be converted to a hyphen in HTML output. If
  it is zero, the language code will be left as-is.

::AFFECTS:
  This change affects any HTML output that contains two-part
  language codes.

19 years agoFixed typo.
Michael Smith [Thu, 26 May 2005 13:07:34 +0000 (13:07 +0000)]
Fixed typo.

19 years agominor formatting change
Michael Smith [Thu, 26 May 2005 08:14:04 +0000 (08:14 +0000)]
minor formatting change

19 years agoReplaced leftover instances of "Website"
Michael Smith [Thu, 26 May 2005 08:11:48 +0000 (08:11 +0000)]
Replaced leftover instances of "Website"

19 years agoFixed bug #851598 links to legalnotice in html are broken.
Bob Stayton [Thu, 26 May 2005 07:27:34 +0000 (07:27 +0000)]
Fixed bug #851598 links to legalnotice in html are broken.

19 years agoSet start-indent and end-indent for fo:table-body used to format lists to
Bob Stayton [Wed, 25 May 2005 22:35:19 +0000 (22:35 +0000)]
Set start-indent and end-indent for fo:table-body used to format lists to
zero so that they do not inherit any start-indent from their container, which
would indent relative to the cell boundary.

19 years agoCause "clean" target to remove xref.xsl
Michael Smith [Tue, 24 May 2005 22:49:30 +0000 (22:49 +0000)]
Cause "clean" target to remove xref.xsl

19 years agoMake xrefs and olinks work, and prevent instances of &#8220; and
Michael Smith [Tue, 24 May 2005 22:40:41 +0000 (22:40 +0000)]
Make xrefs and olinks work, and prevent instances of &#8220; and
&#8221; entities in output (closes #741578 and #956072; thanks to
Jens Granseuer and Sam Steingold for reporting the problems)

::Problem:
  If you include an xref in a source document, instead of getting
  the xref text you would expect in the output, you just get
  "[xref to refsect1]", where "refsect" is the name of the target
  element for the xref.  If you include an olink, it works as
  expected -- except that the output text has &#8220; and &#8221;
  entities (double "curly" quotation marks).

::Cause:
  The manpages/docbook.xsl driver imports the html/docbook.xsl
  stylesheet, which in turn imports the html/xref.xsl file.

  The manpages/docbook.xsl file then imports the manpages/xref.xsl
  file. That file contains a "xref" template that overrides the
  the one in html/xref.xsl and that, by design, does nothing
  except to generate the "[xref to refsect1]" text instead of the
  expected xref output.

  On the other hand, the manpages stylesheets don't override the
  "olink" template; therefore, the "olink" template from the
  html/xref.xsl file is used "as is". And being that it is
  intended for HTML output, that template uses the &#8220; and
  &#8221; to wrap titles in xref output.

::Fix:
  The original manpages/xref.xsl file has now been removed. The
  build for the manpages distribution now makes that file, using
  the textify.xsl stylesheet to automatically generate it from the
  html/xref.xsl file. It is built in such a away that it basically
  just contains special copies of the "xref" and "olink" templates
  that cause &#8220; and &#8221; instances to be transformed into
  "\(lq" and "\(rq" (groff "left quote" and "right quote").

  It might seem odd that templates from the html/xref.xsl are
  used, since those templates a designed to generate hyperlinks of
  the form <a href="#foo">the section called "Bar"</a>. But it
  works because the manpages stylesheets end up using the text
  value of the output of the above. Thus, the <a href="#foo"> and
  </a> parts are stripped out, leaving just the text between
  ('the section called "Bar"').

::Affects
  Only affects output of xref and olink elements. The fix may not
  be complete and/or may cause other problems. Please test.

  In particular, while it may fix the &#8220; and &#8221; problem
  that English lang/locales users have run into, it doesn't fix
  the corresponding problem for output of xrefs and olinks in many
  non-English locales, which use quoting characters other than
  &#8220; and &#8221;

  To give just one example of many: in Japanese, the quoting
  characters are &#12300; and &#12301; ("left corner bracket" and
  "right corner bracket"). It is possible to "fix" the problem for
  all locales; but it is just a question of whether there is
  enough of a demand for it that it is worth doing.

19 years agoClassical HTML index is suppressed in a cleaner way as suggested by David Cramer
Jirka Kosek [Tue, 24 May 2005 21:23:56 +0000 (21:23 +0000)]
Classical HTML index is suppressed in a cleaner way as suggested by David Cramer

19 years agoWhitespace-only change. Expanded all tabs
Michael Smith [Tue, 24 May 2005 21:17:55 +0000 (21:17 +0000)]
Whitespace-only change. Expanded all tabs

19 years agoAdded replace-ldqou and replace-rdquo templates, for translating
Michael Smith [Tue, 24 May 2005 21:15:13 +0000 (21:15 +0000)]
Added replace-ldqou and replace-rdquo templates, for translating
&#8220; to \(lq and  &#8221; to \(rq

19 years agoPrevent "sticky" fonts changes. (closes #956070; thanks to Sam
Michael Smith [Tue, 24 May 2005 09:40:55 +0000 (09:40 +0000)]
Prevent "sticky" fonts changes. (closes #956070; thanks to Sam
Steingold for reporting the problem, and for his patience...)

::Problem:
  Sometimes a bold or italic font change inadvertently ends up
  becoming "sticky" such that a following chunk of text that
  should just be rendered as plain text instead gets
  boldfaced/italicized.

::Cause:
  Font changes were simply being nested, as they are in HTML.
  While that works for HTML, it doesn't work for roff, where
  font-change instructions aren't actually intended to nest.

::Fix:
  Attempted to un-nest bold/italic font changes. When the manpages
  stylesheets encounter node sets that need to be boldfaced or
  italicized, they now put the \fBfoo\fR \fIbar\fR groff
  bold/italic instructions separately around each node in the set.

  This may not be a complete fix for the problem. In fact, it may
  cause other problems. Please test :^)

19 years agoSupport generation of choice separator in inline simplelist
Michael Smith [Tue, 24 May 2005 06:55:18 +0000 (06:55 +0000)]
Support generation of choice separator in inline simplelist
(closes #1207532)

This ehancement enables auto-generation of an appropriate
localized "choice separator" (for example, "and" or
"or") before the final item in an inline simplelist.

To indicate that you want a choice separator generated
for a particular list, you need to put a processing
instruction (PI) of the form <?dbchoice choice="foo"?>
as a child a of the list. For example:

  <para>This release adds localiation support for the
  following Indic languages:
    <simplelist type="inline">
      <?dbchoice choice="and" ?>
      <member>Hindi</member>
      <member>Punjabi</member>
      <member>Tamil</member>
      <member>Oriya</member>
      <member>Gujarati</member>
    </simplelist>.
  </para>

Output (for English):

  This release adds localiation support for the
  following Indic languages: Hindi, Punjabi, Tamil,
  Oriya, and Gujarati.

Or if the logical relationship between the items in the
list is an "or" relationship, then use choice="or":

  <para>Choose from ONE and ONLY ONE of the following:
    <simplelist type="inline">
      <?dbchoice choice="or" ?>
      <member>A</member>
      <member>B</member>
      <member>C</member>.
    </simplelist>
  </para>

Output (for English):

  Choose from ONE and only ONE of the
  following choices: A, B, or C.

As a temporary workaround for the fact that most of the
DocBook non-English locale files don't have a
localization for the word "or", you can put in a
literal string to be used; example for French:

  <para>Choose from ONE and ONLY ONE of the following:
    <simplelist type="inline">
      <?dbchoice choice="ou" ?>
      <member>A</member>
      <member>B</member>
      <member>C</member>.
    </simplelist>
  </para>

That is, use "ou" instead of "or".

19 years agoRolled back some over-aggressive line-break cleanup, and removed
Michael Smith [Mon, 23 May 2005 13:59:11 +0000 (13:59 +0000)]
Rolled back some over-aggressive line-break cleanup, and removed
space-normalizing call in group|arg template because it causes
<sbr/> to be handled incorrectly.

19 years agoMinor update to date/time handling.
Michael Smith [Mon, 23 May 2005 13:15:02 +0000 (13:15 +0000)]
Minor update to date/time handling.

19 years agoMake handling of date format strings more robust (closes #1206837).
Michael Smith [Mon, 23 May 2005 12:05:30 +0000 (12:05 +0000)]
Make handling of date format strings more robust (closes #1206837).

::Problem:
  If the "dbtimestamp" PI has words in it that contain any of the
  single-letter characters used as date/time formatting
  instructions, the output is not what would be expected.

  For example, Spanish "long" dates look like this:

    23 de mayo de 2005

  So you would expect that you could generate a date of that form
  using the dbtimestamp PI with a format string like the following:

    <?dbtimestamp format="d de B de Y"?>

  But if you try that, you get the following output:

    23 23e mayo 23e 2005

  That is, the "d" in "de" is replaced with the day of the month.

::Cause::
  The format-string parsing logic works by walking through the
  format string character-by-character. So when it gets to the "d"
  in "de", it has no way of discerning that it is not the "d"
  formatting instruction but is instead part of a word intended to
  be included in the output as a literal string.

::Fix::
  The format-string parsing logic now splits format strings into
  tokens and delimiters and evaluates them token-by-token instead
  of character-by-character.

  For example, it splits the Spanish "long" date format like this:

    <token>d</token> <token>de</token> <token>B</token> ...

  Thus, in looking for the "d" formatting instruction, the "d"
  token matches but the "de" token does not.

  As delimiters, it recognizes the following characters:

    <space> <tab> <CR> <LF> , . / - ( ) [ ]

::Affects:
  This change affects output of the "dbtimestamp" PI as well as
  output from any customization layers that call the
  "datetime.format" template. It affect all formats (HTML, FO, etc.).

19 years agoGrand Unification: Epilogue (2): If "neighboring" text nodes in
Michael Smith [Sun, 22 May 2005 12:25:26 +0000 (12:25 +0000)]
Grand Unification: Epilogue (2): If "neighboring" text nodes in
mixed content are whitespace-only, apply the special sauce just
before serving; that is, at the end, not both at the beginning and
at the end.

19 years agoRepaired line-breaking in list output. Thanks to Hendrik Sattler
Michael Smith [Sun, 22 May 2005 01:38:03 +0000 (01:38 +0000)]
Repaired line-breaking in list output. Thanks to Hendrik Sattler
for reporting the problem.

The cause of this is was a change that was made a while back to
reduce excessive blank lines in output. Looks like in this case it
cut it back a bit too aggressively. There may yet be some other
cases that will need more fine-tuning.

19 years agoWhitespace Grand Unification: Epilogue (1): If "neighboring" text
Michael Smith [Sat, 21 May 2005 11:17:23 +0000 (11:17 +0000)]
Whitespace Grand Unification: Epilogue (1): If "neighboring" text
nodes in mixed content are whitespace-only, leave them unseasoned;
that is, don't add the special sauce.

19 years agoFixed typo.
Michael Smith [Sat, 21 May 2005 03:23:30 +0000 (03:23 +0000)]
Fixed typo.

19 years agoAdded Kannada localization (from Siddharudh P T)
Michael Smith [Sat, 21 May 2005 01:47:48 +0000 (01:47 +0000)]
Added Kannada localization (from Siddharudh P T)

19 years agoVerbatim environment "Grand Unification" fix.
Michael Smith [Fri, 20 May 2005 09:08:59 +0000 (09:08 +0000)]
Verbatim environment "Grand Unification" fix.

Attempte to fix handling of verbatim environments (literallayout,
programlisting, screen) and, in a related way, text nodes.
Particularly in mixed-content blocks. I think I got it working...

Closes #1167995, #975243, #935833, #763861, #728932, #628393, #595213.

Thanks to Hendrik Sattler, Tobias Reif, Tommi Virtanen, Dennis
Grace, and Matthias Andree for reporting the problems.

Sorry it took so long for the fix.

19 years agofixed comments
Michael Smith [Fri, 20 May 2005 00:12:54 +0000 (00:12 +0000)]
fixed comments

19 years agoconvert CLDR locale data to the format used by DocBook stylesheets
Michael Smith [Wed, 18 May 2005 09:56:49 +0000 (09:56 +0000)]
convert CLDR locale data to the format used by DocBook stylesheets

19 years agoAdded mechanism for building HTML output that demonstrates various
Michael Smith [Tue, 17 May 2005 18:42:30 +0000 (18:42 +0000)]
Added mechanism for building HTML output that demonstrates various
bits of localized generated text. Useful for translators who want
to review output.

19 years agoReplaced named character entities with numeric ones
Michael Smith [Tue, 17 May 2005 18:37:37 +0000 (18:37 +0000)]
Replaced named character entities with numeric ones

19 years agoAdded missing entity ref for hi.xml
Michael Smith [Mon, 16 May 2005 19:08:53 +0000 (19:08 +0000)]
Added missing entity ref for hi.xml

19 years agoFixed bug [ 1173576 ] rowsep lines after last row of a table
Bob Stayton [Mon, 16 May 2005 16:01:57 +0000 (16:01 +0000)]
Fixed bug [ 1173576 ] rowsep lines after last row of a table

19 years agoAdded Mongolian localization from Sanlig Badral.
Michael Smith [Mon, 16 May 2005 15:40:34 +0000 (15:40 +0000)]
Added Mongolian localization from Sanlig Badral.

19 years agoSet correct code for az.xml locale file.
Michael Smith [Mon, 16 May 2005 13:23:47 +0000 (13:23 +0000)]
Set correct code for az.xml locale file.

19 years agoAdded all recently added locales.
Michael Smith [Mon, 16 May 2005 12:44:06 +0000 (12:44 +0000)]
Added all recently added locales.

19 years agoCorrected uppercase/lowercase alpha lists.
Michael Smith [Mon, 16 May 2005 12:21:08 +0000 (12:21 +0000)]
Corrected uppercase/lowercase alpha lists.

19 years agoAdded Welsh localization (from Kevin Donnelly)
Michael Smith [Mon, 16 May 2005 12:14:39 +0000 (12:14 +0000)]
Added Welsh localization (from Kevin Donnelly)

19 years agoFixed bug 1201333 mediaobjectco images not aligned.
Bob Stayton [Mon, 16 May 2005 08:27:18 +0000 (08:27 +0000)]
Fixed bug 1201333 mediaobjectco images not aligned.

19 years agofixed bug 1201333 mediaobjectco images not aligned.
Bob Stayton [Mon, 16 May 2005 08:26:08 +0000 (08:26 +0000)]
fixed bug 1201333 mediaobjectco images not aligned.

19 years agoCorrected name order
Michael Smith [Sat, 14 May 2005 23:09:05 +0000 (23:09 +0000)]
Corrected name order

19 years agoMinor cleanup for author atrribution
Michael Smith [Sat, 14 May 2005 23:06:51 +0000 (23:06 +0000)]
Minor cleanup for author atrribution

19 years agoAdded Azerbaijani translation (from Metin Amiroff)
Michael Smith [Sat, 14 May 2005 20:09:03 +0000 (20:09 +0000)]
Added Azerbaijani translation (from Metin Amiroff)

19 years agoAdded %t for substitutable text in glosssee and glosseealso to fix
Michael Smith [Sat, 14 May 2005 01:17:43 +0000 (01:17 +0000)]
Added %t for substitutable text in glosssee and glosseealso to fix
bug #858598.

19 years agoAdded Oriya localization (from Gora Mohanty)
Michael Smith [Sat, 14 May 2005 00:57:25 +0000 (00:57 +0000)]
Added Oriya localization (from Gora Mohanty)

19 years agoAdded Irish (Gaelic) localization (from Kevin Patrick Scannell)
Michael Smith [Sat, 14 May 2005 00:45:52 +0000 (00:45 +0000)]
Added Irish (Gaelic) localization (from Kevin Patrick Scannell)

19 years agoAdded %t for substitutable text in glosssee and glosseealso to fix bug 858598.
Bob Stayton [Fri, 13 May 2005 17:33:18 +0000 (17:33 +0000)]
Added %t for substitutable text in glosssee and glosseealso to fix bug 858598.

19 years agoNow glosssee and glossseealso use full gentext template with substitution.
Bob Stayton [Fri, 13 May 2005 17:23:42 +0000 (17:23 +0000)]
Now glosssee and glossseealso use full gentext template with substitution.

19 years agoMake glosssee and glossseealso into full gentext templates with substitution.
Bob Stayton [Fri, 13 May 2005 17:17:00 +0000 (17:17 +0000)]
Make glosssee and glossseealso into full gentext templates with substitution.

19 years agoIncorporated Albanian locale file contributed by Laurent Dhima.
Michael Smith [Fri, 13 May 2005 11:25:21 +0000 (11:25 +0000)]
Incorporated Albanian locale file contributed by Laurent Dhima.

19 years agoadded text for Author (thanks to Paulo Eduardo Neves)
Michael Smith [Fri, 13 May 2005 11:15:36 +0000 (11:15 +0000)]
added text for Author (thanks to Paulo Eduardo Neves)

19 years agoclarified encoding section
Michael Smith [Fri, 13 May 2005 11:02:40 +0000 (11:02 +0000)]
clarified encoding section

19 years agoignore build dir
Michael Smith [Fri, 13 May 2005 10:33:28 +0000 (10:33 +0000)]
ignore build dir

19 years agoreworked entire file to make things easier for translators
Michael Smith [Fri, 13 May 2005 10:20:55 +0000 (10:20 +0000)]
reworked entire file to make things easier for translators

19 years agoexplicitly set encoding to UTF-8 (makes it easier for translators
Michael Smith [Fri, 13 May 2005 09:31:50 +0000 (09:31 +0000)]
explicitly set encoding to UTF-8 (makes it easier for translators
who might not be familiar with XML and the fact the UTF-8 is the
default...)

19 years agoswitched to ant-based build
Michael Smith [Fri, 13 May 2005 08:41:13 +0000 (08:41 +0000)]
switched to ant-based build

19 years agoclean target added
Michael Smith [Fri, 13 May 2005 07:59:40 +0000 (07:59 +0000)]
clean target added

19 years agoAdded clean target
Michael Smith [Fri, 13 May 2005 07:56:54 +0000 (07:56 +0000)]
Added clean target

19 years agoChanged order of build
Michael Smith [Fri, 13 May 2005 07:33:05 +0000 (07:33 +0000)]
Changed order of build

19 years agotouch pi.html so that nothing gets unnecessarily remade
Michael Smith [Fri, 13 May 2005 07:29:47 +0000 (07:29 +0000)]
touch pi.html so that nothing gets unnecessarily remade

19 years agocreate param.html stamp so that it doesn't get remade if nothing changes
Michael Smith [Fri, 13 May 2005 07:27:43 +0000 (07:27 +0000)]
create param.html stamp so that it doesn't get remade if nothing changes

19 years agoclean target now removes generated *.html param files
Michael Smith [Fri, 13 May 2005 07:22:53 +0000 (07:22 +0000)]
clean target now removes generated *.html param files

19 years agoChanged longest.term template to measure width after apply-templates to term.
Bob Stayton [Fri, 13 May 2005 07:06:38 +0000 (07:06 +0000)]
Changed longest.term template to measure width after apply-templates to term.

19 years agoAdded/Corrected HTML Help language codes. Note that there are no
Michael Smith [Fri, 13 May 2005 02:38:01 +0000 (02:38 +0000)]
Added/Corrected HTML Help language codes. Note that there are no
HTML Help language codes for Bangla, Gujarati, Punjabi, or Tamil.
So, set the code for those to the code for Hindi, which, it seems,
is the closest we can get.

19 years agofixed typo
Michael Smith [Fri, 13 May 2005 01:48:09 +0000 (01:48 +0000)]
fixed typo

19 years agoAdded hi.xml file contributed by Bernd Groh. Removed "letters"
Michael Smith [Fri, 13 May 2005 01:46:17 +0000 (01:46 +0000)]
Added hi.xml file contributed by Bernd Groh. Removed "letters"
element from locale files that don't need it.

19 years agoAdded support for Punjabi, Gujarati, and Tamil (via locale files
Michael Smith [Thu, 12 May 2005 04:25:48 +0000 (04:25 +0000)]
Added support for Punjabi, Gujarati, and Tamil (via locale files
contributed by Bernd Groh) (ported from build branch)

19 years agoAdded Tamil, Punjabi, and Gujarati locale files contributed by Bernd Groh
Michael Smith [Thu, 12 May 2005 04:18:36 +0000 (04:18 +0000)]
Added Tamil, Punjabi, and Gujarati locale files contributed by Bernd Groh

19 years agoAdded several missing translations
Jirka Kosek [Wed, 11 May 2005 15:25:44 +0000 (15:25 +0000)]
Added several missing translations

19 years agoSimplified and corrected rendering of simplelist. (closes #1154750
Michael Smith [Wed, 11 May 2005 14:48:13 +0000 (14:48 +0000)]
Simplified and corrected rendering of simplelist. (closes #1154750
and #699081; thanks to Matthias Andree and Bert Vermeulen for
reporting the problem)

  - Any simplelist type="inline" instance is now rendered as a
    comma-separated list, with a comma and also a localized "and"
    before the last item.

  - Any simplelist instance whose type is not inline is rendered
    as a one-column vertical list (ignoring the values of the type
    and columns attributes if present)

19 years agoAdded QandAdiv for all locales that lacked it.
Michael Smith [Wed, 11 May 2005 13:33:59 +0000 (13:33 +0000)]
Added QandAdiv for all locales that lacked it.