| file | How to use files | |
| sample resource | FAPIcidfmap.cjk.sample cidfmap.cjk.sample | These are just
examples for my Japanese font setup. You can find your own FAPIcidfmap and cidfmap in /usr/share/ghostscript/8.15/lib/. It's better to use Gentoo's original *.cjk for Chinese and Korean users. ghostscript-esp-8.15.2-FAPIcidfmap.cjk(includes Chinese, Korean) ghostscript-esp-8.15.2-cidfmap.cjk(includes Chinese, Korean) |
| extra files | ghostscript-fonts-std-8.11.tar.gz ghostscript-fonts-other-6.0.tar.gz adobe-cmaps-200406.tar.gz acro5-cmaps-2001.tar.gz (I'm not sure adobe-cmaps and acro5-cmaps are necessary.) ------------------------------------------------------- Above tar.gz files can be found at below. http://www.ring.gr.jp/pub/text/CTAN//support/ghostscript/fonts/ ftp://ftp.gyve.org/pub/gs-cjk/ | # cd
/usr/share/ghostscript # tar xzvf /PATH-TO/ghostscript-fonts-std-8.11.tar.gz # tar xzvf /PATH-TO/ghostscript-fonts-other-6.0.tar.gz # cd /usr/share/ghostscript # mkdir Resource # cd Resource # tar xzvf /PATH-TO/acro5-cmaps-2001.tar.gz # tar xzvf /PATH-TO/adobe-cmaps-200406.tar.gz |
| symbolic link | Create
symbolic link to your real TTF directory at /usr/share/fonts/default/. If a directory "/usr/share/fonts/default" doesn't exist, create the directory with command mkdir -p /usr/share/fonts/default | # cd
/usr/share/fonts/default # ln -s [PATH_TO_YOUR_TTF_DIR] TrueType |
#======================================================================== |
| # tar xzvf
a2ps-JP-src.tar.gz # cd a2ps-JP-src # slacktrack -j -k -p a2ps-4.13b-i486-1jp.tgz ./a2ps.build |
| #
a2ps-site.cfg
-*- Makefile -*- # # This file is included from a2ps.cfg # # In this file should be defined your specific values you want to keep # for other installation (future) installation of a2ps. ################################################################# # 1) System dependent parameters # ################################################################# # Default encoding Options: --encoding=euc-jp # Default medium Options: --medium=letter # Options: --medium=A4 ################################################################# # 2) Your printers # ################################################################# # By default, produce Level 1 PostScript. # Currently it only means to consider only the 13 level 1 standard # fonts, and not the 35 standard level 2 fonts. DefaultPPD: level1 # NOTE: # Because sending a file to a printer is system dependent and because # this file is meant to be system independent, there are two variables # defined in a2ps.cfg you should use here. # - #{lp.default} # Its value is typically `lp' or `lpr'. # - #{lp} # Its value is typically `lp -d' or `lpr -P'. Immediately after # #{lp} there should be the name of the printer. # ### DefaultPrinter # DefaultPrinter is the printer which is called upon `a2ps -d'. DefaultPrinter: | #{lp.default} ### UnknownPrinter # The `UnknownPrinter' is the command used when the user specified # the name of the printer (a2ps -P <printer-name>), but <printer-name> # is not specified below as a special case. # <printer-name> is available here as `#o'. UnknownPrinter: | #{lp} #o ### Some special printers. # This section is to fill only if you want to tune your system. # The entry `UnknownPrinter' is enough to handle any case. # For instance, I want to specify that arlette is a Level 2 PostScript # printer. I specif no command, so the `UnknownPrinter' command will # be used. #Printer: arlette level2 # dominique is a level 2 PostScript _without_ Duplex support. # Here I *want* a special command, not that of the UnknownPrinter. # We use the shell script psmandup to simulate Duplex. #Printer: dominique level2 | #?d#psmandup -n|## #{lp} dominique # This is just to show that any command can be used. Instead of # printing, the output is piped in `wc'. #Printer: wc | wc -l # You can also save in a file if you wish. #Printer: netscape >netscape.ps # This example uses the fact that `$N' expands in the input file name, # so a2ps foo -P gzip will save the output in foo.ps.gz. #Printer: gzip | gzip -c > $N.#..gz |
| Package conbination | Result of printing Japanese document |
| espgs-7.07.1 | Works |
| espgs-8.15.2 (Slack official) | NG |
| espgs-8.15.2 with CJK patches | Works |
| espgs-8.15.3svn185 | Works |
| espgs-8.15.3 | Works |
This page was edited by J_W
(Shin-ichi Abe).