Translation5:Anchored Frames

From IDMLWiki

Jump to: navigation, search

Contents

アンカー付きオブジェクトのテキストフレーム

InDesignドキュメントでは、ページオブジェクトをテキスト中に埋め込むことがあります。これらのオブジェクトは、テキストの変更に伴い構成やレイアウトが変化しても、テキストと一緒に移動されます。テキスト中に埋め込まれたオブジェクトを、「アンカー付きオブジェクト」といいます。アンカー付きオブジェクトは「インラインフレーム」とも呼ばれます。IDMLでは、インラインフレームはアンカー付きオブジェクトの特別なケースです。

インラインのテキストフレームのコンテンツは、下記の例のようにそのフレームを含んでいる<Story>エレメント内にはありません。代わりに、アンカー付きオブジェクト<TextFrame>エレメントのParentStory属性が、同じIDMLパッケージ内の他の<Story>エレメント(この例ではStory_u109.xmlファイル)を参照します。そのファイルの<Story>エレメントには、インラインのテキストフレームに表示されるテキストエレメントが含まれています。

アンカー付きオブジェクトのページ上の位置は、そのオブジェクトの周囲にある、親の<Story>エレメント内で前にあるテキストとの構成と、インラインフレームと関連した<AnchoredObjectSetting>エレメントのコンテンツにより決まります。フレームのページ上での位置は、固定されていないか、<AnchoredObjectSetting>のコンテンツによって配置されます。<PathGeometry>エレメントで、アンカー付きオブジェクトの形とサイズを変えることができますが(内部座標で)、(フレームが独立したページオブジェクトであるときのように)フレームのItemTransform属性で、スプレッドの座標の特定の場所へフレームを移動することはできません。

アンカー付きオブジェクトの配置についての詳細は、InDesignのオンラインヘルプを参照してください。

スキーマの例83 AnchoredObjectSettings
  1. AnchoredObjectSetting_Object = element AnchoredObjectSetting {
  2.   attribute AnchoredPosition { AnchorPosition_EnumValue }?,
  3.   attribute SpineRelative { xsd:boolean }?,
  4.   attribute LockPosition { xsd:boolean }?,
  5.   attribute PinPosition { xsd:boolean }?,
  6.   attribute AnchorPoint { AnchorPoint_EnumValue }?,
  7.   attribute HorizontalAlignment { HorizontalAlignment_EnumValue }?,
  8.   attribute HorizontalReferencePoint { AnchoredRelativeTo_EnumValue }?,
  9.   attribute VerticalAlignment { VerticalAlignment_EnumValue }?,
  10.   attribute VerticalReferencePoint { VerticallyRelativeTo_EnumValue }?,
  11.   attribute AnchorXoffset { xsd:double }?,
  12.   attribute AnchorYoffset { xsd:double }?,
  13.   attribute AnchorSpaceAbove { xsd:double }?
  14. }
表109 属性としてのAnchoredObjectSetting
名前 必須 説明
AnchorPoint AnchorPoint_EnumValue 基準点。TopLeftAnchor、TopCenterAnchor、TopRightAnchor、LeftCenterAnchor、CenterAnchor、RightCenterAnchor、BottomLeftAnchor、BottomCenterAnchorまたはBottomRightAnchor
AnchorSpaceAbove double 行の上/前スペース。AnchoredPositionがAboveLineのときのみ。
AnchorXoffset double アンカー付き位置/Xオフセット
AnchorYoffset double アンカー付き位置/Yオフセット
AnchoredPosition AnchorPosition_EnumValue 親文字からの間隔。InlinePosition、AboveLineまたはAnchored
HorizontalAlignment HorizontalAlignment_EnumValue 行揃え。AnchoredPositionがAboveLineのときのみ。RightAlign、LeftAlign、CenterAlignまたはTextAlign
HorizontalReferencePoint AnchoredRelativeTo_EnumValue アンカー付き位置/X基準。AnchoredPositionがAnchoredのときのみ
LockPosition boolean trueのとき、手動配置を防ぐはオン
PinPosition boolean trueのとき、段の上下境界線内に収めるはオン
SpineRelative boolean trueのとき、ノド元を基準はオン
VerticalAlignment VerticalAlignment_EnumValue 垂直方向の揃え。AnchoredPositionがAnchoredのときのみ。TopAlign、BottomAlignまたはCenterAlign
VerticalReferencePoint VerticallyRelativeTo_EnumValue アンカー付き位置/Y基準。AnchoredPositionがAnchoredのときのみ
IDMLの例54 アンカー付きオブジェクトのテキストフレーム
  1. <ParagraphStyleRange SpaceAfter=" 12">
  2.   <CharacterStyleRange>
  3.     <Content>This is an example paragraph. We’ve inserted an inline text frame in the second paragraph.</Content>
  4.     <br/>
  5.   </CharacterStyleRange>
  6. </ParagraphStyleRange>
  7. <ParagraphStyleRange SpaceAfter=" 12" Justification="CenterAlign">
  8.   <CharacterStyleRange AppliedCharacterStyle= "CharacterStyle\ k[No character style]">
  9.     <TextFrame Self="u106" ParentStory=" u109" ItemTransform= "1 0 0 1 0 0">
  10.       <Properties>
  11.         <PathGeometry>
  12.           <GeometryPathType PathOpen=" false">
  13.             <PathPointArray>
  14.               <PathPointType Anchor="97.2685546875 -225.5" LeftDirection=" 97.2685546875 -225.5" RightDirection=" 97.2685546875 -225.5"/>
  15.               <PathPointType Anchor="97.2685546875 -202" LeftDirection=" 97.2685546875 -202" RightDirection=" 97.2685546875 -202"/>
  16.               <PathPointType Anchor="183.5 -202" LeftDirection=" 183.5 -202" RightDirection=" 183.5 -202"/>
  17.               <PathPointType Anchor="183.5 -225.5" LeftDirection=" 183.5 -225.5" RightDirection=" 183.5 -225.5"/>
  18.             </PathPointArray>
  19.           </GeometryPathType>
  20.         </PathGeometry>
  21.       </Properties>
  22.       <AnchoredObjectSetting Self="u106AnchoredObjectSetting1" AnchoredPosition=" InlinePosition" SpineRelative=" false" LockPosition=" false" PinPosition=" true" AnchorPoint=" BottomRightAnchor" HorizontalAlignment=" LeftAlign" HorizontalReferencePoint= "TextFrame" VerticalAlignment=" TopAlign" VerticalReferencePoint=" LineBaseline" AnchorXoffset=" 0" AnchorYoffset=" 0" AnchorSpaceAbove=" 0"/>
  23.     </TextFrame>
  24.     <br/>
  25.   </CharacterStyleRange>
  26. </ParagraphStyleRange>
  27. <ParagraphStyleRangr SpaceAfter=" 12">
  28.   <CharacterStyleRange AppliedCharacterStyle= "CharacterStyle\ k[No character style]">
  29.     <Content>This is a paragraph following the inline text frame.</Content>
  30.   </CharacterStyleRange>
  31. </ParagraphStyleRange>
図40 アンカー付きオブジェクトのテキストフレーム

Image:Fig038.png