Last active
February 8, 2020 15:02
-
-
Save doraTeX/2906db28ca7b0a0ff50a673b4a5844f8 to your computer and use it in GitHub Desktop.
IPAex Gothic にあって Source Han Sans にないグリフをリストアップ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%#!xelatex | |
\documentclass[xelatex]{bxjsarticle} | |
\usepackage{xltxtra} | |
\usepackage{multicol} | |
\pagestyle{empty} | |
\ExplSyntaxOn | |
\NewDocumentCommand{\codepoint}{m}{ | |
U+ | |
\int_compare:nNnTF{#1}<{"1000}{0}{} | |
\int_compare:nNnTF{#1}<{"100}{0}{} | |
\int_compare:nNnTF{#1}<{"10}{0}{} | |
\int_to_Hex:n {#1} | |
} | |
\ExplSyntaxOff | |
\font\ipaex="[ipaexg]" at 10pt | |
\font\sourcehansans="[SourceHanSans-Regular]" at 10pt | |
\newcount\uc | |
\begin{document} | |
\begin{multicols}{5} | |
\uc=0 \loop | |
\sourcehansans\iffontchar\font\uc \else | |
\ipaex\iffontchar\font\uc | |
\noindent \codepoint{\uc} \char\uc \par | |
\fi | |
\fi | |
\advance\uc1 | |
\ifnum\uc<"110000 \repeat | |
\end{multicols} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment