Debian Codegraph @

doc/sphinx/olddocs/old/ja/editexample6-5.html

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <!-- Created with AOLpress/2.0 -->
4 <!-- AP: Created on: 21-Mar-2005 -->
5 <!-- AP: Last modified: 21-Apr-2006 -->
6 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
7 <!--<TITLE>Contextual features</TITLE>-->
8 <TITLE>文脈依存の機能</TITLE>
9 <LINK REL="icon" href="../../_static/fftype16.png">
10 <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css">
11 </HEAD>
12 <BODY>
13 <DIV id="in">
14 <H1 ALIGN=Center>
15 <!--Tutorial #7-->
16 チュートリアル (その 7)
17 </H1>
18 <UL>
19 <LI>
20 <!-- <A HREF="editexample.html#FontCreate">Font Creation</A>-->
21 <A HREF="editexample.html#FontCreate">フォントの作成</A>
22 <LI>
23 <!-- <A HREF="editexample.html#CharCreate">Creating a glyph (tracing outlines)</A>-->
24 <A HREF="editexample.html#CharCreate">グリフの作成 (アウトラインのトレース) 法</A>
25 <LI>
26 <!-- <A HREF="editexample2.html#Navigating">Navigating to other glyphs</A>-->
27 <A HREF="editexample2.html#Navigating">他のグリフの呼び出し方</A>
28 <LI>
29 <!-- <A HREF="editexample2.html#Creating-o">On to the next glyph (consistent
30 directions)</A>-->
31 <A HREF="editexample2.html#Creating-o">次のグリフに関して (矛盾のないパスの向き)</A>
32 <LI>
33 <!-- <A HREF="editexample3.html#consistent-stems">Consistent serifs and stem
34 widths</A>-->
35 <A HREF="editexample3.html#consistent-stems">統一のとれたセリフとステムの太さ</A>
36 <LI>
37 <!-- <A HREF="editexample4.html#accents">Building accented glyphs</A>
38 <A HREF="editexample4.html#accents">アクセントつきグリフの組み立て方</A>
39 <LI>
40 <!-- <A HREF="editexample4.html#ligature">Building a ligature</A>-->
41 <A HREF="editexample4.html#ligature">合字の組み立て方</A>
42 <LI>
43 <!-- <A HREF="editexample5.html#metrics">Examining metrics</A>-->
44 <A HREF="editexample5.html#metrics">メトリックの確認法</A>
45 <LI>
46 <!-- <A HREF="editexample5.html#Kerning">Kerning</A>-->
47 <A HREF="editexample5.html#Kerning">カーニング</A>
48 <LI>
49 <!-- <A HREF="editexample6.html#Variants">Glyph variants</A>-->
50 <A HREF="editexample6.html#Variants">異体関係にあるグリフ</A>
51 <LI>
52 <!-- <A HREF="editexample6.html#Marks">Anchoring marks</A>-->
53 <A HREF="editexample6.html#Marks">アンカーマーク</A>
54 <LI>
55 <!-- <A HREF="editexample6-5.html">Conditional features</A>-->
56 <A HREF="editexample6-5.html">条件つき機能</A>
57 <UL>
58 <LI>
59 <A HREF="editexample6-5.html#OpenType">OpenType</A>
60 <LI>
61 <A HREF="editexample6-5.html#Apple">Apple</A>
62 </UL>
63 <LI>
64 <!-- <A HREF="editexample7.html#checking">Checking your font</A>-->
65 <A HREF="editexample7.html#checking">フォントのチェック法</A>
66 <LI>
67 <!-- <A HREF="editexample7.html#generating">Generating it</A>-->
68 <A HREF="editexample7.html#generating">フォントの出力方法</A>
69 <LI>
70 <!-- <A HREF="editexample7.html#Families">Font Families</A>-->
71 <A HREF="editexample7.html#Families">フォントファミリー</A>
72 <LI>
73 <!-- <A HREF="editexample7.html#summary">Final Summary</A>-->
74 <A HREF="editexample7.html#summary">最後のまとめ</A>
75 <LI>
76 <!-- <A HREF="scripting-tutorial.html">Scripting Tutorial</A> -->
77 <A HREF="scripting-tutorial.html">スクリプト処理のチュートリアル</A>
78 <LI>
79 <!-- <A HREF="scriptnotes.html#Special">Notes on various scripts</A>-->
80 <A HREF="scriptnotes.html#Special">各種の用字系における注意点</A>
81 </UL>
82 <H2>
83 <!--<A NAME="Conditional">Conditional</A> Features -->
84 <A NAME="Conditional">条件つき</A>機能
85 </H2>
86 <P>
87 <!--
88 OpenType and Apple fonts both provide contextual features. These are features
89 which only take place in a given context and are essential for typesetting
90 Indic and Arabic scripts. In OpenType a context is specified by a set of
91 patterns that are tested against the glyph stream of a document. If a pattern
92 matches then any substitutions it defines will be applied. In an Apple font,
93 the context is specified by a state machine -- a mini program which parses
94 and transforms the glyph stream. -->
95 OpenType と Apple のフォントのどちらでも、条件つきの機能を使用することができます。それらは所定の文脈下でのみ実行される機能であり、インド系およびアラビア系の用字系の組版においては必須のものです。OpenType では、文脈は、文書のグリフストリームに対して照合を行うパターンの集まりとして指定されます。あるパターンがマッチすると、それが定義するすべての置換が行われます。Apple のフォントでは、文脈は状態機械——グリフストリームを解析して変換する小さなプログラム——として指定されます
96 <P>
97 <!--
98 Conditional features may involve substitutions, ligatures or kerning (and
99 some more obscure behaviors). I am going to provide an example here of a
100 contextual substitution. -->
101 条件つき機能には置換・合字またはカーニング (およびさらに不明瞭なふるまい) を含めることができます。ここでは条件つき置換の一例を示したいと思います。
102 <P>
103 <IMG src="../../_images/bed-script.png" WIDTH="259" HEIGHT="81" ALIGN="Right"><!-- Instead of
104 an Indic or Arabic example, let us take something I'm more familiar with,
105 the problem of typesetting a latin script font where the letters ``b,'' ``o,''
106 ``v'' and ``w'' join their following letter near the x-height, while all
107 other letters join near the baseline. Thus we need two variants for each
108 glyph, one that joins (on the left) at the baseline (the default variant)
109 and one which joins at the x-height. Let us call this second set of letters
110 the ``high'' letters and name them ``a.high,'' ``b.high'' and so forth. -->
111 インド系文字やアラビア文字の例を取り上げる代わりに、私がより慣れ親しんでいるものを例に取り上げることにしましょう。“b”,“o”,“v”と“w”は次の文字と x ハイトのあたりで接続し、その他の文字はすべてベースラインのそばで接続するようなラテン文字の筆記体フォントを組版する問題を考えてみます。この場合、各グリフにつき、ベースラインのあたり (の左側) に接続線があるデフォルトの字形と、x ハイトのところに接続線がある別字形との 2 種類の異字形が必要となります。この 2 番目のセットを“高い”文字と呼び、それらの名前を“a.high”,“b.high”… といった具合につけることにしましょう。
112 <H3>
113 <!--<A NAME="OpenType">OpenType</A> Example -->
114 <A NAME="OpenType">OpenType</A> の例
115 </H3>
116 <P>
117 <TABLE BORDER CELLPADDING="2" ALIGN="Center" BGCOLOR="#ffffa0" WIDTH="80%">
118 <CAPTION>
119 <!-- <FONT COLOR="Red"> <STRONG>Warning</STRONG></FONT> -->
120 <FONT COLOR="Red"> <STRONG>警告</STRONG></FONT>
121 </CAPTION>
122 <TR>
123 <!-- <TD >The following example does not work! The font tables produced by it
124 are all correct, but the designers of OpenType decided that the latin script
125 does not need complex conditional features and implementations of OpenType
126 do not support them for latin. This is not even mentioned in the standard,
127 but is hidden away in supplemental information on microsoft's site. -->
128 <TD>以下に挙げる例は動作しません! この手順によって生成されるフォントテーブルは完全に正しいのですが、OpenType の設計者たちは、ラテン文字では複雑な条件つき機能を必要ではないと決定したので、OpenType の諸実装はラテン文字ではそれらをサポートしていないのです。この事実は規格書ではまったく言及されておらず、マイクロソフトのサイトに追加情報としてこっそり明かされているだけなのです。
129 <P>
130 <!-- Why do I provide an example which doesn't work? It's the best I can do. If
131 I knew enough about Indic or Arabic typesetting I would provide an example
132 for those scripts. But I don't. The procedures are the same. If you follow
133 them for some other scripts they will work. -->
134 なぜ私は動作しない例を提供しているのでしょう? それが私のできる最善の事だからです。もし私がインド系文字やアラビア文字の組版に通暁していたなら、それらの用字系の例を挙げていたことでしょう。しかし私はその素養を欠いています。手順は同じです。他の何らかの用字系でそれに従って作業すれば、動く物ができるでしょう。
135 <P>
136 <!-- On some systems and in some applications this example can be made to work
137 by replacing the 'calt' feature tag (conditional alternatives) with a Required
138 tag.</TD> -->
139 いくつかのシステムといくつかのアプリケーションでは、&lsquo;calt&rsquo; (選択型の置換) 機能タグを <CODE>必須の機能</CODE> に置換すれば、この章の例を動かすことができます。</TD>
140 </TR>
141 </TABLE>
142 <P>
143 <!--
144 We divide the set of possible glyphs into three classes: the letters ``bovw'',
145 all other letters, and all other glyphs. We need to create two patterns,
146 the first will match a glyph in the ``bovw'' class followed by a glyph in
147 the ``bovw'' class, while the second will match a glyph in the ``bovw'' class
148 followed by any other letter. If either of these matches the second glyph
149 should be transformed into its high variant. -->
150 可能なグリフを 3 つのクラスに分けます:“bovw”の 4 文字、それ以外のすべての英字、そして英字以外のすべてのグリフです。2 つのパターンを作成する必要があります。第 1 のパターンは“bovw”クラスに含まれるグリフの後に“bovw”クラスのグリフが続く場合で、第 2 のパターンは“bovw”クラスの後にそれ以外の英字が続く場合です。これらのどちらかが一致するときには、2 番目のグリフを“高い”異字形に変換する必要があります。
151 <P>
152 <!--
153 The first thing we must do is create a simple substitution mapping each low
154 letter to its high variant. Let us call this substitution by the four character
155 OpenType tag ``high.'' To define the substitution we use
156 <A HREF="charinfo.html#substitution">Element -&gt; Glyph Info </A>as
157 <A HREF="editexample6.html#Variants">before</A> except that here we use the
158 special ``script / language'' called ``- - - Nested - - -'' (an option in the
159 pulldown menu). -->
160 まず最初に、各“低い”文字に、"高い”異字形を対応づける単純置換を作成する必要があります。この置換を、“high”という 4 文字の OpenType タグで呼ぶことにしましょう。置換を定義するには、<A HREF="charinfo.html#substitution"><CODE>エレメント(<U>L</U>)</CODE>→<CODE>グリフ情報(<U>I</U>)...</CODE></A>を<A HREF="editexample6.html#Variants">先ほど</A>と同じように使用しますが、“<CODE>用字系/言語</CODE>”の組合せとして“<CODE>— 入れ子 —</CODE>”という特殊な値を使用します (プルダウンメニューの選択肢の 1 つとして存在します)。
161 <P>
162 <IMG src="../../_images/ott1.png" WIDTH="261" HEIGHT="328" ALIGN="Right"><!--The tricky part
163 is defining the context. This is done with the Contextual tab in the
164 <A HREF="fontinfo.html#Contextual">Element -&gt; Font Info</A> dialog, revealing
165 five different types of contextual behavior, we are interested in contextual
166 chaining substitutions. -->
167 注意を要する部分は、文脈定義のやりかたです。これは、<A HREF="fontinfo.html#Contextual"><CODE>エレメント(<U>L</U>)</CODE>→<CODE>フォント情報(<U>F</U>)...</CODE></A> ダイアログの <CODE>[文脈依存]</CODE> タブで行います。このダイアログでは 5 種類の文脈依存のふるまいが定義されていますが、今回の例で関係するのは、その中の <CODE>[文脈連鎖依存の置換]</CODE> です。
168 <P>
169 <!--
170 You can add a new entry by pressing the [New] button. This brings up a series
171 of dialogs, the first requests a four character OpenType tag and a script
172 / language (much as we <A HREF="charinfo.html#Feature-Tag">saw earlier</A>). -->
173 新しい項目を追加するときは <CODE>[新規(<U>N</U>)...]</CODE> ボタンを押します。これにより、一連のダイアログを呼び出すことができます。最初のダイアログでは 4 文字の OpenType タグと用字系/言語の組合せ (<A HREF="charinfo.html#Feature-Tag">先ほどお見せした</A>とおりですが) を入力するように要求します。
174 <P>
175 <!--
176 In this example we are using 'calt'. That seems an apropriate tag, until
177 you discover that it is not implemented for the Latin script. Indeed there
178 seems to be no appropriate feature that is implemented for Latin. The example
179 will produce a font, which while syntactically correct, will never do anything.
180 It is frustrating that OpenType provides the capabilities needed to do wonderous
181 things, and then to find that
182 <A HREF="http://www.microsoft.com/typography/OpenType%20Dev/standard/shaping.mspx">MicroSoft</A>
183 doesn't let that happen in Latin. -->
184 この例では、我々は&lsquo;calt&rsquo;を使います。これは適切なタグに見えますが、これがラテン文字では実装されていないことに気づくまでの話です。実際、ラテン文字で実装されている適切な機能は存在しないようです。この例でフォントを出力することはでき、それは構文的には正しいのですが、まったく何の効果もありません。素晴らしいことを行うのに必要な能力を OpenType が提供しているのに、<A HREF="http://www.microsoft.com/typography/OpenType%20Dev/standard/shaping.mspx">Microsoft</A> がラテン文字ではそれを使わせないということを知ると不満が溜まります。
185 <P>
186 <IMG src="../../_images/ott2_5.png" WIDTH="329" HEIGHT="263" ALIGN="Left"><!-- The next dialog
187 allows you to specify the overall format of the substitution. We want a class
188 based system - - we've already mentioned what the glyph classes will be
189 above.<BR CLEAR=ALL> -->
190 次のダイアログでは、置換の全体的なフォーマットを指定することができます。私達が使いたいのはクラスベースのシステムです——どのようなグリフクラスを用いるかは、既に述べたとおりです。<BR CLEAR=ALL>
191 <P>
192 <IMG src="../../_images/ott3.png" WIDTH="330" HEIGHT="357" ALIGN="Right"><!--The next dialog
193 finally shows something interesting. At the top are a series of patterns
194 to match and substitutions that will be applied if the string matches. Underneath
195 that are the glyph classes that this substitution uses. A contextual chaining
196 dialog divides the glyph stream into three categories: those glyphs before
197 the current glyph (these are called backtracking glyphs), the current glyph
198 itself (you may specify more than one), and this (these) glyphs may have
199 simple substitutions applied to them, and finally glyphs after the current
200 glyph (these are called lookahead glyphs). -->
201 その次のダイアログでやっと、興味をひく情報が表示されます。いちばん上には照合するパターンと、文字列が一致したときに行われる置換が並べて表示されています。その下にあるのは、その置換が利用するグリフクラスです。文脈連鎖依存のダイアログは、グリフ列を 3 つのカテゴリーに分割します: 現在のグリフの前にあるグリフ群 (これらは後戻りグリフと呼ばれます)・現在のグリフそのもの (これは 2 個以上指定可能で、この (それらの) グリフに対しては、それに適用される単純置換をもたせることができます)・そして現在のグリフの後のグリフ (これらは先読みグリフと呼ばれます) です。
202 <P>
203 <!--
204 Each category of glyphs may divide glyphs into a different set of classes,
205 but in this example we use the same classes for all categories (this makes
206 it easier to convert the substitution to Apple's format). The first line
207 (in the ``List of lists'' field) should be read thus: If a backtracking glyph
208 (the glyph before the current one) in class 1 is followed by the current
209 glyph in class 2, then location 0 - -the only location - - in the match string
210 (that is the current glyph) should have simple substitution `high' applied
211 to it. -->
212 各グリフカテゴリはグリフをそれぞれ異なるクラスセットに分類することができますが、この例ではすべてのカテゴリで同じクラスを用いることにします (これにより、置換処理を Apple のフォーマットに変換するのがやりやすくなります)。最初の行 (“グリフリストのリスト”フィールドに含まれる) は、以下のように読みます: 「もし、クラス 1 に含まれる後戻りグリフ (現在のグリフの直前のグリフ) に続いて、クラス 2 に含まれる現在グリフが現れたならば、一致文字列 (これは現在グリフです) 中の位置 0 ——唯一の位置——には、単純置換&lsquo;high&rsquo;を適用しなければならない」。
213 <P>
214 <!--
215 If you look at the glyph class definitions you will see that class 1 includes
216 those glyphs which must be followed by a high variant, so this seems reasonable. -->
217 グリフクラス定義を見ると、クラス 1 には“高い”異字形の後にくるグリフがあることが分かるので、この定義には納得がいきます。
218 <P>
219 <!--
220 The second line is similar except that it matches glyphs in class 1. Looking
221 at the class definitions we see that classes 1 &amp; 2 include all the letters,
222 so these two lines mean that if any letter follows one of ``bovw'' then that
223 letter should be converted to its `high' variant. <BR CLEAR=ALL> -->
224 2 行目もこれと同様ですが、クラス 1 が合致するところが異なります。クラス定義を見ると、クラス 1 と 2 にすべての英小文字が含まれていることが分かるので、これらの 2 行が意味することは、“bovw”のどれかの後に英小文字が来た場合、その文字は“高い”異字形に変換しなければならないということです。<BR CLEAR=ALL>
225 <P>
226 <IMG src="../../_images/ott4.png" WIDTH="330" HEIGHT="357" ALIGN="Left"><!--To edit a glyph
227 class simply double click on it. To create a new one press the [New] button
228 (under the class list). This produces another dialog showing all the names
229 of all the glyphs in the current class. Pressing the [Select] button will
230 set the selection in the font window to match the glyphs in the class, while
231 the [Set] button will do the reverse and set the class to the selection in
232 the font window. These provide a short cut to typing in a lot of glyph names. -->
233 グリフクラスの編集は、その上でダブルクリックするだけで行うことができます。新しく作成するには、(クラスリストの下にある) <CODE>[新規(<U>N</U>)...]</CODE> ボタンを押してください。これにより、現在のクラスに含まれる全グリフの名前を表示する別のダイアログが作成されます。<CODE>[選択]</CODE> ボタンを押すと、そのクラスに含まれている全グリフがフォントウィンドウ上で選択され、その反対に、<CODE>[設定]</CODE> ボタンを押すとフォントウィンドウ内で選択されている文字群がそのクラスの内容として設定されます。
234 <P>
235 <!--
236 Pressing the [Next] button defines the class and returns to the overview
237 dialog. <BR CLEAR=ALL> -->
238 <CODE>[次(<U>N</U>)]</CODE> ボタンを押すと、クラスが定義され、概要ダイアログに戻ります。<BR CLEAR=ALL>
239 <P>
240 <IMG src="../../_images/ott3.png" WIDTH="330" HEIGHT="357" ALIGN="Right"><!--To edit a pattern
241 double click on it, or to create a new one press the [New] button (under
242 the List of lists). Again the pattern string is divided into three categories,
243 <IMG src="../../_images/ott5.png" WIDTH="330" HEIGHT="357" ALIGN="Left">those glyphs before
244 the current one, the current one itself, and any glyphs after the current
245 one. You choose which category of the pattern you are editing with the tabs
246 at the top of the dialog. -->
247 パターンを編集するにはその上でダブルクリックし、新しいパターンを作成するには (リストのリストの下にある) <CODE>[新規(<U>N</U>)...]</CODE> ボタンを押してください。ここでも、パターン文字列は 3 つのカテゴリに分割されています。
248 <IMG src="../../_images/ott5.png" WIDTH="330" HEIGHT="357" ALIGN="Left">
249 現在のグリフに先行するグリフ群、現在のグリフそのもの、そして現在のグリフに続くグリフ群です。編集中のパターンのカテゴリーのどれを編集するかはダイアログの上にあるタブで選択できます。
250 <P>
251 <!--
252 Underneath these is the subset of the pattern that falls within the current
253 category, the classes defined for this category, and finally the substitutions
254 for the current glyph(s). Clicking on one of the classes will add the class
255 number to the pattern. -->
256 これらの下にあるのは、現在のカテゴリに帰着するようなパターンのサブセット、このカテゴリで定義されているクラス、そして最後に、現在のグリフ(群)に対する置換です。クラスをどれかクリックすると、パターンのクラス番号が加えられます。
257 <P>
258 <!--
259 To edit a substitution double click on it, or to create a new one press the
260 [New] button (under ``An ordered list...''). The sequence number specifies
261 which glyph among the current glyphs should be modified, and the tag specifies
262 a four character substitution name<BR CLEAR=ALL> -->
263 置換を編集するにはその上でダブルクリックするを行ってください。また、新しい置換を追加するには (“並べ替え済みのリスト...”の下にある) <CODE>[新規(<U>N</U>)...]</CODE> ボタンを押してください。シーケンス番号は、現在のグリフ群に含まれるどのグリフを変更するかを指定し、タグは 4 文字の置換名を指定します。<BR CLEAR=ALL>
264 <P>
265 <!--
266 <FONT COLOR="Red"><STRONG>A warning about contextual
267 behavior:</STRONG></FONT> Not all software supports them. And even more confusing
268 software may support them for some scripts and not for others. -->
269 <FONT COLOR="Red"><STRONG>文脈依存のふるまいに関する警告: </STRONG></FONT> すべてのソフトウェアがこれをサポートするわけではありません。さらに紛らわしいことには、ソフトウェアはある用字系でこれをサポートし、別の用字系ではサポートしないことが許されています。
270 <H3>
271 <!--<A NAME="Apple">Apple</A> advanced typography-->
272 <A NAME="Apple">Apple</A> 高度組版機能
273 </H3>
274 <P>
275 <!--
276 Apple specifies a context with a finite state machine, which is essentially
277 a tiny program that looks at the glyph stream and decides what substitutions
278 to apply. Each state machine has a set of glyph class definitions (just as
279 in the OpenType example), and a set of states. The process begins in state
280 0 at the start of the glyph stream. The computer determines what class the
281 current glyph is in and then looks at the current state to see how it will
282 behave when given input from that class. The behavior includes the ability
283 to change to a different state, advancing the input to the next glyph, applying
284 a substitution to either the current glyph or a previous one (the ``marked''
285 glyph). -->
286 Apple は有限状態機械で文脈を指定します。これは、本質的にはグリフのストリームを調べて、どの置換を適用するかを決定する小さなプログラムです。各状態機械には、グリフクラス定義 (OpenType の例で示したのとちょうど同じような) の集合と状態の集合があります。処理は、グリフストリームの先頭から、状態 0 で始まります。計算機は、現在のグリフがどのクラスに含まれるかを決定し、次に現在の状態を参照して、そのクラスからの入力が与えられたときにどのように振舞うかを調べます。振舞いの中には、別の状態への遷移可能性、入力を次のグリフへ進めること、置換を現在のグリフに適用するか以前のグリフ (“マークつき”グリフ) に適用するかが含まれます。
287 <P>
288 <IMG src="../../_images/sm-picture.png" WIDTH="386" HEIGHT="130" ALIGN="Right"><!-- Using the
289 same example of a latin script font... We again need a simple substitution
290 to convert each letter into its high alternate. The process is the same as
291 it was for OpenType, and indeed we can use the same substitution. Again we
292 divide the glyphs into three classes (Apple gives us some extra classes whether
293 we want them or no, but conceptually we use the same three classes as in
294 the OpenType example). We want a state machine with two states (again Apple
295 gives us an extra state for free, but we shall ignore that), one is the start
296 state (the base state - - where nothing changes), and the other is the state
297 where we've just read a glyph from the ``bovw'' class. <BR CLEAR=ALL> -->
298 前と同じ、ラテン文字の筆記体フォントの例を使うことにしましょう……今回も各文字をその“高い”別字形に置換する単純置換が必要となります。この処理は OpenType で行ったのと同じで、実際に同じ置換を使用することができます。今回もグリフを 3 つのクラスに分類します (Apple は、使用するかしないかにかかわらずいくつかの追加クラスを定義していますが、概念上 OpenType の例と同じ 3 つのクラスを使用します)。この場合、状態機械には 2 つの状態が必要で (これも追加の状態が Apple により定義済みですが、これも無視しましょう)、具体的には開始状態 (基本状態——変更は行いません) と、もう一つ、“bovw”クラスからグリフを読み込んだ直後の状態です。<BR CLEAR=ALL>
299 <P>
300 <IMG src="../../_images/asm1.png" WIDTH="261" HEIGHT="323" ALIGN="Left"><!-- Again we use the
301 <A HREF="fontinfo.html#Mac-SM">Element -&gt; Font Info </A>dialog and the
302 Mac SM tag to look at the contextual substitutions available. Again there
303 are several types of contextual behavior, and we are interested in contextual
304 substitutions. Double clicking on a state machine, or pressing the [New]
305 button provides an overview of the given state machine. -->
306 ここでも <A HREF="fontinfo.html#Mac-SM"><CODE>エレメント(<U>L</U>)</CODE>→<CODE>フォント情報(<U>F</U>)...</CODE></A> ダイアログの <CODE>[Macの状態機械]</CODE> タブをクリックして、文脈依存の置換が利用できるようにします。前と同様、文脈依存の振舞いにはいくつかのタイプがあり、ここで興味があるのは文脈依存の置換です。状態機械の上でダブルクリックするか、<CODE>[新規(<U>N</U>)...]</CODE> ボタンを押すと、指定した状態機械の概要が表示されます。
307 <P>
308 <IMG src="../../_images/asm2.png" WIDTH="309" HEIGHT="381" ALIGN="Right"><!-- At the top of
309 the dialog we see a field specifying the feature / setting of the machine,
310 this is Apple's equivalent of the OpenType 4 character feature tag. Under
311 this is a set of class definitions, and at the bottom is a representation
312 of the state machine itself. <BR CLEAR=Left> -->
313 ダイアログのいちばん上には、状態機械の機能/設定を指定するフィールドが表示されています。これは Apple の方式では OpenType の 4 文字の機能タグと等価です。その下にあるのはクラス定義のセットで、いちばん下にあるのは状態機械そのものです。<BR CLEAR=Left>
314 <P>
315 <IMG src="../../_images/asm3.png" WIDTH="309" HEIGHT="206" ALIGN="Left"><!--Double clicking
316 on a class brings up a dialog similar to that used in OpenType<BR CLEAR=Right> -->
317 クラスの上でダブルクリックすると、OpenType で使用しているのと似たダイアログが立ち上がります。<BR CLEAR=Right>
318 <P>
319 <IMG src="../../_images/asm4.png" WIDTH="196" HEIGHT="307" ALIGN="Right"><!-- Clicking on a
320 transition in the state machine (there is a transition for each state / class
321 combination) produces a transition dialog. This controls how the state machine
322 behaves when it is in a given state and receives a glyph in a given class.
323 In this example it is in state 2 (which means it has already read a ``bovw''
324 glyph), and it has received a glyph in class 4 (which is another ``bovw''
325 glyph). In this case the next state will be state 2 again (we will have just
326 read a new ``bovw'' glyph), read another glyph and apply the ``high''
327 substitution to the current glyph. -->
328 状態機械の遷移 (状態/クラスの組合せごとに 1 個の遷移が存在します) の上でクリックすると、状態遷移ダイアログが立ち上がります。指定された状態において指定されたクラスに含まれるグリフを受けつけたときにどのように振舞うかは、ここで制御します。この例では、状態 2 (これは、“bovw”グリフを読み込み済みであることを意味します) で、クラス 4 (これは“bovw”のグリフがもう 1 個来たことを意味します) に含まれるグリフを受け取ったところです。この場合、次の状態も再び状態 2 で (新しい“bovw”グリフを読み込んだ直後となるでしょう)、もう 1 字を読み込んで“high”置換を現在のグリフに施すことになります。
329 <P>
330 <!--
331 At the bottom of the dialog are a series of buttons that allow you to navigate
332 through the transitions of the state machine. -->
333 ダイアログのいちばん下にあるのは、状態機械の遷移を移動することができるボタンの列です。
334 <P>
335 <!--
336 Pressing [OK] many times will extract you from this chain of dialogs and
337 add a new state machine to your font. -->
338 <CODE>[<U>O</U>K]</CODE> を何度も押すとこのダイアログの連鎖から抜け、フォントに新しい状態機械を追加します。
339 <P>
340 <P>
341 <P ALIGN=Center>
342 — <A HREF="editexample6.html">前</A> — <A HREF="overview.html">目次</A>
343 — <A HREF="editexample7.html">次</A> —
344 </DIV>
345 </BODY></HTML>