Translation:Text Frames

From IDMLWiki

Jump to: navigation, search

Contents

テキストフレーム(TextFrame)

<TextFrame>エレメントには、他のページオブジェクトにはないいくつかのプロパティがあります。それらのプロパティについて説明します。

スキーマの例30 TextFrame
  1. TextFrame_Object = element TextFrame{ 
  2.   attribute Self { xsd:string },
  3.   attribute ParentStory{  xsd:string }?,
  4.   attribute PreviousTextFrame{  xsd:string }?,
  5.   attribute NextTextFrame{  xsd:string }?,
  6.   attribute ContentType{  ContentType_EnumValue }?,
  7.   attribute AllowOverrides{  xsd:boolean }?,
  8.   attribute FillColor{  xsd:string }?,
  9.   attribute FillTint{  xsd:double }?,
  10.   attribute OverprintFill{  xsd:boolean }?,
  11.   attribute StrokeWeight{  xsd:double }?,
  12.   attribute MiterLimit{  xsd:double {minInclusive="1" maxInclusive="500"} }?,
  13.   attribute EndCap{  EndCap_EnumValue }?,
  14.   attribute EndJoin{  EndJoin_EnumValue }?,
  15.   attribute StrokeType{  xsd:string }?,
  16.   attribute StrokeCornerAdjustment{  StrokeCornerAdjustment_EnumValue }?,
  17.   attribute StrokeDashAndGap{  list { xsd:double * } }?,
  18.   attribute LeftLineEnd{  ArrowHead_EnumValue }?,
  19.   attribute RightLineEnd{  ArrowHead_EnumValue }?,
  20.   attribute StrokeColor{  xsd:string }?,
  21.   attribute StrokeTint{  xsd:double }?,
  22.   attribute CornerRadius{  xsd:double }?,
  23.   attribute GradientFillStart{  UnitPointType_TypeDef }?,
  24.   attribute GradientFillLength{  xsd:double }?,
  25.   attribute GradientFillAngle{  xsd:double }?,
  26.   attribute GradientStrokeStart{  UnitPointType_TypeDef }?,
  27.   attribute GradientStrokeLength{  xsd:double }?,
  28.   attribute GradientStrokeAngle{  xsd:double }?,
  29.   attribute OverprintStroke{  xsd:boolean }?,
  30.   attribute GapColor{  xsd:string }?,
  31.   attribute GapTint{  xsd:double }?,
  32.   attribute OverprintGap{  xsd:boolean }?,
  33.   attribute StrokeAlignment{  StrokeAlignment_EnumValue }?,
  34.   attribute Nonprinting { xsd:boolean }?,
  35.   attribute ItemLayer{  xsd:string }?,
  36.   attribute Locked { xsd:boolean }?,
  37.   attribute LocalDisplaySetting{  DisplaySettingOptions_EnumValue }?,
  38.   attribute GradientFillHiliteLength{  xsd:double }?,
  39.   attribute GradientFillHiliteAngle{  xsd:double }?,
  40.   attribute GradientStrokeHiliteLength{  xsd:double }?,
  41.   attribute GradientStrokeHiliteAngle{  xsd:double }?,
  42.   attribute AppliedObjectStyle{  xsd:string }?,
  43.   attribute CornerOption{  CornerOptions_EnumValue }?,
  44.   attribute ItemTransform{  TransformationMatrixType_TypeDef }?,
  45.   element Properties {
  46.     element PathGeometry{  element GeometryPathType { GeometryPathType_TypeDef }*
  47.     }?&
  48.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  49.     }?
  50.   }
  51.   ?
  52.   ,
  53. (
  54.   (TextPath_Object*&
  55.   GridDataInformation_Object?),
  56.   (TransparencySetting_Object?&
  57.   StrokeTransparencySetting_Object?&
  58.   FillTransparencySetting_Object?&
  59.   ContentTransparencySetting_Object?&
  60.   TextFramePreference_Object?&
  61.   AnchoredObjectSetting_Object?&
  62.   BaselineFrameGridOption_Object?&
  63.   TextWrapPreference_Object?)
  64. )
表35 属性としてのTextFrameプロパティ
名前 必須 説明
NextTextFrame string 連結している、次のテキストフレーム(ストーリー中のスレッド順による)のSelf属性の値
ParentStory string ストーリーのSelf属性の値
PreviousTextFrame string 連結している、前のテキストフレーム(ストーリー中のスレッド順による)のSelf属性の値

テキストフレーム内のテキストは、<TextFrame>エレメントではないことに注意してください。その代わりに、<TextFrame>エレメントは<Story>エレメント(通常、IDMLパッケージ内のStory.xml内にある)を参照しています。<Story>エレメントにテキストが含まれています。これは、ストーリーが外部ファイルとリンクしていても同様です。テキストフレームは、外部ファイルではなくIDMLパッケージ内のStory.xmlファイルを参照し、<Story>エレメントに外部ファイルへの参照があります。

下記は単純なテキストフレームの例です。

IDMLの例21 TextFrame
  1. <TextFrame Self="ucd" ParentStory=" ue7" PreviousTextFrame=" n" NextTextFrame=" n" ContentType=" TextType" ItemTransform=" 1 0 0 1 0 0">
  2.   <Properties>
  3.     <PathGeometry>
  4.       <GeometryPathType PathOpen=" false">
  5.         <PathPointArray>
  6.           <PathPointType Anchor="72 -324" LeftDirection=" 72 -324" RightDirection=" 72 -324"/>
  7.           <PathPointType Anchor="72 -252" LeftDirection=" 72 -252" RightDirection=" 72 -252"/>
  8.           <PathPointType Anchor="144 -252" LeftDirection=" 144 -252" RightDirection=" 144 -252"/>
  9.           <PathPointType Anchor="144 -324" LeftDirection=" 144 -324" RightDirection=" 144 -324"/>
  10.         </PathPointArray>
  11.       </GeometryPathType>
  12.     </PathGeometry>
  13.   </Properties>
  14.   <TextFramePreference TextColumnCount=" 1" TextColumnGutter=" 12" TextColumnFixedWidth=" 72" UseFixedColumnWidth=" false" FirstBaselineOffset=" AscentOffset" MinimumFirstBaselineOffset=" 0" VerticalJustification=" TopAlign" VerticalThreshold=" 0" IgnoreWrap=" false">
  15.     <Properties>
  16.       <InsetSpacing type="list">
  17.         <ListItem type="unit">0</ListItem>
  18.         <ListItem type="unit">0</ListItem>
  19.         <ListItem type="unit">0</ListItem>
  20.         <ListItem type="unit">0</ListItem>
  21.       </InsetSpacing>
  22.     </Properties>
  23.   </TextFramePreference>
  24.   <BaselineFrameGridOption UseCustomBaselineFrameGrid=" false" StartingOffsetForBaselineFrameGrid=" 0" BaselineFrameGridRelativeOption=" TopOfInset" BaselineFrameGridIncrement=" 12">
  25.     <Properties>
  26.       <BaselineFrameGridColor type="enumeration">LightBlue </BaselineFrameGridColor>
  27.     </Properties>
  28.   </BaselineFrameGridOption>
  29. </TextFrame>
図20 TextFrame

Image:Fig020.png

下記はNextTextFrame属性を使って、テキストフレーム同士を連結させる例です。2つのテキストフレームが同じストーリーを参照していることに注意してください。連結したテキストフレームに、別のストーリーを参照させることはできません。

IDMLの例22 連結されたTextFrame
  1. <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" >
  2.   <Properties>
  3.     <PathGeometry>
  4.       <GeometryPathType PathOpen=" false">
  5.         <PathPointArray>
  6.           <PathPointType Anchor="36 72" LeftDirection=" 36 72" RightDirection=" 36 72"/>
  7.           <PathPointType Anchor="36 96" LeftDirection=" 36 96" RightDirection=" 36 96"/>
  8.           <PathPointType Anchor="136 96" LeftDirection=" 136 96" RightDirection=" 136 96"/>
  9.           <PathPointType Anchor="136 72" LeftDirection=" 136 72" RightDirection=" 136 72"/>
  10.         </PathPointArray>
  11.       </GeometryPathType>
  12.     </PathGeometry>
  13.   </Properties>
  14. </TextFrame>
  15. <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">
  16.   <Properties>
  17.     <PathGeometry>
  18.       <GeometryPathType PathOpen=" false">
  19.         <PathPointArray>
  20.           <PathPointType Anchor="36 108" LeftDirection=" 36 108" RightDirection=" 36 108"/>
  21.           <PathPointType Anchor="36 132" LeftDirection=" 36 132" RightDirection=" 36 132"/>
  22.           <PathPointType Anchor="136 132" LeftDirection=" 136 132" RightDirection=" 136 132"/>
  23.           <PathPointType Anchor="136 108" LeftDirection=" 136 108" RightDirection=" 136 108"/>
  24.         </PathPointArray>
  25.       </GeometryPathType>
  26.     </PathGeometry>
  27.   </Properties>
  28. </TextFrame>
図21 連結されたテキストフレーム

Image:Fig021.png

Personal tools