Debian Codegraph @

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

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <!-- Created with AOLpress/2.0 -->
4 <!-- AP: Created on: 27-Jan-2003 -->
5 <!-- AP: Last modified: 21-Apr-2006 -->
6 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
7 <!--<TITLE>More advanced features, ligatures, mark positioning, glyph variants</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 #6 -->
16 チュートリアル (その 6)
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 <UL>
52 <LI>
53 <!-- <A HREF="editexample6.html#Conditional">Conditional variants</A>-->
54 <A HREF="editexample6.html#Conditional">条件つき異体字</A>
55 </UL>
56 <LI>
57 <!-- <A HREF="editexample6.html#Marks">Anchoring marks</A>-->
58 <A HREF="editexample6.html#Marks">アンカーマーク</A>
59 <LI>
60 <!-- <A HREF="editexample6-5.html#Conditional">Conditional features</A>-->
61 <A HREF="editexample6-5.html#Conditional">条件つき機能</A>
62 <LI>
63 <!-- <A HREF="editexample7.html#checking">Checking your font</A>-->
64 <A HREF="editexample7.html#checking">フォントのチェック法</A>
65 <LI>
66 <!-- <A HREF="editexample7.html#generating">Generating it</A>-->
67 <A HREF="editexample7.html#generating">フォントの出力方法</A>
68 <LI>
69 <!-- <A HREF="editexample7.html#Families">Font Families</A>-->
70 <A HREF="editexample7.html#Families">フォントファミリー</A>
71 <LI>
72 <!-- <A HREF="editexample7.html#summary">Final Summary</A>-->
73 <A HREF="editexample7.html#summary">最後のまとめ</A>
74 <LI>
75 <!-- <A HREF="scripting-tutorial.html">Scripting Tutorial</A> -->
76 <A HREF="scripting-tutorial.html">スクリプト処理のチュートリアル</A>
77 <LI>
78 <!-- <A HREF="scriptnotes.html#Special">Notes on various scripts</A>-->
79 <A HREF="scriptnotes.html#Special">各種の用字系における注意点</A>
80 </UL>
81 <H2>
82 <!--<A NAME="Variants">Glyph</A> Variants -->
83 異体関係にある<A NAME="Variants">グリフ</A>
84 </H2>
85 <P>
86 <!--
87 In many scripts glyphs have several variant glyphs. In latin the most obvious
88 example is that every letter has both an upper case and a lower case variant.
89 A more esoteric example would be that in renaissance times the long-s variant
90 (of s) was used initially and medially in a word, while the short-s was only
91 used at the end of a word. -->
92 多くの用字系では、あるグリフに対して異体関係にあるグリフがいくつか存在します。ラテンアルファベットでは、最も自明な例はすべての文字が大文字と小文字の異体を含むということです。より秘教的な例としては、ルネッサンスの時代には長い s という s の異体字が単語の頭と中間で用いられ、短い s は単語の終わりでしか用いられなかったというものがあります。
93 <P>
94 <!--
95 Most Arabic glyphs have four variants (initial, medial, final and isolated). -->
96 ほとんどのアラビア文字は 4 種の異なる形 (語頭、語中、語尾および独立形) をもっています。
97 <P>
98 <!--
99 The digits often have several variants: tabular digits (where all digits
100 have the same advance width so that tables of numbers don't look ragged),
101 proportional digits (where each digit has a width appropriate to its shape)
102 and old-style or lower case digits
103 (<IMG src="../../_images/lcdigits.png" WIDTH="76" HEIGHT="18" ALIGN="Middle">). -->
104 数字にはしばしば幾つかの異なる形が設けられることがあります: 表用数字 (すべての数字が同じ送り幅をもっていて、表の数値が不揃いに見えない), プロポーショナル数字 (各数字が、それにふさわしい幅をもつ) とオールドスタイル数字 (またの名を小文字数字) (<IMG src="../../_images/lcdigits.png" WIDTH="76" HEIGHT="18" ALIGN="Middle">) と呼ばれます。
105 <P>
106 <!--
107 Some of these variants are built into the encodings (the upper and lower
108 case distinction is), but in other cases you should provide extra information
109 in the font so that the word processor can be aware of the variants (Arabic
110 is midway between the two, the various forms are in the encoding, but you
111 need to provide extra information as well). -->
112 これらの異体字のうちのいくつかは符号化された位置をもっています (大文字と小文字の区別はこれにあたります) が、その他の場合、フォントに追加情報を与え、ワードプロセッサが異体字の存在を知ることができるようにする必要があります (アラビア文字はこの二つの中間にあたり、多くの形がエンコーディングに含まれていますが、追加情報も同時に与える必要があります).
113 <P>
114 <!--
115 Let us consider the case of the digits mentioned above. Assume that the glyph
116 called "one" contains the tabular variant of one, the glyph "one.prop" contains
117 the proportional variant and "one.oldstyle" contains the lower-case variant.
118 Then select "one" from the fontview,
119 <CODE><A HREF="charinfo.html#substitution">Element-&gt;Glyph Info</A></CODE>,
120 select the <CODE>Subs</CODE> tab and press the <CODE>[New] </CODE>button.
121 You should get another dialog. In the Components field, enter "one.prop",
122 select "Proportional Numbers" from the pull down list (it will turn into
123 "pnum"), and select the script set you are interested in (a script of 'latn'
124 and a language of 'dflt' will cover many cases). Then press
125 <CODE>[OK]</CODE>. -->
126 上で言及した数字の場合を考えましょう。“one”という名前のグリフが表用数字の 1 であり、“one.prop”というグリフがプロポーショナルな異体字を、“one.oldstyle" が小文字異体字を含んでいると仮定します。ここで、フォントビューから“one”を選択し、<A HREF="charinfo.html#substitution"><CODE>エレメント(<U>L</U>)</CODE>→<CODE>グリフ情報(<U>I</U>)...</CODE></a> のダイアログで <CODE>[置換]</CODE> タブを開いて <CODE>[新規(<U>N</U>)...]</CODE> ボタンを押します。新しいダイアログが出てきますので、<CODE>構成要素</CODE> フィールドに“<CODE>one.prop</CODE>”と入力し、“<CODE>プロポーショナル数字</CODE>”を <CODE>タグ(<U>T</U>)</CODE> プルダウンリストから選択します (これは“<CODE>pnum</CODE>”となります)。それから興味のある用字系 (用字系&lsquo;latn&rsquo;と言語&lsquo;dflt&rsquo;は多くの場合にあてはまります) を選択します。最後に <CODE>[<U>O</U>K]</CODE> を押します。
127 <P>
128 <!--
129 Some variant forms are built in to FontForge, and if you use
130 <CODE>Element-&gt;Typo. Features-&gt;Default ATT-&gt;(variant name)</CODE>,
131 FontForge may be able to automate this process for you. -->
132 幾つかの異体字は FontForge に組み込みで定義されているので、<CODE>エレメント(<U>L</U>)</CODE>→<CODE>組版機能(<U>Y</U>)</CODE>→<CODE>デフォルトのATT(<U>D</U>)</CODE>→<CODE>(異体字の分類名)</CODE> を選択すれば、FontForge がこの手順を自動化して行ってくれるでしょう。
133 <P>
134 <!--
135 (Note: Type0, Type1 and Type3 PostScript fonts have no notation to handle
136 this. You need to be creating an OpenType or TrueType font for these variants
137 to be output). -->
138 (注意: Type0, Type1 および Type3 PostScript フォントにはこれを取り扱うデータ表現がありません。
139 これらの異体字を出力したければ、OpenType か TrueType フォントを作成する必要があります。)
140 <H3>
141 <!--<A NAME="Conditional">Conditional</A> Variants -->
142 <A NAME="Conditional">条件つき</A>異体字
143 </H3>
144 <P>
145 <!--
146 FontForge supports OpenType's Contextual Substitution and Chaining Contextual
147 Substitution sub-tables, and to a lesser extent, Apple's contextual glyph
148 substitution sub-table. This means that you can insert conditional variants
149 into your font. <A HREF="editexample6-5.html#Conditional">The next page</A>
150 ill go into this in greater detail. -->
151 FontForge は OpenType の条件つき置換および連鎖的条件つき置換サブテーブルをサポートしており、Apple の条件つきグリフ置換サブテーブルの機能の一部をサポートしています。これは、条件つきの異体字をフォントに含めることができると言うことを意味します。これについては<A HREF="editexample6-5.html#Conditional">次のページ</A>で詳しく解説します。
152 <H2>
153 <!--<A NAME="Marks">Anchoring</A> marks -->
154 <A NAME="Marks">アンカー</A> マーク
155 </H2>
156 <P>
157 <!--
158 Some scripts (Arabic, Hebrew) need vowel marks placed around the main text
159 glyphs. Other scripts (some variants of Latin and Greek) have so many possible
160 accent combinations that having preassembled glyphs for all combinations
161 is unwieldy. -->
162 いくつかの用字系 (アラビア, ヘブライなど) は主たるテキストグリフの回りに母音記号を置く必要があります。
163 その他の用字系 (ラテンとギリシャのいくつかの変種) は非常に多くの可能なアクセントの組み合わせを持っているので、すべての組み合わせをあらかじめ集めたグリフとして持っているのは非効率です。
164 <P>
165 <!--
166 In OpenType (which includes MicroSoft's TrueType fonts) it is possible to
167 indicate on all base glyphs where marks should attach, and on all marks where
168 the base glyphs should attach. Thus one could put an anchor centered above
169 a capital-A indicating that all accents (acute, grave, umlaut, circumflex,
170 tilde, macron, ring, caron, ...) should attach there, and underneath all
171 the accents one could put another anchor so that when the two glyphs are
172 adjacent in the text the word-processor will know where to place the accent
173 so that it rides above the "A". -->
174 OpenType では (ここにはマイクロソフトの TrueType フォントも含まれます) すべての基底文字が接続するべきマークと、基底文字が接続するべきすべての文字を指定することが可能です。
175 ですから、大文字 A の上部中央に、すべてのアクセント (アキュート、グレーブ、ウムラウト、サーカムフレックス、リング、キャロン…) の接続するべき場所を指定する 1 個のアンカーと、すべてアクセントの下にそれぞれのアンカーを置くことができます。
176 そのため、2 個のグリフがテキスト内で隣り合って現れたときに、ワードプロセッサは“A”の上に重なるアクセントがどこに位置するのか知ることができます。
177 <TABLE>
178 <TR>
179 <TD><IMG src="../../_images/a_with_anchor.png" WIDTH=104 HEIGHT=208></TD>
180 <TD>+</TD>
181 <TD><IMG src="../../_images/grave_with_anchor.png" WIDTH=66 HEIGHT=208></TD>
182 <TD>=&gt;</TD>
183 <TD><IMG src="../../_images/agrave_anchored.png" WIDTH=104 HEIGHT=208></TD>
184 </TR>
185 </TABLE>
186 <P>
187 <!--
188 Not all accents ride centered above the letter (the dot and ogonek ride below
189 the letter), so you may need more than one anchor for different styles of
190 attachment. -->
191 すべてのアクセントが文字の上部中央に重なるわけではありません (ドットとオゴネクは文字の下に重ねられます) ので、異なるスタイルの接続に対してはアンカーをもう一つ定義する必要があるでしょう。
192 <P>
193 <!--
194 Finally some letters can have multiple attachments, unicode U+1EA4, for example,
195 is an A with a circumflex and an acute. Normally the circumflex and the acute
196 will attach at the same point, which would be ugly and confusing. Instead
197 we create a different kind of anchor, a mark to mark anchor, on the circumflex
198 and allow the acute accent to attach to that. -->
199 それに加え、幾つかの文字——例えば Unicode U+1EA4, サーカムフレックスとアキュートアクセントが一つずつついた A ——は複数の接続点をもつことができます。
200 このままではサーカムフレックスとアキュートは同じ点に接続し、醜悪で見づらいことになるでしょう。
201 その代わりに、異なる種類のアンカー (マークからマークへのアンカー) をサーカムフレックスの上に作成し、アキュートアクセントがそれに接続できるようにします。
202 <P>
203 <!--
204 Before one can create an anchor in a glyph one must notify FontForge that
205 this font will have anchors. You must create an
206 <A HREF="overview.html#Anchors">anchor class</A> for each type of attachment
207 (thus in the case of A above with two types of attachments (one above and
208 one below) you would create two anchor classes. The
209 <CODE><A HREF="fontinfo.html#Anchors">Element-&gt;Font Info-&gt;Anchor
210 Classes</A> </CODE>dialog will allow you to do that. -->
211 まだグリフの中にアンカーを作成できるようになっていない場合は、まず、このフォントがアンカーを含んでいることを FontForge に知らせなければなりません。
212 接続のタイプごとにそれぞれ、<A HREF="overview.html#Anchors">アンカークラス</A> を作成する必要があります。
213 ですから上の例の二つの型の接続 (一つは上、一つは下) をもつ A の場合、二つのアンカークラスを作成することになるでしょう。
214 この作業は <A HREF="fontinfo.html#Anchors"><CODE>エレメント(<U>L</U>)</CODE>→<CODE>フォント情報(<U>F</U>)...</CODE>→<CODE>[アンカークラス]</A></CODE></A> ダイアログによって行えます。
215 <P>
216 <!--
217 Then for each glyph in which an attachment will be made, you should first
218 click at the point where the anchor is to be created and then bring up the
219 <CODE><A HREF="pointmenu.html#AddAnchor">Point-&gt;Add Anchor</A></CODE>
220 dialog. -->
221 それから、接続点を作成するグリフの各々において、まずアンカーを作成する場所に配置した点をクリックし、次に <A HREF="pointmenu.html#AddAnchor"><CODE>点(<U>P</U>)</CODE>→<CODE>アンカーを追加(<U>A</U>)...</CODE></A> ダイアログを呼び出す必要があります。
222 <P>
223 <!--
224 You can examine (and correct) how a glyph fits to any others that combine
225 with it by using the
226 <CODE><A HREF="metricsmenu.html#AnchorControl">Metrics-&gt;Anchor
227 Control...</A></CODE> command. -->
228 <CODE><A HREF="metricsmenu.html#AnchorControl">メトリック(<U>M</U>)</CODE>→<CODE>アンカーの制御(A)...</A></CODE> コマンドを使えば、そのグリフが、他のグリフと組み合わされるときにどのように嵌まり合うかを確かめることができます。
229 <P>
230 <!--
231 <FONT COLOR="Red"><STRONG>A warning about mark attachments:</STRONG></FONT>
232 Not all software supports them. And even more confusing software may support
233 them for some scripts and not for others. -->
234 <FONT COLOR="Red"><STRONG>マークの接続に関する警告:</STRONG></FONT>
235 全てのソフトウェアがこれらをサポートしているわけではありません。
236 さらに紛らわしいことに、ソフトウェアが一部の用字系のみをサポートし、他をサポートしていないこともあります。
237 <P>
238 <P>
239 <P ALIGN=Center>
240 — <A HREF="editexample5.html">前</A> — <A HREF="overview.html">目次</A>
241 — <A HREF="editexample6-5.html">次</A> —
242 </DIV>
243 </BODY></HTML>