• R/O
  • SSH
  • HTTPS

tsukurimashou: Commit


Commit MetaInfo

Revision497 (tree)
Time2014-01-27 01:56:10
Authormskala

Log Message

more work on hangul GSUB features

Change Summary

Incremental Difference

--- trunk/doc/jamotest.tex (nonexistent)
+++ trunk/doc/jamotest.tex (revision 497)
@@ -0,0 +1,190 @@
1+\documentclass{article}
2+
3+%
4+% Test suite for Mandeubsida hangul GSUB features
5+% Copyright (C) 2014 Matthew Skala
6+%
7+% This program is free software: you can redistribute it and/or modify
8+% it under the terms of the GNU General Public License as published by
9+% the Free Software Foundation, version 3.
10+%
11+% As a special exception, if you create a document which uses this font, and
12+% embed this font or unaltered portions of this font into the document, this
13+% font does not by itself cause the resulting document to be covered by the
14+% GNU General Public License. This exception does not however invalidate any
15+% other reasons why the document might be covered by the GNU General Public
16+% License. If you modify this font, you may extend this exception to your
17+% version of the font, but you are not obligated to do so. If you do not
18+% wish to do so, delete this exception statement from your version.
19+%
20+% This program is distributed in the hope that it will be useful,
21+% but WITHOUT ANY WARRANTY; without even the implied warranty of
22+% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23+% GNU General Public License for more details.
24+%
25+% You should have received a copy of the GNU General Public License
26+% along with this program. If not, see <http://www.gnu.org/licenses/>.
27+%
28+% Matthew Skala
29+% http://ansuz.sooke.bc.ca/
30+% mskala@ansuz.sooke.bc.ca
31+%
32+
33+\usepackage{fontspec}
34+\usepackage{xcolor}
35+
36+\definecolor{darkgreen}{rgb}{0,0.35,0}
37+\definecolor{purplish}{rgb}{0.4,0,0.6}
38+
39+\usepackage[letterpaper,breaklinks,bookmarks,plainpages=false,
40+ colorlinks,citecolor=darkgreen,linkcolor=purplish]{hyperref}
41+
42+\defaultfontfeatures{Mapping=tex-text,Path=../otf/}
43+
44+\setmainfont[BoldFont={MandeubsidaBatangBoldPS}]{MandeubsidaBatangPS}
45+% \setmainfont{MandeubsidaSunMoonPS}
46+
47+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
48+
49+\begin{document}
50+\pagestyle{plain}\thispagestyle{empty}
51+
52+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53+
54+This file is intended to serve as a test suite for debugging the
55+hangul-related GSUB features in the Madeubsida fonts. The \TeX\ source will
56+be included in distributions, but the build system will not automatically
57+build it; those wishing to run the test can build it manually. A single
58+syllable (kiyeok-kiyeok-yae-mieum, ``GGYAEM'') is expressed by several
59+different sequences of Unicode code points, varying in the extent to which
60+the letters are combined as precomposed code points. Ideally, in the
61+default configuration all the sequences should end up substituted by a
62+single precomposed syllable glyph. For debugging purposes, the test is
63+also repeated with the relevant OpenType features explicitly turned on and
64+off.
65+
66+\section*{Default OpenType features}
67+
68+\begin{tabular}{ccccc}
69+ \small U+1100 & \small U+1100 & \small U+1164 & \small U+11B7 & \\
70+ \Large ㄱ & \Large ㄱ & \Large ㅒ & \Large ㅁ &
71+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"1100\char"1164\char"11B7} \\
72+ \small U+1101 & \small U+1161 & \small U+11B7 & & \\
73+ \Large ㄲ & \Large ㅒ & \Large ㅁ & &
74+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1101\char"1164\char"11B7} \\
75+ \small U+1100 & \small U+AC54 & \small U+11B7 & & \\
76+ \Large ㄱ & \Large 걔 & \Large ㅁ & &
77+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"AC54\char"11B7} \\
78+ \small U+AEA0 & \small U+11B7 & & \\
79+ \Large 꺠 & \Large ㅁ & & &
80+ \Huge\raisebox{0pt}[0pt][0pt]{\char"AEA0\char"11B7} \\
81+ \small U+1100 & \small U+AC64 & & & \\
82+ \Large ㄱ & \Large 걤 & & &
83+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"AC64} \\
84+ \small U+AEB0 & & & & \\
85+ \Large 꺰 & & & &
86+ \Huge\raisebox{0pt}[0pt][0pt]{\char"AEB0} \\
87+\end{tabular}
88+
89+\addfontfeature{RawFeature={-ccmp,-liga}}
90+\section*{With -ccmp, -liga}
91+
92+\begin{tabular}{ccccc}
93+ \small U+1100 & \small U+1100 & \small U+1164 & \small U+11B7 & \\
94+ \Large ㄱ & \Large ㄱ & \Large ㅒ & \Large ㅁ &
95+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"1100\char"1164\char"11B7} \\
96+ \small U+1101 & \small U+1161 & \small U+11B7 & & \\
97+ \Large ㄲ & \Large ㅒ & \Large ㅁ & &
98+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1101\char"1164\char"11B7} \\
99+ \small U+1100 & \small U+AC54 & \small U+11B7 & & \\
100+ \Large ㄱ & \Large 걔 & \Large ㅁ & &
101+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"AC54\char"11B7} \\
102+ \small U+AEA0 & \small U+11B7 & & \\
103+ \Large 꺠 & \Large ㅁ & & &
104+ \Huge\raisebox{0pt}[0pt][0pt]{\char"AEA0\char"11B7} \\
105+ \small U+1100 & \small U+AC64 & & & \\
106+ \Large ㄱ & \Large 걤 & & &
107+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"AC64} \\
108+ \small U+AEB0 & & & & \\
109+ \Large 꺰 & & & &
110+ \Huge\raisebox{0pt}[0pt][0pt]{\char"AEB0} \\
111+\end{tabular}
112+
113+\addfontfeature{RawFeature={+ccmp,-liga}}
114+\section*{With +ccmp, -liga}
115+
116+\begin{tabular}{ccccc}
117+ \small U+1100 & \small U+1100 & \small U+1164 & \small U+11B7 & \\
118+ \Large ㄱ & \Large ㄱ & \Large ㅒ & \Large ㅁ &
119+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"1100\char"1164\char"11B7} \\
120+ \small U+1101 & \small U+1161 & \small U+11B7 & & \\
121+ \Large ㄲ & \Large ㅒ & \Large ㅁ & &
122+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1101\char"1164\char"11B7} \\
123+ \small U+1100 & \small U+AC54 & \small U+11B7 & & \\
124+ \Large ㄱ & \Large 걔 & \Large ㅁ & &
125+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"AC54\char"11B7} \\
126+ \small U+AEA0 & \small U+11B7 & & \\
127+ \Large 꺠 & \Large ㅁ & & &
128+ \Huge\raisebox{0pt}[0pt][0pt]{\char"AEA0\char"11B7} \\
129+ \small U+1100 & \small U+AC64 & & & \\
130+ \Large ㄱ & \Large 걤 & & &
131+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"AC64} \\
132+ \small U+AEB0 & & & & \\
133+ \Large 꺰 & & & &
134+ \Huge\raisebox{0pt}[0pt][0pt]{\char"AEB0} \\
135+\end{tabular}
136+
137+\addfontfeature{RawFeature={-ccmp,+liga}}
138+\section*{With -ccmp, +liga}
139+
140+\begin{tabular}{ccccc}
141+ \small U+1100 & \small U+1100 & \small U+1164 & \small U+11B7 & \\
142+ \Large ㄱ & \Large ㄱ & \Large ㅒ & \Large ㅁ &
143+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"1100\char"1164\char"11B7} \\
144+ \small U+1101 & \small U+1161 & \small U+11B7 & & \\
145+ \Large ㄲ & \Large ㅒ & \Large ㅁ & &
146+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1101\char"1164\char"11B7} \\
147+ \small U+1100 & \small U+AC54 & \small U+11B7 & & \\
148+ \Large ㄱ & \Large 걔 & \Large ㅁ & &
149+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"AC54\char"11B7} \\
150+ \small U+AEA0 & \small U+11B7 & & \\
151+ \Large 꺠 & \Large ㅁ & & &
152+ \Huge\raisebox{0pt}[0pt][0pt]{\char"AEA0\char"11B7} \\
153+ \small U+1100 & \small U+AC64 & & & \\
154+ \Large ㄱ & \Large 걤 & & &
155+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"AC64} \\
156+ \small U+AEB0 & & & & \\
157+ \Large 꺰 & & & &
158+ \Huge\raisebox{0pt}[0pt][0pt]{\char"AEB0} \\
159+\end{tabular}
160+
161+\addfontfeature{RawFeature={+ccmp,+liga}}
162+\section*{With +ccmp, +liga}
163+
164+\begin{tabular}{ccccc}
165+ \small U+1100 & \small U+1100 & \small U+1164 & \small U+11B7 & \\
166+ \Large ㄱ & \Large ㄱ & \Large ㅒ & \Large ㅁ &
167+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"1100\char"1164\char"11B7} \\
168+ \small U+1101 & \small U+1161 & \small U+11B7 & & \\
169+ \Large ㄲ & \Large ㅒ & \Large ㅁ & &
170+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1101\char"1164\char"11B7} \\
171+ \small U+1100 & \small U+AC54 & \small U+11B7 & & \\
172+ \Large ㄱ & \Large 걔 & \Large ㅁ & &
173+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"AC54\char"11B7} \\
174+ \small U+AEA0 & \small U+11B7 & & \\
175+ \Large 꺠 & \Large ㅁ & & &
176+ \Huge\raisebox{0pt}[0pt][0pt]{\char"AEA0\char"11B7} \\
177+ \small U+1100 & \small U+AC64 & & & \\
178+ \Large ㄱ & \Large 걤 & & &
179+ \Huge\raisebox{0pt}[0pt][0pt]{\char"1100\char"AC64} \\
180+ \small U+AEB0 & & & & \\
181+ \Large 꺰 & & & &
182+ \Huge\raisebox{0pt}[0pt][0pt]{\char"AEB0} \\
183+\end{tabular}
184+
185+
186+
187+
188+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
189+
190+\end{document}
Show on old repository browser