Translation5:Anchored Frames
From IDMLWiki
Contents |
アンカー付きオブジェクトのテキストフレーム
InDesignドキュメントでは、ページオブジェクトをテキスト中に埋め込むことがあります。これらのオブジェクトは、テキストの変更に伴い構成やレイアウトが変化しても、テキストと一緒に移動されます。テキスト中に埋め込まれたオブジェクトを、「アンカー付きオブジェクト」といいます。アンカー付きオブジェクトは「インラインフレーム」とも呼ばれます。IDMLでは、インラインフレームはアンカー付きオブジェクトの特別なケースです。
インラインのテキストフレームのコンテンツは、下記の例のようにそのフレームを含んでいる<Story>エレメント内にはありません。代わりに、アンカー付きオブジェクト<TextFrame>エレメントのParentStory属性が、同じIDMLパッケージ内の他の<Story>エレメント(この例ではStory_u109.xmlファイル)を参照します。そのファイルの<Story>エレメントには、インラインのテキストフレームに表示されるテキストエレメントが含まれています。
アンカー付きオブジェクトのページ上の位置は、そのオブジェクトの周囲にある、親の<Story>エレメント内で前にあるテキストとの構成と、インラインフレームと関連した<AnchoredObjectSetting>エレメントのコンテンツにより決まります。フレームのページ上での位置は、固定されていないか、<AnchoredObjectSetting>のコンテンツによって配置されます。<PathGeometry>エレメントで、アンカー付きオブジェクトの形とサイズを変えることができますが(内部座標で)、(フレームが独立したページオブジェクトであるときのように)フレームのItemTransform属性で、スプレッドの座標の特定の場所へフレームを移動することはできません。
アンカー付きオブジェクトの配置についての詳細は、InDesignのオンラインヘルプを参照してください。
スキーマの例83 AnchoredObjectSettings
AnchoredObjectSetting_Object = element AnchoredObjectSetting {
attribute AnchoredPosition { AnchorPosition_EnumValue }?,
attribute SpineRelative { xsd:boolean }?,
attribute LockPosition { xsd:boolean }?,
attribute PinPosition { xsd:boolean }?,
attribute AnchorPoint { AnchorPoint_EnumValue }?,
attribute HorizontalAlignment { HorizontalAlignment_EnumValue }?,
attribute HorizontalReferencePoint { AnchoredRelativeTo_EnumValue }?,
attribute VerticalAlignment { VerticalAlignment_EnumValue }?,
attribute VerticalReferencePoint { VerticallyRelativeTo_EnumValue }?,
attribute AnchorXoffset { xsd:double }?,
attribute AnchorYoffset { xsd:double }?,
attribute AnchorSpaceAbove { xsd:double }?
}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| 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 アンカー付きオブジェクトのテキストフレーム
<ParagraphStyleRange SpaceAfter=" 12"><CharacterStyleRange><Content>This is an example paragraph. We’ve inserted an inline text frame in the second paragraph.</Content>
<br/></CharacterStyleRange></ParagraphStyleRange><ParagraphStyleRange SpaceAfter=" 12" Justification="CenterAlign"><CharacterStyleRange AppliedCharacterStyle= "CharacterStyle\ k[No character style]"><TextFrame Self="u106" ParentStory=" u109" ItemTransform= "1 0 0 1 0 0"><Properties><PathGeometry><GeometryPathType PathOpen=" false"><PathPointArray><PathPointType Anchor="97.2685546875 -225.5" LeftDirection=" 97.2685546875 -225.5" RightDirection=" 97.2685546875 -225.5"/><PathPointType Anchor="97.2685546875 -202" LeftDirection=" 97.2685546875 -202" RightDirection=" 97.2685546875 -202"/><PathPointType Anchor="183.5 -202" LeftDirection=" 183.5 -202" RightDirection=" 183.5 -202"/><PathPointType Anchor="183.5 -225.5" LeftDirection=" 183.5 -225.5" RightDirection=" 183.5 -225.5"/></PathPointArray></GeometryPathType></PathGeometry></Properties><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"/></TextFrame><br/></CharacterStyleRange></ParagraphStyleRange><ParagraphStyleRangr SpaceAfter=" 12"><CharacterStyleRange AppliedCharacterStyle= "CharacterStyle\ k[No character style]"><Content>This is a paragraph following the inline text frame.</Content>
</CharacterStyleRange></ParagraphStyleRange>

