This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] htmlhelp.encoding="windows-932" and Saxon
- From: "David Cramer (Tech Pubs)" <dcramer at motive dot com>
- To: "David Cramer (Tech Pubs)" <dcramer at motive dot com>,"Taro Ikai" <tikai at ABINITIO dot COM>
- Cc: <docbook-apps at lists dot oasis-open dot org>
- Date: Fri, 29 Aug 2003 17:44:36 -0500
- Subject: RE: [docbook-apps] htmlhelp.encoding="windows-932" and Saxon
Actually, I see this very topic has been discussed on the Saxon list a few days ago. Should have checked there first (and RTFM).
David
-----Original Message-----
From: David Cramer (Tech Pubs)
Sent: Friday, August 29, 2003 3:56 PM
To: Taro Ikai
Cc: docbook-apps@lists.oasis-open.org
Subject: RE: [docbook-apps] htmlhelp.encoding="windows-932" and Saxon
Actually, I'd fooled myself--my processing scripts sometimes hide messages from me. Using a cleaner test environment, with the customization layer you provide below and the 1.60.1 xsls, I get:
dcramer@myrmecine /cygdrive/c/workhead/docmodules/mary/stage/godwin/chm/test
$ java -cp .../../../../../doctools/1.0/Saxon/6.5/javavm/release/enus/saxon.jar
com.icl.saxon.StyleSheet fradjusted.frankenhelp.xml .../../../../../doctools/1.
0/DocShared/xsl/docbook/xhtml/test.xsl
Writing pr01s02.html for section
Failed to load Shift_JIS
Failed to load Shift_JIS
Writing pr01s03.html for section
Failed to load Shift_JIS
Failed to load Shift_JIS
...
Error at xsl:copy-of on line 326 of file:/C:/workhead/docmodules/doctools/1.0/Do
cBookXSL/1.60.1/html/chunker.xsl:
Output character not available in this encoding (decimal 12395)
Transformation failed: Run-time errors were reported
* Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0_02-b02)
Java HotSpot(TM) Client VM (build 1.4.0_02-b02, mixed mode)
* Saxon 6.5.2
* Windows XP
Same with -Duser.language=ja -Duser.region=JP
Do I need to add something to my CLASSPATH?
Thanks,
David
-----Original Message-----
From: Taro Ikai [mailto:tikai@ABINITIO.COM]
Sent: Friday, August 29, 2003 12:53 PM
To: David Cramer (Tech Pubs)
Cc: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] htmlhelp.encoding="windows-932" and Saxon
"David Cramer (Tech Pubs)" <dcramer@motive.com> wrote on 08/28/2003
04:17:17 PM:
> I'm using htmlhelp xsls and saxon to produce Japanese chms. The .hhc
> and .hhk files come out as Unicode files, even though htmlhelp.
> encoding is set to Windows-932. The result is that in the toc and
> index panes, the Japanese is mangled. If I open the .hhc and .hhk
> files on a Japanese OS, save as ANSI, and recompile, all is well.
> Does anyone have any experience with a problem like this?
Try:
<xsl:param name="htmlhelp.encoding" select="'Shift_JIS'"/>
<xsl:param name="default.encoding" select="'Shift_JIS'"/>
<xsl:param name="saxon.character.representation" select="'native'"/>
<xsl:param name="chunker.output.encoding" select="'Shift_JIS'"/>
in your customization layer. I'm using xsltproc, but I remember trying
Saxon earlier on. I think it worked with Saxon as well.
Incidentally, for Japanese help, I also have the following set:
<xsl:param name="l10n.gentext.language" select="'ja'"/>
<xsl:param name="l10n.gentext.default.language" select="'ja'"/>
-Taro
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.