Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chinese (Taiwan) shows garbled TOC in chm #1270

Closed
lade opened this issue May 7, 2012 · 1 comment
Closed

Chinese (Taiwan) shows garbled TOC in chm #1270

lade opened this issue May 7, 2012 · 1 comment
Labels
bug plugin/htmlhelp Issue related to HTML Help (CHM) plug-in
Milestone

Comments

@lade
Copy link

lade commented May 7, 2012

Chinese (Taiwan) shows TOC in chm in wrong codepage. I'm using language code 'zh-tw'.

Problem seems to be the following: File map2hhpImpl.xsl adds '-' to the language code before analysing it (zh-tw-), but later on when ConvertLang.java checks languages.properties, the language code seems to be 'zh-tw' while languages.properties supposes it should be 'zh-tw-'.

By adding
zh-tw=0x0404 Chinese (TAIWAN, PROVINCE OF CHINA)
to languages.properties I got the Taiwanese TOC to show correctly. Without this change the .hhp file will assume that the encoding is 0x0804 Chinese (CHINA), which is incorrect for Taiwanese.

@jelovirt
Copy link
Member

jelovirt commented May 8, 2012

Related to #1271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug plugin/htmlhelp Issue related to HTML Help (CHM) plug-in
Projects
None yet
Development

No branches or pull requests

2 participants