Discussion:
Patch for db2latex
Vitaly Ostanin
2003-07-14 14:17:52 UTC
Permalink
Hello, All!

I make patch
(against db2latex cvs 02 Jul 2003)
from my additions to db2latex-xsl:

1.
Added
xsl/docbook-alt.xsl
xsl/unicode.mapping.dtd
xsl/unicode.mapping.xml
xsl/unicode.mapping.ru.xml
another schema for replacing Unicode entities.
It's import but not changed original docbook.xsl

Entities replaced from default file and from files for specified
languages. Also possible to specify local file for replacements.

See comments in style. If this patch will accepted I can write
documentation for it like in the original stylesheets.

Also this style fixed replacing entities in localization values
and have some other fixes.

I test whis schema with xsltproc:
original styles (bad for Russian symbols and possible for other
non Latin-1 users):
Applying stylesheet 20 times took 29235 ms

Alternative schema:
Applying stylesheet 20 times took 41683 ms

Yes, it slowly but it added optional replacements for all needs.

2.
Added
xsl/common/locale-leave-uniq-keys.xsl
xsl/common/locale-generate-working-files.xsl
xsl/common/Makefile
Styles and Makefile for leaving uniq keys from db2latex
localization to the source files; generating synchronized
localization files. See comments in the styles.

Also added result of this styles:
$lang.xml
locale-source.$lang.xml

Lozalization synchronized with DocBook localization (from
xsl-stylesheets 1.61.3)


Patch available:
http://www.vzljot.ru/vyt/db2latex/db2latex-xsl.vyt.2003-07-14.patch.bz2

CVS log for changes available:
http://www.vzljot.ru/vyt/db2latex/vyt.cvs.db2latex.2003-07-14.log.bz2


PS I can create read only access to our cvs for DB2LaTeX
developers if needed.


PPS I can't grab current db2latex from cvs:

$ cvs -z3 \
-d:pserver:***@cvs.db2latex.sourceforge.net:/cvsroot\
/db2latex co db2latex

cvs [checkout aborted]: end of file from server (consult above
messages if any)
--
Regards, Vyt
mailto: ***@vzljot.ru
JID: ***@vzljot.ru
Vitaly Ostanin
2003-07-14 14:28:28 UTC
Permalink
On Mon, 14 Jul 2003 18:17:52 +0400
Vitaly Ostanin <***@vzljot.ru> wrote:

<skipped/>
Post by Vitaly Ostanin
original styles (bad for Russian symbols and possible for other
Applying stylesheet 20 times took 29235 ms
Applying stylesheet 20 times took 41683 ms
Sorry, my mistake. It was test of synchronized localization.

Real test of alternative schema is:
Applying stylesheet 20 times took 71162 ms
Post by Vitaly Ostanin
Yes, it slowly but it added optional replacements for all
needs.
<skipped/>
--
Regards, Vyt
mailto: ***@vzljot.ru
JID: ***@vzljot.ru
Loading...