[2] | 1 | 2005-07-08 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 2 |
|
---|
| 3 | * lib.xweb: Added prepend-pad function for right-padding strings to a specific
|
---|
| 4 | length.
|
---|
| 5 |
|
---|
| 6 | 2005-06-28 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 7 |
|
---|
| 8 | * lib.xweb: Fixed typo.
|
---|
| 9 |
|
---|
| 10 | 2005-06-27 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 11 |
|
---|
| 12 | * lib.xweb: Added an "apply-string-subst-map" function (template). Only
|
---|
| 13 | difference is that in the map that it expects, "oldstring" and
|
---|
| 14 | "newstring" attributes are used instead of "character" and
|
---|
| 15 | "string" attributes.
|
---|
| 16 |
|
---|
| 17 | 2005-06-22 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 18 |
|
---|
| 19 | * lib.xweb: Finalized read-character-map() and apply-character-map() functions.
|
---|
| 20 |
|
---|
| 21 | 2005-06-18 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 22 |
|
---|
| 23 | * lib.xweb: Added initial versions of replace-chars-with-strings() and
|
---|
| 24 | apply-character-map() functions. These are intended mainly for use
|
---|
| 25 | in the manpages stylesheets but may be useful elsewhere too.
|
---|
| 26 |
|
---|
| 27 | I need to fix the logic in the manpages stylesheet so that the
|
---|
| 28 | character-map file is read only once per document. The way it is
|
---|
| 29 | now, the character map is read each time a refentry is found,
|
---|
| 30 | which is a big waste.
|
---|
| 31 |
|
---|
| 32 | 2005-05-23 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 33 |
|
---|
| 34 | * lib.xweb: Make handling of date format strings more robust (closes #1206837).
|
---|
| 35 |
|
---|
| 36 | ::Problem:
|
---|
| 37 | If the "dbtimestamp" PI has words in it that contain any of the
|
---|
| 38 | single-letter characters used as date/time formatting
|
---|
| 39 | instructions, the output is not what would be expected.
|
---|
| 40 |
|
---|
| 41 | For example, Spanish "long" dates look like this:
|
---|
| 42 |
|
---|
| 43 | 23 de mayo de 2005
|
---|
| 44 |
|
---|
| 45 | So you would expect that you could generate a date of that form
|
---|
| 46 | using the dbtimestamp PI with a format string like the following:
|
---|
| 47 |
|
---|
| 48 | <?dbtimestamp format="d de B de Y"?>
|
---|
| 49 |
|
---|
| 50 | But if you try that, you get the following output:
|
---|
| 51 |
|
---|
| 52 | 23 23e mayo 23e 2005
|
---|
| 53 |
|
---|
| 54 | That is, the "d" in "de" is replaced with the day of the month.
|
---|
| 55 |
|
---|
| 56 | ::Cause::
|
---|
| 57 | The format-string parsing logic works by walking through the
|
---|
| 58 | format string character-by-character. So when it gets to the "d"
|
---|
| 59 | in "de", it has no way of discerning that it is not the "d"
|
---|
| 60 | formatting instruction but is instead part of a word intended to
|
---|
| 61 | be included in the output as a literal string.
|
---|
| 62 |
|
---|
| 63 | ::Fix::
|
---|
| 64 | The format-string parsing logic now splits format strings into
|
---|
| 65 | tokens and delimiters and evaluates them token-by-token instead
|
---|
| 66 | of character-by-character.
|
---|
| 67 |
|
---|
| 68 | For example, it splits the Spanish "long" date format like this:
|
---|
| 69 |
|
---|
| 70 | <token>d</token> <token>de</token> <token>B</token> ...
|
---|
| 71 |
|
---|
| 72 | Thus, in looking for the "d" formatting instruction, the "d"
|
---|
| 73 | token matches but the "de" token does not.
|
---|
| 74 |
|
---|
| 75 | As delimiters, it recognizes the following characters:
|
---|
| 76 |
|
---|
| 77 | <space> <tab> <CR> <LF> , . / - ( ) [ ]
|
---|
| 78 |
|
---|
| 79 | ::Affects:
|
---|
| 80 | This change affects output of the "dbtimestamp" PI as well as
|
---|
| 81 | output from any customization layers that call the
|
---|
| 82 | "datetime.format" template. It affect all formats (HTML, FO, etc.).
|
---|
| 83 |
|
---|
| 84 | 2005-05-13 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 85 |
|
---|
| 86 | * Makefile: Added clean target
|
---|
| 87 |
|
---|
| 88 | * Makefile: revert to MAIN
|
---|
| 89 |
|
---|
| 90 | 2004-12-02 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 91 |
|
---|
| 92 | * Makefile: New file.
|
---|
| 93 |
|
---|
| 94 | 2004-09-24 Robert Stayton <bobstayton@users.sourceforge.net>
|
---|
| 95 |
|
---|
| 96 | * lib.xweb: Fixed param prototype to remove Saxon8 warning.
|
---|
| 97 |
|
---|
| 98 | 2004-08-11 Robert Stayton <bobstayton@users.sourceforge.net>
|
---|
| 99 |
|
---|
| 100 | * lib.xweb: Fixed problem of PI name suffix being matched instead of whole name.
|
---|
| 101 |
|
---|
| 102 | 2003-04-05 Adam Di Carlo <adicarlo@users.sourceforge.net>
|
---|
| 103 |
|
---|
| 104 | * lib.xweb: a pica is 12 points, rather than a sixth of an inch
|
---|
| 105 |
|
---|
| 106 | 2003-03-26 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 107 |
|
---|
| 108 | * Makefile: branches: 1.5.2;
|
---|
| 109 | wdocbook.xsl obsoleted by w2docbook.xsl, updated globally
|
---|
| 110 |
|
---|
| 111 | 2003-03-25 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 112 |
|
---|
| 113 | * Makefile: reverting wdocbook.xsl -> w2docbook.xsl changes
|
---|
| 114 |
|
---|
| 115 | 2003-03-05 Michael Smith <xmldoc@users.sourceforge.net>
|
---|
| 116 |
|
---|
| 117 | * Makefile:
|
---|
| 118 |
|
---|
| 119 | Wrong filename was breaking build, fixed.
|
---|
| 120 |
|
---|
| 121 | Had ../../litprog/wdocbook.xsl but needed ../../litprog/w2docbook.xsl
|
---|
| 122 |
|
---|
| 123 | 2002-09-15 Norman Walsh <nwalsh@users.sourceforge.net>
|
---|
| 124 |
|
---|
| 125 | * lib.xweb: Fix bug where PIs match the suffix of a name instead of the whole name
|
---|
| 126 |
|
---|
| 127 | 2002-06-09 Norman Walsh <nwalsh@users.sourceforge.net>
|
---|
| 128 |
|
---|
| 129 | * lib.xweb: Fix bug #496453: make sure comments don't contain illegal chars
|
---|
| 130 |
|
---|
| 131 | 2002-05-12 Norman Walsh <nwalsh@users.sourceforge.net>
|
---|
| 132 |
|
---|
| 133 | * lib.xweb: Changed default units to px; added length-in-points template
|
---|
| 134 |
|
---|
| 135 | 2002-03-25 Norman Walsh <nwalsh@users.sourceforge.net>
|
---|
| 136 |
|
---|
| 137 | * .cvsignore: Ignore lib.xsl too
|
---|
| 138 |
|
---|
| 139 | * .cvsignore, Makefile, lib.xsl, lib.xweb: Use Literate XML to generate lib.xsl
|
---|
| 140 |
|
---|
| 141 | * Makefile: Update documentation build to reflect use of lib.xweb
|
---|
| 142 |
|
---|
| 143 | 2002-03-18 Norman Walsh <nwalsh@users.sourceforge.net>
|
---|
| 144 |
|
---|
| 145 | * lib.xsl: Replace generate.*.toc and generate.*.lot with single generate.toc parameter.
|
---|
| 146 |
|
---|
| 147 | 2002-03-14 Norman Walsh <nwalsh@users.sourceforge.net>
|
---|
| 148 |
|
---|
| 149 | * lib.xsl: Whitespace only: change CR/LF back to LF. Norm was a total moron.
|
---|
| 150 |
|
---|
| 151 | * lib.xsl: Whitespace changes only: use PC-style CR/LF because Unix clients choke on this far less often than PC clients choke on the reverse. Grrr.
|
---|
| 152 |
|
---|
| 153 | 2002-01-09 Norman Walsh <nwalsh@users.sourceforge.net>
|
---|
| 154 |
|
---|
| 155 | * lib.xsl: Added length-units template to extract units from lengths
|
---|
| 156 |
|
---|
| 157 | 2001-11-28 Norman Walsh <nwalsh@users.sourceforge.net>
|
---|
| 158 |
|
---|
| 159 | * lib.xsl: Added pi-attribute template
|
---|
| 160 |
|
---|
| 161 | 2001-04-03 Norman Walsh <nwalsh@users.sourceforge.net>
|
---|
| 162 |
|
---|
| 163 | * lib.xsl: Documentation fixes
|
---|
| 164 |
|
---|
| 165 | 2001-04-02 Norman Walsh <nwalsh@users.sourceforge.net>
|
---|
| 166 |
|
---|
| 167 | * lib.xsl: New file.
|
---|
| 168 |
|
---|