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

Re: dh_installtexfonts and dvips -P config.foo



Helluh!

> Can you point me to some concrete examples?  I'd like to play around and
> maybe find out.  I just tried this, and it worked:
> 
> - comment "Map lm.map" in /etc/texmf/updmap.d/10lmodern.cfg
> - run update-updmap and updmap-sys
> - try to run "dvips lmodern-test.dvi" (which failed as expected)
> - create a file config.lm in $TEXMFCONFIG/dvips/ with the content
> 
> p +lm.map
> 
> - run "dvips -Plm lmodern-test.dvi" and this works.
> 
> So it would be good to see exactly what you were doing and which error
> messages are given.

You can find the packages here:
  deb http://chinese.alioth.debian.org latex-cjk/
  deb-src http://chinese.alioth.debian.org latex-cjk/

More precisely, install the latex-cjk-thai (and latex-cjk) package.
You will find /usr/share/doc/latex-cjk/examples/thai.tex, which needs
to be compiled with an Emacs Lisp script.  You will find the result
attached as "thai.cjk".  Run "latex thai.cjk" and a DVI file will be
construed.  "dvips -Pnorasi -Pgaruda thai.dvi" will work without
problems.

Edit /etc/texmf/updmap.d/10latex-cjk-thai.cfg and comment garuda.map
and norasi.map.
Run update-updmap and updmap-sys, and run "dvips -Pnorasi -Pgaruda
thai.dvi" again. dvips will complain that it can't find the .pfb
fonts.

In effect, dvips tries to search for "ftnr8z" (e.a.), while I have
clearly redirected it to "<norasi.pfb" (e.a.) in the .map files.
Extract of norasi.map:
  ftnr8z Norasi " C90Encoding ReEncodeFont " <c90.enc <norasi.pfb

So dvips recognises the config.* files, but it looks for the name in
the first argument, not the last argument.
ftnr8z (e.a.) are used because the TFM files that CJK uses are
incompatible with those that "thailatex" uses.


Strange thing is that dvips botches when the map files are
commented, but works when they are not commented.


Kind regards


P.S.: should all files be installed in /usr/share/texmf or
/usr/share/texmf-tetex?  CJK is already included in upstream TeXlive.



Danai SAE-HAN
韓達耐

-- 
题目:《咏柳》
作者:曾巩(1019-1083)

乱条犹未变初黄,倚得东风势便狂。
解把飞花蒙日月,不知天地有清霜。
\ifx\CJKpreproc\undefined\def\CJKpreproc{cjk-enc}\RequirePackage{MULEenc}\fi % This is the file thai.tex of the CJK package
%   for testing Thai (in TIS-620 encoding).
%
% written by Werner Lemberg <wl@gnu.org>
%
% Version 4.6.0 (11-Aug-2005)

% This file should be processed with cjk-enc.el to get
%
%   . proper word breaks
%   . font switching between Thai and non-Thai
%   . intercharacter glue
%
% Please read cjk-enc.txt for usage instructions.


\documentclass[12pt]{article}

\usepackage[thaicjk]{babel}

\begin{document}
%\font\thai = ftnr8z

\section{Norasi}
5762195622106219462161622106219558 FAQ 5762185602136023361622026219560233622106216761621626021460233621856162224621906021560232622056162202621956021662187616216462211616218262210621936162183602136023261621826221062193616216160209621856162186602326220562194616216462195602096023362167616222562197622086162164622116162181622056218661621646221161621826221062193616222762185616219560217621876162225621866218661621836021361622026220862180621996216158.
5762226621646219562167616220262195602336221062167616216262205621676162195622106219462161622106219558 FAQ 576218560213602336162224621876219760213602326219462185616222862187616219362210621616162181602096023362167622256218160232616219560216602326218561621836021360232616222562197602336219958.
\textbf{57621806021761621956221062194616219762208622246220560213621946218061622026221162203621956020962186616222662164621956216761622026219560233622106216761622276220362193602326162228621806023361621686221062161616217060232621996216758 ``576222662164621956216761622026219560233622106216761622256219762208616219960212621846021361621616221062195616220560232622106218558
  FAQ.''}


\section{Garuda}
\tt
5762195622106219462161622106219558 FAQ 5762185602136023361622026219560233622106216761621626021460233621856162224621906021560232622056162202621956021662187616216462211616218262210621936162183602136023261621826221062193616216160209621856162186602326220562194616216462195602096023362167616222562197622086162164622116162181622056218661621646221161621826221062193616222762185616219560217621876162225621866218661621836021361622026220862180621996216158.
5762226621646219562167616220262195602336221062167616216262205621676162195622106219462161622106219558 FAQ 576218560213602336162224621876219760213602326219462185616222862187616219362210621616162181602096023362167622256218160232616219560216602326218561621836021360232616222562197602336219958.
\textbf{57621806021761621956221062194616219762208622246220560213621946218061622026221162203621956020962186616222662164621956216761622026219560233622106216761622276220362193602326162228621806023361621686221062161616217060232621996216758 ``576222662164621956216761622026219560233622106216761622256219762208616219960212621846021361621616221062195616220560232622106218558
  FAQ.''}



\end{document}


%%% Local Variables:
%%% coding: thai-tis620
%%% mode: latex
%%% TeX-master: t
%%% TeX-command-default: "CJKLaTeX"
%%% End:

Reply to: