X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Faddons%2Fluatexja-preset.sty;h=c23fb3fb4cb811954e6285c75156fb0bcc4eb906;hb=f1b2365341e9585513ec2f59a28f7edbe603165f;hp=b466bc1f0276c5d9f2952f924572fc0bd66a5d09;hpb=64d5453fc9921203551a7f8f82af2738026998fc;p=luatex-ja%2Fluatexja.git diff --git a/src/addons/luatexja-preset.sty b/src/addons/luatexja-preset.sty index b466bc1..c23fb3f 100644 --- a/src/addons/luatexja-preset.sty +++ b/src/addons/luatexja-preset.sty @@ -159,10 +159,21 @@ YuMincho~Medium , YuMincho~Demibold , % mc/m, mc/bx YuGothic~Medium , YuGothic~Bold , % gt/m, gt/bx (multiweight)) YuGothic~Bold , YuGothic~Bold , % gt/m (uni), gt/eb - YuGothic~Bold % mg/m + YuGothic~Bold % mg/m } } +% moga-mobo +\DeclareOption{moga-mobo}{ + \ltjpreset_set_multi:n { + Moga90Mincho, Moga90Mincho~Bold , % mc/m, mc/bx + Moga90Gothic, Moga90Gothic~Bold , % gt/m, gt/bx (multiweight)) + Moga90Gothic~Bold, Moga90Gothic~Bold, % gt/m (uni), gt/eb + Mobo90Gothic % mg/m + } +} + + % ipa, ipaex, ms \DeclareOption{ipa}{ \ltjpreset_set_uni:nn { IPAMincho } { IPAGothic } @@ -223,6 +234,9 @@ { \bool_set_true:N \l_ltjpreset_shape_nlck_bool } \clist_if_in:NnT \l_ltjpreset_font_list { HiraMinProN-W3 } { \bool_set_true:N \l_ltjpreset_shape_nlck_bool } + \clist_if_in:NnT \l_ltjpreset_font_list { Moga90Mincho } + { \tl_remove_all:Nn \l_ltjpreset_font_list {90} }%%% これでいいのか? + } %%%% リストからの展開 @@ -310,23 +324,23 @@ \cs_new:Nn \ltj_preset_define_family:nnn { \DeclareFontShape{JY3}{#1}{#2}{n}{ <-> s*[\fp_use:N \l_ltjpreset_scale_fp] - {\bool_if:NT \l_ltjpreset_noembed_bool {psft:} #3 + {\bool_if:NT \l_ltjpreset_noembed_bool {psft:} "#3" : jfm=\ltjpreset_use_jfm: ;-kern;\tl_use:N \l_ltjpreset_kanji_shape_tl ; script=latn \bool_if:NT \l_ltjpreset_expert_bool { ;+hkna }} } {} \DeclareFontShape{JT3}{#1}{#2}{n}{ <-> s*[\fp_use:N \l_ltjpreset_scale_fp] - {\bool_if:NT \l_ltjpreset_noembed_bool {psft:} #3 + {\bool_if:NT \l_ltjpreset_noembed_bool {psft:} "#3" : jfm=ujisv ;-kern;\tl_use:N \l_ltjpreset_kanji_shape_tl ; script=latn \bool_if:NT \l_ltjpreset_expert_bool { ;+vkna }} } {} \bool_if:NT \l_ltjpreset_expert_bool { \DeclareFontShape{JY3}{#1}{#2}{rb}{ <-> s*[\fp_use:N \l_ltjpreset_scale_fp] - {\bool_if:NT \l_ltjpreset_noembed_bool {psft:} #3 + {\bool_if:NT \l_ltjpreset_noembed_bool {psft:} "#3" : jfm=\ltjpreset_use_jfm: ;-kern;\tl_use:N \l_ltjpreset_kanji_shape_tl ;+ruby ; script=kana} } {} \DeclareFontShape{JT3}{#1}{#2}{rb}{ <-> s*[\fp_use:N \l_ltjpreset_scale_fp] - {\bool_if:NT \l_ltjpreset_noembed_bool {psft:} #3 + {\bool_if:NT \l_ltjpreset_noembed_bool {psft:} "#3" : jfm=ujisv ;-kern;\tl_use:N \l_ltjpreset_kanji_shape_tl ;+ruby ; script=kana} } {} @@ -412,8 +426,7 @@ %% mg \newjfontfamily \mgfamily [ BoldFont = \ltjpreset_font_mg:, - \tl_use:N \l_ltjpreset_add_features_tl - \bool_if:NT \l_ltjpreset_noembed_bool { , NoEmbed }, + \bool_if:NT \l_ltjpreset_noembed_bool { NoEmbed, } \tl_use:N \l_ltjpreset_add_features_tl ] { \ltjpreset_font_mg: } \DeclareTextFontCommand{\textmg}{\mgfamily} @@ -421,9 +434,8 @@ %% 注意: ファミリは 'gteb'.シリーズは \mdseries のまま. %% \bfseries を追加したほうが良い? \newjfontfamily \gtebfamily [ - BoldFont = \ltjpreset_font_gt_eb:, - \tl_use:N \l_ltjpreset_add_features_tl - \bool_if:NT \l_ltjpreset_noembed_bool { , NoEmbed }, + BoldFont = \ltjpreset_font_gt_eb:, + \bool_if:NT \l_ltjpreset_noembed_bool { NoEmbed, } \tl_use:N \l_ltjpreset_add_features_tl ] { \ltjpreset_font_gt_eb: } \DeclareTextFontCommand{\textgteb}{\gtebfamily}