Skip to content

Instantly share code, notes, and snippets.

@aminophen
Last active February 24, 2019 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aminophen/c2884d59a0bae3f182f2447470e85ca6 to your computer and use it in GitHub Desktop.
Save aminophen/c2884d59a0bae3f182f2447470e85ca6 to your computer and use it in GitHub Desktop.
XeLaTeX: ToUnicode のテスト
%#!xelatex
\documentclass{article}
\usepackage{fontspec}
\setmainfont{SourceHanSerifSC-Regular.otf}
\begin{document}
%% 以下のコメントは,左が入力したコード,右が PDF からのコピペまたは pdftotext の結果
見/% U+898B -> U+898B (これが2017年12月の修正のおかげ)
⾒/% U+2F92 -> U+898B (上に付随してそうなる)
長/% U+9577 -> U+2ED1 (! forum:2575)
⻑/% U+2ED1 -> U+2ED1
骨/% U+9AA8 -> U+2EE3 (! forum:2575)
⾻/% U+2FBB -> U+2FBB (ちゃんと出る?????)
⺌/% U+2E8C -> U+2E8C
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment