Translation:Text Frames
From IDMLWiki
Contents |
テキストフレーム(TextFrame)
<TextFrame>エレメントには、他のページオブジェクトにはないいくつかのプロパティがあります。それらのプロパティについて説明します。
スキーマの例30 TextFrame
TextFrame_Object = element TextFrame{
attribute Self { xsd:string },
attribute ParentStory{ xsd:string }?,
attribute PreviousTextFrame{ xsd:string }?,
attribute NextTextFrame{ xsd:string }?,
attribute ContentType{ ContentType_EnumValue }?,
attribute AllowOverrides{ xsd:boolean }?,
attribute FillColor{ xsd:string }?,
attribute FillTint{ xsd:double }?,
attribute OverprintFill{ xsd:boolean }?,
attribute StrokeWeight{ xsd:double }?,
attribute MiterLimit{ xsd:double {minInclusive="1" maxInclusive="500"} }?,
attribute EndCap{ EndCap_EnumValue }?,
attribute EndJoin{ EndJoin_EnumValue }?,
attribute StrokeType{ xsd:string }?,
attribute StrokeCornerAdjustment{ StrokeCornerAdjustment_EnumValue }?,
attribute StrokeDashAndGap{ list { xsd:double * } }?,
attribute LeftLineEnd{ ArrowHead_EnumValue }?,
attribute RightLineEnd{ ArrowHead_EnumValue }?,
attribute StrokeColor{ xsd:string }?,
attribute StrokeTint{ xsd:double }?,
attribute CornerRadius{ xsd:double }?,
attribute GradientFillStart{ UnitPointType_TypeDef }?,
attribute GradientFillLength{ xsd:double }?,
attribute GradientFillAngle{ xsd:double }?,
attribute GradientStrokeStart{ UnitPointType_TypeDef }?,
attribute GradientStrokeLength{ xsd:double }?,
attribute GradientStrokeAngle{ xsd:double }?,
attribute OverprintStroke{ xsd:boolean }?,
attribute GapColor{ xsd:string }?,
attribute GapTint{ xsd:double }?,
attribute OverprintGap{ xsd:boolean }?,
attribute StrokeAlignment{ StrokeAlignment_EnumValue }?,
attribute Nonprinting { xsd:boolean }?,
attribute ItemLayer{ xsd:string }?,
attribute Locked { xsd:boolean }?,
attribute LocalDisplaySetting{ DisplaySettingOptions_EnumValue }?,
attribute GradientFillHiliteLength{ xsd:double }?,
attribute GradientFillHiliteAngle{ xsd:double }?,
attribute GradientStrokeHiliteLength{ xsd:double }?,
attribute GradientStrokeHiliteAngle{ xsd:double }?,
attribute AppliedObjectStyle{ xsd:string }?,
attribute CornerOption{ CornerOptions_EnumValue }?,
attribute ItemTransform{ TransformationMatrixType_TypeDef }?,
element Properties {element PathGeometry{ element GeometryPathType { GeometryPathType_TypeDef }*
}?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,((TextPath_Object*&
GridDataInformation_Object?),
(TransparencySetting_Object?&
StrokeTransparencySetting_Object?&FillTransparencySetting_Object?&ContentTransparencySetting_Object?&TextFramePreference_Object?&AnchoredObjectSetting_Object?&BaselineFrameGridOption_Object?&TextWrapPreference_Object?)
)
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| NextTextFrame | string | 連結している、次のテキストフレーム(ストーリー中のスレッド順による)のSelf属性の値 | |
| ParentStory | string | ストーリーのSelf属性の値 | |
| PreviousTextFrame | string | 連結している、前のテキストフレーム(ストーリー中のスレッド順による)のSelf属性の値 |
テキストフレーム内のテキストは、<TextFrame>エレメントではないことに注意してください。その代わりに、<TextFrame>エレメントは<Story>エレメント(通常、IDMLパッケージ内のStory.xml内にある)を参照しています。<Story>エレメントにテキストが含まれています。これは、ストーリーが外部ファイルとリンクしていても同様です。テキストフレームは、外部ファイルではなくIDMLパッケージ内のStory.xmlファイルを参照し、<Story>エレメントに外部ファイルへの参照があります。
下記は単純なテキストフレームの例です。
IDMLの例21 TextFrame
<TextFrame Self="ucd" ParentStory=" ue7" PreviousTextFrame=" n" NextTextFrame=" n" ContentType=" TextType" ItemTransform=" 1 0 0 1 0 0"><Properties><PathGeometry><GeometryPathType PathOpen=" false"><PathPointArray><PathPointType Anchor="72 -324" LeftDirection=" 72 -324" RightDirection=" 72 -324"/><PathPointType Anchor="72 -252" LeftDirection=" 72 -252" RightDirection=" 72 -252"/><PathPointType Anchor="144 -252" LeftDirection=" 144 -252" RightDirection=" 144 -252"/><PathPointType Anchor="144 -324" LeftDirection=" 144 -324" RightDirection=" 144 -324"/></PathPointArray></GeometryPathType></PathGeometry></Properties><TextFramePreference TextColumnCount=" 1" TextColumnGutter=" 12" TextColumnFixedWidth=" 72" UseFixedColumnWidth=" false" FirstBaselineOffset=" AscentOffset" MinimumFirstBaselineOffset=" 0" VerticalJustification=" TopAlign" VerticalThreshold=" 0" IgnoreWrap=" false"><Properties><InsetSpacing type="list"><ListItem type="unit">0</ListItem>
<ListItem type="unit">0</ListItem>
<ListItem type="unit">0</ListItem>
<ListItem type="unit">0</ListItem>
</InsetSpacing></Properties></TextFramePreference><BaselineFrameGridOption UseCustomBaselineFrameGrid=" false" StartingOffsetForBaselineFrameGrid=" 0" BaselineFrameGridRelativeOption=" TopOfInset" BaselineFrameGridIncrement=" 12"><Properties><BaselineFrameGridColor type="enumeration">LightBlue </BaselineFrameGridColor>
</Properties></BaselineFrameGridOption></TextFrame>
図20 TextFrame
下記はNextTextFrame属性を使って、テキストフレーム同士を連結させる例です。2つのテキストフレームが同じストーリーを参照していることに注意してください。連結したテキストフレームに、別のストーリーを参照させることはできません。
IDMLの例22 連結されたTextFrame
<TextFrame Self="ucd" AppliedObjectStyle=" ObjectStyle\[ Normal Graphics Frame]" ParentStory=" uf2" PreviousTextFrame=" n" NextTextFrame=" u108" ContentType=" TextType" StoryOffset=" n" StrokeWeight=" 0" StrokeColor=" Swatch\cNone" ItemTransform=" 1 0 0 1 0 -396" ><Properties><PathGeometry><GeometryPathType PathOpen=" false"><PathPointArray><PathPointType Anchor="36 72" LeftDirection=" 36 72" RightDirection=" 36 72"/><PathPointType Anchor="36 96" LeftDirection=" 36 96" RightDirection=" 36 96"/><PathPointType Anchor="136 96" LeftDirection=" 136 96" RightDirection=" 136 96"/><PathPointType Anchor="136 72" LeftDirection=" 136 72" RightDirection=" 136 72"/></PathPointArray></GeometryPathType></PathGeometry></Properties></TextFrame><TextFrame Self="u108" AppliedObjectStyle=" ObjectStyle\ k[None]" ParentStory=" uf2" PreviousTextFrame=" ucd" NextTextFrame=" n" ContentType=" TextType" StoryOffset=" n" StrokeWeight=" 1" ItemTransform=" 1 0 0 1 0 -396"><Properties><PathGeometry><GeometryPathType PathOpen=" false"><PathPointArray><PathPointType Anchor="36 108" LeftDirection=" 36 108" RightDirection=" 36 108"/><PathPointType Anchor="36 132" LeftDirection=" 36 132" RightDirection=" 36 132"/><PathPointType Anchor="136 132" LeftDirection=" 136 132" RightDirection=" 136 132"/><PathPointType Anchor="136 108" LeftDirection=" 136 108" RightDirection=" 136 108"/></PathPointArray></GeometryPathType></PathGeometry></Properties></TextFrame>


