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

Re: {pdf,}LaTeX, Japanese and UTF-8

On Thu, Feb 27, 2003 at 11:21:28PM +1100, Paul Hampson wrote:
> 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}

I got _this_ working:

\DeclareFontShape{T1}{song}{m}{n}{<-> cyberb00}{}
\DeclareFontShape{T1}{song}{bx}{n}{<-> cyberb00}{}
%\DeclareFontShape{C40}{song}{m}{n}{<-> CJK * jsso12}{}
%\DeclareFontShape{C40}{song}{bx}{n}{<-> CJKb * jsso12}{\CJKbold}
%\DeclareFontShape{C40}{song}{m}{n}{<-> cyberb02}{}




Although it uses the bitmapped font in hbf-kanji48... I've
not succeeded in making it use a different font, as seen in
the commented out DeclareFont* lines. :-)

To make this work, I had to fix and submit bug #184187
which was preventing the hbf font from being found.

It seems this is better than the cjk-latex package's UTF8
support, since it re-encodes it back to a jisx0208 font,
and the defined font for encoding C40 is this kanji48 font,
while the defined font for the cjk-latex package is the
(non-free???) cyberbit font. I will have a poke around, and
see if I can convince either of the systems to use other
fonts without massive hacking on the configuration files...
I expect to find more jisx0208 fonts than unicode fonts
available free in Debian.

So... maybe a better default for the C40 enc, at least in
Debian, since there are surely better (non-bitmapped) kanji
fonts in Debian? (For that matter, maybe a default for the
C70 encoding (which is what cjk-latex's UTF8 uses) which is
actually part of Debian... Although such a font's existence
is doubtful at this point)

Paul "TBBle" Hampson, MCSE
6th year CompSci/Asian Studies student, ANU
The Boss, Bubblesworth Pty Ltd (ABN: 51 095 284 361)

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: pgp2BgQIbySj_.pgp
Description: PGP signature

Reply to: