| 1 |
%%% License %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2 |
% This package is licensed under the terms of the MIT License. |
| 3 |
|
| 4 |
% Copyright (c) 2025-2026 Kosei Kawaguchi |
| 5 |
|
| 6 |
% Permission is hereby granted, free of charge, |
| 7 |
% to any person obtaining a copy of this software and associated documentation files |
| 8 |
% (the "Software"), to deal in the Software without restriction, |
| 9 |
% including without limitation the rights to use, copy, modify, merge, publish, |
| 10 |
% distribute, sublicense, and/or sell copies of the Software, |
| 11 |
% and to permit persons to whom the Software is furnished to do so, |
| 12 |
% subject to the following conditions: |
| 13 |
|
| 14 |
% The above copyright notice and this permission notice |
| 15 |
% shall be included in all copies or substantial portions of the Software. |
| 16 |
|
| 17 |
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 18 |
% EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 19 |
% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 20 |
% IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
| 21 |
% DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
| 22 |
% ARISING FROM, |
| 23 |
% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 24 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 25 |
|
| 26 |
|
| 27 |
\NeedsTeXFormat{LaTeX2e} |
| 28 |
\ProvidesPackage{KKsymbols}[2026/04/17, Version 2.1.4] |
| 29 |
\RequirePackage{luatexja-adjust, luacode, kvoptions} |
| 30 |
\RequirePackage{calc} |
| 31 |
\RequirePackage{tikz} |
| 32 |
\usetikzlibrary{shapes} |
| 33 |
|
| 34 |
%%% package options |
| 35 |
\SetupKeyvalOptions{% |
| 36 |
family=kksymbols,% |
| 37 |
prefix=kksymbols@% |
| 38 |
} |
| 39 |
\DeclareStringOption[1]{tsumesuji} |
| 40 |
\ProcessKeyvalOptions* |
| 41 |
%%% |
| 42 |
|
| 43 |
%%% KKsymbols.lua |
| 44 |
\directlua{require("KKsymbols")}%%% |
| 45 |
%%% |
| 46 |
|
| 47 |
|
| 48 |
%%% tsumesuji |
| 49 |
\ExplSyntaxOn |
| 50 |
\str_new:N \l_kks_tmp_str |
| 51 |
\DeclareRobustCommand{\kks@ShrinkedNumber@internal}[1]{ |
| 52 |
\str_set:Nx \l_kks_tmp_str { \text_expand:n { #1 } } |
| 53 |
\regex_match:nVTF { \A \d+ \Z } \l_kks_tmp_str |
| 54 |
% 先頭・末尾が数字かつ1桁以上 |
| 55 |
{ |
| 56 |
\directlua{KKsymbols.narrow_ones("\luaescapestring{\l_kks_tmp_str}")} |
| 57 |
} |
| 58 |
{ |
| 59 |
#1 |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
|
| 64 |
\msg_new:nnn { KKsymbols } { invalid-tsumesuji } |
| 65 |
{ |
| 66 |
The~input~of~the~`tsumesuji`~option~should~be~0~or~1. |
| 67 |
} |
| 68 |
\int_compare:nNnTF {\number\kksymbols@tsumesuji} = { 1 } |
| 69 |
{ |
| 70 |
\tl_set_eq:NN {\kks@ShrinkedNumber} {\kks@ShrinkedNumber@internal} |
| 71 |
} |
| 72 |
{ |
| 73 |
\int_compare:nNnTF {\number\kksymbols@tsumesuji} = {0} |
| 74 |
{ |
| 75 |
\tl_set_eq:NN {\kks@ShrinkedNumber} {\relax} |
| 76 |
} |
| 77 |
{ |
| 78 |
\msg_error:nnn { KKsymbols } { invalid-tsumesuji } { #1 } |
| 79 |
} |
| 80 |
} |
| 81 |
\ExplSyntaxOff |
| 82 |
%%% |
| 83 |
|
| 84 |
|
| 85 |
%%% interface commands |
| 86 |
\DeclareRobustCommand{\maru}{% |
| 87 |
\@ifstar{\maru@new@no}{\maru@new}% |
| 88 |
} |
| 89 |
|
| 90 |
\DeclareRobustCommand{\kuromaru}{% |
| 91 |
\@ifstar{\kuromaru@new@no}{\kuromaru@new}% |
| 92 |
} |
| 93 |
|
| 94 |
\DeclareRobustCommand{\nmaru}{% |
| 95 |
\@ifstar{\nmaru@new@no}{\nmaru@new}% |
| 96 |
} |
| 97 |
|
| 98 |
\DeclareRobustCommand{\jegg}{% |
| 99 |
\@ifstar{\jegg@new@black}{\jegg@new}% |
| 100 |
} |
| 101 |
|
| 102 |
\DeclareRobustCommand{\seihou}{% |
| 103 |
\@ifstar{\seihou@new@no}{\seihou@new}% |
| 104 |
} |
| 105 |
|
| 106 |
\DeclareRobustCommand{\kuroseihou}{% |
| 107 |
\@ifstar{\kuroseihou@new@no}{\kuroseihou@new}% |
| 108 |
} |
| 109 |
|
| 110 |
\DeclareRobustCommand{\seimaru}{% |
| 111 |
\@ifstar{\seimaru@new@no}{\seimaru@new}% |
| 112 |
} |
| 113 |
|
| 114 |
\DeclareRobustCommand{\kuroseimaru}{% |
| 115 |
\@ifstar{\kuroseimaru@new@no}{\kuroseimaru@new}% |
| 116 |
} |
| 117 |
|
| 118 |
\DeclareRobustCommand{\hishi}{% |
| 119 |
\@ifstar{\hishi@new@no}{\hishi@new}% |
| 120 |
} |
| 121 |
|
| 122 |
\DeclareRobustCommand{\kurohishi}{% |
| 123 |
\@ifstar{\kurohishi@new@no}{\kurohishi@new}% |
| 124 |
} |
| 125 |
|
| 126 |
\DeclareRobustCommand{\maruhishi}{% |
| 127 |
\@ifstar{\kurohishi@new@no}{\kurohishi@new}% |
| 128 |
} |
| 129 |
|
| 130 |
\DeclareRobustCommand{\kuromaruhishi}{% |
| 131 |
\@ifstar{\kuromaruhishi@new@no}{\kuromaruhishi@new}% |
| 132 |
} |
| 133 |
|
| 134 |
\DeclareRobustCommand{\ichimoji}{% |
| 135 |
\@ifstar{\ichimoji@new@no}{\ichimoji@new}% |
| 136 |
} |
| 137 |
|
| 138 |
\DeclareRobustCommand{\kakko@y@internal}[1]{\kakko@byouga@internal{(}{)}{#1}} |
| 139 |
\DeclareRobustCommand{\kakko@y@internal@no}[1]{\kakko@byouga@internal@no{(}{)}{#1}} |
| 140 |
\DeclareRobustCommand{\kakko@t@internal}[1]{\kakko@byouga@internal@tate{(}{)}{#1}} |
| 141 |
\DeclareRobustCommand{\kakko@t@internal@no}[1]{\kakko@byouga@internal@tate@no{(}{)}{#1}} |
| 142 |
\DeclareRobustCommand{\kakko}{% |
| 143 |
\@ifstar{\kakko@star}{\kakko@nostar}% |
| 144 |
} |
| 145 |
\newcommand{\kakko@star}[1]{% |
| 146 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 147 |
\kakko@t@internal@no{#1}% |
| 148 |
\else |
| 149 |
\kakko@y@internal@no{#1}% |
| 150 |
\fi |
| 151 |
} |
| 152 |
\newcommand{\kakko@nostar}[1]{% |
| 153 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 154 |
\kakko@t@internal{#1}% |
| 155 |
\else |
| 156 |
\kakko@y@internal{#1}% |
| 157 |
\fi |
| 158 |
} |
| 159 |
|
| 160 |
\DeclareRobustCommand{\sumikakko@y@internal}[1]{\kakko@byouga@internal{【}{】}{#1}} |
| 161 |
\DeclareRobustCommand{\sumikakko@y@internal@no}[1]{\kakko@byouga@internal@no{【}{】}{#1}} |
| 162 |
\DeclareRobustCommand{\sumikakko@t@internal}[1]{\kakko@byouga@internal@tate{【}{】}{#1}} |
| 163 |
\DeclareRobustCommand{\sumikakko@t@internal@no}[1]{\kakko@byouga@internal@tate@no{【}{】}{#1}} |
| 164 |
\DeclareRobustCommand{\sumikakko}{% |
| 165 |
\@ifstar{\sumikakko@star}{\sumikakko@nostar}% |
| 166 |
} |
| 167 |
\newcommand{\sumikakko@star}[1]{% |
| 168 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 169 |
\sumikakko@t@internal@no{#1}% |
| 170 |
\else |
| 171 |
\sumikakko@y@internal@no{#1}% |
| 172 |
\fi |
| 173 |
} |
| 174 |
\newcommand{\sumikakko@nostar}[1]{% |
| 175 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 176 |
\sumikakko@t@internal{#1}% |
| 177 |
\else |
| 178 |
\sumikakko@y@internal{#1}% |
| 179 |
\fi |
| 180 |
} |
| 181 |
|
| 182 |
\DeclareRobustCommand{\kakukakko@y@internal}[1]{\kakko@byouga@internal{[}{]}{#1}} |
| 183 |
\DeclareRobustCommand{\kakukakko@y@internal@no}[1]{\kakko@byouga@internal@no{[}{]}{#1}} |
| 184 |
\DeclareRobustCommand{\kakukakko@t@internal}[1]{\kakko@byouga@internal@tate{[}{]}{#1}} |
| 185 |
\DeclareRobustCommand{\kakukakko@t@internal@no}[1]{\kakko@byouga@internal@tate@no{[}{]}{#1}} |
| 186 |
\DeclareRobustCommand{\kakukakko}{% |
| 187 |
\@ifstar{\kakukakko@star}{\kakukakko@nostar}% |
| 188 |
} |
| 189 |
\newcommand{\kakukakko@star}[1]{% |
| 190 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 191 |
\kakukakko@t@internal@no{#1}% |
| 192 |
\else |
| 193 |
\kakukakko@y@internal@no{#1}% |
| 194 |
\fi |
| 195 |
} |
| 196 |
\newcommand{\kakukakko@nostar}[1]{% |
| 197 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 198 |
\kakukakko@t@internal{#1}% |
| 199 |
\else |
| 200 |
\kakukakko@y@internal{#1}% |
| 201 |
\fi |
| 202 |
} |
| 203 |
|
| 204 |
\DeclareRobustCommand{\kikakko@y@internal}[1]{\kakko@byouga@internal{〔}{〕}{#1}} |
| 205 |
\DeclareRobustCommand{\kikakko@y@internal@no}[1]{\kakko@byouga@internal@no{〔}{〕}{#1}} |
| 206 |
\DeclareRobustCommand{\kikakko@t@internal}[1]{\kakko@byouga@internal@tate{〔}{〕}{#1}} |
| 207 |
\DeclareRobustCommand{\kikakko@t@internal@no}[1]{\kakko@byouga@internal@tate@no{〔}{〕}{#1}} |
| 208 |
\DeclareRobustCommand{\kikakko}{% |
| 209 |
\@ifstar{\kikakko@star}{\kikakko@nostar}% |
| 210 |
} |
| 211 |
\newcommand{\kikakko@star}[1]{% |
| 212 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 213 |
\kikakko@t@internal@no{#1}% |
| 214 |
\else |
| 215 |
\kikakko@y@internal@no{#1}% |
| 216 |
\fi |
| 217 |
} |
| 218 |
\newcommand{\kikakko@nostar}[1]{% |
| 219 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 220 |
\kikakko@t@internal{#1}% |
| 221 |
\else |
| 222 |
\kikakko@y@internal{#1}% |
| 223 |
\fi |
| 224 |
} |
| 225 |
|
| 226 |
\DeclareRobustCommand{\ykakko@y@internal}[1]{\kakko@byouga@internal{〈}{〉}{#1}} |
| 227 |
\DeclareRobustCommand{\ykakko@y@internal@no}[1]{\kakko@byouga@internal@no{〈}{〉}{#1}} |
| 228 |
\DeclareRobustCommand{\ykakko@t@internal}[1]{\kakko@byouga@internal@tate{〈}{〉}{#1}} |
| 229 |
\DeclareRobustCommand{\ykakko@t@internal@no}[1]{\kakko@byouga@internal@tate@no{〈}{〉}{#1}} |
| 230 |
\DeclareRobustCommand{\ykakko}{% |
| 231 |
\@ifstar{\ykakko@star}{\ykakko@nostar}% |
| 232 |
} |
| 233 |
\newcommand{\ykakko@star}[1]{% |
| 234 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 235 |
\ykakko@t@internal@no{#1}% |
| 236 |
\else |
| 237 |
\ykakko@y@internal@no{#1}% |
| 238 |
\fi |
| 239 |
} |
| 240 |
\newcommand{\ykakko@nostar}[1]{% |
| 241 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 242 |
\ykakko@t@internal{#1}% |
| 243 |
\else |
| 244 |
\ykakko@y@internal{#1}% |
| 245 |
\fi |
| 246 |
} |
| 247 |
|
| 248 |
\DeclareRobustCommand{\nykakko@y@internal}[1]{\kakko@byouga@internal{《}{》}{#1}} |
| 249 |
\DeclareRobustCommand{\nykakko@y@internal@no}[1]{\kakko@byouga@internal@no{《}{》}{#1}} |
| 250 |
\DeclareRobustCommand{\nykakko@t@internal}[1]{\kakko@byouga@internal@tate{《}{》}{#1}} |
| 251 |
\DeclareRobustCommand{\nykakko@t@internal@no}[1]{\kakko@byouga@internal@tate@no{《}{》}{#1}} |
| 252 |
\DeclareRobustCommand{\nykakko}{% |
| 253 |
\@ifstar{\nykakko@star}{\nykakko@nostar}% |
| 254 |
} |
| 255 |
\newcommand{\nykakko@star}[1]{% |
| 256 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 257 |
\nykakko@t@internal@no{#1}% |
| 258 |
\else |
| 259 |
\nykakko@y@internal@no{#1}% |
| 260 |
\fi |
| 261 |
} |
| 262 |
\newcommand{\nykakko@nostar}[1]{% |
| 263 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 264 |
\nykakko@t@internal{#1}% |
| 265 |
\else |
| 266 |
\nykakko@y@internal{#1}% |
| 267 |
\fi |
| 268 |
} |
| 269 |
|
| 270 |
\DeclareRobustCommand{\namikakko@y@internal}[1]{\kakko@byouga@internal{{}{}}{#1}} |
| 271 |
\DeclareRobustCommand{\namikakko@y@internal@no}[1]{\kakko@byouga@internal@no{{}{}}{#1}} |
| 272 |
\DeclareRobustCommand{\namikakko@t@internal}[1]{\kakko@byouga@internal@tate{{}{}}{#1}} |
| 273 |
\DeclareRobustCommand{\namikakko@t@internal@no}[1]{\kakko@byouga@internal@tate@no{{}{}}{#1}} |
| 274 |
\DeclareRobustCommand{\namikakko}{% |
| 275 |
\@ifstar{\namikakko@star}{\namikakko@nostar}% |
| 276 |
} |
| 277 |
\newcommand{\namikakko@star}[1]{% |
| 278 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 279 |
\namikakko@t@internal@no{#1}% |
| 280 |
\else |
| 281 |
\namikakko@y@internal@no{#1}% |
| 282 |
\fi |
| 283 |
} |
| 284 |
\newcommand{\namikakko@nostar}[1]{% |
| 285 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 286 |
\namikakko@t@internal{#1}% |
| 287 |
\else |
| 288 |
\namikakko@y@internal{#1}% |
| 289 |
\fi |
| 290 |
} |
| 291 |
|
| 292 |
\DeclareRobustCommand{\kagikakko@y@internal}[1]{\kakko@byouga@internal{「}{」}{#1}} |
| 293 |
\DeclareRobustCommand{\kagikakko@y@internal@no}[1]{\kakko@byouga@internal@no{「}{」}{#1}} |
| 294 |
\DeclareRobustCommand{\kagikakko@t@internal}[1]{\kakko@byouga@internal@tate{「}{」}{#1}} |
| 295 |
\DeclareRobustCommand{\kagikakko@t@internal@no}[1]{\kakko@byouga@internal@tate@no{「}{」}{#1}} |
| 296 |
\DeclareRobustCommand{\kagikakko}{% |
| 297 |
\@ifstar{\kagikakko@star}{\kagikakko@nostar}% |
| 298 |
} |
| 299 |
\newcommand{\kagikakko@star}[1]{% |
| 300 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 301 |
\kagikakko@t@internal@no{#1}% |
| 302 |
\else |
| 303 |
\kagikakko@y@internal@no{#1}% |
| 304 |
\fi |
| 305 |
} |
| 306 |
\newcommand{\kagikakko@nostar}[1]{% |
| 307 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 308 |
\kagikakko@t@internal{#1}% |
| 309 |
\else |
| 310 |
\kagikakko@y@internal{#1}% |
| 311 |
\fi |
| 312 |
} |
| 313 |
|
| 314 |
\DeclareRobustCommand{\nkagikakko@y@internal}[1]{\kakko@byouga@internal{『}{』}{#1}} |
| 315 |
\DeclareRobustCommand{\nkagikakko@y@internal@no}[1]{\kakko@byouga@internal@no{『}{』}{#1}} |
| 316 |
\DeclareRobustCommand{\nkagikakko@t@internal}[1]{\kakko@byouga@internal@tate{『}{』}{#1}} |
| 317 |
\DeclareRobustCommand{\nkagikakko@t@internal@no}[1]{\kakko@byouga@internal@tate@no{『}{』}{#1}} |
| 318 |
\DeclareRobustCommand{\nkagikakko}{% |
| 319 |
\@ifstar{\nkagikakko@star}{\nkagikakko@nostar}% |
| 320 |
} |
| 321 |
\newcommand{\nkagikakko@star}[1]{% |
| 322 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 323 |
\nkagikakko@t@internal@no{#1}% |
| 324 |
\else |
| 325 |
\nkagikakko@y@internal@no{#1}% |
| 326 |
\fi |
| 327 |
} |
| 328 |
\newcommand{\nkagikakko@nostar}[1]{% |
| 329 |
\ifnum\ltjgetparameter{direction}=3\relax |
| 330 |
\nkagikakko@t@internal{#1}% |
| 331 |
\else |
| 332 |
\nkagikakko@y@internal{#1}% |
| 333 |
\fi |
| 334 |
} |
| 335 |
%%% |
| 336 |
|
| 337 |
|
| 338 |
% 全体で使用 |
| 339 |
\NewDocumentCommand{\shukushou@adj@new}{ m m m }{% |
| 340 |
\ifdim #1 < #2% |
| 341 |
\resizebox*{\width}{#2}{#3}% |
| 342 |
\else% |
| 343 |
\resizebox*{#2}{#2}{#3}% |
| 344 |
\fi% |
| 345 |
} |
| 346 |
\NewDocumentCommand{\shukushou@adj@new@no}{ m m m }{% |
| 347 |
\ifdim #1 < #2% |
| 348 |
#3% |
| 349 |
\else% |
| 350 |
\resizebox*{!}{#2}{#3}% |
| 351 |
\fi% |
| 352 |
} |
| 353 |
\NewDocumentCommand{\RotYoko}{O{0}}{% |
| 354 |
\def\KKsymbolsRot@val@y{#1}% |
| 355 |
} |
| 356 |
\NewDocumentCommand{\RotTate}{O{90}}{% |
| 357 |
\def\KKsymbolsRot@val@t{#1}% |
| 358 |
} |
| 359 |
\def\KKsymbolsRot@val@t{90} |
| 360 |
\def\KKsymbolsRot@val@y{0} |
| 361 |
\NewDocumentCommand{\rot@or@not@kksym}{}{% |
| 362 |
\ifnum\ltjgetparameter{direction}=3 |
| 363 |
\def\rot@kksym@tateyoko{\KKsymbolsRot@val@t}% |
| 364 |
\else |
| 365 |
\def\rot@kksym@tateyoko{\KKsymbolsRot@val@y}% |
| 366 |
\fi |
| 367 |
} |
| 368 |
%%% |
| 369 |
|
| 370 |
|
| 371 |
% \maru |
| 372 |
\NewDocumentCommand{\vertical@adj@maru@new}{}{% |
| 373 |
\ifnum\ltjgetparameter{direction}=3 |
| 374 |
-.5\zw% |
| 375 |
\else |
| 376 |
-.12\zw% |
| 377 |
\fi |
| 378 |
} |
| 379 |
\newlength{\maru@boxwidth@new} |
| 380 |
\newlength{\maru@boxwidth@inner} |
| 381 |
\newlength{\maru@var@yokohaba} |
| 382 |
\newlength{\maru@var@yokohaba@cal} |
| 383 |
\newlength{\maru@var@tate} |
| 384 |
\newlength{\maru@var@fuka} |
| 385 |
\newlength{\maru@var@zenkou} |
| 386 |
|
| 387 |
\ExplSyntaxOn |
| 388 |
\newcommand{\kks@chech@maru@onedigit}[1]{ |
| 389 |
\str_set:Nx \l_tmpa_str { \text_expand:n { #1 } } |
| 390 |
\str_if_eq:VnTF \l_tmpa_str { 0 } { \kksdigit@maru@newtrue } { |
| 391 |
\str_if_eq:VnTF \l_tmpa_str { 1 } { \kksdigit@maru@newtrue } { |
| 392 |
\str_if_eq:VnTF \l_tmpa_str { 2 } { \kksdigit@maru@newtrue } { |
| 393 |
\str_if_eq:VnTF \l_tmpa_str { 3 } { \kksdigit@maru@newtrue } { |
| 394 |
\str_if_eq:VnTF \l_tmpa_str { 4 } { \kksdigit@maru@newtrue } { |
| 395 |
\str_if_eq:VnTF \l_tmpa_str { 5 } { \kksdigit@maru@newtrue } { |
| 396 |
\str_if_eq:VnTF \l_tmpa_str { 6 } { \kksdigit@maru@newtrue } { |
| 397 |
\str_if_eq:VnTF \l_tmpa_str { 7 } { \kksdigit@maru@newtrue } { |
| 398 |
\str_if_eq:VnTF \l_tmpa_str { 8 } { \kksdigit@maru@newtrue } { |
| 399 |
\str_if_eq:VnTF \l_tmpa_str { 9 } { \kksdigit@maru@newtrue } { |
| 400 |
\kksdigit@maru@newfalse |
| 401 |
}}}}}}}}}} |
| 402 |
} |
| 403 |
\ExplSyntaxOff |
| 404 |
|
| 405 |
\NewDocumentCommand{\shukushou@adj@new@maru@onedigit}{ m m m }{% |
| 406 |
\resizebox*{!}{#2}{#3}% |
| 407 |
} |
| 408 |
|
| 409 |
\NewDocumentCommand{\shukushou@adj@new@no@maru}{ m m m m }{% |
| 410 |
\ifdim #1 < #2% |
| 411 |
\ifdim #3 > #2% |
| 412 |
\resizebox*{#3}{!}{#4}% |
| 413 |
\else% |
| 414 |
\scalebox{.9}{#4}% |
| 415 |
\fi% |
| 416 |
\else% |
| 417 |
\resizebox*{!}{#2}{#4}% |
| 418 |
\fi% |
| 419 |
} |
| 420 |
|
| 421 |
\newif\ifkksdigit@maru@new |
| 422 |
|
| 423 |
\DeclareRobustCommand{\maru@new}[1]{% |
| 424 |
\kks@chech@maru@onedigit{#1}% |
| 425 |
\rot@or@not@kksym% |
| 426 |
\setlength{\maru@boxwidth@new}{\zw}% |
| 427 |
\settowidth{\maru@var@yokohaba}{#1}% |
| 428 |
\pgfmathsetlength{\maru@boxwidth@inner}{0.87 * \maru@boxwidth@new / sqrt(2)}% |
| 429 |
\leavevmode% |
| 430 |
\ltjghostbeforejachar% |
| 431 |
\hbox to \maru@boxwidth@new{% |
| 432 |
\raisebox{\vertical@adj@maru@new}{% |
| 433 |
\vbox to \maru@boxwidth@new{% |
| 434 |
\vss% |
| 435 |
\hbox to \maru@boxwidth@new{% |
| 436 |
\hss% |
| 437 |
\tikz[baseline=(char.base)]{% |
| 438 |
\node[ |
| 439 |
shape=circle, |
| 440 |
line width=.04\maru@boxwidth@new, |
| 441 |
minimum size=.9\maru@boxwidth@new, |
| 442 |
draw, |
| 443 |
inner sep=.02\maru@boxwidth@new, |
| 444 |
rotate=\rot@kksym@tateyoko |
| 445 |
] (char){% |
| 446 |
\vbox to \maru@boxwidth@inner{ |
| 447 |
\vss% |
| 448 |
\hbox to \maru@boxwidth@inner{% |
| 449 |
\hss% |
| 450 |
\ifkksdigit@maru@new% |
| 451 |
\shukushou@adj@new@maru@onedigit{\maru@var@yokohaba}{\maru@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 452 |
\else% |
| 453 |
\shukushou@adj@new{\maru@var@yokohaba}{\maru@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 454 |
\fi% |
| 455 |
\hss% |
| 456 |
}% |
| 457 |
\vss% |
| 458 |
}% |
| 459 |
}; |
| 460 |
}% |
| 461 |
\hss% |
| 462 |
}% |
| 463 |
\vss% |
| 464 |
}% |
| 465 |
}% |
| 466 |
}% |
| 467 |
\ltjghostafterjachar% |
| 468 |
} |
| 469 |
\DeclareRobustCommand{\maru@new@no}[1]{% |
| 470 |
\rot@or@not@kksym% |
| 471 |
\setlength{\maru@boxwidth@new}{\zw}% |
| 472 |
\settowidth{\maru@var@yokohaba}{#1}% |
| 473 |
\settoheight{\maru@var@tate}{#1}% |
| 474 |
\settodepth{\maru@var@fuka}{#1}% |
| 475 |
\pgfmathsetlength{\maru@var@zenkou}{\maru@var@tate + \maru@var@fuka}% |
| 476 |
\pgfmathsetlength{\maru@var@yokohaba@cal}{0.85 * \maru@var@yokohaba}% |
| 477 |
\pgfmathsetlength{\maru@boxwidth@inner}{0.87 * \maru@boxwidth@new / sqrt(2)}% |
| 478 |
\leavevmode% |
| 479 |
\ltjghostbeforejachar% |
| 480 |
\hbox to \maru@boxwidth@new{% |
| 481 |
\raisebox{\vertical@adj@maru@new}{% |
| 482 |
\vbox to \maru@boxwidth@new{% |
| 483 |
\vss% |
| 484 |
\hbox to \maru@boxwidth@new{% |
| 485 |
\hss% |
| 486 |
\tikz[baseline=(char.base)]{% |
| 487 |
\node[ |
| 488 |
shape=circle, |
| 489 |
line width=.04\maru@boxwidth@new, |
| 490 |
minimum size=.9\maru@boxwidth@new, |
| 491 |
draw, |
| 492 |
inner sep=.02\maru@boxwidth@new, |
| 493 |
rotate=\rot@kksym@tateyoko |
| 494 |
] (char){% |
| 495 |
\vbox to \maru@boxwidth@inner{ |
| 496 |
\vss% |
| 497 |
\hbox to \maru@boxwidth@inner{% |
| 498 |
\hss% |
| 499 |
\shukushou@adj@new@no@maru{\maru@var@zenkou}{\maru@boxwidth@inner}{\maru@var@yokohaba@cal}{\kks@ShrinkedNumber{#1}}% |
| 500 |
\hss% |
| 501 |
}% |
| 502 |
\vss% |
| 503 |
}% |
| 504 |
}; |
| 505 |
}% |
| 506 |
\hss% |
| 507 |
}% |
| 508 |
\vss% |
| 509 |
}% |
| 510 |
}% |
| 511 |
}% |
| 512 |
\ltjghostafterjachar% |
| 513 |
} |
| 514 |
|
| 515 |
|
| 516 |
\DeclareRobustCommand{\kuromaru@new}[1]{% |
| 517 |
\kks@chech@maru@onedigit{#1}% |
| 518 |
\rot@or@not@kksym% |
| 519 |
\setlength{\maru@boxwidth@new}{\zw}% |
| 520 |
\settowidth{\maru@var@yokohaba}{#1}% |
| 521 |
\pgfmathsetlength{\maru@boxwidth@inner}{0.87 * \maru@boxwidth@new / sqrt(2)}% |
| 522 |
\leavevmode% |
| 523 |
\ltjghostbeforejachar% |
| 524 |
\hbox to \maru@boxwidth@new{% |
| 525 |
\raisebox{\vertical@adj@maru@new}{% |
| 526 |
\vbox to \maru@boxwidth@new{% |
| 527 |
\vss% |
| 528 |
\hbox to \maru@boxwidth@new{% |
| 529 |
\hss% |
| 530 |
\tikz[baseline=(char.base)]{% |
| 531 |
\node[ |
| 532 |
shape=circle, |
| 533 |
fill=black,%%% |
| 534 |
line width=.04\maru@boxwidth@new, |
| 535 |
minimum size=.9\maru@boxwidth@new, |
| 536 |
draw, |
| 537 |
inner sep=.02\maru@boxwidth@new, |
| 538 |
rotate=\rot@kksym@tateyoko |
| 539 |
] (char){% |
| 540 |
\vbox to \maru@boxwidth@inner{ |
| 541 |
\vss% |
| 542 |
\hbox to \maru@boxwidth@inner{% |
| 543 |
\hss% |
| 544 |
\ifkksdigit@maru@new% |
| 545 |
\shukushou@adj@new@maru@onedigit{\maru@var@yokohaba}{\maru@boxwidth@inner}{\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 546 |
\else% |
| 547 |
\shukushou@adj@new{\maru@var@yokohaba}{\maru@boxwidth@inner}{\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 548 |
\fi% |
| 549 |
\hss% |
| 550 |
}% |
| 551 |
\vss% |
| 552 |
}% |
| 553 |
}; |
| 554 |
}% |
| 555 |
\hss% |
| 556 |
}% |
| 557 |
\vss% |
| 558 |
}% |
| 559 |
}% |
| 560 |
}% |
| 561 |
\ltjghostafterjachar% |
| 562 |
} |
| 563 |
\DeclareRobustCommand{\kuromaru@new@no}[1]{% |
| 564 |
\rot@or@not@kksym% |
| 565 |
\setlength{\maru@boxwidth@new}{\zw}% |
| 566 |
\settowidth{\maru@var@yokohaba}{#1}% |
| 567 |
\settoheight{\maru@var@tate}{#1}% |
| 568 |
\settodepth{\maru@var@fuka}{#1}% |
| 569 |
\pgfmathsetlength{\maru@var@zenkou}{\maru@var@tate + \maru@var@fuka}% |
| 570 |
\pgfmathsetlength{\maru@var@yokohaba@cal}{0.85 * \maru@var@yokohaba}% |
| 571 |
\pgfmathsetlength{\maru@boxwidth@inner}{0.87 * \maru@boxwidth@new / sqrt(2)}% |
| 572 |
\leavevmode% |
| 573 |
\ltjghostbeforejachar% |
| 574 |
\hbox to \maru@boxwidth@new{% |
| 575 |
\raisebox{\vertical@adj@maru@new}{% |
| 576 |
\vbox to \maru@boxwidth@new{% |
| 577 |
\vss% |
| 578 |
\hbox to \maru@boxwidth@new{% |
| 579 |
\hss% |
| 580 |
\tikz[baseline=(char.base)]{% |
| 581 |
\node[ |
| 582 |
shape=circle, |
| 583 |
fill=black,%%% |
| 584 |
line width=.04\maru@boxwidth@new, |
| 585 |
minimum size=.9\maru@boxwidth@new, |
| 586 |
draw, |
| 587 |
inner sep=.02\maru@boxwidth@new, |
| 588 |
rotate=\rot@kksym@tateyoko |
| 589 |
] (char){% |
| 590 |
\vbox to \maru@boxwidth@inner{ |
| 591 |
\vss% |
| 592 |
\hbox to \maru@boxwidth@inner{% |
| 593 |
\hss% |
| 594 |
\shukushou@adj@new@no@maru{\maru@var@zenkou}{\maru@boxwidth@inner}{\maru@var@yokohaba@cal}{% |
| 595 |
\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 596 |
\hss% |
| 597 |
}% |
| 598 |
\vss% |
| 599 |
}% |
| 600 |
}; |
| 601 |
}% |
| 602 |
\hss% |
| 603 |
}% |
| 604 |
\vss% |
| 605 |
}% |
| 606 |
}% |
| 607 |
}% |
| 608 |
\ltjghostafterjachar% |
| 609 |
} |
| 610 |
|
| 611 |
|
| 612 |
\DeclareRobustCommand{\nmaru@new}[1]{% |
| 613 |
\kks@chech@maru@onedigit{#1}% |
| 614 |
\rot@or@not@kksym% |
| 615 |
\setlength{\maru@boxwidth@new}{\zw}% |
| 616 |
\settowidth{\maru@var@yokohaba}{#1}% |
| 617 |
\pgfmathsetlength{\maru@boxwidth@inner}{0.85 * \maru@boxwidth@new / sqrt(2)}% |
| 618 |
\leavevmode% |
| 619 |
\ltjghostbeforejachar% |
| 620 |
\hbox to \maru@boxwidth@new{% |
| 621 |
\raisebox{\vertical@adj@maru@new}{% |
| 622 |
\vbox to \maru@boxwidth@new{% |
| 623 |
\vss% |
| 624 |
\hbox to \maru@boxwidth@new{% |
| 625 |
\hss% |
| 626 |
\tikz[baseline=(char.base)]{% |
| 627 |
\node[ |
| 628 |
shape=circle, |
| 629 |
line width=.03\maru@boxwidth@new, |
| 630 |
minimum size=.88\maru@boxwidth@new, |
| 631 |
draw, double, double distance=.03\zw,%%% |
| 632 |
inner sep=.06\maru@boxwidth@new, |
| 633 |
rotate=\rot@kksym@tateyoko, |
| 634 |
scale=.87 |
| 635 |
] (char){% |
| 636 |
\vbox to \maru@boxwidth@inner{ |
| 637 |
\vss% |
| 638 |
\hbox to \maru@boxwidth@inner{% |
| 639 |
\hss% |
| 640 |
\ifkksdigit@maru@new% |
| 641 |
\shukushou@adj@new@maru@onedigit{\maru@var@yokohaba}{\maru@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 642 |
\else% |
| 643 |
\shukushou@adj@new{\maru@var@yokohaba}{\maru@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 644 |
\fi% |
| 645 |
\hss% |
| 646 |
}% |
| 647 |
\vss% |
| 648 |
}% |
| 649 |
}; |
| 650 |
}% |
| 651 |
\hss% |
| 652 |
}% |
| 653 |
\vss% |
| 654 |
}% |
| 655 |
}% |
| 656 |
}% |
| 657 |
\ltjghostafterjachar% |
| 658 |
} |
| 659 |
\DeclareRobustCommand{\nmaru@new@no}[1]{% |
| 660 |
\rot@or@not@kksym% |
| 661 |
\setlength{\maru@boxwidth@new}{\zw}% |
| 662 |
\settowidth{\maru@var@yokohaba}{#1}% |
| 663 |
\settoheight{\maru@var@tate}{#1}% |
| 664 |
\settodepth{\maru@var@fuka}{#1}% |
| 665 |
\pgfmathsetlength{\maru@var@zenkou}{\maru@var@tate + \maru@var@fuka}% |
| 666 |
\pgfmathsetlength{\maru@var@yokohaba@cal}{0.85 * \maru@var@yokohaba}% |
| 667 |
\pgfmathsetlength{\maru@boxwidth@inner}{0.82 * \maru@boxwidth@new / sqrt(2)}% |
| 668 |
\leavevmode% |
| 669 |
\ltjghostbeforejachar% |
| 670 |
\hbox to \maru@boxwidth@new{% |
| 671 |
\raisebox{\vertical@adj@maru@new}{% |
| 672 |
\vbox to \maru@boxwidth@new{% |
| 673 |
\vss% |
| 674 |
\hbox to \maru@boxwidth@new{% |
| 675 |
\hss% |
| 676 |
\tikz[baseline=(char.base)]{% |
| 677 |
\node[ |
| 678 |
shape=circle, |
| 679 |
line width=.03\maru@boxwidth@new, |
| 680 |
minimum size=.88\maru@boxwidth@new, |
| 681 |
draw, double, double distance=.03\zw,%%% |
| 682 |
inner sep=.06\maru@boxwidth@new, |
| 683 |
rotate=\rot@kksym@tateyoko, |
| 684 |
scale=.9 |
| 685 |
] (char){% |
| 686 |
\vbox to \maru@boxwidth@inner{% |
| 687 |
\vss% |
| 688 |
\hbox to \maru@boxwidth@inner{% |
| 689 |
\hss% |
| 690 |
\shukushou@adj@new@no@maru{\maru@var@zenkou}{\maru@boxwidth@inner}{\maru@var@yokohaba@cal}{\kks@ShrinkedNumber{#1}}% |
| 691 |
\hss% |
| 692 |
}% |
| 693 |
\vss% |
| 694 |
}% |
| 695 |
}; |
| 696 |
}% |
| 697 |
\hss% |
| 698 |
}% |
| 699 |
\vss% |
| 700 |
}% |
| 701 |
}% |
| 702 |
}% |
| 703 |
\ltjghostafterjachar% |
| 704 |
} |
| 705 |
|
| 706 |
|
| 707 |
\newlength{\jegg@boxwidth@inner@cal}%%% |
| 708 |
\DeclareRobustCommand{\jegg@new}[1]{% |
| 709 |
\kks@chech@maru@onedigit{#1}% |
| 710 |
\rot@or@not@kksym% |
| 711 |
\setlength{\maru@boxwidth@new}{\zw}% |
| 712 |
\settowidth{\maru@var@yokohaba}{#1}% |
| 713 |
\pgfmathsetlength{\maru@boxwidth@inner}{0.87 * \maru@boxwidth@new / sqrt(2)}% |
| 714 |
\pgfmathsetlength{\jegg@boxwidth@inner@cal}{0.77 * \maru@boxwidth@inner}%%% |
| 715 |
\leavevmode% |
| 716 |
\ltjghostbeforejachar% |
| 717 |
\hbox to \maru@boxwidth@new{% |
| 718 |
\raisebox{\vertical@adj@maru@new}{% |
| 719 |
\vbox to \maru@boxwidth@new{% |
| 720 |
\vss% |
| 721 |
\hbox to \maru@boxwidth@new{% |
| 722 |
\hss% |
| 723 |
\tikz[baseline=(char.base)]{% |
| 724 |
\node[ |
| 725 |
shape=ellipse, |
| 726 |
line width=.04\maru@boxwidth@new, |
| 727 |
minimum height=.9\maru@boxwidth@new, |
| 728 |
minimum width=.7\maru@boxwidth@new, |
| 729 |
draw, |
| 730 |
inner sep=0\maru@boxwidth@new, |
| 731 |
rotate=\rot@kksym@tateyoko |
| 732 |
] (char){% |
| 733 |
\vbox to \maru@boxwidth@inner{ |
| 734 |
\vss% |
| 735 |
\hbox to \jegg@boxwidth@inner@cal{% |
| 736 |
\hss% |
| 737 |
\ifkksdigit@maru@new% |
| 738 |
\shukushou@adj@new@maru@onedigit{\maru@var@yokohaba}{\jegg@boxwidth@inner@cal}{\kks@ShrinkedNumber{#1}}% |
| 739 |
\else% |
| 740 |
\shukushou@adj@new{\maru@var@yokohaba}{\jegg@boxwidth@inner@cal}{\kks@ShrinkedNumber{#1}}% |
| 741 |
\fi% |
| 742 |
\hss% |
| 743 |
}% |
| 744 |
\vss% |
| 745 |
}% |
| 746 |
}; |
| 747 |
}% |
| 748 |
\hss% |
| 749 |
}% |
| 750 |
\vss% |
| 751 |
}% |
| 752 |
}% |
| 753 |
}% |
| 754 |
\ltjghostafterjachar% |
| 755 |
} |
| 756 |
\DeclareRobustCommand{\jegg@new@black}[1]{% |
| 757 |
\rot@or@not@kksym% |
| 758 |
\setlength{\maru@boxwidth@new}{\zw}% |
| 759 |
\settowidth{\maru@var@yokohaba}{#1}% |
| 760 |
\pgfmathsetlength{\maru@boxwidth@inner}{0.87 * \maru@boxwidth@new / sqrt(2)}% |
| 761 |
\pgfmathsetlength{\jegg@boxwidth@inner@cal}{0.77 * \maru@boxwidth@inner}%%% |
| 762 |
\leavevmode% |
| 763 |
\ltjghostbeforejachar% |
| 764 |
\hbox to \maru@boxwidth@new{% |
| 765 |
\raisebox{\vertical@adj@maru@new}{% |
| 766 |
\vbox to \maru@boxwidth@new{% |
| 767 |
\vss% |
| 768 |
\hbox to \maru@boxwidth@new{% |
| 769 |
\hss% |
| 770 |
\tikz[baseline=(char.base)]{% |
| 771 |
\node[ |
| 772 |
shape=ellipse, |
| 773 |
line width=.04\maru@boxwidth@new, |
| 774 |
minimum height=.9\maru@boxwidth@new, |
| 775 |
minimum width=.7\maru@boxwidth@new, |
| 776 |
draw, |
| 777 |
fill=black!70, |
| 778 |
inner sep=0\maru@boxwidth@new, |
| 779 |
rotate=\rot@kksym@tateyoko |
| 780 |
] (char){% |
| 781 |
\vbox to \maru@boxwidth@inner{ |
| 782 |
\vss% |
| 783 |
\hbox to \jegg@boxwidth@inner@cal{% |
| 784 |
\hss% |
| 785 |
\ifkksdigit@maru@new% |
| 786 |
\shukushou@adj@new@maru@onedigit{\maru@var@yokohaba}{\jegg@boxwidth@inner@cal}{\kks@ShrinkedNumber{#1}}% |
| 787 |
\else% |
| 788 |
\shukushou@adj@new{\maru@var@yokohaba}{\jegg@boxwidth@inner@cal}{\kks@ShrinkedNumber{#1}}% |
| 789 |
\fi% |
| 790 |
\hss% |
| 791 |
}% |
| 792 |
\vss% |
| 793 |
}% |
| 794 |
}; |
| 795 |
}% |
| 796 |
\hss% |
| 797 |
}% |
| 798 |
\vss% |
| 799 |
}% |
| 800 |
}% |
| 801 |
}% |
| 802 |
\ltjghostafterjachar% |
| 803 |
} |
| 804 |
%%% |
| 805 |
|
| 806 |
|
| 807 |
% \seihou |
| 808 |
\NewDocumentCommand{\vertical@adj@seihou@new}{}{% |
| 809 |
\ifnum\ltjgetparameter{direction}=3 |
| 810 |
-.5\zw% |
| 811 |
\else |
| 812 |
-.12\zw% |
| 813 |
\fi |
| 814 |
} |
| 815 |
\newlength{\seihou@boxwidth@new} |
| 816 |
\newlength{\seihou@boxwidth@inner} |
| 817 |
\newlength{\seihou@var@yokohaba@cal} |
| 818 |
\newlength{\seihou@var@yokohaba} |
| 819 |
\newlength{\seihou@var@tate} |
| 820 |
\newlength{\seihou@var@fuka} |
| 821 |
\newlength{\seihou@var@zenkou} |
| 822 |
|
| 823 |
\NewDocumentCommand{\shukushou@adj@new@no@seihou}{ m m m m }{% |
| 824 |
\ifdim #1 < #2% |
| 825 |
\ifdim #3 > #2% |
| 826 |
\resizebox*{#3}{!}{#4}% |
| 827 |
\else% |
| 828 |
\scalebox{.9}{#4}% |
| 829 |
\fi% |
| 830 |
\else% |
| 831 |
\resizebox*{!}{#2}{#4}% |
| 832 |
\fi% |
| 833 |
} |
| 834 |
|
| 835 |
\DeclareRobustCommand{\seihou@new}[1]{% |
| 836 |
\kks@chech@maru@onedigit{#1}% |
| 837 |
\rot@or@not@kksym% |
| 838 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 839 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 840 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.68 * \seihou@boxwidth@new}% |
| 841 |
\leavevmode% |
| 842 |
\ltjghostbeforejachar% |
| 843 |
\hbox to \seihou@boxwidth@new{% |
| 844 |
\raisebox{\vertical@adj@maru@new}{% |
| 845 |
\vbox to \seihou@boxwidth@new{% |
| 846 |
\vss% |
| 847 |
\hbox to \seihou@boxwidth@new{% |
| 848 |
\hss% |
| 849 |
\tikz[baseline=(char.base)]{% |
| 850 |
\node[ |
| 851 |
line width=.04\seihou@boxwidth@new, |
| 852 |
minimum size=.85\seihou@boxwidth@new, |
| 853 |
draw, |
| 854 |
inner sep=.1\seihou@boxwidth@new, |
| 855 |
rotate=\rot@kksym@tateyoko |
| 856 |
] (char){% |
| 857 |
\vbox to \seihou@boxwidth@inner{ |
| 858 |
\vss% |
| 859 |
\hbox to \seihou@boxwidth@inner{% |
| 860 |
\hss% |
| 861 |
\ifkksdigit@maru@new% |
| 862 |
\shukushou@adj@new@maru@onedigit{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 863 |
\else% |
| 864 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 865 |
\fi% |
| 866 |
\hss% |
| 867 |
}% |
| 868 |
\vss% |
| 869 |
}% |
| 870 |
}; |
| 871 |
}% |
| 872 |
\hss% |
| 873 |
}% |
| 874 |
\vss% |
| 875 |
}% |
| 876 |
}% |
| 877 |
}% |
| 878 |
\ltjghostafterjachar% |
| 879 |
} |
| 880 |
\DeclareRobustCommand{\seihou@new@no}[1]{% |
| 881 |
\rot@or@not@kksym% |
| 882 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 883 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 884 |
\settoheight{\seihou@var@tate}{#1}% |
| 885 |
\settodepth{\seihou@var@fuka}{#1}% |
| 886 |
\pgfmathsetlength{\seihou@var@zenkou}{\seihou@var@tate + \seihou@var@fuka}% |
| 887 |
\pgfmathsetlength{\seihou@var@yokohaba@cal}{0.85 * \seihou@var@yokohaba}% |
| 888 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.68 * \seihou@boxwidth@new}% |
| 889 |
\leavevmode% |
| 890 |
\ltjghostbeforejachar% |
| 891 |
\hbox to \seihou@boxwidth@new{% |
| 892 |
\raisebox{\vertical@adj@maru@new}{% |
| 893 |
\vbox to \seihou@boxwidth@new{% |
| 894 |
\vss% |
| 895 |
\hbox to \seihou@boxwidth@new{% |
| 896 |
\hss% |
| 897 |
\tikz[baseline=(char.base)]{% |
| 898 |
\node[ |
| 899 |
line width=.04\seihou@boxwidth@new, |
| 900 |
minimum size=.85\seihou@boxwidth@new, |
| 901 |
draw, |
| 902 |
inner sep=.1\seihou@boxwidth@new, |
| 903 |
rotate=\rot@kksym@tateyoko |
| 904 |
] (char){% |
| 905 |
\vbox to \seihou@boxwidth@inner{ |
| 906 |
\vss% |
| 907 |
\hbox to \seihou@boxwidth@inner{% |
| 908 |
\hss% |
| 909 |
\shukushou@adj@new@no@seihou{\seihou@var@zenkou}{\seihou@boxwidth@inner}{\seihou@var@yokohaba@cal}{\kks@ShrinkedNumber{#1}}% |
| 910 |
\hss% |
| 911 |
}% |
| 912 |
\vss% |
| 913 |
}% |
| 914 |
}; |
| 915 |
}% |
| 916 |
\hss% |
| 917 |
}% |
| 918 |
\vss% |
| 919 |
}% |
| 920 |
}% |
| 921 |
}% |
| 922 |
\ltjghostafterjachar% |
| 923 |
} |
| 924 |
|
| 925 |
|
| 926 |
\DeclareRobustCommand{\kuroseihou@new}[1]{% |
| 927 |
\kks@chech@maru@onedigit{#1}% |
| 928 |
\rot@or@not@kksym% |
| 929 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 930 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 931 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.68 * \seihou@boxwidth@new}% |
| 932 |
\leavevmode% |
| 933 |
\ltjghostbeforejachar% |
| 934 |
\hbox to \seihou@boxwidth@new{% |
| 935 |
\raisebox{\vertical@adj@maru@new}{% |
| 936 |
\vbox to \seihou@boxwidth@new{% |
| 937 |
\vss% |
| 938 |
\hbox to \seihou@boxwidth@new{% |
| 939 |
\hss% |
| 940 |
\tikz[baseline=(char.base)]{% |
| 941 |
\node[ |
| 942 |
line width=.04\seihou@boxwidth@new, |
| 943 |
minimum size=.85\seihou@boxwidth@new, |
| 944 |
draw, |
| 945 |
fill=black,%%% |
| 946 |
inner sep=.1\seihou@boxwidth@new, |
| 947 |
rotate=\rot@kksym@tateyoko |
| 948 |
] (char){% |
| 949 |
\vbox to \seihou@boxwidth@inner{ |
| 950 |
\vss% |
| 951 |
\hbox to \seihou@boxwidth@inner{% |
| 952 |
\hss% |
| 953 |
\ifkksdigit@maru@new% |
| 954 |
\shukushou@adj@new@maru@onedigit{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 955 |
\else% |
| 956 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 957 |
\fi% |
| 958 |
\hss% |
| 959 |
}% |
| 960 |
\vss% |
| 961 |
}% |
| 962 |
}; |
| 963 |
}% |
| 964 |
\hss% |
| 965 |
}% |
| 966 |
\vss% |
| 967 |
}% |
| 968 |
}% |
| 969 |
}% |
| 970 |
\ltjghostafterjachar% |
| 971 |
} |
| 972 |
\DeclareRobustCommand{\kuroseihou@new@no}[1]{% |
| 973 |
\rot@or@not@kksym% |
| 974 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 975 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 976 |
\settoheight{\seihou@var@tate}{#1}% |
| 977 |
\settodepth{\seihou@var@fuka}{#1}% |
| 978 |
\pgfmathsetlength{\seihou@var@zenkou}{\seihou@var@tate + \seihou@var@fuka}% |
| 979 |
\pgfmathsetlength{\seihou@var@yokohaba@cal}{0.85 * \seihou@var@yokohaba}% |
| 980 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.68 * \seihou@boxwidth@new}% |
| 981 |
\leavevmode% |
| 982 |
\ltjghostbeforejachar% |
| 983 |
\hbox to \seihou@boxwidth@new{% |
| 984 |
\raisebox{\vertical@adj@maru@new}{% |
| 985 |
\vbox to \seihou@boxwidth@new{% |
| 986 |
\vss% |
| 987 |
\hbox to \seihou@boxwidth@new{% |
| 988 |
\hss% |
| 989 |
\tikz[baseline=(char.base)]{% |
| 990 |
\node[ |
| 991 |
line width=.04\seihou@boxwidth@new, |
| 992 |
minimum size=.85\seihou@boxwidth@new, |
| 993 |
draw, |
| 994 |
fill=black,%%% |
| 995 |
inner sep=.1\seihou@boxwidth@new, |
| 996 |
rotate=\rot@kksym@tateyoko |
| 997 |
] (char){% |
| 998 |
\vbox to \seihou@boxwidth@inner{ |
| 999 |
\vss% |
| 1000 |
\hbox to \seihou@boxwidth@inner{% |
| 1001 |
\hss% |
| 1002 |
\shukushou@adj@new@no@seihou{\seihou@var@zenkou}{\seihou@boxwidth@inner}{\seihou@var@yokohaba@cal}{% |
| 1003 |
\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 1004 |
\hss% |
| 1005 |
}% |
| 1006 |
\vss% |
| 1007 |
}% |
| 1008 |
}; |
| 1009 |
}% |
| 1010 |
\hss% |
| 1011 |
}% |
| 1012 |
\vss% |
| 1013 |
}% |
| 1014 |
}% |
| 1015 |
}% |
| 1016 |
\ltjghostafterjachar% |
| 1017 |
} |
| 1018 |
|
| 1019 |
|
| 1020 |
\DeclareRobustCommand{\seimaru@new}[1]{% |
| 1021 |
\kks@chech@maru@onedigit{#1}% |
| 1022 |
\rot@or@not@kksym% |
| 1023 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1024 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1025 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.68 * \seihou@boxwidth@new}% |
| 1026 |
\leavevmode% |
| 1027 |
\ltjghostbeforejachar% |
| 1028 |
\hbox to \seihou@boxwidth@new{% |
| 1029 |
\raisebox{\vertical@adj@maru@new}{% |
| 1030 |
\vbox to \seihou@boxwidth@new{% |
| 1031 |
\vss% |
| 1032 |
\hbox to \seihou@boxwidth@new{% |
| 1033 |
\hss% |
| 1034 |
\tikz[baseline=(char.base)]{% |
| 1035 |
\node[ |
| 1036 |
line width=.04\seihou@boxwidth@new, |
| 1037 |
minimum size=.85\seihou@boxwidth@new, |
| 1038 |
draw, |
| 1039 |
rounded corners=.13\zw,%%% |
| 1040 |
inner sep=.1\seihou@boxwidth@new, |
| 1041 |
rotate=\rot@kksym@tateyoko |
| 1042 |
] (char){% |
| 1043 |
\vbox to \seihou@boxwidth@inner{ |
| 1044 |
\vss% |
| 1045 |
\hbox to \seihou@boxwidth@inner{% |
| 1046 |
\hss% |
| 1047 |
\ifkksdigit@maru@new% |
| 1048 |
\shukushou@adj@new@maru@onedigit{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 1049 |
\else% |
| 1050 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 1051 |
\fi% |
| 1052 |
\hss% |
| 1053 |
}% |
| 1054 |
\vss% |
| 1055 |
}% |
| 1056 |
}; |
| 1057 |
}% |
| 1058 |
\hss% |
| 1059 |
}% |
| 1060 |
\vss% |
| 1061 |
}% |
| 1062 |
}% |
| 1063 |
}% |
| 1064 |
\ltjghostafterjachar% |
| 1065 |
} |
| 1066 |
\DeclareRobustCommand{\seimaru@new@no}[1]{% |
| 1067 |
\rot@or@not@kksym% |
| 1068 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1069 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1070 |
\settoheight{\seihou@var@tate}{#1}% |
| 1071 |
\settodepth{\seihou@var@fuka}{#1}% |
| 1072 |
\pgfmathsetlength{\seihou@var@zenkou}{\seihou@var@tate + \seihou@var@fuka}% |
| 1073 |
\pgfmathsetlength{\seihou@var@yokohaba@cal}{0.85 * \seihou@var@yokohaba}% |
| 1074 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.68 * \seihou@boxwidth@new}% |
| 1075 |
\leavevmode% |
| 1076 |
\ltjghostbeforejachar% |
| 1077 |
\hbox to \seihou@boxwidth@new{% |
| 1078 |
\raisebox{\vertical@adj@maru@new}{% |
| 1079 |
\vbox to \seihou@boxwidth@new{% |
| 1080 |
\vss% |
| 1081 |
\hbox to \seihou@boxwidth@new{% |
| 1082 |
\hss% |
| 1083 |
\tikz[baseline=(char.base)]{% |
| 1084 |
\node[ |
| 1085 |
line width=.04\seihou@boxwidth@new, |
| 1086 |
minimum size=.85\seihou@boxwidth@new, |
| 1087 |
draw, |
| 1088 |
rounded corners=.13\zw,%%% |
| 1089 |
inner sep=.1\seihou@boxwidth@new, |
| 1090 |
rotate=\rot@kksym@tateyoko |
| 1091 |
] (char){% |
| 1092 |
\vbox to \seihou@boxwidth@inner{ |
| 1093 |
\vss% |
| 1094 |
\hbox to \seihou@boxwidth@inner{% |
| 1095 |
\hss% |
| 1096 |
\shukushou@adj@new@no@seihou{\seihou@var@zenkou}{\seihou@boxwidth@inner}{\seihou@var@yokohaba@cal}{\kks@ShrinkedNumber{#1}}% |
| 1097 |
\hss% |
| 1098 |
}% |
| 1099 |
\vss% |
| 1100 |
}% |
| 1101 |
}; |
| 1102 |
}% |
| 1103 |
\hss% |
| 1104 |
}% |
| 1105 |
\vss% |
| 1106 |
}% |
| 1107 |
}% |
| 1108 |
}% |
| 1109 |
\ltjghostafterjachar% |
| 1110 |
} |
| 1111 |
|
| 1112 |
|
| 1113 |
\DeclareRobustCommand{\kuroseimaru@new}[1]{% |
| 1114 |
\kks@chech@maru@onedigit{#1}% |
| 1115 |
\rot@or@not@kksym% |
| 1116 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1117 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1118 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.68 * \seihou@boxwidth@new}% |
| 1119 |
\leavevmode% |
| 1120 |
\ltjghostbeforejachar% |
| 1121 |
\hbox to \seihou@boxwidth@new{% |
| 1122 |
\raisebox{\vertical@adj@maru@new}{% |
| 1123 |
\vbox to \seihou@boxwidth@new{% |
| 1124 |
\vss% |
| 1125 |
\hbox to \seihou@boxwidth@new{% |
| 1126 |
\hss% |
| 1127 |
\tikz[baseline=(char.base)]{% |
| 1128 |
\node[ |
| 1129 |
line width=.04\seihou@boxwidth@new, |
| 1130 |
minimum size=.85\seihou@boxwidth@new, |
| 1131 |
draw, |
| 1132 |
fill=black,%%% |
| 1133 |
rounded corners=.13\zw,%%% |
| 1134 |
inner sep=.1\seihou@boxwidth@new, |
| 1135 |
rotate=\rot@kksym@tateyoko |
| 1136 |
] (char){% |
| 1137 |
\vbox to \seihou@boxwidth@inner{ |
| 1138 |
\vss% |
| 1139 |
\hbox to \seihou@boxwidth@inner{% |
| 1140 |
\hss% |
| 1141 |
\ifkksdigit@maru@new% |
| 1142 |
\shukushou@adj@new@maru@onedigit{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 1143 |
\else% |
| 1144 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 1145 |
\fi% |
| 1146 |
\hss% |
| 1147 |
}% |
| 1148 |
\vss% |
| 1149 |
}% |
| 1150 |
}; |
| 1151 |
}% |
| 1152 |
\hss% |
| 1153 |
}% |
| 1154 |
\vss% |
| 1155 |
}% |
| 1156 |
}% |
| 1157 |
}% |
| 1158 |
\ltjghostafterjachar% |
| 1159 |
} |
| 1160 |
\DeclareRobustCommand{\kuroseimaru@new@no}[1]{% |
| 1161 |
\rot@or@not@kksym% |
| 1162 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1163 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1164 |
\settoheight{\seihou@var@tate}{#1}% |
| 1165 |
\settodepth{\seihou@var@fuka}{#1}% |
| 1166 |
\pgfmathsetlength{\seihou@var@zenkou}{\seihou@var@tate + \seihou@var@fuka}% |
| 1167 |
\pgfmathsetlength{\seihou@var@yokohaba@cal}{0.85 * \seihou@var@yokohaba}% |
| 1168 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.68 * \seihou@boxwidth@new}% |
| 1169 |
\leavevmode% |
| 1170 |
\ltjghostbeforejachar% |
| 1171 |
\hbox to \seihou@boxwidth@new{% |
| 1172 |
\raisebox{\vertical@adj@maru@new}{% |
| 1173 |
\vbox to \seihou@boxwidth@new{% |
| 1174 |
\vss% |
| 1175 |
\hbox to \seihou@boxwidth@new{% |
| 1176 |
\hss% |
| 1177 |
\tikz[baseline=(char.base)]{% |
| 1178 |
\node[ |
| 1179 |
line width=.04\seihou@boxwidth@new, |
| 1180 |
minimum size=.85\seihou@boxwidth@new, |
| 1181 |
draw, |
| 1182 |
fill=black,%%% |
| 1183 |
rounded corners=.13\zw,%%% |
| 1184 |
inner sep=.1\seihou@boxwidth@new, |
| 1185 |
rotate=\rot@kksym@tateyoko |
| 1186 |
] (char){% |
| 1187 |
\vbox to \seihou@boxwidth@inner{ |
| 1188 |
\vss% |
| 1189 |
\hbox to \seihou@boxwidth@inner{% |
| 1190 |
\hss% |
| 1191 |
\shukushou@adj@new@no@seihou{\seihou@var@zenkou}{\seihou@boxwidth@inner}{\seihou@var@yokohaba@cal}{% |
| 1192 |
\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 1193 |
\hss% |
| 1194 |
}% |
| 1195 |
\vss% |
| 1196 |
}% |
| 1197 |
}; |
| 1198 |
}% |
| 1199 |
\hss% |
| 1200 |
}% |
| 1201 |
\vss% |
| 1202 |
}% |
| 1203 |
}% |
| 1204 |
}% |
| 1205 |
\ltjghostafterjachar% |
| 1206 |
} |
| 1207 |
|
| 1208 |
|
| 1209 |
\DeclareRobustCommand{\hishi@new}[1]{% |
| 1210 |
\rot@or@not@kksym% |
| 1211 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1212 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1213 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.85 * \seihou@boxwidth@new / 2}% |
| 1214 |
\leavevmode% |
| 1215 |
\ltjghostbeforejachar% |
| 1216 |
\hbox to \seihou@boxwidth@new{% |
| 1217 |
\raisebox{\vertical@adj@maru@new}{% |
| 1218 |
\vbox to \seihou@boxwidth@new{% |
| 1219 |
\vss% |
| 1220 |
\hbox to \seihou@boxwidth@new{% |
| 1221 |
\hss% |
| 1222 |
\tikz[baseline=(char.base)]{% |
| 1223 |
\node[ |
| 1224 |
line width=.04\seihou@boxwidth@new, |
| 1225 |
minimum size=.5\seihou@boxwidth@new, |
| 1226 |
draw, |
| 1227 |
shape=diamond, |
| 1228 |
inner sep=.03\seihou@boxwidth@new, |
| 1229 |
rotate=\rot@kksym@tateyoko |
| 1230 |
] (char){% |
| 1231 |
\vbox to \seihou@boxwidth@inner{ |
| 1232 |
\vss% |
| 1233 |
\hbox to \seihou@boxwidth@inner{% |
| 1234 |
\hss% |
| 1235 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 1236 |
\hss% |
| 1237 |
}% |
| 1238 |
\vss% |
| 1239 |
}% |
| 1240 |
}; |
| 1241 |
}% |
| 1242 |
\hss% |
| 1243 |
}% |
| 1244 |
\vss% |
| 1245 |
}% |
| 1246 |
}% |
| 1247 |
}% |
| 1248 |
\ltjghostafterjachar% |
| 1249 |
} |
| 1250 |
\DeclareRobustCommand{\hishi@new@no}[1]{% |
| 1251 |
\rot@or@not@kksym% |
| 1252 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1253 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1254 |
\settoheight{\seihou@var@tate}{#1}% |
| 1255 |
\settodepth{\seihou@var@fuka}{#1}% |
| 1256 |
\pgfmathsetlength{\seihou@var@zenkou}{(\seihou@var@tate + \seihou@var@fuka)*99}% |
| 1257 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.85 * \seihou@boxwidth@new / 2}% |
| 1258 |
\leavevmode% |
| 1259 |
\ltjghostbeforejachar% |
| 1260 |
\hbox to \seihou@boxwidth@new{% |
| 1261 |
\raisebox{\vertical@adj@maru@new}{% |
| 1262 |
\vbox to \seihou@boxwidth@new{% |
| 1263 |
\vss% |
| 1264 |
\hbox to \seihou@boxwidth@new{% |
| 1265 |
\hss% |
| 1266 |
\tikz[baseline=(char.base)]{% |
| 1267 |
\node[ |
| 1268 |
line width=.04\seihou@boxwidth@new, |
| 1269 |
minimum size=.5\seihou@boxwidth@new, |
| 1270 |
draw, |
| 1271 |
shape=diamond, |
| 1272 |
inner sep=.03\seihou@boxwidth@new, |
| 1273 |
rotate=\rot@kksym@tateyoko |
| 1274 |
] (char){% |
| 1275 |
\vbox to \seihou@boxwidth@inner{ |
| 1276 |
\vss% |
| 1277 |
\hbox to \seihou@boxwidth@inner{% |
| 1278 |
\hss% |
| 1279 |
% これだけ他のやつと違うので注意! |
| 1280 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 1281 |
\hss% |
| 1282 |
}% |
| 1283 |
\vss% |
| 1284 |
}% |
| 1285 |
}; |
| 1286 |
}% |
| 1287 |
\hss% |
| 1288 |
}% |
| 1289 |
\vss% |
| 1290 |
}% |
| 1291 |
}% |
| 1292 |
}% |
| 1293 |
\ltjghostafterjachar% |
| 1294 |
} |
| 1295 |
|
| 1296 |
|
| 1297 |
\DeclareRobustCommand{\maruhishi@new}[1]{% |
| 1298 |
\rot@or@not@kksym% |
| 1299 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1300 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1301 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.85 * \seihou@boxwidth@new / 2}% |
| 1302 |
\leavevmode% |
| 1303 |
\ltjghostbeforejachar% |
| 1304 |
\hbox to \seihou@boxwidth@new{% |
| 1305 |
\raisebox{\vertical@adj@maru@new}{% |
| 1306 |
\vbox to \seihou@boxwidth@new{% |
| 1307 |
\vss% |
| 1308 |
\hbox to \seihou@boxwidth@new{% |
| 1309 |
\hss% |
| 1310 |
\tikz[baseline=(char.base)]{% |
| 1311 |
\node[ |
| 1312 |
line width=.04\seihou@boxwidth@new, |
| 1313 |
minimum size=.5\seihou@boxwidth@new, |
| 1314 |
draw, |
| 1315 |
rounded corners=.06\zw,%%% |
| 1316 |
shape=diamond, |
| 1317 |
inner sep=.03\seihou@boxwidth@new, |
| 1318 |
rotate=\rot@kksym@tateyoko |
| 1319 |
] (char){% |
| 1320 |
\vbox to \seihou@boxwidth@inner{ |
| 1321 |
\vss% |
| 1322 |
\hbox to \seihou@boxwidth@inner{% |
| 1323 |
\hss% |
| 1324 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 1325 |
\hss% |
| 1326 |
}% |
| 1327 |
\vss% |
| 1328 |
}% |
| 1329 |
}; |
| 1330 |
}% |
| 1331 |
\hss% |
| 1332 |
}% |
| 1333 |
\vss% |
| 1334 |
}% |
| 1335 |
}% |
| 1336 |
}% |
| 1337 |
\ltjghostafterjachar% |
| 1338 |
} |
| 1339 |
\DeclareRobustCommand{\maruhishi@new@no}[1]{% |
| 1340 |
\rot@or@not@kksym% |
| 1341 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1342 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1343 |
\settoheight{\seihou@var@tate}{#1}% |
| 1344 |
\settodepth{\seihou@var@fuka}{#1}% |
| 1345 |
\pgfmathsetlength{\seihou@var@zenkou}{(\seihou@var@tate + \seihou@var@fuka)*99}% |
| 1346 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.85 * \seihou@boxwidth@new / 2}% |
| 1347 |
\leavevmode% |
| 1348 |
\ltjghostbeforejachar% |
| 1349 |
\hbox to \seihou@boxwidth@new{% |
| 1350 |
\raisebox{\vertical@adj@maru@new}{% |
| 1351 |
\vbox to \seihou@boxwidth@new{% |
| 1352 |
\vss% |
| 1353 |
\hbox to \seihou@boxwidth@new{% |
| 1354 |
\hss% |
| 1355 |
\tikz[baseline=(char.base)]{% |
| 1356 |
\node[ |
| 1357 |
line width=.04\seihou@boxwidth@new, |
| 1358 |
minimum size=.5\seihou@boxwidth@new, |
| 1359 |
draw, |
| 1360 |
rounded corners=.06\zw,%%% |
| 1361 |
shape=diamond, |
| 1362 |
inner sep=.03\seihou@boxwidth@new, |
| 1363 |
rotate=\rot@kksym@tateyoko |
| 1364 |
] (char){% |
| 1365 |
\vbox to \seihou@boxwidth@inner{ |
| 1366 |
\vss% |
| 1367 |
\hbox to \seihou@boxwidth@inner{% |
| 1368 |
\hss% |
| 1369 |
% これだけ他のやつと違うので注意! |
| 1370 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{\kks@ShrinkedNumber{#1}}% |
| 1371 |
\hss% |
| 1372 |
}% |
| 1373 |
\vss% |
| 1374 |
}% |
| 1375 |
}; |
| 1376 |
}% |
| 1377 |
\hss% |
| 1378 |
}% |
| 1379 |
\vss% |
| 1380 |
}% |
| 1381 |
}% |
| 1382 |
}% |
| 1383 |
\ltjghostafterjachar% |
| 1384 |
} |
| 1385 |
|
| 1386 |
|
| 1387 |
\DeclareRobustCommand{\kurohishi@new}[1]{% |
| 1388 |
\rot@or@not@kksym% |
| 1389 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1390 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1391 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.85 * \seihou@boxwidth@new / 2}% |
| 1392 |
\leavevmode% |
| 1393 |
\ltjghostbeforejachar% |
| 1394 |
\hbox to \seihou@boxwidth@new{% |
| 1395 |
\raisebox{\vertical@adj@maru@new}{% |
| 1396 |
\vbox to \seihou@boxwidth@new{% |
| 1397 |
\vss% |
| 1398 |
\hbox to \seihou@boxwidth@new{% |
| 1399 |
\hss% |
| 1400 |
\tikz[baseline=(char.base)]{% |
| 1401 |
\node[ |
| 1402 |
line width=.04\seihou@boxwidth@new, |
| 1403 |
minimum size=.5\seihou@boxwidth@new, |
| 1404 |
draw, |
| 1405 |
fill=black,%%% |
| 1406 |
shape=diamond, |
| 1407 |
inner sep=.03\seihou@boxwidth@new, |
| 1408 |
rotate=\rot@kksym@tateyoko |
| 1409 |
] (char){% |
| 1410 |
\vbox to \seihou@boxwidth@inner{ |
| 1411 |
\vss% |
| 1412 |
\hbox to \seihou@boxwidth@inner{% |
| 1413 |
\hss% |
| 1414 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{% |
| 1415 |
\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 1416 |
\hss% |
| 1417 |
}% |
| 1418 |
\vss% |
| 1419 |
}% |
| 1420 |
}; |
| 1421 |
}% |
| 1422 |
\hss% |
| 1423 |
}% |
| 1424 |
\vss% |
| 1425 |
}% |
| 1426 |
}% |
| 1427 |
}% |
| 1428 |
\ltjghostafterjachar% |
| 1429 |
} |
| 1430 |
\DeclareRobustCommand{\kurohishi@new@no}[1]{% |
| 1431 |
\rot@or@not@kksym% |
| 1432 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1433 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1434 |
\settoheight{\seihou@var@tate}{#1}% |
| 1435 |
\settodepth{\seihou@var@fuka}{#1}% |
| 1436 |
\pgfmathsetlength{\seihou@var@zenkou}{(\seihou@var@tate + \seihou@var@fuka)*99}% |
| 1437 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.85 * \seihou@boxwidth@new / 2}% |
| 1438 |
\leavevmode% |
| 1439 |
\ltjghostbeforejachar% |
| 1440 |
\hbox to \seihou@boxwidth@new{% |
| 1441 |
\raisebox{\vertical@adj@maru@new}{% |
| 1442 |
\vbox to \seihou@boxwidth@new{% |
| 1443 |
\vss% |
| 1444 |
\hbox to \seihou@boxwidth@new{% |
| 1445 |
\hss% |
| 1446 |
\tikz[baseline=(char.base)]{% |
| 1447 |
\node[ |
| 1448 |
line width=.04\seihou@boxwidth@new, |
| 1449 |
minimum size=.5\seihou@boxwidth@new, |
| 1450 |
draw, |
| 1451 |
fill=black,%%% |
| 1452 |
shape=diamond, |
| 1453 |
inner sep=.03\seihou@boxwidth@new, |
| 1454 |
rotate=\rot@kksym@tateyoko |
| 1455 |
] (char){% |
| 1456 |
\vbox to \seihou@boxwidth@inner{ |
| 1457 |
\vss% |
| 1458 |
\hbox to \seihou@boxwidth@inner{% |
| 1459 |
\hss% |
| 1460 |
% これだけ他のやつと違うので注意! |
| 1461 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{% |
| 1462 |
\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 1463 |
\hss% |
| 1464 |
}% |
| 1465 |
\vss% |
| 1466 |
}% |
| 1467 |
}; |
| 1468 |
}% |
| 1469 |
\hss% |
| 1470 |
}% |
| 1471 |
\vss% |
| 1472 |
}% |
| 1473 |
}% |
| 1474 |
}% |
| 1475 |
\ltjghostafterjachar% |
| 1476 |
} |
| 1477 |
|
| 1478 |
|
| 1479 |
\DeclareRobustCommand{\kuromaruhishi@new}[1]{% |
| 1480 |
\rot@or@not@kksym% |
| 1481 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1482 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1483 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.85 * \seihou@boxwidth@new / 2}% |
| 1484 |
\leavevmode% |
| 1485 |
\ltjghostbeforejachar% |
| 1486 |
\hbox to \seihou@boxwidth@new{% |
| 1487 |
\raisebox{\vertical@adj@maru@new}{% |
| 1488 |
\vbox to \seihou@boxwidth@new{% |
| 1489 |
\vss% |
| 1490 |
\hbox to \seihou@boxwidth@new{% |
| 1491 |
\hss% |
| 1492 |
\tikz[baseline=(char.base)]{% |
| 1493 |
\node[ |
| 1494 |
line width=.04\seihou@boxwidth@new, |
| 1495 |
minimum size=.5\seihou@boxwidth@new, |
| 1496 |
draw, |
| 1497 |
fill=black,%%% |
| 1498 |
rounded corners=.06\zw,%%% |
| 1499 |
shape=diamond, |
| 1500 |
inner sep=.03\seihou@boxwidth@new, |
| 1501 |
rotate=\rot@kksym@tateyoko |
| 1502 |
] (char){% |
| 1503 |
\vbox to \seihou@boxwidth@inner{% |
| 1504 |
\vss% |
| 1505 |
\hbox to \seihou@boxwidth@inner{% |
| 1506 |
\hss% |
| 1507 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{% |
| 1508 |
\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 1509 |
\hss% |
| 1510 |
}% |
| 1511 |
\vss% |
| 1512 |
}% |
| 1513 |
}; |
| 1514 |
}% |
| 1515 |
\hss% |
| 1516 |
}% |
| 1517 |
\vss% |
| 1518 |
}% |
| 1519 |
}% |
| 1520 |
}% |
| 1521 |
\ltjghostafterjachar% |
| 1522 |
} |
| 1523 |
\DeclareRobustCommand{\kuromaruhishi@new@no}[1]{% |
| 1524 |
\rot@or@not@kksym% |
| 1525 |
\setlength{\seihou@boxwidth@new}{\zw}% |
| 1526 |
\settowidth{\seihou@var@yokohaba}{#1}% |
| 1527 |
\settoheight{\seihou@var@tate}{#1}% |
| 1528 |
\settodepth{\seihou@var@fuka}{#1}% |
| 1529 |
\pgfmathsetlength{\seihou@var@zenkou}{(\seihou@var@tate + \seihou@var@fuka)*99}% |
| 1530 |
\pgfmathsetlength{\seihou@boxwidth@inner}{0.85 * \seihou@boxwidth@new / 2}% |
| 1531 |
\leavevmode% |
| 1532 |
\ltjghostbeforejachar% |
| 1533 |
\hbox to \seihou@boxwidth@new{% |
| 1534 |
\raisebox{\vertical@adj@maru@new}{% |
| 1535 |
\vbox to \seihou@boxwidth@new{% |
| 1536 |
\vss% |
| 1537 |
\hbox to \seihou@boxwidth@new{% |
| 1538 |
\hss% |
| 1539 |
\tikz[baseline=(char.base)]{% |
| 1540 |
\node[ |
| 1541 |
line width=.04\seihou@boxwidth@new, |
| 1542 |
minimum size=.5\seihou@boxwidth@new, |
| 1543 |
draw, |
| 1544 |
fill=black,%%% |
| 1545 |
rounded corners=.06\zw,%%% |
| 1546 |
shape=diamond, |
| 1547 |
inner sep=.03\seihou@boxwidth@new, |
| 1548 |
rotate=\rot@kksym@tateyoko |
| 1549 |
] (char){% |
| 1550 |
\vbox to \seihou@boxwidth@inner{ |
| 1551 |
\vss% |
| 1552 |
\hbox to \seihou@boxwidth@inner{% |
| 1553 |
\hss% |
| 1554 |
% これだけ他のやつと違うので注意! |
| 1555 |
\shukushou@adj@new{\seihou@var@yokohaba}{\seihou@boxwidth@inner}{% |
| 1556 |
\textcolor{white}{\kks@ShrinkedNumber{#1}}}% |
| 1557 |
\hss% |
| 1558 |
}% |
| 1559 |
\vss% |
| 1560 |
}% |
| 1561 |
}; |
| 1562 |
}% |
| 1563 |
\hss% |
| 1564 |
}% |
| 1565 |
\vss% |
| 1566 |
}% |
| 1567 |
}% |
| 1568 |
}% |
| 1569 |
\ltjghostafterjachar% |
| 1570 |
} |
| 1571 |
%%% |
| 1572 |
|
| 1573 |
|
| 1574 |
% \kakko |
| 1575 |
\newlength{\kakko@boxwidth@new} |
| 1576 |
\newlength{\kakko@boxwidth@inner} |
| 1577 |
\newlength{\kakko@var@yokohaba} |
| 1578 |
\newlength{\kakko@var@yokohaba@cal} |
| 1579 |
\newlength{\kakko@var@tate} |
| 1580 |
\newlength{\kakko@var@fuka} |
| 1581 |
\newlength{\kakko@var@zenkou} |
| 1582 |
|
| 1583 |
\NewDocumentCommand{\shukushou@adj@new@no@kakko}{ m m m m }{% |
| 1584 |
\ifdim #1 < #2% |
| 1585 |
\ifdim #3 > #2% |
| 1586 |
\resizebox*{#3}{!}{#4}% |
| 1587 |
\else% |
| 1588 |
\scalebox{.9}{#4}% |
| 1589 |
\fi% |
| 1590 |
\else% |
| 1591 |
\resizebox*{!}{#2}{#4}% |
| 1592 |
\fi% |
| 1593 |
} |
| 1594 |
|
| 1595 |
\DeclareRobustCommand{\kakko@byouga@internal}[3]{% 横の方 |
| 1596 |
\rot@or@not@kksym% |
| 1597 |
\setlength{\kakko@boxwidth@new}{\zw}% |
| 1598 |
\settowidth{\kakko@var@yokohaba}{#3}% |
| 1599 |
\pgfmathsetlength{\kakko@boxwidth@inner}{0.8 * \kakko@boxwidth@new}% |
| 1600 |
\leavevmode% |
| 1601 |
\ltjghostbeforejachar% |
| 1602 |
\hbox to \zw{\hss% |
| 1603 |
\scalebox{.63}[1]{#1}\hspace*{-.1\zw}% |
| 1604 |
\raisebox{-.03\zw}{% |
| 1605 |
\vbox to \kakko@boxwidth@inner{% |
| 1606 |
\vss% |
| 1607 |
\hbox to \kakko@boxwidth@inner{% |
| 1608 |
\hss% |
| 1609 |
\rotatebox[origin=c]{\rot@kksym@tateyoko}{% |
| 1610 |
\shukushou@adj@new{\kakko@var@yokohaba}{\kakko@boxwidth@inner}{\kks@ShrinkedNumber{#3}}}% |
| 1611 |
\hss% |
| 1612 |
}% |
| 1613 |
\vss% |
| 1614 |
}% |
| 1615 |
}% |
| 1616 |
\hspace*{-.1\zw}\scalebox{.63}[1]{#2}% |
| 1617 |
\hss}% |
| 1618 |
\ltjghostafterjachar% |
| 1619 |
} |
| 1620 |
\DeclareRobustCommand{\kakko@byouga@internal@no}[3]{% 横の方 |
| 1621 |
\rot@or@not@kksym% |
| 1622 |
\setlength{\kakko@boxwidth@new}{\zw}% |
| 1623 |
\settowidth{\kakko@var@yokohaba}{#3}% |
| 1624 |
\settoheight{\kakko@var@tate}{#3}% |
| 1625 |
\settodepth{\kakko@var@fuka}{#3}% |
| 1626 |
\pgfmathsetlength{\kakko@var@zenkou}{\kakko@var@tate + \kakko@var@fuka}% |
| 1627 |
\pgfmathsetlength{\kakko@var@yokohaba@cal}{0.9 * \kakko@var@yokohaba}% |
| 1628 |
\pgfmathsetlength{\kakko@boxwidth@inner}{0.8 * \kakko@boxwidth@new}% |
| 1629 |
\leavevmode% |
| 1630 |
\ltjghostbeforejachar% |
| 1631 |
\hbox to \zw{\hss% |
| 1632 |
\scalebox{.63}[1]{#1}\hspace*{-.1\zw}% |
| 1633 |
\raisebox{-.03\zw}{% |
| 1634 |
\vbox to \kakko@boxwidth@inner{% |
| 1635 |
\vss% |
| 1636 |
\hbox to \kakko@boxwidth@inner{% |
| 1637 |
\hss% |
| 1638 |
\rotatebox[origin=c]{\rot@kksym@tateyoko}{% |
| 1639 |
\shukushou@adj@new@no@kakko{\kakko@var@zenkou}{\kakko@boxwidth@inner}{\kakko@var@yokohaba@cal}{\kks@ShrinkedNumber{#3}}}% |
| 1640 |
\hss% |
| 1641 |
}% |
| 1642 |
\vss% |
| 1643 |
}% |
| 1644 |
}% |
| 1645 |
\hspace*{-.1\zw}\scalebox{.63}[1]{#2}% |
| 1646 |
\hss}% |
| 1647 |
\ltjghostafterjachar% |
| 1648 |
} |
| 1649 |
|
| 1650 |
\DeclareRobustCommand{\kakko@byouga@internal@tate}[3]{% 縦の方 |
| 1651 |
\rot@or@not@kksym% |
| 1652 |
\ifnum\ltjgetparameter{direction}=3\pgfmathsetmacro{\rot@kksym@tateyoko}{\rot@kksym@tateyoko - 90}\fi% |
| 1653 |
\setlength{\kakko@boxwidth@new}{\zw}% |
| 1654 |
\settowidth{\kakko@var@yokohaba}{#3}% |
| 1655 |
\pgfmathsetlength{\kakko@boxwidth@inner}{0.8 * \kakko@boxwidth@new}% |
| 1656 |
\leavevmode% |
| 1657 |
\ltjghostbeforejachar% |
| 1658 |
\raisebox{-.5\zw}{% |
| 1659 |
\rotatebox[origin=c]{90}{% |
| 1660 |
\hbox to \zw{\hss% |
| 1661 |
\vbox to \zw{\vss% |
| 1662 |
\hbox to \zw{\hss% |
| 1663 |
\scalebox{.63}[1]{#1}\hspace*{-.1\zw}% |
| 1664 |
\vbox to \kakko@boxwidth@inner{% |
| 1665 |
\vss% |
| 1666 |
\hbox to \kakko@boxwidth@inner{% |
| 1667 |
\hss% |
| 1668 |
\raisebox{-1.2\zw}{% |
| 1669 |
\rotatebox[origin=c]{\rot@kksym@tateyoko}{% |
| 1670 |
\shukushou@adj@new{\kakko@var@yokohaba}{\kakko@boxwidth@inner}{\kks@ShrinkedNumber{#3}}% |
| 1671 |
}% |
| 1672 |
}% |
| 1673 |
\hss% |
| 1674 |
}% |
| 1675 |
\vss% |
| 1676 |
}% |
| 1677 |
\hspace*{-.1\zw}\scalebox{.63}[1]{#2}\vspace*{.3\zw}% |
| 1678 |
\hss}% |
| 1679 |
\vss}% |
| 1680 |
\hss}% |
| 1681 |
}% |
| 1682 |
}% |
| 1683 |
\ltjghostafterjachar% |
| 1684 |
} |
| 1685 |
\DeclareRobustCommand{\kakko@byouga@internal@tate@no}[3]{% 縦の方 |
| 1686 |
\rot@or@not@kksym% |
| 1687 |
\ifnum\ltjgetparameter{direction}=3\pgfmathsetmacro{\rot@kksym@tateyoko}{\rot@kksym@tateyoko - 90}\fi% |
| 1688 |
\setlength{\kakko@boxwidth@new}{\zw}% |
| 1689 |
\settowidth{\kakko@var@yokohaba}{#3}% |
| 1690 |
\settoheight{\kakko@var@tate}{#3}% |
| 1691 |
\settodepth{\kakko@var@fuka}{#3}% |
| 1692 |
\pgfmathsetlength{\kakko@var@zenkou}{\kakko@var@tate + \kakko@var@fuka}% |
| 1693 |
\pgfmathsetlength{\kakko@var@yokohaba@cal}{0.9 * \kakko@var@yokohaba}% |
| 1694 |
\pgfmathsetlength{\kakko@boxwidth@inner}{0.8 * \kakko@boxwidth@new}% |
| 1695 |
\leavevmode% |
| 1696 |
\ltjghostbeforejachar% |
| 1697 |
\raisebox{-.5\zw}{% |
| 1698 |
\rotatebox[origin=c]{90}{% |
| 1699 |
\hbox to \zw{\hss% |
| 1700 |
\vbox to \zw{\vss% |
| 1701 |
\hbox to \zw{\hss% |
| 1702 |
\scalebox{.63}[1]{#1}\hspace*{-.1\zw}% |
| 1703 |
\vbox to \kakko@boxwidth@inner{% |
| 1704 |
\vss% |
| 1705 |
\hbox to \kakko@boxwidth@inner{% |
| 1706 |
\hss% |
| 1707 |
\raisebox{-1.6\zw}{% |
| 1708 |
\vbox to \kakko@boxwidth@inner{% |
| 1709 |
\vss% |
| 1710 |
\hbox to \kakko@boxwidth@inner{% |
| 1711 |
\hss% |
| 1712 |
\rotatebox[origin=c]{\rot@kksym@tateyoko}{% |
| 1713 |
\shukushou@adj@new@no@kakko{\kakko@var@zenkou}{\kakko@boxwidth@inner}{\kakko@var@yokohaba@cal}{\kks@ShrinkedNumber{#3}}% |
| 1714 |
}\hss}\vss}% |
| 1715 |
}% |
| 1716 |
\hss% |
| 1717 |
}% |
| 1718 |
\vss% |
| 1719 |
}% |
| 1720 |
\hspace*{-.1\zw}\scalebox{.63}[1]{#2}\vspace*{.3\zw}% |
| 1721 |
\hss}% |
| 1722 |
\vss}% |
| 1723 |
\hss}% |
| 1724 |
}% |
| 1725 |
}% |
| 1726 |
\ltjghostafterjachar% |
| 1727 |
} |
| 1728 |
%%% |
| 1729 |
|
| 1730 |
|
| 1731 |
% \ichimoji |
| 1732 |
\newlength{\ichimoji@yk@new} |
| 1733 |
\newlength{\ichimoji@ht@new} |
| 1734 |
\newlength{\ichimoji@dp@new} |
| 1735 |
\newlength{\ichimoji@zenkou@new} |
| 1736 |
\DeclareRobustCommand{\ichimoji@scaling}[1]{% |
| 1737 |
\ifdim\ichimoji@yk@new > \zw% |
| 1738 |
\pgfmathsetmacro{\ratio@ichimoji@yk}{\strip@pt\zw/\strip@pt\ichimoji@yk@new}% |
| 1739 |
\scalebox{\ratio@ichimoji@yk}[1]{#1}% |
| 1740 |
\else% |
| 1741 |
#1% |
| 1742 |
\fi% |
| 1743 |
} |
| 1744 |
\DeclareRobustCommand{\ichimoji@new}[1]{% |
| 1745 |
\ifnum\ltjgetparameter{direction}=3% |
| 1746 |
\leavevmode% |
| 1747 |
\ltjghostbeforejachar% |
| 1748 |
\raisebox{-.5\zw}{% |
| 1749 |
\hbox to \zw {\hss% |
| 1750 |
\vbox to \zw {\vss% |
| 1751 |
\hbox to \zw {\hss% |
| 1752 |
\resizebox*{\zw}{\zw}{#1}% |
| 1753 |
\hss}% |
| 1754 |
\vss}% |
| 1755 |
\hss}% |
| 1756 |
}% |
| 1757 |
\ltjghostafterjachar% |
| 1758 |
\else% |
| 1759 |
\leavevmode% |
| 1760 |
\ltjghostbeforejachar% |
| 1761 |
\raisebox{-.12\zw}{% |
| 1762 |
\hbox to \zw {\hss% |
| 1763 |
\vbox to \zw {\vss% |
| 1764 |
\hbox to \zw {\hss% |
| 1765 |
\resizebox*{\zw}{\zw}{#1}% |
| 1766 |
\hss}% |
| 1767 |
\vss}% |
| 1768 |
\hss}% |
| 1769 |
}% |
| 1770 |
\ltjghostafterjachar% |
| 1771 |
\fi% |
| 1772 |
} |
| 1773 |
\DeclareRobustCommand{\ichimoji@new@no}[1]{% |
| 1774 |
\settowidth{\ichimoji@yk@new}{#1}% |
| 1775 |
\settoheight{\ichimoji@ht@new}{#1}% |
| 1776 |
\settodepth{\ichimoji@dp@new}{#1}% |
| 1777 |
\pgfmathsetlength{\ichimoji@zenkou@new}{\ichimoji@ht@new + \ichimoji@dp@new}% |
| 1778 |
\ifnum\ltjgetparameter{direction}=3% |
| 1779 |
\leavevmode% |
| 1780 |
\ltjghostbeforejachar% |
| 1781 |
\raisebox{-.5\zw}{% |
| 1782 |
\hbox to \zw {\hss% |
| 1783 |
\vbox to \zw {\vss% |
| 1784 |
\hbox to \zw {\hss% |
| 1785 |
\ichimoji@scaling{#1}% |
| 1786 |
\hss}% |
| 1787 |
\vss}% |
| 1788 |
\hss}% |
| 1789 |
}% |
| 1790 |
\ltjghostafterjachar% |
| 1791 |
\else% |
| 1792 |
\leavevmode% |
| 1793 |
\ltjghostbeforejachar% |
| 1794 |
\raisebox{-.12\zw}{% |
| 1795 |
\hbox to \zw {\hss% |
| 1796 |
\vbox to \zw {\vss% |
| 1797 |
\hbox to \zw {\hss% |
| 1798 |
\ichimoji@scaling{#1}% |
| 1799 |
\hss}% |
| 1800 |
\vss}% |
| 1801 |
\hss}% |
| 1802 |
}% |
| 1803 |
\ltjghostafterjachar% |
| 1804 |
\fi% |
| 1805 |
} |
| 1806 |
%%% |
| 1807 |
|
| 1808 |
|
| 1809 |
% \zenkakuhabafixer |
| 1810 |
\newlength{\zenkakuhabafixer@yk@new} |
| 1811 |
\DeclareRobustCommand{\zenkakuhabafixer}[1]{% |
| 1812 |
\leavevmode% |
| 1813 |
\settowidth{\zenkakuhabafixer@yk@new}{#1}% |
| 1814 |
\ifdim\zenkakuhabafixer@yk@new>\zw% |
| 1815 |
\ltjghostbeforejachar% |
| 1816 |
\hbox to \zw {% |
| 1817 |
\resizebox{\zw}{\height}{#1}% |
| 1818 |
}% |
| 1819 |
\ltjghostafterjachar% |
| 1820 |
\else% |
| 1821 |
\ltjghostbeforejachar% |
| 1822 |
\hbox to \zw {% |
| 1823 |
\hss #1\hss% |
| 1824 |
}% |
| 1825 |
\ltjghostafterjachar% |
| 1826 |
\fi% |
| 1827 |
} |
| 1828 |
%%% |
| 1829 |
\endinput |