\setcounter{section}{32} >
form> is a self-contained description of any arbitrary geometric
graphics, text, or raster graphics that are to be imaged multiple times,
either on one page or on several pages.
]]>
フォーム>とは,1個のページ上にも複数のページ上にも繰り返し描画すること
のできる,任意の幾何学図形,テキスト又はラスター図形の自己完結した記述と
する。
フォームのモデル
RESOURCE DEFINITION, and is bound to the value of an
INTERNAL RESOURCE IDENTIFIER in a RESOURCE DECLARATION.
]]>
フォームは,資源定義構造要素を介して構造のレベルで定義さ
れ,
資源宣言構造要素内で
内部資源識別子構造要素の値に結び付けられる。
フォームの外観は,作画演算子群を実行する手続きによって記述される。
FindResource> operator is used in content to obtain a form, which
is represented in content by a Form Object>, and is imaged by providing
the Form Object as an operand to the ExecuteForm> operator.
]]>
内容中でフォームを取得するためにFindResoure>演算子が用いられる。
フォームは,内容中ではフォームオブジェクト>によって表現され,
フォームオブジェクトをExecuteForm>演算子にオペランドとして
与えることにより描画される。
Form Object> type in SPDL; rather the term is used as a
convenient term to describe both references to the particular objects of type
Dictionary> which represent a form and its associated parameters (and
are obtained via the FindResource> operator) and to the Dictionaries
themselves.
]]>
SPDLにフォームオブジェクト>型という型が存在するわけではない。
そうではなくて,この語は,フォームとその関連パラメータ群を表現する
(そしてFindResource>演算子を介して取得される)辞書>型の特定の
オブジェクトへの参照,及びそれらの辞書そのものの両方を示すための
便宜的な用語として用いられる。
すなわち,フォームオブジェクトという語は,辞書参照及び辞書の両方に
用いられる。
どちらを意図して用いられたかは,分脈から明らかとなる。
ExecuteForm> operator.
]]>
この節の残りの部分では,フォーム辞書の内容及びExecuteForm>演算子の
意味について記述する。
フォーム辞書
フォームは,フォームオブジェクトによって表現される。このフォーム
オブジェクトは,作画されるべきフォームを完全に記述する規定された内容をもつ
フォーム辞書への参照とする。
form coordinate system>, which is defined by concatenating
the value bound to the Matrix> key in the Form Dictionary
with the CurrentTransformation> each time the Form Objects's
PaintProc> (the Procedure in the Form Dictionary that images the form)
is executed.
]]>
フォームは,その固有の座標系であるフォーム座標系>内で定義される。
フォーム座標系は,フォーム辞書のPaintProc> (フォームの作画を行う
フォーム辞書中の手続き)が実行されるたびに,フォーム辞書の中の
Matrix>キーに結び付けられた値とCurrentTransformation>
とを連結することによって定義される。
BBox> parameter in the Form Dictionary is interpreted in the form
coordinate system; the PaintProc> is executed in that coordinate system.
]]>
フォーム辞書の中のBBox>パラメータは,フォーム座標系内で解釈される。
PaintProc>は,この座標系において実行される。
からまでで,フォーム辞書の内容について述べる。
PaintProc>
(see ).
]]>
これから述べる内容に加えて,フォーム辞書は,PaintProc>
(参照)が
必要とする他の(定数)情報をも含むことができる。
BBox
is a 4-element Vector of
type Number> specifying the bounding box of the form in the form
coordinate system.
]]>
必す(須)のキーと値との対<は,フォーム座標系内でフォームの境界く(矩)形
領域を指定する,数>型の4個の要素からなるベクタとする。
この境界く(矩)形領域は,フォームをクリップするのに用いられる。
このベクタの四つの要素は,それぞれ境界く(矩)形領域の左下のx座標,左下のy座標,
右上のx座標及び右上のy座標を指定する。
[llx lly urx ury]
Matrix
is the
Transformation to be concatenated with the CurrentTransformation> to
produce the Transformation that defines the form coordinate system.
]]>
必す(須)のキーと値との対<は,フォーム座標系を定義する
座標変換を作るためにCurrentTransformation>と連結される座標変換とする。
PaintProc
specifies the
Procedure used to paint the form.
]]>
必す(須)のキーと値との対<は,フォームを描くために用いられる
手続きを指定する。
PaintProc> takes one operand
]]>
PaintProc>は,次に示す1個のオペランドをとり,結果を返さない。
]]>
<
FormDict> is a reference to the Form Dictionary containing
PaintProc>, and returns no results.
]]>
ここで,FormDict>は,PaintProc>を含むフォーム辞書への参照とする。
PaintProc> is to image one instance of the
form.
]]>
PaintProc>を実行すると,そのフォームのインスタンスが1個
描かれる。
PaintProc> is described
in .
]]>
PaintProc>のための解釈文脈は,で述べる。
PaintProc> executes the ImageRasterElement> or
MaskBitMap> imaging operators, none of the underlying Data Sources
for the operator may be DataSource::Document>.
]]>
PaintProc>がImageRasterElement>又はMaskBitMap>作画演算子を
実行する場合,その操作に用いられるデータソースは,いずれも
DataSource::Document>であってはならない。
FindResource> operator to
obtain the StreamObject shall occur within PaintProc>.
]]>
このデータソースのいずれかが外部データソースから引き出されたストリーム
オブジェクトである場合,このストリームオブジェクトを得るための
FindResource>演算子が,PaintProc>内部で実行されなければならない。
PaintProc> may be executed
at unpredictable times and in unpredictable contexts.
]]>
多くの実装では,最近使用されたフォームのキャッシュを管理することによって
実行を最適化することが予想されるので,PaintProc>は,予測できない回数
及び文脈のもとで実行される可能性がある。
PaintProc> should rely only on the operators in
SystemDict>, on the contents of its FormDict> operand, and the
Graphics State Variables not set to their default values
according to .
]]>
したがって,PaintProc>は,SystemDict>中の演算子,
そのFormDict>オペランドの内容,及びでの規定に従って無指定時値に
設定されるもの以外の作図状態変数群にだけ依存するべきである。
PaintProc>は,常に同じ結果となるべきである。
PaintProc>は,フォームを描画する以外の副作用をもたないようにすべきで
ある。
UniqueID
is designed to
uniquely identify, for caching purposes, a form that is to be used by multiple
documents.
]]>
任意選択のキーと値との対<は,キャッシュ処理のために,
複数の文書によって用いられるフォームを一意に識別するために用意されている。
キャッシュの実装において発生し得るメモリ資源の浪費を防ぐため,単一の
文書内で指定されかつ使用されるフォームのフォーム辞書は,このキーを含むべきでは
ない。
Implementation
is added to the Form
Dictionary by the ExecuteForm> operator.
]]>
キーと値との対<は,ExecuteForm>演算子によりフォーム
辞書の中に加えられる。
これは,フォームのキャッシュ処理を補助する情報を保持するために,
実装によって用いられるためのものとする。
このキーの型及び値は,実装依存とする。
Implementation> is placed in a Form
Dictionary by the TOKENSEQUENCE> that defines the Dictionary, its value
may be overwritten by the ExecuteForm> operator.
]]>
Implementation>キーをもったキーと値との対が,辞書を定義する
トークン列>構造要素によってあるフォーム辞書の中に置かれた場合,
その値は,ExecuteForm>演算子によって書き換えられてもよい。
内容の中で使用するフォーム辞書の取得
ExecuteForm> operator
is obtained via execution of the FindResource> operator.
]]>
ExecuteForm>演算子のオペランドとして用いられるフォームオブジェクトは,
FindResource>演算子の実行を介して取得される。
FindResource> operator takes as an operand an INTERNAL RESOURCE
IDENTIFIER> that has been previously bound to a Form resource in structure
by a RESOURCE DECLARATION>, and returns a Form Object.
]]>
FindResource>演算子は,あらかじめ資源宣言構造要素によって構造中の
フォーム資源に結び付けられていた内部資源識別子構造要素をオペランドとし,
フォームオブジェクトを返す。
FindResource> operator does not examine the Form Dictionary
referenced by the Form Object to ensure that the required keys are present
and of the correct type; this function is performed by the ExecuteForm>
operator.
]]>
FindResource>演算子は,必要なキーが存在し,かつそれらが正しい型である
ことを保証するためにフォームオブジェクトによって参照されるフォーム辞書を調べる
ことはしない。この機能は,ExecuteForm>演算子によって実行される。
ExecuteForm> operator, which
in turn executes the PaintProc> in the Form Objects's Form Dictionary.
]]>
フォームは,ExecuteForm>演算子の実行を介して作画される。それは,つまり,
そのフォームオブジェクトのフォーム辞書中のPaintProc>を実行すること
となる。
ExecuteForm> operator, a document should set
appropriate parameters in the graphics state; in particular, it should alter
the CurrentTransformation> in order to control the position, size,
and orientation of the form in User Coordinate Space.
]]>
ExecuteForm>演算子の実行に先だって,文書は,作図状態の中に適切な
パラメータを設定しておくべきである。特に,ユーザ座標空間内におけるフォームの
位置,大きさ及び向きを制御するため,CurrentTransformation>を変更すべき
である。
PaintProc>, the following Graphics State
Variables are reset to their default values (see for the default
value for each):
]]>
PaintProc>の実行に先立って,次に示す作図状態変数群はその無指定時値に
リセットされる。(各無指定時値については,参照。)
-
PaintProc> in imaging the form.
]]>
上の作図状態変数群の無指定時値以外の値が欲しい場合には,
作図状態変数の値又はその他の情報を表現するための付加的なキーと値との対を
フォーム辞書中に定義しておいてもよい。
それらは,フォームの作画に際して,PaintProc>によって利用することができる
。
PaintProc>
executes is implementation-dependent.
]]>
その中でPaintProc>が実行される仮想機械の状態の残りの部分は,実装依存と
する。
ExecuteForm> operator.
]]>
実装によっては,残りの仮想機械の状態の一部またはすべてが,ExecuteForm>
演算子実行時の仮想機械の状態から継承されてもよい。