| 1 |
.TH MAKEJVF 1 |
| 2 |
\"===================================================================== |
| 3 |
.if t .ds TX \fRT\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X\fP |
| 4 |
.if n .ds TX TeX |
| 5 |
.\" LX definition must follow TX so LX can use TX |
| 6 |
.if t .ds LX \fRL\\h'-0.36m'\\v'-0.15v'\s-2A\s0\\h'-0.15m'\\v'0.15v'\fP\*(TX |
| 7 |
.if n .ds LX LaTeX |
| 8 |
\"===================================================================== |
| 9 |
.SH NAME |
| 10 |
makejvf \- Make Japanese VF file from Japanese \*(TX TFM file |
| 11 |
.SH SYNOPSIS |
| 12 |
\fBmakejvf\fR [<\fIoptions\fR>] <\fI\*(TX TFM file\fR> <\fIPS font TFM\fR> |
| 13 |
.SH DESCRIPTION |
| 14 |
\fBmakejvf\fR is a tool to generate Japanese VF file from Japanese \*(TX TFM |
| 15 |
(JFM) file for use with dvips. |
| 16 |
.TP 5 |
| 17 |
When processing Japanese texts, p\*(TX refers to JFM (min10.tfm, jis.tfm \ |
| 18 |
etc.), which includes definitions of some different character widths and \ |
| 19 |
metric glue/kerns. For most punctuations and quotation marks, the \ |
| 20 |
character widths are truncated to less than 1 zw (zenkaku-width; the \ |
| 21 |
width of ordinary Kanji characters), and metric glue/kerns are inserted \ |
| 22 |
as a substitute. |
| 23 |
.TP 5 |
| 24 |
On the other hand, in Japanese PS fonts, all punctuations and quotation \ |
| 25 |
marks have the same character widths as ordinary Kanji characters. \ |
| 26 |
For this reason, when dvips processes the resulting DVI, these characters \ |
| 27 |
have to be shifted to the left by the amount of glue/kerns inserted. |
| 28 |
.TP 5 |
| 29 |
To achieve this, Virtual fonts (VF) and PS TFM files are required; \ |
| 30 |
When VF contains the commands of shifting characters, PS font TFM can \ |
| 31 |
have the exact character widths of PS fonts. |
| 32 |
.TP 5 |
| 33 |
The program \fBmakejvf\fR can be used for this purpose. \ |
| 34 |
It inputs a p\*(TX JFM file (referred to as <\fI\*(TX TFM file\fR> in \ |
| 35 |
\fBSYNOPSIS\fR above), and outputs a corresponding VF file \ |
| 36 |
(with the same basename as <\fI\*(TX TFM file\fR>) and \ |
| 37 |
a JFM file for a PS font JFM file (<\fIPS font TFM\fR> above). |
| 38 |
.SH OPTIONS |
| 39 |
.PP |
| 40 |
.TP 10 |
| 41 |
\fB-C\fR |
| 42 |
Condensed ("Cho-tai") mode. |
| 43 |
.TP 10 |
| 44 |
\fB-K\fR <\fIPS-TFM\fR> |
| 45 |
Map Kana (more exactly, non-Kanji) characters to another PS font JFM |
| 46 |
named <\fIPS-TFM\fR>. |
| 47 |
.TP 10 |
| 48 |
\fB-b\fR <\fIinteger\fR> |
| 49 |
Base line shift amount; the \fIinteger\fR represents a relative value, |
| 50 |
using the character height as a base of 1000. |
| 51 |
When a positive integer is specified, the characters are lowered. |
| 52 |
When a negative integer is specified, the characters are raised. |
| 53 |
.TP 10 |
| 54 |
\fB-m\fR |
| 55 |
Replace single/double quotation marks (', '') with single/double prime |
| 56 |
quotation marks (so-called "minute") in vertical writing. |
| 57 |
The replacement is realized by manipulating glyphs of prime and |
| 58 |
double prime (JIS 0x216C and 0x216D; Unicode U+2032 and U+2033), |
| 59 |
\fInot\fR by putting actual glyphs designed for quotation marks |
| 60 |
(Unicode U+301D and U+301E/U+301F). |
| 61 |
.TP 10 |
| 62 |
\fB-a\fR <\fIAFMfile\fR> |
| 63 |
Name of the input AFM file used for Kana-tsume mode. |
| 64 |
This option is unsupported. |
| 65 |
.TP 10 |
| 66 |
\fB-k\fR <\fIinteger\fR> |
| 67 |
Kana-tsume (narrower spaces between Kana characters) margin amount; |
| 68 |
the \fIinteger\fR represents a relative value, using the character width |
| 69 |
as a base of 1000. This option should be accompanied with \fB-a\fR option. |
| 70 |
This option is unsupported. |
| 71 |
.TP 10 |
| 72 |
\fB-i\fR |
| 73 |
Start mapped font ID from No. 0 in output VF |
| 74 |
(by default, makejvf defaults to No. 1). |
| 75 |
.TP 10 |
| 76 |
\fB-e\fR |
| 77 |
Enhanced mode; the horizontal shift amount is determined from the |
| 78 |
glue/kern table of input JFM file. |
| 79 |
.TP 10 |
| 80 |
By default, \fBmakejvf\fR uses the hard-coded value as the horizontal \ |
| 81 |
shift amount, which is (mostly) optimized for Japanese fonts. \ |
| 82 |
When enhanced mode (option \fB-e\fR) is enabled, the shift amount is \ |
| 83 |
determined from the input p\*(TX TFM (JFM) file, which is likely to \ |
| 84 |
output most suitable VF for the JFM. |
| 85 |
.TP 10 |
| 86 |
For most standard Japanese JFM (like jis.tfm and its derivatives), \ |
| 87 |
the output VFs from both modes will have no significant difference. \ |
| 88 |
For simplified/traditional Chinese JFM (like upschrm-h.tfm and \ |
| 89 |
uptchrm-h.tfm), the output VF from enhanced mode will be better. \ |
| 90 |
For min10.tfm and its derivatives, enhanced mode should \fInever\fR be \ |
| 91 |
enabled, since the characterization in min10.tfm is non-standard. |
| 92 |
.TP 10 |
| 93 |
\fB-t\fR <\fICNFfile\fR> |
| 94 |
Use <\fICNFfile\fR> as a configuration file. |
| 95 |
.TP 10 |
| 96 |
\fB-O\fR |
| 97 |
Omit entries in VF for characters with default metric. \ |
| 98 |
This option is not allowed to be used with the option \fB-t\fR. |
| 99 |
.TP 10 |
| 100 |
\fB-u\fR <\fICharset\fR> |
| 101 |
UCS mode. Available charsets are: gb (GB = Simplified Chinese), |
| 102 |
cns (CNS = Traditional Chinese), ks (KS = Korean), |
| 103 |
jis (JIS = Japanese), jisq (JIS quote only), |
| 104 |
custom (user-defined CHARSET from <CNFfile>; |
| 105 |
see \fBCONFIGURATION FILE FORMAT\fR section). |
| 106 |
.TP 10 |
| 107 |
Options below are effective only in UCS mode: |
| 108 |
.TP 10 |
| 109 |
\fB-J\fR <\fIPS-TFM\fR> |
| 110 |
Map single/double quote to another JIS-encoded PSfont TFM. |
| 111 |
.TP 10 |
| 112 |
\fB-U\fR <\fIPS-TFM\fR> |
| 113 |
Map single/double quote to another UCS-encoded PSfont TFM. |
| 114 |
.TP 10 |
| 115 |
\fB-3\fR |
| 116 |
Use set3, that is, enable non-BMP characters support (with UCS mode). |
| 117 |
By default \fBmakejvf\fR does not output >=U+10000, to reduce file |
| 118 |
size and to avoid problems with old DVI drivers. Recent versions of |
| 119 |
dvipdfmx and others can handle VF with >=U+10000 (= set3 in DVI |
| 120 |
language), therefore \fB-3\fR might be helpful. |
| 121 |
.TP 10 |
| 122 |
\fB-H\fR |
| 123 |
Use half-width Katakana. |
| 124 |
.SH EXAMPLE |
| 125 |
.TP 5 |
| 126 |
If you want to use min10 as Ryumin-Light-H, run |
| 127 |
makejvf min10.tfm rml |
| 128 |
.TP 5 |
| 129 |
This generates min10.vf and rml.tfm. Put these files in an appropriate \ |
| 130 |
directory under TEXMF tree, and add the following line to psfonts.map. |
| 131 |
rml Ryumin-Light-H |
| 132 |
.SH CONFIGURATION FILE FORMAT |
| 133 |
.TP 5 |
| 134 |
With \fB-t\fR option, you can give \fBmakejvf\fR a custom settings \ |
| 135 |
for generating VF. The syntax is: |
| 136 |
|
| 137 |
% comment line |
| 138 |
MOVE <code> <right> <down> |
| 139 |
|
| 140 |
REPLACE <code> <new code> |
| 141 |
CHARSET <code>,<code>,<code>..<code>,<code>, |
| 142 |
+ <code>,<code>..<code> |
| 143 |
|
| 144 |
.TP 5 |
| 145 |
Each line should begin with a command, and should be TAB-separated. \ |
| 146 |
Line starting with % is a comment, and empty lines are ignored. |
| 147 |
.TP 5 |
| 148 |
The \fBMOVE\fR command specifies horizontal/vertical shift amount \ |
| 149 |
for the individual character <\fIcode\fR>. \ |
| 150 |
The \fBREPLACE\fR command replaces the character <\fIcode\fR> with \ |
| 151 |
<\fInew code\fR>. \ |
| 152 |
The \fBCHARSET\fR command sets the custom character set of output VF; \ |
| 153 |
the + character continues from the previous line. |
| 154 |
.TP 5 |
| 155 |
An example usage can be found in uptex-fonts project. \ |
| 156 |
See GitHub repository |
| 157 |
<https://github.com/texjporg/uptex-fonts>. |
| 158 |
.SH SEE ALSO |
| 159 |
More detailed description of \fBmakejvf\fR in Japanese is available at |
| 160 |
$TEXMFDIST/doc/fonts/ptex-fonts/README_makejvf |
| 161 |
.SH AUTHOR |
| 162 |
This manual page was written by Japanese \*(TX Development Community \ |
| 163 |
<https://texjp.org>. For more information, see GitHub repository \ |
| 164 |
<https://github.com/texjporg/ptex-fonts>. |
| 165 |
.TP 5 |
| 166 |
Many thanks to Atsuhito KOHDA <[email protected]>, \ |
| 167 |
for providing another manpage in Debian GNU/Linux system. |