[XeTeX] Issue with CJK in pdf build
Jonathan Kew
jfkthame at googlemail.com
Tue Nov 17 00:25:31 CET 2009
On 16 Nov 2009, at 23:08, Wilfred van Rooijen wrote:
> I think that the error message you see is something that doesn't
> occur often. In all my 10+ years of (ab)using latex I've never seen
> this error. It looks like something is not configured correctly in
> your tex system.
It looks to me like xelatex just hasn't been told to use a suitable
font. If you try to typeset CJK characters (or Unicode math symbols,
arrows, etc., etc.) with Latin Modern, for example, then a series of
blanks or empty rectangles (i.e., the current font's .notdef glyph) is
entirely normal.
I don't know anything about dblatex, but I assume there must be some
way to tell it to insert additional setup commands to do things like
select a font. With xelatex, the usual way to do this would be to load
the fontspec package in the preamble, and then use \setmainfont (and
\setsansfont, \setmonofont if needed) to select something appropriate
for the material you're typesetting.
jk
>
> --- On Tue, 17/11/09, Chris Jones <cjns1989 at gmail.com> wrote:
>
>> From: Chris Jones <cjns1989 at gmail.com>
>> Subject: [XeTeX] Issue with CJK in pdf build
>> To: xetex at tug.org
>> Date: Tuesday, 17 November, 2009, 4:50 AM
>> I've already tried the docbook-app
>> and dblatex lists and haven't been
>> able to clarify this issue so maybe someone here may have
>> some idea how
>> I could address this.
>>
>> I have a bare-bones DocBook xml file that contains:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML
>> V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
>>
>> <article>
>> <articleinfo>
>> Â Â <title>Unicode blocks</title>
>> </articleinfo>
>> <section id="_cjk">
>> <title>CJK</title>
>> <para>Some CJK:</para>
>> <para>
>> ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãº
>    ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãºÂ  Â
> ãºÂ   ãº
>> ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãºÂ
>>   ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãºÂ   ãº
>> ãºÂ   ãºÂ   㺠   㺡   㺢   㺣   㺤   㺥Â
>>   㺦   㺧   㺨   㺩   㺪   㺫   㺬
>> 㺠   㺮   㺯   㺰   㺱   㺲   㺳   㺴Â
>>   㺵   㺶   㺷   㺸   㺹   㺺 Â
> ¼Â   㺽   㺾   㺿   ã»Â   ã»Â   ã»Â   ã»Â Â
>  ã»Â   ã»
>    ã»Â   ã»Â   ã»Â   ã»Â   ã»
>> ã»Â   ã»Â   ã»Â   ã»Â   ã»Â   ã»Â   ã»Â   ã»Â
>>   ã»Â   ã»Â   ã»Â   ã»Â   ã»Â   ã»Â   ã»
>> </para>
>> </section>
>> </article>
>>
>> The last <para> </para> above should contain a
>> sample of CJK glyphs
>> starting at U+3e80 that should be visible with the adhoc
>> font.
>>
>> No particular reason why I chose CJK, same thing happens
>> with math
>> symbols, arrows, etc.
>>
>> I have tried building a pdf with this command:
>>
>> -------------------------------------------------------------
>> $ dblatex -v -b xetex cjk0.xml
>> -------------------------------------------------------------
>> dblatex version 0.2.9-3
>> Build the listings...
>> XSLT stylesheets DocBook -Â LaTeX 2e (0.2.9-3)
>> ===================================================
>> Build cjk0.pdf
>> This is XeTeXk, Version 3.141592-2.2-0.996-patch2 (Web2C
>> 7.5.6)
>> %&-line parsing enabled.
>> entering extended mode
(etc)
More information about the XeTeX
mailing list