• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: コミット

ソースコードの管理場所


コミットメタ情報

リビジョンd49ab09f4a93d0b55b68189c3d099f1ba80fed85 (tree)
日時2011-04-12 22:05:06
作者Hironori Kitagawa <h_kitagawa2001@yaho...>
コミッターHironori Kitagawa

ログメッセージ

Changed user interface.

- \jfont\CS={<fontname>:jfm=<jfmfile>[;jfmvar=<varkey>];...}
- \setjaparameter{<key>=<value>,...}: for changing parameters.
- \gjfont, \globalsetjaparameter: global version.
- \getjaparameter{<key>} or \getjaparameter{<key>}{<chrcode>} (see test03-after.tex).

変更サマリ

差分

--- /dev/null
+++ b/src/jfm-mono.lua
@@ -0,0 +1,3 @@
1+jfm.dir = 'yoko'
2+jfm.zw= 1.0; jfm.zh = 1.0
3+jfm.define_type_dim(0, 0.0 , 0.0 , 1.0 , 0.88, 0.12, 0.0)
\ No newline at end of file
--- /dev/null
+++ b/src/jfm-ujis.lua
@@ -0,0 +1,87 @@
1+-- A sample of Japanese font metric for pluatex
2+-- The unit of <height>, <depth>:
3+-- The unit of other dimension: the design size
4+
5+jfm.dir = 'yoko'
6+-- 'yoko'
7+
8+jfm.zw= 1.0; jfm.zh = 1.0
9+-- amount of ``1zw'' and ``1zh'' (these units are used in pTeX)
10+
11+
12+-- character type
13+-- jfm.define_char_type(<type>, <letters>)
14+jfm.define_char_type(1, {
15+ 0x2018, 0x201C, 0x3008, 0x300A, 0x300C, 0x300E, 0x3010, 0x3014, 0x3016,
16+ 0x3018, 0x301D, 0xFF08, 0xFF3B, 0xFF5B, 0xFF5F
17+ }) -- 開き括弧類
18+jfm.define_char_type(2, {
19+ 0x2019, 0x201D, 0x3001, 0x3009, 0x300B, 0x300D, 0x300F, 0x3011, 0x3015,
20+ 0x3017, 0x3019, 0x301F, 0xFF09, 0xFF0C, 0xFF3D, 0xFF5D, 0xFF60
21+ }) -- 閉じ括弧類
22+jfm.define_char_type(3, {0x30FB, 0xFF1A, 0xFF1B}) -- 中点類
23+jfm.define_char_type(4, {0x3002, 0xFF0E}) -- 句点類
24+jfm.define_char_type(5, {0x2015, 0x2025, 0x2026}) -- ダッシュ
25+jfm.define_char_type(6, {'boxbdd'})
26+jfm.define_char_type(7, {
27+ 0xFF61, 0xFF62, 0xFF63, 0xFF64, 0xFF65, 0xFF66, 0xFF67, 0xFF68, 0xFF69,
28+ 0xFF6A, 0xFF6B, 0xFF6C, 0xFF6D, 0xFF6E, 0xFF6F, 0xFF70, 0xFF71, 0xFF72,
29+ 0xFF73, 0xFF74, 0xFF75, 0xFF76, 0xFF77, 0xFF78, 0xFF79, 0xFF7A, 0xFF7B,
30+ 0xFF7C, 0xFF7D, 0xFF7E, 0xFF7F, 0xFF80, 0xFF81, 0xFF82, 0xFF83, 0xFF84,
31+ 0xFF85, 0xFF86, 0xFF87, 0xFF88, 0xFF89, 0xFF8A, 0xFF8B, 0xFF8C, 0xFF8D,
32+ 0xFF8E, 0xFF8F, 0xFF90, 0xFF91, 0xFF92, 0xFF93, 0xFF94, 0xFF95, 0xFF96,
33+ 0xFF97, 0xFF98, 0xFF99, 0xFF9A, 0xFF9B, 0xFF9C, 0xFF9D, 0xFF9E, 0xFF9F
34+}) -- 半角カナ
35+
36+
37+-- 'boxbdd' matches
38+-- o the beginning of paragraphs and hboxes
39+-- o the ending of paragraphs and hboxes
40+-- o just after the hbox created by \parindent
41+
42+-- 'jcharbdd' matches the boundary between two Japanese characters whose metrics (or sizes)
43+-- are different.
44+
45+-- 'diffmet' matches the boundary between a Japanese character
46+-- and a material which is not a Japanese character.
47+
48+-- dimension
49+-- jfm.define_type_dim(<type>, <left>, <down>, <width>,
50+-- <height>, <depth>, <italic correction>)
51+jfm.define_type_dim(0, 0.0 , 0.0 , 1.0 , 0.88, 0.12, 0.0)
52+jfm.define_type_dim(1, 0.5 , 0.0 , 0.5 , 0.88, 0.12, 0.0)
53+jfm.define_type_dim(2, 0.0 , 0.0 , 0.5 , 0.88, 0.12, 0.0)
54+jfm.define_type_dim(3, 0.25, 0.0 , 0.5 , 0.88, 0.12, 0.0)
55+jfm.define_type_dim(4, 0.0 , 0.0 , 0.5 , 0.88, 0.12, 0.0)
56+jfm.define_type_dim(5, 0.0 , 0.0 , 1.0 , 0.88, 0.12, 0.0)
57+-- jfm.define_type_dim(6, 0.0 , 0.0 , 1.0 , 0.88, 0.12, 0.0): does not needed
58+jfm.define_type_dim(7, 0.0 , 0.0 , 0.5 , 0.88, 0.12, 0.0)
59+
60+-- glue/kern
61+-- jfm.define_glue(<btype>, <atype>, <width>, <stretch>, <shrink>)
62+-- jfm.define_kern(<btype>, <atype>, <width>)
63+jfm.define_glue(0,1, 0.5 , 0.0, 0.5 )
64+jfm.define_glue(7,1, 0.5 , 0.0, 0.5 )
65+jfm.define_glue(0,3, 0.25, 0.0, 0.25)
66+jfm.define_glue(7,3, 0.25, 0.0, 0.25)
67+jfm.define_glue(1,3, 0.25, 0.0, 0.25)
68+jfm.define_glue(2,0, 0.5 , 0.0, 0.5 )
69+jfm.define_glue(2,7, 0.5 , 0.0, 0.5 )
70+jfm.define_glue(2,1, 0.5 , 0.0, 0.5 )
71+jfm.define_glue(2,3, 0.25, 0.0, 0.25)
72+jfm.define_glue(2,5, 0.5 , 0.0, 0.5 )
73+jfm.define_glue(3,0, 0.25, 0.0, 0.25)
74+jfm.define_glue(3,7, 0.25, 0.0, 0.25)
75+jfm.define_glue(3,1, 0.25, 0.0, 0.25)
76+jfm.define_glue(3,2, 0.25, 0.0, 0.25)
77+jfm.define_glue(3,3, 0.5 , 0.0, 0.5 )
78+jfm.define_glue(3,4, 0.25, 0.0, 0.25)
79+jfm.define_glue(3,5, 0.25, 0.0, 0.25)
80+jfm.define_glue(4,0, 0.5 , 0.0, 0.0 )
81+jfm.define_glue(4,7, 0.5 , 0.0, 0.0 )
82+jfm.define_glue(4,1, 0.5 , 0.0, 0.0 )
83+jfm.define_glue(4,3, 0.75, 0.0, 0.25)
84+jfm.define_glue(4,5, 0.5 , 0.0, 0.0 )
85+jfm.define_glue(5,1, 0.5 , 0.0, 0.5 )
86+jfm.define_glue(5,3, 0.25, 0.0, 0.25)
87+jfm.define_kern(5,5, 0.0)
\ No newline at end of file
--- /dev/null
+++ b/src/luatexja-plain.tex
@@ -0,0 +1,22 @@
1+% LuaTeX-ja macros against plain TeX
2+
3+\jfont\tenmin=psft:Ryumin-Light:jfm=ujis at 13.5\jQ
4+\jfont\sevenmin=psft:Ryumin-Light:jfm=ujis at 9.5\jQ
5+\jfont\fivemin=psft:Ryumin-Light:jfm=ujis at 7\jQ
6+\jfont\tengt=psft:GothicBBB-Medium:jfm=ujis at 13.5\jQ
7+\jfont\sevengt=psft:GothicBBB-Medium:jfm=ujis at 9.5\jQ
8+\jfont\fivegt=psft:GothicBBB-Medium:jfm=ujis at 7\jQ
9+
10+\let\mc=\tenmin
11+\let\gt=\tengt
12+\mc
13+\setjaparameter{kanjiskip=0pt plus 0.4pt minus 0.4pt,
14+ xkanjiskip=.25\zw plus 1pt minus 1pt,
15+ autospacing, autoxspacing,
16+ yabaselineshift=0pt, ykbaselineshift=0pt,
17+ jcharwidowpenalty=500
18+}
19+
20+\input luatexja-kinsoku.tex
21+
22+\endinput
\ No newline at end of file
旧リポジトリブラウザで表示