XSL Formatter Q&A



Operation

Multilanguages

Top
Basic, General
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  When I specified font-family="Helvetica, MingLiu" for sentences where Traditional Chinese and English exist together, all output characters used the MingLiu font. I expected the alphabet part to be output with Helvetica. Am I doing something wrong here? In XSL Formatter V2.5, I could achieve the expected behavior by this code.
<fo:block script="zh-TW" font-family="Helvetica, MingLiu">
  <fo:block>北京市 (Beijing) 朝陽区 (Traditional Chinese text)</fo:block>
</fo:block>
[No.2005060301]
A. 

Please use language instead of script as follows:

<fo:block language="zh-TW" font-family="Helvetica, MingLiu">
  <fo:block> ...

We changed the treatment of script from XSL Formatter V3.0. The font is selected by script, and all characters in the block use the same font when script is specified. On the other hand, when script is not specified, script is decided from the character code. However, script is decided by the language when you use Chinese etc. because those languages have many scripts.

related matters:
When I format multilingual documents, I cannot put the xml:lang attribute on the fo:root element. Please tell me where the xml:lang attribute need to be. [No.2002101804]


Copyright © 1999-2008 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.