File: search.html

package info (click to toggle)
fontforge 1%3A20201107~dfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 67,192 kB
  • sloc: ansic: 587,351; python: 4,932; perl: 315; sh: 266; cpp: 219; makefile: 55; xml: 11
file content (97 lines) | stat: -rw-r--r-- 6,815 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<HTML>
<HEAD>
  <!-- Created with AOLpress/2.0 -->
  <!-- AP: Created on: 25-Apr-2002 -->
  <!-- AP: Last modified: 13-Oct-2004 -->
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!--<TITLE>Searching for shapes within characters...</TITLE> -->
    <TITLE>グリフの中から図形を探す方法……</TITLE>
  <LINK REL="icon" href="../../_static/fftype16.png">
  <LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css">
</HEAD>
<BODY>
<DIV id="in">
<H1 ALIGN=Center>
  <IMG src="../../_images/rplref.png" WIDTH="466" HEIGHT="381" ALIGN="Right"><!--Finding shapes
  within glyphs -->
  グリフの中から図形を探す方法
</H1>
<P>
<!--
FontForge will allow you to search a font for all glyphs containing a certain
shape and optionally replace that shape with another shape. -->
FontForge では、特定の図形を含むすべてのグリフを検索し、希望した場合はその図形を他の形に置き換えることができます。
<P>
<!--
FontForge allows you to control whether a match will be found even if the
shape has undergone certain transformations (ie. rotated, scaled, flipped,
etc.). -->
図形がある種の変換 (回転、拡大・縮小、反転など) を受けていてもマッチするかどうかを指定することができます。
<P>
<!--
Normally FontForge will search all glyphs in a font, but you may restrict
the search to only those glyphs which are selected. -->
FontForge は、通常は、フォント内の全グリフを検索しますが、検索範囲を選択された文字のみに限定することができます。
<P>
<!--
The search and replace panes behave very much like the outline glyph views
and you may draw within them using the tools available in the outline view.
The menu at the top of the window is a subset of the menu in the outline
glyph view. Only one of the two panes is active at a given time, and the
menu works on the active one. You can make a pane active by clicking in it,
or by using the [Tab] key. -->
検索タブと置換タブはアウトライングリフビューと非常によく似たふるまいをし、そこではアウトラインビューで使用可能なツールを使って描画ができます。
ウィンドウの最上部にあるメニューはアウトライングリフビューのメニューのサブセットです。2 つのペインのうち、同時に編集できるのは 1 つのみで、編集中の方でしかメニューは動作しません。タブをクリックするか、[Tab] キーを押すことにより、そちら側編集できるようになります。
<P>
<!--
The <CODE>[Find] </CODE>button will start at the beginning of the font and
search for the first glyph containing the search pattern and then open an
outline glyph view looking at that glyph. After <CODE>[Find] </CODE>has been
used once the button changes to <CODE>[Find Next] </CODE>whose behavior is
similar excepts that it starts at the last glyph found and displays the next
glyph in the same window. -->
<CODE>[検索]</CODE> ボタンはフォントの先頭から順に、検索パターンを含むグリフを検索し、一致した最初のグリフを含むアウトライングリフビューを開きます。いちど <CODE>[検索]</CODE> ボタンを使用した後は、<CODE>[次を検索]</CODE> ボタンを押すと、最後に一致した文字から次の文字を検索して、同じウィンドウ内に同じ表示法で表示します。
<P>
<!--
The <CODE>[Find All] </CODE>button will select all glyphs containing the
pattern. -->
<CODE>[すべて検索]</CODE> ボタンは、そのパターンを含むすべてのグリフを選択します。
<P>
<!--
The <CODE>[Replace]</CODE> button only works after a <CODE>[Find]/[Find
Next]/[Replace]</CODE>. It replaces the thing found with the replace pattern,
and does another <CODE>[Find Next]</CODE>. -->
<CODE>[置換]</CODE> ボタンは、<CODE>[検索]/[次を検索]</CODE> の後か、既に <CODE>[置換]</CODE> を使用しているときにのみ動作します。見つかった物を置き換えパターンで置換してから、もう一度 <CODE>[次を検索]</CODE> を押したのと同じ動作をします。
<P>
<!--
The <CODE>[Replace All] </CODE>button replaces all instances of the search
pattern with the replace pattern and selects all glyphs found. -->
<CODE>[すべて置換]</CODE> ボタンは、検索パターンに一致するすべての輪郭を置き換えパターンに置換してから、一致したすべてのグリフを選択します。
<P>
<!--
There are two different kinds of search, and which is used depends on the
shapes in the patterns. If the search pattern is a single open path (and
the replace pattern is too) then the search will look for the search pattern
within any path. But if the search pattern contains a closed path or multiple
paths, then the search looks for an exact match, ie. for each path in the
search pattern there must be a path in the glyph which matches it exactly. -->
検索には 2 つの異なる種類があり、パターンに含まれる図形によって行われる検索は異なります。検索パターンが 1 個の開いたパスで (かつ、置き換えパターンも同じで) あるならば、検索パターンがパス内のどの部分に含まれていても一致するものとされます。一方、検索パターンが閉じたパスまたは複数のパスを含んでいる場合は、完全に一致するパスのみが検索されます。すなわち、検索パターン内のそれぞれのパスに対して、それと正確に一致するパスがグリフに含まれていなければなりません。
<P>
<!--
At the moment I see two possible uses for the replace feature: -->
現時点では、置換機能に対して私は 2 種類の考え得る使用法があると思います:
<OL>
  <LI>
<!--It can help you change the style of serifs in your font (see the example
    below) -->
    フォント内のセリフのスタイルを変更する (下の例をご覧ください)
  <LI>
<!--FontForge can't always detect which glyphs should contain references when
    reading in opentype (and some type1) fonts. You can use the replace feature
    to fix up all things that look like“A”with a reference to A. -->
    FontForge は、OpenType (および一部の Type1) フォントの読み込み時に、参照を含むべきグリフを常に検索できるわけではありません。"A" の形をしたものをすべて A への参照に置き換えるという類のすべての作業を行うために、置き換え機能を使うことができます。
</OL>
<P>
<IMG src="../../_images/rplserifs.png" WIDTH="601" HEIGHT="381">
</DIV>
</BODY></HTML>