Skip to content

Instantly share code, notes, and snippets.

@h20y6m

h20y6m/aj1-kana.tex

Created Sep 10, 2020
Embed
What would you like to do?
Adobe-Japan1-7 かなグリフ一覧
%
% Adobe-Japan1-7 かなグリフ一覧
%
% https://github.com/adobe-type-tools/Adobe-Japan1/blob/master/README-JP.md#%E3%81%8B%E3%81%AA%E3%82%B0%E3%83%AA%E3%83%95
%
\documentclass[dvipdfmx,a4paper,10pt]{jsarticle}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{xcolor}
\usepackage{xparse}
\usepackage{otf}
\usepackage[haranoaji]{pxchfon}
%\usepackage[noEmbed]{pxchfon}
%%%%%%%%%%%%%%%%%%% BEGIN CODE %%%%%%%%%%%%%%%%%%%
\ExplSyntaxOn
\cs_new:Npn \__cid_put:n #1
{
\makebox [ 1zw ] [ l ]
{
\colorbox { gray ! 25 }
{
\CID {#1}
}
}
\hspace { -1zw }
\makebox [ 1zw ] [ c ]
{
\sffamily
\tiny
\raisebox { -6pt } {#1}
}
\hspace{1zw}
}
\cs_new:Npn \__cid_put_range:n #1
{
\__cid_range_aux_i:nN {#1} \__cid_put:n
}
\cs_new:Npn \__cid_range_aux_i:nN #1#2
{
\clist_map_inline:nn {#1}
{
\__cid_range_aux_ii:wN ##1 - - \q_stop #2
}
}
\cs_new:Npn \__cid_range_aux_ii:wN #1 - #2 - #3 \q_stop #4
{
\tl_if_blank:nTF {#2}
{ #4 {#1} }
{
\int_step_inline:nnn {#1} {#2}
{
#4 {##1}
}
}
}
\NewDocumentCommand \putcids { m }
{
\__cid_put_range:n {#1}
}
\ExplSyntaxOff
%%%%%%%%%%%%%%%%%%% END CODE %%%%%%%%%%%%%%%%%%%
\begin{document}
\setlength{\parindent}{0pt}
\setlength{\baselineskip}{2zw}
\setlength{\fboxsep}{0pt}
\raggedright
\section{半角}
\subsection{横組み用}
\putcids{326,332-389,391-421,515-598}
\subsection{縦組み用}
\putcids{9084,9090-9262}
\clearpage
\section{全角}
\subsection{横組み用}
\putcids{643-644,651-654,660,842-1010,7958-7960,8313-8316,12181,12269,12271,16195,16209-16221,16236-16252,16326,16327}
\subsection{縦組み用}
\putcids{7891,7918-7939,8264-8265,8271-8272,12108-12110,12270,12272,16333-16349}
\clearpage
\section{組み方向ごとに最適化した全角かな}
\subsection{横組み用}
\putcids{12273-12455,16352-16381}
\subsection{縦組み用}
\putcids{12456-12638,16382-16411}
\clearpage
\section{プロポーショナル}
\subsection{横組み用}
\putcids{15449-15452,15455,15462-15463,15517-15724}
\subsection{縦組み用}
\putcids{15976-15979,15982-16192}
\clearpage
\section{ルビ}
\subsection{横組み用}
\putcids{12649-12652,12671-12854,12867,16414-16449}
\subsection{縦組み用}
\putcids{12855-12866,12868,16450-16468}
\clearpage
\section{U-PRESS}
\subsection{横組み用}
\putcids{20473-20496}
\subsection{縦組み用}
無し
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment