[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

{pdf,}LaTeX, Japanese and UTF-8



Hi! I'm trying to make the 'Unicode Support for Latex (ucs.sty)
work with Japanese and either latex or pdflatex.

Using:
\documentclass[10pt]{article}
\usepackage{a4}
\usepackage[cjkjis]{ucs}
\usepackage[utf8]{inputenc}
\usepackage[C40,T1]{fontenc}

\begin{document}
\section{Test}
\fontencoding{C40}
\fontfamily{song}
\selectfont

テスト
\end{document}

It seems to be quite willing to latex it, but using xdvi I get:
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 0+500/600
--dpi 500 jsso1202
mktexpk: don't know how to create bitmap font for jsso1202.
kpathsea: Appending font creation commands to missfont.log.
xdvi: Can't find font jsso1202; using Type1 version of cmr10 instead.
And I get a capital Greek Sigma instead of テスト

xdvi-ja is similar:
kpathsea: Running mktexpk --mfmode ljfour --bdpi 600 --mag 0+500/600
--dpi 500 jsso1202
mktexpk: don't know how to create bitmap font for jsso1202.
kpathsea: Appending font creation commands to missfont.log.
xdvi-ja.real: Can't find font jsso1202.500pk
xdvi-ja.real: Not all pixel files were found

xgdvi gives me:
The font "-*-arial-medium-r-normal--*-120-*-*-*-*-iso10646-1,
                  -*-helvetica-medium-r-normal--*-120-*-*-*-*-*-*" does not support all the required character sets for the current locale "en_AU.UTF-8"
  (Missing character set "JISX0208.1983-0")
  (Missing character set "KSC5601.1987-0")
  (Missing character set "GB2312.1980-0")
  (Missing character set "JISX0201.1976-0")
And gives me little boxes for all the characters, even the English
ones...

I tried pdflatex, and got:
This is pdfTeX, Version 3.14159-1.10a (Web2C 7.4.5)
(./simple.tex{/usr/share/texmf/pdftex/config/pdftex.cfg}
LaTeX2e <2001/06/01>
Babel <v3.7h> and hyphenation patterns for american, french, german,
ngerman, n
ohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo))
(/usr/share/texmf/tex/latex/ntgclass/a4.sty)
(/usr/local/share/texmf/tex/latex/unicode/ucs.sty
(/usr/local/share/texmf/tex/latex/unicode/data/uni-global.def))
(/usr/share/texmf/tex/latex/base/inputenc.sty
(/usr/local/share/texmf/tex/latex/unicode/utf8.def))
(/usr/share/texmf/tex/latex/base/fontenc.sty
(/usr/local/share/texmf/tex/latex/unicode/c40enc.def
(/usr/local/share/texmf/tex/latex/unicode/cenccmn.tex))
(/usr/share/texmf/tex/latex/base/t1enc.def)) (./simple.aux)
(/usr/share/texmf/tex/latex/CJK/JIS/c40song.fd)
(/usr/local/share/texmf/tex/latex/unicode/ucsencs.def)
(/usr/local/share/texmf/tex/latex/unicode/data/uni-48.def)
[1{/usr/share/texmf/
dvips/config/pdftex.map}] (./simple.aux) )
</var/cache/fonts/pk/ljfour/jknappen
/ec/ecrm1000.600pk>
Warning: pdflatex (file jsso1202): Font jsso1202 at 500 not found
 </var/cache/fonts/pk/ljfour/jknappen/ec/ecbx1440.600pk>
Output written on simple.pdf (1 page, 3770 bytes).
Transcript written on simple.log.

xpdf crashes on the resulting pdf with:
Error: font resource is not a dictionary
Error: Unknown font tag 'F18'
Error (172): Missing or bad Type3 CharProc entry
and then segfaults.

I have the hbf-kanji48 package installed, which is the
only thing I could find referencing jsso1202. Am I missing
something obvious? I'm still trying to get my head around
Debian font support.

-- 
-----------------------------------------------------------
Paul "TBBle" Hampson, MCSE
5th year CompSci/Asian Studies student, ANU
The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361)
Paul.Hampson@Anu.edu.au

Of course Pacman didn't influence us as kids. If it did,
we'd be running around in darkened rooms, popping pills and
listening to repetitive music.
 -- Kristian Wilson, Nintendo, Inc, 1989

This email is licensed to the recipient for non-commercial
use, duplication and distribution.
-----------------------------------------------------------

Attachment: pgpU5AZB7137Y.pgp
Description: PGP signature


Reply to: