summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-06-13 19:54:46 +0000
committerKarl Berry <karl@freefriends.org>2019-06-13 19:54:46 +0000
commit8c1e75cce6774139bf56cb52f1c7062c34ea380f (patch)
tree36fa8fe78dde4da573cae1ea1a30c89bd6596f83 /Master/texmf-dist/tex/lualatex
parent0391be4d6b6ba0a5bac352cfc7c98b515c0074d8 (diff)
hmtrump (13jun19)
git-svn-id: svn://tug.org/texlive/trunk@51372 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex')
-rw-r--r--Master/texmf-dist/tex/lualatex/hmtrump/hmtrump.sty126
1 files changed, 125 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/lualatex/hmtrump/hmtrump.sty b/Master/texmf-dist/tex/lualatex/hmtrump/hmtrump.sty
index 5fe1bfb49c5..f7244ebb148 100644
--- a/Master/texmf-dist/tex/lualatex/hmtrump/hmtrump.sty
+++ b/Master/texmf-dist/tex/lualatex/hmtrump/hmtrump.sty
@@ -4,7 +4,7 @@
% Author: Hitomi-san (a.k.a. Carele Smith)
%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{hmtrump}[2019/02/07 v1.0]
+\ProvidesPackage{hmtrump}[2019-06-13 v1.1b]
\RequirePackage{tikz,xcolor,fontspec}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 定義本体
@@ -132,3 +132,127 @@
%: \tarottrump => タロットの切札
\newcommand{\tarottrump}[1]{\trumpx{\romanindex{#1}}}
+
+%: \unitrump => ユニコードのトランプ領域
+%%: カードの名前をマクロに被覆
+% 通常のトランプ
+\def\hmtc@uni@s@ace{AS} \def\hmtc@uni@h@ace{AH} \def\hmtc@uni@d@ace{AD} \def\hmtc@uni@c@ace{AC}
+\def\hmtc@uni@s@two{2S} \def\hmtc@uni@h@two{2H} \def\hmtc@uni@d@two{2D} \def\hmtc@uni@c@two{2C}
+\def\hmtc@uni@s@three{3S} \def\hmtc@uni@h@three{3H} \def\hmtc@uni@d@three{3D} \def\hmtc@uni@c@three{3C}
+\def\hmtc@uni@s@four{4S} \def\hmtc@uni@h@four{4H} \def\hmtc@uni@d@four{4D} \def\hmtc@uni@c@four{4C}
+\def\hmtc@uni@s@five{5S} \def\hmtc@uni@h@five{5H} \def\hmtc@uni@d@five{5D} \def\hmtc@uni@c@five{5C}
+\def\hmtc@uni@s@six{6S} \def\hmtc@uni@h@six{6H} \def\hmtc@uni@d@six{6D} \def\hmtc@uni@c@six{6C}
+\def\hmtc@uni@s@seven{7S} \def\hmtc@uni@h@seven{7H} \def\hmtc@uni@d@seven{7D} \def\hmtc@uni@c@seven{7C}
+\def\hmtc@uni@s@eight{8S} \def\hmtc@uni@h@eight{8H} \def\hmtc@uni@d@eight{8D} \def\hmtc@uni@c@eight{8C}
+\def\hmtc@uni@s@nine{9S} \def\hmtc@uni@h@nine{9H} \def\hmtc@uni@d@nine{9D} \def\hmtc@uni@c@nine{9C}
+\def\hmtc@uni@s@ten{TS} \def\hmtc@uni@h@ten{TH} \def\hmtc@uni@d@ten{TD} \def\hmtc@uni@c@ten{TC}
+\def\hmtc@uni@s@jack{JS} \def\hmtc@uni@h@jack{JH} \def\hmtc@uni@d@jack{JD} \def\hmtc@uni@c@jack{JC}
+\def\hmtc@uni@s@cavallo{CS} \def\hmtc@uni@h@cavallo{CH} \def\hmtc@uni@d@cavallo{CD} \def\hmtc@uni@c@cavallo{CC}
+\def\hmtc@uni@s@queen{QS} \def\hmtc@uni@h@queen{QH} \def\hmtc@uni@d@queen{QD} \def\hmtc@uni@c@queen{QC}
+\def\hmtc@uni@s@king{KS} \def\hmtc@uni@h@king{KH} \def\hmtc@uni@d@king{KD} \def\hmtc@uni@c@king{KC}
+% ジョーカー
+\def\hmtc@uni@joker@a{joker} \def\hmtc@joker@b{joker1} \def\hmtc@joker@c{joker2}
+% 裏
+\def\hmtc@uni@back{back}
+% タロット
+\def\hmtc@uni@tarot@zero{0} \def\hmtc@uni@tarot@one{1} \def\hmtc@uni@tarot@two{2}
+\def\hmtc@uni@tarot@three{3} \def\hmtc@uni@tarot@four{4} \def\hmtc@uni@tarot@five{5}
+\def\hmtc@uni@tarot@six{6} \def\hmtc@uni@tarot@seven{7} \def\hmtc@uni@tarot@eight{8}
+\def\hmtc@uni@tarot@nine{9} \def\hmtc@uni@tarot@ten{10} \def\hmtc@uni@tarot@eleven{11}
+\def\hmtc@uni@tarot@twelve{12} \def\hmtc@uni@tarot@thirteen{13} \def\hmtc@uni@tarot@fourteen{14}
+\def\hmtc@uni@tarot@fifteen{15} \def\hmtc@uni@tarot@sixteen{16} \def\hmtc@uni@tarot@seventeen{17}
+\def\hmtc@uni@tarot@eighteen{18} \def\hmtc@uni@tarot@nineteen{19} \def\hmtc@uni@tarot@twenty{20}
+\def\hmtc@uni@tarot@twentyone{21}
+%%: 定義本体
+\newcommand{\unitrump}[1]{{\hmtcfont%
+ \def\hmtc@unitrump@arg{#1}%
+ % スペード
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@ace\relax\char"1F0A1\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@two\relax\char"1F0A2\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@three\relax\char"1F0A3\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@four\relax\char"1F0A4\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@five\relax\char"1F0A5\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@six\relax\char"1F0A6\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@seven\relax\char"1F0A7\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@eight\relax\char"1F0A8\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@nine\relax\char"1F0A9\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@ten\relax\char"1F0AA\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@jack\relax\char"1F0AB\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@cavallo\relax\char"1F0AC\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@queen\relax\char"1F0AD\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@s@king\relax\char"1F0AE\fi%
+ % ハート
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@ace\relax\char"1F0B1\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@two\relax\char"1F0B2\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@three\relax\char"1F0B3\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@four\relax\char"1F0B4\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@five\relax\char"1F0B5\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@six\relax\char"1F0B6\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@seven\relax\char"1F0B7\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@eight\relax\char"1F0B8\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@nine\relax\char"1F0B9\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@ten\relax\char"1F0BA\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@jack\relax\char"1F0BB\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@cavallo\relax\char"1F0BC\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@queen\relax\char"1F0BD\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@h@king\relax\char"1F0BE\fi%
+ % ダイヤ
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@ace\relax\char"1F0C1\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@two\relax\char"1F0C2\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@three\relax\char"1F0C3\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@four\relax\char"1F0C4\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@five\relax\char"1F0C5\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@six\relax\char"1F0C6\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@seven\relax\char"1F0C7\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@eight\relax\char"1F0C8\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@nine\relax\char"1F0C9\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@ten\relax\char"1F0CA\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@jack\relax\char"1F0CB\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@cavallo\relax\char"1F0CC\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@queen\relax\char"1F0CD\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@d@king\relax\char"1F0CE\fi%
+ % クラブ
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@ace\relax\char"1F0D1\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@two\relax\char"1F0D2\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@three\relax\char"1F0D3\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@four\relax\char"1F0D4\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@five\relax\char"1F0D5\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@six\relax\char"1F0D6\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@seven\relax\char"1F0D7\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@eight\relax\char"1F0D8\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@nine\relax\char"1F0D9\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@ten\relax\char"1F0DA\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@jack\relax\char"1F0DB\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@cavallo\relax\char"1F0DC\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@queen\relax\char"1F0DD\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@c@king\relax\char"1F0DE\fi%
+ % ジョーカー
+ \ifx\hmtc@unitrump@arg\hmtc@uni@joker@a\relax\char"1F0BF\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@joker@b\relax\char"1F0CF\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@joker@c\relax\char"1F0DF\fi%
+ % 裏
+ \ifx\hmtc@unitrump@arg\hmtc@uni@back\relax\char"1F0A0\fi%
+ % タロット
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@zero\relax\char"1F0E0\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@one\relax\char"1F0E1\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@two\relax\char"1F0E2\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@three\relax\char"1F0E3\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@four\relax\char"1F0E4\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@five\relax\char"1F0E5\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@six\relax\char"1F0E6\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@seven\relax\char"1F0E7\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@eight\relax\char"1F0E8\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@nine\relax\char"1F0E9\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@ten\relax\char"1F0EA\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@eleven\relax\char"1F0EB\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@twelve\relax\char"1F0EC\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@thirteen\relax\char"1F0ED\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@fourteen\relax\char"1F0EE\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@fifteen\relax\char"1F0EF\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@sixteen\relax\char"1F0F0\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@seventeen\relax\char"1F0F1\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@eighteen\relax\char"1F0F2\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@nineteen\relax\char"1F0F3\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@twenty\relax\char"1F0F4\fi%
+ \ifx\hmtc@unitrump@arg\hmtc@uni@tarot@twentyone\relax\char"1F0F5\fi%
+}}