On Jan 18, 2008 12:09 AM, Werner LEMBERG <[EMAIL PROTECTED]> wrote:
> > >   . I'm not really happy that font is called `dgjhwff'.  Its name
> > >     should be simply `dgjhw'.
> >
> > The font filename is dgjhw.sfd.  Now, when I use the subfonts.pe
> > script to extract .pfb and .tfm subfont files [...]
>
> You shouldn't use this script: It's not necessary for a font which
> contains less than 256 characters.  Just move the half-width katakana
> glyphs to the SJIS positions and create a standard Type 1 font
> directly (see below).

Thank you for the tips, and the advice to ignore the Fontforge error.
Progress is as follows:

SJIS-encoded dgjhw.pfb and .tfm created.

> > >     I further suggest to use the SJIS code positions for the PFB
> > >     encoding vector.  This would allow to use the font directly
> > >     for a C49 encoding (which is explicitly reserved for
> > >     half-width katakana).  Consequently, c49{goth,maru,min}.fd
> > >     files should be added.

Now problems: since the font is not yet a part of the Wadalab fonts, I
wanted to test it now in C49 encoding (just like before I tested it
with C70 encoding). So I made a c49dgjhw.fd file and a dgjhw.map file.
 The FD file reads for now as follows:
==
\def\fileversion{4.7.0}
\def\filedate{2006/10/17}
\ProvidesFile{c49dgjhw.fd}[\filedate\space\fileversion]

% Japanese characters
%
% character set: one-byte half-width katakana (JIS X 0201-1997)
% font encoding: eight-bit (as used in SJIS)

\DeclareFontFamily{C49}{dgjhw}{\hyphenchar [EMAIL PROTECTED]

\DeclareFontShape{C49}{dgjhw}{m}{n}{<-> CJK * dgjhw}{}
\DeclareFontShape{C49}{dgjhw}{bx}{n}{<-> CJKb * dgjhw}{\CJKbold}

\endinput
==
The map file is very simple:
==
dgjhw dgjhw < dgjhw.pfb
==
I then register the map file and update ls-R files as usual. Now when
I modify the SJIS.tex in the examples of the CJK package and try to
use half-width katakana (only) using dgjhw instead of mincho and
removing the DNP option in the CJK environment, then I get errors.
Here is my file:
\documentclass{article}
\usepackage{CJK}
\begin{CJK*}{SJIS}{dgjhw}
\CJKtilde
(some half-width katakana characters here)
\end{CJK*}
\end{document}
%%% Local Variables:
%%% coding: sjis
%%% mode: latex
%%% TeX-command-default: "CJKLaTeX"
%%% TeX-master: t
%%% End:

Here is the selected output from the console:

(/usr/share/texmf/tex/latex/CJK/CJK.sty
(/usr/share/texmf/tex/latex/CJK/mule/MULEenc.sty)
(/usr/share/texmf/tex/latex/CJK/CJK.enc))) (./SJIS.aux)
(/usr/share/texmf/tex/latex/CJK/SJIS/SJIS.bdg)
(/usr/share/texmf/tex/latex/CJK/SJIS/SJIS.enc)
(/usr/share/texmf/tex/latex/CJK/SJIS/SJIS.chr)
(/usr/share/texmf/tex/latex/CJK/SJIS/c49dgjhw.fd)
! Undefined control sequence.
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]
                                                  space at the @tempdimb }xd...
l.36 (here follow some hexadecimal byte numbers of the chars in
question as my console is unicode)!

I don't know if this means that I did a mistake with fontforge, or if
it means I made a mistake in setting up the font in latex.

> Well, the Wadalab fonts are not in Unicode encoding, so it would be
> natural to have a font which fits into this framework.

True. I have read some more to gain better understanding of how the
Wadalab fonts are processed.

I am still studying how to do the virtual font part to integrate the
half-width katakana into the Wadalab fonts.

Regards, Gernot

_______________________________________________
Cjk maillist  -  [email protected]
https://lists.ffii.org/mailman/listinfo/cjk

Reply via email to