14 January 2003,
翻訳更新: 2010/04/29
1 概要
目次
1.1 SVG について
この仕様書は
Scalable Vector Graphics (SVG)
(スケーラブル・ベクター・グラフィックス)の特色機能と構文を定義する。
This specification defines the features and syntax for
Scalable Vector Graphics (SVG)
.
SVG は二次元グラフィックスを XML
[XML10]
で記述するための言語である。 SVG は3種類のグラフィックスオブジェクト:ベクター形式のグラフィック(例えば直線と曲線からなるパス), 画像, テキストを扱う。オブジェクトはグループにまとめたり, スタイルを付けたり, 変換を加えたり, すでに描画されたオブジェクトに合成することができる。 SVG の特色機能には、変換の入れ子, クリッピングパス, アルファマスク, フィルタ効果, ひな型オブジェクトも含まれる。
SVG is a language for describing two-dimensional graphics in XML [
XML10
]. SVG allows for three types of graphic objects: vector graphic shapes (e.g., paths consisting of straight lines and curves), images and text. Graphical objects can be grouped, styled, transformed and composited into previously rendered objects. The feature set includes nested transformations, clipping paths, alpha masks, filter effects and template objects.
SVG による絵図は
対話的
にも
動的
にもなり得る。
アニメーション
は宣言的に(即ち SVG 内容に SVG アニメーション要素を埋めこむことにより), あるいはスクリプトを用いて定義し、起動させることができる。
SVG drawings can be
interactive
and
dynamic
.
Animations
can be defined and triggered either declaratively (i.e., by embedding SVG animation elements in SVG content) or via scripting.
SVG 文書オブジェクトモデル( DOM )
は全ての要素, 属性, プロパティに対するスクリプト言語からの完全なアクセスを提供し、 SVG の洗練された応用を可能にする。 onmouseover や onclick などの豊富な
イベントハンドラ
を任意のグラフィックス要素にあてがうことができる。
他のウェブ標準への互換性と相乗効果
により、一つのウェブページ上で XHTML と SVG の両方の要素に対し同時に、
スクリプト
などの特色機能を利用することができる。
Sophisticated applications of SVG are possible by use of a supplemental scripting language which accesses
SVG Document Object Model (DOM)
, which provides complete access to all elements, attributes and properties. A rich set of
event handlers
such as onmouseover and onclick can be assigned to any SVG graphical object. Because of its
compatibility and leveraging of other Web standards
, features like
scripting
can be done on XHTML and SVG elements simultaneously within the same Web page.
SVG はリッチなグラフィックス内容に対応し得る言語である。アクセシビリティの理由から、より高レベルな構造と意味内容を含む元のソース文書があるならば、ソースをそのまま取得できるようにしたり、高レベルな情報を代替形式による代替表示で表現するなどにより、そのような情報が何らかの手段で利用可能になることが望ましい。 SVG は高レベルな情報を内容に含める機能を提供する。よりすぐれたアクセシビリティを得るために推奨される手法については
アクセシビリティ
の章を見よ。
SVG is a language for rich graphical content. For accessibility reasons, if there is an original source document containing higher-level structure and semantics, it is recommended that the higher-level information be made available somehow, either by making the original source document available, or making an alternative version available in an alternative format which conveys the higher-level information, or by using SVG's facilities to include the higher-level information within the SVG content. For suggested techniques in achieving greater accessibility, see
Accessibility
.
1.1.1 モジュール化
ここに含まれる SVG のモジュール化は SVG 1.0 とその修正を特定の機能単位を提供する一連の抽象的なモジュールに分割したものである。( XHTML などの)他の仕様で定義されたものも含め、これらモジュールを組み合わせて SVG ファミリの文書型として認定され得る SVG のサブセットや拡張の文書型を定義することができる。 SVG ファミリの文書型については
適合性
の章を見よ。 XHTML, MathML, SVG を組み合わせるプロファイルについては
[XHTMLplusMathMLplusSVG]
を参照のこと。
The modularization of SVG included here is a decomposition of SVG 1.0 and errata into a collection of abstract modules that provide specific units of functionality. These modules may be combined with each other and with modules defined in other specifications (such as XHTML) to create SVG subset and extension document types that qualify as members of the SVG family of document types. See
Conformance
for a description of SVG family documents, and [
XHTMLplusMathMLplusSVG
] for a profile that combines XHTML, MathML and SVG.
この仕様書のそれぞれの主要なセクションにはそのセクションの名前を持つモジュールが存在する。例えば「 Text モジュール」や「基本 Structure モジュール」など。モジュール名に「基本」という接頭辞が付いていない場合、対応するセクションのすべての要素と属性の完全なセットが含まれていることを意味する。完全なモジュールの機能のサブセットが必要になった場合は「基本」という接頭辞が名前に付けられた基本モジュールが新たに設けられる。例えば「基本 Text モジュール」は「 Text モジュール」のサブセットである。
Each major section of the SVG specification produces a module named after that section, e.g. "Text Module" or "Basic Structure Module". A module without the "Basic" prefix implies that the module includes the complete set of elements and attributes, with no restrictions, from the corresponding section of the specification. If there is a need to provide a subset of the functionality of the complete module, then a Basic module is created with the "Basic" prefix added to the name of the complete module. For example, the "Basic Text Module" is a subset of the "Text Module".
SVG 1.1 のプロファイルに完全なモジュールとその基本サブセットモジュールの両方(例えば「 Text モジュール」と「基本 Text モジュール」)を含めることはできない。
It is an error for a profile of SVG 1.1 to include both the complete module and its basic subset module (e.g. the "Text Module" and the "Basic Text Module").
1.1.2 要素と属性のコレクション
ほとんどのモジュールでは、一連の要素と属性のひとまとめ(「コレクション」)が名前を付けられて定義される。これらは、特定の要素に許容される属性(例えば "Style" 属性コレクション) 、あるいは特定の要素の子として許容される要素(例えば "Shape" 要素コレクション)を表すための総称として利用される。すべての総称は英大文字で始まる。
Most modules define a named collection of elements or attributes. These collections are used as a shorthand when describing the set of attributes allowed on a particular element (eg. the "Style" attibute collection) or the set of elements allowed as children of a particular element (eg. the "Shape" element collection). All collections have names that begin with an uppercase character.
プロファイルを定義する際には、全ての要素/属性コレクションは空と定義されているものと見なされる。モジュールは、要素と属性をプロファイルに追加してそれらをプロファイル内で利用可能にすることにより、プロファイルに含まれるコレクションを再定義することができる。そのようなわけで、モジュールからプロファイルに含まれていない要素/属性コレクションを参照することは誤りではない。それは単にコレクションが空であることを意味するに過ぎない。
When defining a profile, it is assumed that all the element and attribute collections are defined to be empty. That way, a module can redefine the collection as it is included in the profile, adding elements or attributes to make them available within the profile. Therefore, it is not a mistake to refer to an element or attribute collection from a module that is not included in the profile, it simply means that collection is empty.
唯一の例外はコレクション Presentation.attrib である。 Presentation.attrib はすべてのプレゼンテーション属性のコレクション("Presentation" が名前の一部であるようなコレクション)を集めたもので、どのモジュールでも定義されていないが全てのプロファイルに存在するものである。
The exception to this is the collection Presentation.attrib, which is the union of all the presentation attribute collections (i.e. all the attribute collections with the string "Presentation" in their name). Presentation.attrib is not defined in any module, but it exists in every profile.
サブセットモジュール(即ち基本モジュール)がスーパーセットモジュールと異なる名前のコレクションを定義することがある。一つのプロファイルに同じグループのサブセットとスーパーセットのモジュール両方を含めることはできないので、すべての要素/属性コレクションはそれらを含むモジュールで一度定義されているか、既定の空になっているかのいずれかである(ここでもやはり Presentation.attrib は例外で、どのモジュールからも定義されない)。
A subset module (ie. a Basic module) may define a different named collection from a superset module. Since it is an error to include a subset and superset module of the same group in a profile, all attribute and element collections will either be defined once by the module that includes them, or will have their default empty value (again, with the exception of Presentation.attrib which is not defined by any module).
1.1.3 SVG 仕様のプロファイル
SVG 1.1 におけるモジュール化により、プロファイルは、受け入れ可能な SVG モジュールと、必要ならそれらのモジュールの要素に対する少数の制約あるいは拡張を列挙することにより記述できるようになる。
The modularization of SVG 1.1 allows profiles to be described by listing the SVG modules they allow and possibly a small number of restrictions or extensions on the elements provided by those modules.
SVG 1.1 の「網羅的な」プロファイルとは、この仕様にある完全な(サブセットでない)モジュールをすべて集めたものである。
The "Full" profile of SVG 1.1 is the collection of all the complete modules listed in this specification (ie. every module that is not a subset module).
未修飾の「 SVG 」という語が適合するという意味で用いられる場合、この仕様で定められた SVG 1.1 の「網羅的な」プロファイルを含意する。実装においてこの網羅的なプロファイルを組み込めない場合、その実装が適合するプロファイルを明示的に定めるか、もしくは SVG のサブセットを実装していることを明示しなければならない。
When applied to conformance, the unqualified term "SVG" implies the "Full" profile of SVG 1.1 defined by this specification. If an implementation does not implement the Full profile, it must state either the profile to which it conforms, or that it implements a subset of SVG.
1.2 SVG の MIME タイプ, ファイル拡張子, Macintosh ファイルタイプ
SVG の MIME タイプは "image/svg+xml" である(
[RFC3023]
参照)。この MIME タイプの登録は W3C にて進行中である。
The MIME type for SVG is "image/svg+xml" (see [
RFC3023
]). The registration of this MIME type is in progress at the W3C.
全プラットフォームにおいて、 SVG ファイルの拡張子は ".svg"
(全て小文字)とし、
gzip
で圧縮された SVG ファイルの拡張子は ".svgz"
(全て小文字)とすることが推奨される。
It is recommended that SVG files have the extension ".svg"
(all lowercase) on all platforms. It is recommended that
gzip
-compressed SVG files have the extension ".svgz"
(all lowercase) on all platforms.
Macintosh HFS ファイルシステムでは SVG ファイルのファイルタイプを "svg "
(全て小文字, 4文字目はスペース文字)とし、
gzip
で圧縮された SVG ファイルのファイルタイプは "svgz"
(全て小文字)とすることが推奨される。
It is recommended that SVG files stored on Macintosh HFS file systems be given a file type of "svg "
(all lowercase, with a space character as the fourth letter). It is recommended that
gzip
-compressed SVG files stored on Macintosh HFS file systems be given a file type of "svgz"
(all lowercase).
1.3 SVG の名前空間, 公開識別子, システム識別子
以下は SVG 1.1 の名前空間, 公開識別子, システム識別子である。
The following are the SVG 1.1 namespace, public identifier and system identifier:
- SVG 名前空間( namespace ):
- http://www.w3.org/2000/svg
- SVG 1.1 の公開識別子( public identifier ):
- PUBLIC "-//W3C//DTD SVG 1.1//EN"
- SVG 1.1 勧告のシステム識別子( system identifier ):
- http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd
- SVG Namespace:
- http://www.w3.org/2000/svg
- Public Identifier for SVG 1.1:
- PUBLIC "-//W3C//DTD SVG 1.1//EN"
- System Identifier for the SVG 1.1 Recommendation:
- http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd
SVG 文書の
文書型宣言
の例を下に示す:
The following is an example
document type declaration
for an SVG document:
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
システム識別子に書かれた DTD はモジュール化されたものであり(その中身は複数のファイルに多岐にわたって存在する)、検証に際しては複数のモジュールを読み込む必要が生じ得る。そのようなわけで、検証用に単一のファイルにまとめられた DTD が次の URL に用意されている:
http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-flat.dtd
Note that DTD listed in the System Identifier is a modularized DTD (ie. its contents are spread over multiple files), which means that a validator may have to fetch the multiple modules in order to validate. For that reason, there is a single flattened DTD available that corresponds to the SVG 1.1 modularized DTD. It can be found at
http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-flat.dtd
.
1.4 他の標準との互換性
SVG は他の W3C の仕様および標準の成果を統合し、相乗効果をもたらす。標準への適合と相乗効果により、より強力になり、利用者にとっても自身のウェブサイトに SVG を取り入れる方法を習得するのが容易になる。
SVG leverages and integrates with other W3C specifications and standards efforts. By leveraging and conforming to other standards, SVG becomes more powerful and makes it easier for users to learn how to incorporate SVG into their Web sites.
SVG が互換性を保ちつつ他の W3C 仕様および標準の成果を統合して相乗効果が得られるようにするための仕組みの一部を以下に挙げる:
The following describes some of the ways in which SVG maintains compatibility with, leverages and integrates with other W3C efforts:
-
SVG は XML の一つの応用であり、"Extensible Markup Language (XML) 1.0"(拡張可能なマーク付け言語)勧告
[XML10]
と互換である。
-
SVG は "Namespaces in XML"( XML 名前空間)勧告
[XML-NS]
と互換である。
-
SVG は "XML Linking Language"( XLink 言語)
[XLINK]
を URI 参照で利用し、"XML Base"
[XML-BASE]
で定義されている基底 URI 仕様のサポートを要求する。
-
SVG における要素 ID への参照の構文は "XML Pointer Language (XPointer)"( XPointer 言語)
[XPTR]
の ID 参照の構文のサブセットと互換である。
(
エラータ
:この項目を削除。 XPointer はその後も変遷を続けており、 XPointer 関連はこの仕様からは取り除かれた。)
-
SVG 内容は CSS ( "Cascading Style Sheets level 2" 仕様
[CSS2]
)や XSL ( "XSL Transformations (XSLT) Version 1.0" )
[XSLT]
)によるスタイル付けが可能である(
CSS によるスタイル付け
および
XSL によるスタイル付け
を見よ)。
-
SVG は CSS と XSL に共通する関連のプロパティと手法、加えて、 CSS の一部の特色機能と意味内容をサポートする。(
SVG のスタイル付けプロパティ
と
SVG におけるスタイルシートの利用
を見よ)。
-
「 XML 文書とスタイルシートの関連付け」( "Associating Style Sheets with XML documents Version 1.0"
[XML-SS]
)に述べられている仕組を利用して、外部スタイルシートを参照することができる。
-
SVG は完全な文書オブジェクトモデル( DOM )を含み、 DOM1 ( "Document Object Model (DOM) level 1" 勧告
[DOM1]
)に適合する。 SVG DOM は DOM レベル1仕様で定義されている HTML DOM と高水準に互換性と一貫性を保っている。更に、 SVG DOM は、 CSS オブジェクトモデルとイベント処理を含む、DOM2 ( "Document Object Model (DOM) level 2"
[DOM2]
)の多くの機能をサポートし、組み込んでいる。
-
SVG は
'switch'
要素と
systemLanguage
属性をはじめとする、 SMIL (同期マルチメディア統合言語 - "Synchronized Multimedia Integration Language (SMIL) 1.0 Specification"
[SMIL1]
)の一部の特色機能と手法を組み込んでいる。
-
アニメーションの特色機能(
Animation
を見よ)は W3C SYMM ワーキンググループ( Synchronized Multimedia Working Group )と SMIL 1.0 仕様
[SMIL1]
の開発者と共同で開発された。アニメーションの特色機能は SMIL アニメーション仕様( "SMIL Animation Specification"
[SMILANIM]
)で述べられている汎用的な XML アニメーションの能力を組み込み、拡張する。
-
SVG は動画および静止画をメディアの部品として利用するために将来版の SMIL に対応するよう設計されている。
-
SVG は HTML 4
[HTML4]
と XHTML(tm) 1.0
[XHTML]
との最大限の互換性を得るよう企図されている。 SVG の機能の多くは CSS
[CSS2]
の利用, イベント処理の仕方, 文書オブジェクトモデル
[DOM2]
も含めて直接的に HTML を引き継ぐ様にモデル化されている。
-
SVG は W3C による国際化における成果:
[UNICODE]
[CHARMOD]
と互換である(
国際化のサポート
を見よ)。
-
SVG は W3C によるウェブアクセシビリティにおける成果:
[WAI]
と互換である(
アクセシビリティのサポート
を見よ)。
- SVG is an application of XML and is compatible with the "Extensible Markup Language (XML) 1.0" Recommendation
[XML10]
- SVG is compatible with the "Namespaces in XML" Recommendation
[XML-NS]
- SVG utilizes "XML Linking Language (XLink)"
[XLINK] for URI referencing and requires support for base URI specifications defined in "XML Base"
[XML-BASE].
- SVG's syntax for referencing element IDs is a compatible subset of the ID referencing syntax in "XML Pointer Language
(XPointer)"
[XPTR].
- SVG content can be styled by either CSS (see "Cascading Style Sheets (CSS) level 2" specification
[CSS2]) or XSL (see
"XSL Transformations (XSLT) Version 1.0"
[XSLT]). (See Styling with CSS and
Styling with XSL)
- SVG supports relevant properties and approaches common to CSS and XSL, plus selected semantics and features of CSS (see
SVG's styling properties and SVG's Use of Cascading Style Sheets).
- External style sheets are referenced using the mechanism documented in "Associating Style Sheets with XML documents Version 1.0"
[XML-SS].
- SVG includes a complete Document Object Model (DOM) and conforms to the "Document Object Model (DOM) level 1" Recommendation
[DOM1]. The SVG DOM has a high level of compatibility and consistency with the HTML DOM that is defined in the DOM Level 1 specification. Additionally, the SVG DOM supports and incorporates many of the facilities described in "Document Object Model (DOM) level 2"
[DOM2], including the CSS object model and event handling.
- SVG incorporates some features and approaches that are part of the "Synchronized Multimedia Integration Language
(SMIL) 1.0 Specification"
[SMIL1], including the 'switch' element and the systemLanguage attribute.
- SVG's animation features (see Animation) were developed in collaboration with the W3C Synchronized Multimedia (SYMM)
Working Group, developers of the Synchronized Multimedia Integration Language (SMIL) 1.0 Specification
[SMIL1]. SVG's animation features incorporate and extend the general-purpose XML animation capabilities described in the "SMIL Animation" specification [
SMILANIM].
- SVG has been designed to allow future versions of SMIL to use animated or static SVG content as media components.
- SVG attempts to achieve maximum compatibility with both HTML 4
[HTML4]
and XHTML(tm) 1.0
[XHTML]. Many of SVG's facilities are modeled directly after HTML, including its use of CSS
[CSS2],
its approach to event handling, and its approach to its Document Object Model
[DOM2].
- SVG is compatible with W3C work on internationalization.
References (W3C and otherwise) include:
[UNICODE]
and
[CHARMOD].
Also, see Internationalization Support.
- SVG is compatible with W3C work on Web Accessibility
[WAI]. Also, see Accessibility Support.
他の XML 文法(例えば XHTML
[XHTML]
)において
[DOM2]
がサポートされており、かつ SVG および SVG DOM もサポートされている環境においては、一つのスクリプト手法が XML 文書と SVG グラフィックスの両方で同時に通用し、同じスクリプトにより複数の XML 名前空間にわたる対話的かつ動的な効果が得られる。
In environments which support
[DOM2]
for other XML grammars (e.g., XHTML
[XHTML]
) and which also support SVG and the SVG DOM, a single scripting approach can be used simultaneously for both XML documents and SVG graphics, in which case interactive and dynamic effects will be possible on multiple XML namespaces using the same set of scripts.
1.5 語法
(注意:この日本語訳では下の段落の記述についてうのみにしないように。例えば「 SHOULD 」等に別の訳があてがわれていることもあります。)
この仕様における次の各キーワード「しなければならない( MUST )」「してはならない( MUST NOT )」「要求されている( REQUIRED )」「することになる( SHALL )」「することはない( SHALL NOT )」「すべきである( SHOULD )」、「すべきでない( SHOULD NOT )」「推奨される( RECOMMENDED )」、「してもよい( MAY )」「選択できる( OPTIONAL )」は、 RFC 2119 (
[RFC2119]
参照)で述べられているように解釈されるべきものである。ただし、可読性のためこれらのキーワードは全部大文字で書かれているわけではない。
Within this specification, the key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" are to be interpreted as described in RFC 2119 (see [
RFC2119
]). However, for readability, these words do not appear in all uppercase letters in this specification.
ときどきこの仕様では文書作成者とユーザーエージェント(の実装者)に対し「良い行い」を推奨することがある。これらの推奨では「…が推奨される」などの表現が用いられているが、それらは上記約束事とは合致していない。これらの推奨は正式でなものではなく、それらの具現化がこの仕様に適合することを意味するわけではない。
At times, this specification recommends good practice for authors and user agents. These recommendations are not normative and conformance with this specification does not depend on their realization. These recommendations contain the expression "We recommend ...", "This specification recommends ...", or some similar wording.
1.6 用語定義
この節における用語定義では他の仕様(例えば XML )の用語が利用されており、それらの対訳としての用語が一般に利用されているものと必ずしも一致しているとは限らないので、この翻訳には
対訳表および若干の説明
が用意されています。
- 基本図形( basic shape )
-
グラフィックス演算に共通して利用するために SVG であらかじめ定義された標準の
図形
。次のもの:
'rect',
'circle',
'ellipse',
'line',
'polyline',
'polygon'
-
Standard shapes which are predefined in SVG as a convenience for common graphical operations. Specifically:
'rect'
,
'circle',
'ellipse',
'line',
'polyline',
'polygon'
.
- キャンバス( canvas )
-
グラフィックス要素が描かれる面であり、ディスプレイや紙などの現実の物理的な媒体であったり、コンピュータのメモリに割り当てられた領域のような抽象的な面の場合もある。詳細は
座標系, 変換, 単位
の章の
SVG キャンバス
の節を見よ。
-
A surface onto which graphics elements are drawn, which can be real physical media such as a display or paper or an abstract surface such as a allocated region of computer memory. See the discussion of the
SVG canvas
in the chapter on
Coordinate Systems, Transformations and Units
.
- クリッピングパス( clipping path )
-
'path'
と
'text'
と
基本図形
の組み合わせで表現される(アンチエイリアスを無視すれば)1ビットのマスクの外形線であり、「内側」では全てが見えるが外側は全てが覆い隠されるもの。
クリッピングパス
を見よ。
-
A combination of
'path',
'text'
and
basic shapes
which serve as the outline of a (in the absence of anti-aliasing) 1-bit mask, where everything on the "inside" of the outline is allowed to show through but everything on the outside is masked out. See
Clipping paths
.
- コンテナ要素( container element )
-
グラフィックス要素や他のコンテナ要素を子要素として持つことができる要素。次のもの:
'svg',
'g',
'defs'
'symbol',
'clipPath',
'mask',
'pattern',
'marker',
'a',
'switch'
-
An element which can have graphics elements and other container elements as child elements. Specifically:
'svg',
'g',
'defs'
'symbol',
'clipPath',
'mask',
'pattern',
'marker',
'a'
and
'switch'
.
-
現在の最も内側の SVG 文書片( current innermost SVG document fragment )
-
XML 文書木において、与えられた SVG 要素から最も近い祖先の
'svg'
要素下の XML 文書部分木。
-
The XML document sub-tree which starts with the most immediate ancestor
'svg'
element of a given SVG element.
- 現在の SVG 文書片( current SVG document fragment )
-
XML 文書木において、与えられた SVG 要素から根元側の要素であって、この二つの要素間のコンテナ要素がすべて SVG 言語の要素であるような要素のうち、最も遠い祖先の
'svg'
要素下の XML 文書部分木。
-
The XML document sub-tree which starts with the outermost ancestor
'svg'
element of a given SVG element, with the requirement that all container elements between the outermost
'svg'
and this element are all elements in the SVG language.
- 現在の変換行列( CTM )( current transformation matrix )
-
変換行列とは座標系から座標系への数学的写像を定義する、等式:
[x' y' 1] = [x y 1] * 行列
で表される 3x3 の行列。
現在の変換行列( CTM )とは利用座標系からビューポート座標系への
変換行列
を意味する。
座標系変換
を見よ。
-
Transformation matrices define the mathematical mapping from one coordinate system into another using a 3x3 matrix using the equation
[x' y' 1] = [x y 1] * matrix
. The current transformation matrix (CTM) defines the mapping from the user coordinate system into the viewport coordinate system. See
Coordinate system transformations
.
- フィル/内部への塗り( fill )
-
図形
または
グリフ
の内部に
塗り
を適用する処理。
-
The operation of
painting
the interior of a
shape
or the interior of the character glyphs in a text string.
- フォント( font )
-
フォントとは、共通した外観やスタイルを持つような様々な
グリフ
を組織化して集めたものを表す。ここでの組織化とは文字の並びが描画される際に、読み取り易く、特定の美観を備えたスタイルで、かつ一貫した字詰めと字揃えを持たせることを意味する。
-
A font represents an organized collection of
glyphs
in which the various glyph representations will share a common look or styling such that, when a string of characters is rendered together, the result is highly legible, conveys a particular artistic style and provides consistent inter-character alignment and spacing.
- グリフ( glyph )
-
グリフとは、フォントに含まれる描画内容の最小単位のことである。描かれる文字はグリフとほぼ1対1に対応するが(例えば文字 "A" はたいていは一つのグリフで描画される)、単一の文字に複数のグリフが使用されたり(例えばアクセント付き文字)、複数の文字に単一のグリフが使用されることがある(例えばリガチャ)。一般的にグリフはいくつかの
パス
などの
図形
により定義され、場合によっては付加的情報(フォントエンジンがテキストを小さいサイズでも読み取りやすく描画できるようにするためのヒント情報など)を持つことがある。
(訳注:フォントに関する用語はややこしく、「グリフ」と「字形」, 「書体」と「字体」, 「合字」と「リガチャ」など、似ているようで実際には微妙に異なる概念を表すものが多い。この翻訳では
フォント情報処理用語( TR X 0003:2000 )
を参考にした)
-
A glyph represents a unit of rendered content within a
font
. Often, there is a one-to-one correspondence between characters to be drawn and corresponding glyphs (e.g., often, the character "A" is rendered using a single glyph), but other times multiple glyphs are used to render a single character (e.g., use of accents) or a single glyph can be used to render multiple characters (e.g., ligatures). Typically, a glyph is defined by one or more
shapes
such as a
path, possibly with additional information such as rendering hints that help a font engine to produce legible text in small sizes.
- グラフィックス要素( graphics element )
-
キャンバスに描かれる型の要素。次のもの:
'path',
'text',
'rect',
'circle',
'ellipse',
'line',
'polyline',
'polygon',
'image', 'use'
-
One of the element types that can cause graphics to be drawn onto the target canvas. Specifically:
'path',
'text',
'rect',
'circle',
'ellipse',
'line',
'polyline',
'polygon',
'image'
and
'use'
.
- グラフィックス参照要素( graphics referencing element )
-
グラフィックス内容として他の文書または要素への参照を用いるグラフィックス要素。次のもの:
'use',
'image'
-
A graphics element which uses a reference to a different document or element as the source of its graphical content. Specifically:
'use'
and
'image'
.
- 局所 URI 参照( local URI reference )
-
<absoluteURI>
も
<relativeURI>
も含まれていない統一リソース識別子( Uniform Resource Identifier )
[URI]
であり、現在の文書の要素への参照を表現する。(
参照と 'defs' 要素を見よ。)
-
A Uniform Resource Identifier [
URI
] that does not include an
<absoluteURI>
or
<relativeURI>
and thus represents a reference to an element within the current document. See
References and the 'defs' element
.
- マスク( mask )
-
前景となるオブジェクトを背景に合成する際に半透明のマスクとして利用される一連のグラフィックを定義する
コンテナ要素
。
マスク
を見よ。
-
A
container element
which can contain
graphics elements
or other container elements which define a set of graphics that is to be used as a semi-transparent mask for compositing foreground objects into the current background. See
Masks
.
- 非局所 URI 参照( non-local URI reference )
-
<absoluteURI>
(絶対 URI )または
<relativeURI>
(相対 URI )が含まれている統一リソース識別子( Uniform Resource Identifier )
[URI]
のことであり、他の文書あるいは他の文書に含まれている要素への参照を表現する。
参照と'defs'要素
を見よ。
-
A Uniform Resource Identifier [
URI
] that includes an
<absoluteURI>
or
<relativeURI>
and thus (usually) represents a reference to a different document or an element within a different document. See
References and the 'defs' element
.
-
最も外側の svg 要素( outermost svg element )
-
(
エラータ
:用語としてこのリストの項目に追加。これに伴い、この訳の本文中でも暗黙に用語としてマークアップしている)
現在の
SVG 文書片
の中で最も遠い祖先要素になる
'svg'
要素。
-
The furthest
'svg'
ancestor element that remains in the current
SVG document fragment.
- 塗り( paint )
-
塗りとはキャンバス上に色を置く方法を表現するものであり、色の値およびキャンバス上の色との混合を制御するために用いられるアルファ値から構成される。 SVG には次の3種類の塗り:
色,
グラデーション,
パターン
が組込まれている。
-
A paint represents a way of putting color values onto the canvas. A paint might consist of both color values and associated alpha values which control the blending of colors against already existing color values on the canvas. SVG supports three types of built-in paint:
color,
gradients
and
patterns
.
- プレゼンテーション属性( presentation attribute )
-
SVG 要素で利用できる XML 属性であり、その要素のプロパティの値を指定する。
スタイル付け
を見よ。
-
An XML attribute on an SVG element which specifies a value for a given property for that element. See
Styling
.
- プロパティ( property )
-
文書がどのように出力されるべきかの指定を補助するパラメタ。 SVG のプロパティの完全なリストは、
プロパティ索引
に示されている。プロパティは、 SVG 言語の要素の
プレゼンテーション属性
、あるいは CSS
[CSS2]
のようなスタイル言語の使用により、 SVG 言語の要素にあてがわれる。
スタイル付け
を見よ。
-
A parameter that helps specify how a document should be rendered. A complete list of SVG's properties can be found in
Property Index
. Properties are assigned to elements in the SVG language either by
presentation attributes
on elements in the SVG language or by using a styling language such as CSS [
CSS2
]. See
Styling
.
- 図形( shape )
-
曲線と直線の組み合わせによって定義されるグラフィックス要素。次のもの:
'path',
'rect',
'circle',
'ellipse',
'line',
'polyline',
'polygon'
-
A graphics element that is defined by some combination of straight lines and curves. Specifically:
'path',
'rect',
'circle',
'ellipse',
'line',
'polyline',
'polygon'
.
- ストローク/外形線への塗り( stroke )
-
図形
または
グリフ
の外形線に
塗り
を適用する処理。
-
The operation of
painting
the outline of a
shape
or the outline of character glyphs in a text string.
- SVG キャンバス( SVG canvas )
-
SVG 内容が描画される
キャンバス
。詳細は
座標系, 変換, 単位
の章の
SVG キャンバス
節で述べられる。
-
The
canvas
onto which the SVG content is rendered. See the discussion of the
SVG canvas
in the chapter on
Coordinate Systems, Transformations and Units
.
- SVG 文書片
-
'svg'
要素で始まる XML 文書部分木。 SVG 文書片は、単独の SVG 文書、または親となる XML 文書の中で
'svg'
要素に囲まれた一片からなる。
'svg'
要素が他の
'svg'
要素の子孫であれば、対応する二つの SVG 文書片が存在することになる(一方の SVG 文書片が他方に含まれる)。
-
The XML document sub-tree which starts with an
'svg'
element. An SVG document fragment can consist of a stand-alone SVG document, or a fragment of a parent XML document enclosed by an
'svg'
element. When an
'svg'
element is a descendant of another
'svg'
element, there are two SVG document fragments, one for each
'svg'
element. (One SVG document fragment is contained within another SVG document fragment.)
- SVG ビューポート( SVG viewport )
-
SVG 内容が描画される矩形領域を定義する、
SVG キャンバス
の
ビューポート
。詳細は
座標系, 変換, 単位
の章における
SVG ビューポート
の節で解説する。
-
The
viewport
within the
SVG canvas
which defines the rectangular region into which SVG content is rendered. See the discussion of the
SVG viewport
in the chapter on
Coordinate Systems, Transformations and Units
.
- テキスト内容要素( text content element )
-
キャンバス上に描画される文字列を定義する SVG の要素。次のもの:
'text',
'tspan',
'tref',
'textPath',
'altGlyph'
-
One of SVG's elements that can define a text string that is to be rendered onto the canvas. SVG's text content elements are the following:
'text',
'tspan',
'tref',
'textPath'
and
'altGlyph'
.
- 変換( transformation )
-
一連の(伸縮, 回転, 移動などの)単純な変換、および/または一つ以上の
変換行列
で与えられる追加的な変換による、
現在の変換行列( CTM )
に対する変更。
座標系変換
を見よ。
-
A modification of the
current transformation matrix (CTM)
by providing a supplemental transformation in the form of a set of simple transformations specifications (such as scaling, rotation or translation) and/or one or more
transformation matrices
. See
Coordinate system transformations
.
- 変換行列( transformation matrix )
-
変換行列とは座標系から座標系への数学的写像を定義する、等式:
[x' y' 1] = [x y 1] * 行列
で表される 3x3 の行列。
現在の変換行列( CTM )
と
座標系変換
を見よ。
-
Transformation matrices define the mathematical mapping from one coordinate system into another using a 3x3 matrix using the equation
[x' y' 1] = [x y 1] * matrix
. See
current transformation matrix (CTM)
and
Coordinate system transformations
.
- URI 参照( URI reference )
-
ファイルまたはファイル内の要素への参照としての役目を持つ統一リソース識別子
[URI]
。
参照と 'defs' 要素
を見よ。
-
A Uniform Resource Identifier [
URI
] which serves as a reference to a file or to an element within a file. See
References and the 'defs' element
.
- UA( user agent - ユーザーエージェント)
-
(訳注:この語は全般にわたって頻出し、「ユーザーエージェント」と記すと可読性を著しく損なう部分も見受けられるので、この翻訳では「UA」と略記する。)
UAの一般的な定義は、テキスト, グラフィックス, 音声, ビデオ, 画像その他など種々の形式のウェブコンテントを取得し、再生するアプリケーションのことである。UAは、一部の形式の内容を処理する補助的なUAを別途必要とすることがある。例えば、ブラウザは音声あるいはビデオを再生するために別個のプログラムやプラグインを走らせることがある。UAには、デスクトップブラウザ, マルチメディアプレイヤー, テキストブラウザ, 音声読み上げブラウザ, 支援技術(スクリーンリーダー, 画面拡大鏡, 音声合成装置, オンスクリーンキーボード, 音声入力ソフト)が含まれる。
UAには SVG 内容を描画する能力を持つものもあれば持たないものもある。しかしながら、「 SVG-UA」と記すときは SVG 内容の取得と描画を行えるものを指す。
-
The general definition of a user agent is an application that retrieves and renders Web content, including text, graphics, sounds, video, images, and other content types. A user agent may require additional user agents that handle some types of content. For instance, a browser may run a separate program or plug-in to render sound or video. User agents include graphical desktop browsers, multimedia players, text browsers, voice browsers, and assistive technologies such as screen readers, screen magnifiers, speech synthesizers, onscreen keyboards, and voice input software.
A "user agent" may or may not have the ability to retrieve and render SVG content; however, an "SVG user agent" retrieves and renders SVG content.
- 利用座標系( user coordinate system )
-
一般に、座標系は現在の
キャンバス
上における位置と距離を定義する。現在の
利用座標系
とは、現在対象となっている座標系のことであり、現在の
キャンバス
上でどのように座標が位置し、距離が計算されるかを定めるために用いられる。
初期利用座標系
と
座標系変換
を見よ。
(訳注:以前の版では「ユーザー座標系」と訳していた。)
-
In general, a coordinate system defines locations and distances on the current
canvas
. The current
user coordinate system
is the coordinate system that is currently active and which is used to define how coordinates and lengths are located and computed, respectively, on the current
canvas
. See
initial user coordinate system
and
Coordinate system transformations
.
- 利用空間( user space )
-
利用座標系
の同義語。
-
A synonym for
user coordinate system
.
- 利用単位( user units )
-
利用単位で表された座標または距離の値は現在の
利用座標系
における座標または距離の値を表す。例えば 10 利用単位は現在の利用座標系における距離 10 の長さを表す。
-
A coordinate value or length expressed in user units represents a coordinate value or length in the current
user coordinate system
. Thus, 10 user units represents a length of 10 units in the current user coordinate system.
- ビューポート( viewport )
-
グラフィックス要素
が描画される現在のキャンバス内の矩形領域。
座標系, 変換, 単位
の章の
SVG ビューポート
で解説する。
-
A rectangular region within the current
canvas
onto which
graphics elements
are to be rendered. See the discussion of the
SVG viewport
in the chapter on
Coordinate Systems, Transformations and Units
.
- ビューポート座標系( viewport coordinate system )
-
一般に、座標系は現在の
キャンバス
における位置と距離を定義する。
ビューポート座標系
とは
'svg'
要素において、オプションの
viewBox
属性を処理する前の、処理を始めた時点で有効になる座標系を指す。レイアウト管理に CSS を利用している親の文書に SVG 文書片が埋め込まれている場合、ビューポート座標系の方向と長さは
CSS により定められるものと同じになり、その原点は
ビューポート
の左上の点に位置することになる。
初期ビューポート
と
新しいビューポートの確立
を見よ。
-
In general, a coordinate system defines locations and distances on the current
canvas
. The
viewport coordinate system
is the coordinate system that is active at the start of processing of an
'svg'
element, before processing the optional
viewBox
attribute. In the case of an SVG document fragment that is embedded within a parent document which uses CSS to manage its layout, then the viewport coordinate system will have the same orientation and lengths as in CSS, with the origin at the top-left on the
viewport
. See
The initial viewport
and
Establishing a new viewport
.
- ビューポート空間( viewport space )
-
ビューポート座標系
の同義語。
-
A synonym for
viewport coordinate system
.
- ビューポート単位( viewport units )
-
ビューポート単位による座標または距離の値は現在の
ビューポート座標系
における座標または距離の値を表す。例えば 10 ビューポート単位はビューポート座標系における距離 10 の長さを表す。
-
A coordinate value or length expressed in viewport units represents a coordinate value or length in the
viewport coordinate system
. Thus, 10 viewport units represents a length of 10 units in the viewport coordinate system.