[XeTeX] Issue with CJK in pdf build

Wilfred van Rooijen wvanrooijen at yahoo.com
Tue Nov 17 00:08:34 CET 2009


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.

To install new fonts onto your system, put them into a directory where fonts are expected (for instance, on my gentoo system, it's 

$HOME/.fonts

and run

# > fc-cache -v

To make sure that your font is available to the system:

# > fc-list | grep XYZ

where XYZ is part of the font name.

To make sure tex is setup correctly, use a terminal and type

# > texconfig

This will give a simple menu, where you should be able to set all tex-related options to make sure that your system is consistent.

Regards,
Wilfred van Rooijen


--- 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
> 
> ** WARNING ** This .map file looks like a dvips format
> fontmap file.
> ** WARNING ** -- Current input buffer is: bchb8r
> CharterBT-Bold "TeXBase1Encoding ReEncodeFont" <8r.enc
> <bchb8a.pfb
> ** WARNING ** -- Reading fontmap file stopped at:
> file="pdftex.map", line=6.
> This is XeTeXk, Version 3.141592-2.2-0.996-patch2 (Web2C
> 7.5.6)
>  %&-line parsing enabled.
> entering extended mode
> 
> ** WARNING ** This .map file looks like a dvips format
> fontmap file.
> ** WARNING ** -- Current input buffer is: bchb8r
> CharterBT-Bold "TeXBase1Encoding ReEncodeFont" <8r.enc
> <bchb8a.pfb
> ** WARNING ** -- Reading fontmap file stopped at:
> file="pdftex.map", line=6.
> 'cjk0.pdf' successfully built
> -------------------------------------------------------------
> 
> There are no catastrophic errors and the cjk0.pdf is built,
> but when I
> use evince or xpdf to visualize, all I see is the dreaded
> empty
> rectangles.
> 
> I was under the impression that xetex used fontconfig and I
> do
ntconfig
> (gnu-unifont) that
> has the corresponding glyphs but it looks like I need to
> tell xetex
> where to look for it.
> 
> I haven't seen anything in the dblatex doc that appears to
> deal with
> fonts, so maybe there is a configuration file that I need
> to modify, but
> I have no idea what/where it might be.
> 
> I did find a file at
> /usr/share/texmf-live/fonts/map/pdftex/ called
> pdftex.map that lists what looks like a very large number
> of fonts, but
> none looked familiar.
> 
> I also tried xmlto/xsltproc with identical results.
> 
> Also, this happens on a debian/lenny (stable) system and
> there is always
> a chance that the packages that are installed are not
> current.
> 
> I admit that I'm quite confused with where xetex fits into
> the picture
> but I have a feeling I'm just missing something pretty
> simple and
> hopefully someone will be able to give me a push in the
> right direction.
> 
> Thanks,
> 
> CJ
> 


      Get your preferred Email name!
Now you can @ymail.com and @rocketmail.com. 
http://mail.promotions.yahoo.com/newdomains/aa/


More information about the XeTeX mailing list