[ English Version | Japanese Version ]
[ Contents
| Operating Manual
| New Features and Bugs Fixed
| Technical Information
| Authors ]
[ Options and Resources
| Installation
| FAQ
| Japanese Support (or Internationalization?)
| Fig Format 3.2 ]
Send any questions about this Japanese support facility to VEF00200@niftyserve.or.jp.
% japanese.ps for fig2dev 3.2 16 dict begin /FontName /CompositeRoman def /FontType 0 def /WMode 0 def /FMapType 3 def /FontMatrix matrix def /Encoding [0 1] def /FDepVector [ /Times-Roman findfont /Ryumin-Light-EUC-H findfont ] def FontName currentdict end definefont pop 16 dict begin /FontName /CompositeBold def /FontType 0 def /WMode 0 def /FMapType 3 def /FontMatrix matrix def /Encoding [0 1] def /FDepVector [ /Times-Bold findfont /GothicBBB-Medium-EUC-H findfont ] def FontName currentdict end definefont pop % end of japanese.ps
Without the -international option, xfig will work as normal (no Japanese). If you put ``Fig.international: true'' into your resource file, -international option may omitted.
Input of Japanese text will be started by typing a key to switch to Japanese-input-mode when it is ready to input text from the keyboard in TEXT mode. It depend on the environment as to which key will switch to the Japanese-input-mode, but keys such as Shift-SPACE, Control-SPACE, Control-O, or Control-\ may be used in many cases. Operations for conversion also depend on the environment, but will be the same as other applications which use the environment.
The input style may be selected from Off the Spot, Over the Spot, and Root. The input style to be used may be selected with the inputStyle resource or the -inputStyle option. For example, xfig -international -inputStyle OverTheSpot will select Over the Spot as the input style.
Fig.normalFontSet: -*-times-medium-r-normal--16-*-*-*-*-*-*-*,\ -*-*-medium-r-normal--16-*-*-*-*-*-*-*,\ -*-*-*-r-*--16-*-*-*-*-*-*-* Fig.boldFontSet: -*-times-bold-r-normal--16-*-*-*-*-*-*-*,\ -*-*-bold-r-normal--16-*-*-*-*-*-*-*,\ -*-*-*-r-*--16-*-*-*-*-*-*-*
With this default specification, non-desirable fonts may loaded (bad appearance of texts or long delay when starting of xfig may caused as the result, for example) on some systems. In such case, you may need to specify those fonts more definitive in the resource file (app-defaults/Fig) and force the system to load the specified font:
Fig*FontSet: -misc-fixed-medium-r-normal--14-*-*-*-*-*-*-* Fig.normalFontSet: -*-times-medium-r-normal--14-*-*-*-*-*-*-*,\ -misc-fixed-medium-r-normal--14-*-*-*-*-*-*-* Fig.boldFontSet: -*-times-bold-r-normal--14-*-*-*-*-*-*-*,\ -misc-fixed-medium-r-normal--14-*-*-*-*-*-*-* Fig.fontSetSize: 14
If scalable Japanese fonts are available, appearance of text may improved by specifying large fonts, as:
Fig*FontSet: -*-times-medium-r-normal--16-*-*-*-*-*-*-*,\ -foobar-mincho-medium-r-normal--16-*-*-*-*-*-*-* Fig.normalFontSet: -*-times-medium-r-normal--64-*-*-*-*-*-*-*,\ -foobar-mincho-medium-r-normal--64-*-*-*-*-*-*-* Fig.boldFontSet: -*-times-bold-r-normal--64-*-*-*-*-*-*-*,\ -foobar-gothic-medium-r-normal--64-*-*-*-*-*-*-* Fig.fontSetSize: 64
Note that you must set same size font for normalFontSet and boldFontSet, and size of those font to fontSetSize.
They are specified in the japanese.ps file above, and it is possible to change those fonts by modifying the file.
For example, if you modify /Ryumin-Light-EUC-H to /HeiseiMin-W3-EUC-H and /GothicBBB-Medium-EUC-H to /HeiseiKakuGo-W5-EUC-H, then HeiseiMin-W3 font will used for Times-Roman + Mincho, and HeiseiKakuGo-W5 font will used for Times-Bold + Gothic.
-------------------------------------------------- Operating System X Input Method -------------------------------------------------- SunOS 4.1 X11R6 kinput2 Solaris 2.5 X11R6 kinput2 Solaris 2.5-2.6 OpenWindows/CDE htt/ATOK HP-UX 10.20 X11R6 kinput2 IRIX 6.3* X11R6 kinput2 FreeBSD 2.2 X11R6 kinput2 Slackware Linux 3.1 X11R6 kinput2 RedHat Linux 4.2 X11R6 kinput2 --------------------------------------------------
* On IRIX 6.3, you may need to compile xfig with IRIX's genuine cc (not with gcc), specifying compile option -N32 -mips3. Also, you may need to get source of JPEG library and compile it yourself, to avoid using JPEG library distributed with IRIX.
fig2dev is different, but it may possible to support those languages if there are LaTeX and/or PostScript printers that support the language.
Please contact to VEF00200@niftyserve.or.jp if you wish to try to make it available to use languages other than Japanese, or if you found that it does work for other languages.