[XeTeX] setting japanese in miktex2.7

Ardi bozon42 at yahoo.com
Fri Jun 6 13:56:56 CEST 2008


Hello all,

I have fetched and installed the full Miktex2.7 to my d:\x_miktex27 directory.
When I use pdflatex jap1.tex i gives error:

[Loading MPS to PDF converter (version 2006.09.02).]
) (D:\x_miktex27\tex\latex\cjk\standard.bdg)
(D:\x_miktex27\tex\latex\cjk\standard.enc)
(D:\x_miktex27\tex\latex\cjk\standard.chr)
(D:\x_miktex27\tex\latex\cjk\JIS\JISdnp.enc)

LaTeX Font Warning: Font shape `C42/min/m/n' undefined
(Font)              using `C42/song/m/n' instead on input line 21.

(D:\x_miktex27\tex\latex\cjk\JIS\c42song.fd)Running makemf...
makemf: The dmjhira source file could not be found.
Running hbf2gf...

hbf2gf (CJK ver. 4.7.0)

Couldn't find `dmjhira.cfg'
maketfm: No creation rule for font dmjhira12.

! Font C42/song/m/n/12/hira=dmjhira12 not loadable: Metric (TFM) file not found
.
<to be read again>
                   relax
l.21 Ąó
       ĄĄĄŽĄĘĄ¬ aiueio\\
?
.
.
.
jap1.log shows the following:

LaTeX Font Info:    Checking defaults for C41/song/m/n on input line 17.
LaTeX Font Info:    ... okay on input line 17.
LaTeX Font Info:    Checking defaults for C62/song/m/n on input line 17.
LaTeX Font Info:    ... okay on input line 17.

(D:\x_miktex27\tex\context\base\supp-pdf.tex
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count88
\scratchdimen=\dimen112
\scratchbox=\box27
\nofMPsegments=\count89
\nofMParguments=\count90
\everyMPshowfont=\toks15
\MPscratchCnt=\count91
\MPscratchDim=\dimen113
\MPnumerator=\count92
\everyMPtoPDFconversion=\toks16
) (D:\x_miktex27\tex\latex\cjk\standard.bdg
File: standard.bdg 2006/10/17 4.7.0
)
(D:\x_miktex27\tex\latex\cjk\standard.enc
File: standard.enc 2000/12/24 4.7.0
)
(D:\x_miktex27\tex\latex\cjk\standard.chr
File: standard.chr 2006/10/17 4.7.0
)
(D:\x_miktex27\tex\latex\cjk\JIS\JISdnp.enc
File: JISdnp.enc 2006/10/17 4.7.0
)
LaTeX Font Info:    Try loading font information for C42+min on input line 21.
LaTeX Font Info:    No file C42min.fd. on input line 21.


LaTeX Font Warning: Font shape `C42/min/m/n' undefined
(Font)              using `C42/song/m/n' instead on input line 21.

LaTeX Font Info:    Try loading font information for C42+song on input line 21.

(D:\x_miktex27\tex\latex\cjk\JIS\c42song.fd
File: c42song.fd 2006/10/17 4.7.0
)
! Font C42/song/m/n/12/hira=dmjhira12 not loadable: Metric (TFM) file not found
.
<to be read again> 
                   relax 
l.21 ¤˘
       ¤¤¤¦¤¨¤Ş aiueio\\
? 
Missing character: There is no  in font nullfont!

My Env variables are set:
PATH D:\x_miktex27\miktex\bin;D:\x_gs861\gs8.61\bin;D:\x_gs861\gs8.61\lib;D:\x_gsview49\gsview\;d:\Perl\bin;D:\x_netpbm\bin

Do I need special japanese fonts or jck package? Or run some settings in miktex after first installation?
Kind regards,

Ardi


PS:1 As far as I remember I was wrinting japanese in Emacs (precompiled with auctex).
in miktex 2.4 with the following settings and it was ok:
++++++++
Miktex2.4 installed to 
c:\texmf2_4 and c:\localtexmf.
1b. It is good to have latest Perl for Windows 
installed into c:\Perl. 
ActivePerl-5.8.6.811-MSWin32-x86-122208.zip 
2. Also Ghostscript8.50 (gs815w32.exe) and 
Ghostview4.7 (gsw47w32.exe) is needed http://www.cs.wisc.edu/~ghost/ 
3. emacs22 supporting graphics is good to have. 
emacs-22.0.50.1-20050626-w32.zip http://nqmacs.sourceforge.net/ 
4. MSYS-1.0.10.exe - (installed to c:\msys) 
as environment like unix under WindowsXP from http://www.mingw.org/download.shtml 
5. Auctex package - 11.81 includes 
preview-latex.auctex11.81.zip http://www.gnu.org/software/auctex/
 
On 
Windows XP Miktex2.4 (last version from  July 2005 iso) is installed under 
c:\texmf2_4 and c:\localtexmf.
Ghostscript 8.50,Ghostview 4.70 installed - path set.
I have 
fetched auctex11.81.zip
and 
emacs-22.0.50.1-20050626-w32.zip (I have tried the process with emacs-21.3 but 
realized that I would have problems with installing dvipng or other extra tool 
so I gave up).
1.
and 
emacs-22.0.50.1-20050626-w32.zip was unzipped to c:\emacs-22
2.
auctex11.81 was unzipped to c:\temp
3.
under 
msys 1.0.11 I did: cd /c/temp/auctex11.81
./configure --prefix=/c/emacs22 --with-texmf-dir=/c/texmf2_43a.make3b.make install

4a.
If you 
open any latex or tex document with japanese text (f.e. jap1.tex) you must have 
in the first line: 
%-*- coding: euc-japan -*-
If this 
line is missing you have to set euc-japan as codepage in emacs: 
Options--->Mule (multilingual Enviroment)--->Set Coding 
Systems---> For Next Command :euc-japan 
and then 
open file (f.e. jap1.tex)
Afterwards if you want to write in japanese you have to set:
Options--->Mule (multilingual Enviroment)--->Set Language 
Environment---> Japanese
With 
Ctrl\ you switch between English and Japanese.
 
4b. Do 
not forget to add to PATH environment all these tools.(Right click on My 
Computer-->Properties--->Advanced--->Environment variables). 
F.e.
c:\emacs22\bin;c:\Gview4_7\Ghostgum\gsview;c:\GS815\gs\gs8.15\bin\;c:\A_home\localtexmf;;c:\Perl\bin;c:\texmf2_4\miktex\bin
HOME 
c:\emacs22
EMACSHOME 
c:\
 
For 
proper running of preview-latex
4c._emacs 
created manually in c:\ with the following content: (first two lines are 
necessary and enough)
 
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)++++++++



jap1.tex
=====
%-*- coding: euc-japan -*-
\documentclass[12pt,a4paper]{article}
\setlength{\parindent}{0ex}

\usepackage{CJK}
\usepackage[CJK,overlap]{ruby}
\usepackage[draft]{pdfdraftcopy}
\draftstring{Ardi's draft}
\draftfontsize{100}
%\draftfontfamily{hlh}
\draftangle{45}
\definecolor{mycolor}{rgb}{.825,.855,1}
\draftcolor{mycolor}
\draftfontattrib{\upshape}
\renewcommand{\rubysep}{-0.2ex}

\begin{document}

\begin{CJK*}[dnp]{JIS}{min}

¤˘¤¤¤¦¤¨¤Ş aiueio\\
¤«¤­¤Ż¤±¤ł kakikukeko\\
¤µ¤·¤ą¤»¤˝ sasisuseso sashisuseso\\
¤ż¤Á¤Ä¤Ć¤Č tatituteto tachitsuteto\\
¤Ę¤Ë¤Ě¤Í¤Î naninuneno naninuneno\\
¤Ď¤Ň¤Ő¤Ř¤Ű hahihuheho hahifuheho\\
¤Ţ¤ß¤ŕ¤á¤â mamimumemo mamimumemo\\
¤ä¤ć¤č yayuyo yayuyo\\
¤é¤ę¤ë¤ě¤í rarirurero rarirurero\\
¤ď¤Ş wao wao\\
¤¬¤®¤°¤˛¤´ gagigugego gagigugego\\
¤¶¤¸¤ş¤Ľ¤ľ zazizuzezo zajizuzezo\\
¤Ŕ¤¸¤ş¤Ç¤É dazizudedo dajizudedo\\
¤Đ¤Ó¤Ö¤Ů¤Ü babibubebo babibubebo\\
¤Ń¤Ô¤×¤Ú¤Ú¤Ş papipupepo papipupepo\\
¤­¤ă¤­¤ĺ¤­¤ç kyakyukyo kyakyukyo\\
¤®¤ă¤®¤ĺ¤®¤ç gyagyugyo gyagyugyo\\
¤·¤ă¤·¤ĺ¤·¤ç syasyusyo shashusho\\
¤¸¤ă¤Ă¤¸¤ĺ¤¸¤ç zyazyuzyo jajujo\\
¤Á¤ă¤Á¤ĺ¤Á¤ç tyatyutyo tsatsutso\\
¤Ë¤ă¤Ë¤ĺ¤Ë¤ç nyanyunyo nynyunyo\\
¤Ň¤ă¤Ň¤ĺ¤Ň¤ç hyahyuhyo hyahyuhyo\\
¤Ó¤ă¤Ó¤ĺ¤Ó¤ç byabyubyo byabyubyo\\
¤Ô¤ă¤Ô¤ĺ¤Ô¤ç pyapyupyo pyapyupyo\\
¤ß¤ă¤ß¤ĺ¤ß¤ç myamyumyo myamyumyo\\
¤ę¤ă¤ę¤ĺ¤ę¤ç ryaryuryo ryaryuryo\\

\ruby{¤Ş¤Č¤Č}{ototo}\\
\\\\

\end{CJK*}

\end{document}

=====




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20080606/0648a992/attachment.html 


More information about the XeTeX mailing list