Translation:Designmap.xml as reference

From IDMLWiki

Jump to: navigation, search

Contents

10.2 designmap.xml

designmap.xmlファイルは、ドキュメントを作り上げるXMLエレメントの「ロードマップ」で、ドキュメントレベル属性の種類を定義します。ハイパーリンクや相互参照などのいくつかのエレメントは、<Document>エレメントファイルにまとめられます。そうすることにより、IDMLファイルやパッケージ間での参照を容易にします。

この章では、IDMLパッケージファイルのdesignmap.xmlファイルについて説明します。IDMLドキュメントを単独で作成するときは、同じエレメントを使い、ファイル中のエレメントへ参照させる、同じメソッド(通常、Self属性のコンテンツによる)を使ってください。ただし、ファイル間を参照させることはできません。

スキーマの例 4. Document
  1. Document_Object = element Document {
  2. attribute DOMVersion { "6.0" },
  3. attribute Self { xsd:string },
  4.   attribute ActiveProcess { xsd:string }?,
  5.   attribute TransparencyAttributeDefaultProperty { xsd:string }?,
  6.   attribute StoryList { list { xsd:string * } }?,
  7.   attribute FullName { xsd:string }?,
  8.   attribute Name { xsd:string }?,
  9.   attribute Visible { xsd:boolean }?,
  10.   attribute FilePath { xsd:string }?,
  11.   attribute Modified { xsd:boolean }?,
  12.   attribute Saved { xsd:boolean }?,
  13.   attribute ZeroPoint { UnitPointType_TypeDef }?,
  14.   attribute ActiveLayer { xsd:string }?,
  15.   attribute UnusedSwatches { list { xsd:string * } }?,
  16.   attribute Converted { xsd:boolean }?,
  17.   attribute Recovered { xsd:boolean }?,
  18.   attribute ReadOnly { xsd:boolean }?,
  19.   attribute CMYKProfileList { list { xsd:string * } }?,
  20.   attribute RGBProfileList { list { xsd:string * } }?,
  21.   attribute CMYKProfile { xsd:string }?,
  22.   attribute RGBProfile { xsd:string }?,
  23.   attribute SolidColorIntent { RenderingIntent_EnumValue }?,
  24.   attribute AfterBlendingIntent { RenderingIntent_EnumValue }?,
  25.   attribute DefaultImageIntent { RenderingIntent_EnumValue }?,
  26.   attribute RGBPolicy { ColorSettingsPolicy_EnumValue }?,
  27.   attribute CMYKPolicy { ColorSettingsPolicy_EnumValue }?,
  28.   attribute AccurateLABSpots { xsd:boolean }?,
  29.   element Properties {
  30.     element InstanceList { element IndexInstanceType { IndexInstanceType_TypeDef }*
  31.     }?&
  32.     element Label { element KeyValuePair { KeyValuePair_TypeDef }*
  33.      }?
  34.   }
  35.   ?
  36.   ,
  37. (
  38. Language_Object*,
  39. element idPkg:Graphic { attribute src {"Resources/Graphic.xml"} }?,
  40.   element idPkg:Fonts { attribute src {"Resources/Fonts.xml"} }?,
  41.   KinsokuTable_Object*,
  42.   MojikumiTable_Object*,
  43.   element idPkg:Styles { attribute src {"Resources/Styles.xml"} }?,
  44.   NumberingList_Object*,
  45.   NamedGrid_Object*,
  46.   Condition_Object*,
  47.   ConditionSet_Object*,
  48.   (element idPkg:Preferences { attribute src {"Resources/Preferences.xml"} }?&
  49.   MetadataPacketPreference_Object?&
  50.   ConditionalTextPreference_Object?),
  51.   TextVariable_Object*,
  52.   element idPkg:Tags { attribute src {"XML/Tags.xml"} }?,
  53.   Layer_Object*,
  54.   element idPkg:MasterSpread { attribute src {xsd:string {pattern = ".*\.xml"} } }*,
  55.   element idPkg:Spread { attribute src {xsd:string {pattern = ".*\.xml"} } }*,
  56.   Section_Object*,
  57.   DocumentUser_Object*,
  58.   CrossReferenceFormat_Object*,
  59.   element idPkg:BackingStory { attribute src {"XML/BackingStory.xml"} }?,
  60.   element idPkg:Story { attribute src {xsd:string {pattern = ".*\.xml"} } }*,
  61.   HyperlinkPageDestination_Object*,
  62.   HyperlinkURLDestination_Object*,
  63.   HyperlinkExternalPageDestination_Object*,
  64.   HyperlinkPageItemSource_Object*,
  65.   Hyperlink_Object*,
  66.   DTD_Object*,
  67.   element idPkg:Mapping { attribute src {"XML/Mapping.xml"} }?,
  68.   Index_Object*,
  69.   Bookmark_Object*,
  70.   (PreflightProfile_Object*&
  71.   DataMergeImagePlaceholder_Object*&
  72.   HyphenationException_Object*&
  73.   IndexingSortOption_Object*&
  74.   ABullet_Object*&
  75.   Assignment_Object*)
  76. )
  77. }
表3. 属性としてのDocumentプロパティ
名前 必須 説明
ActiveLayer string 現在のレイヤー
ActiveProcess string このドキュメントに対する現在のプリフライト設定
AfterBlendingIntent RenderingIntent_EnumValue ブレンド後のインテント。

UseColorSettings(カラー設定インテントを使用)

Perceptual(知覚的)

Saturation(彩度)

Relativecolorimetric(相対的な色域を維持)または

Absolutecolorimetric(絶対的な色域を維持)

CMYKPolicy ColorSettingsPolicy_EnumValue CMYKカラーモデルでのカラーポリシー。カラープロファイルの読み込みと埋め込み、埋め込まれたカラープロファイルと作業用スペース不一致時の処理、ドキュメント間のカラープロファイルの移動を含む。

ColorPolicyOff(プロファイルと作業用スペースが一致しないドキュメントのカラーマネージメントをオフにする。読み込まれたカラーに対し、数値がカラーアピアランスをオーバーライドする)

PreserveEmbeddedProfiles(埋め込まれたカラープロファイルを新しく開かれたドキュメントに保持する)

ConvertToWorkingSpace(新しく開かれたドキュメントを現在の作業用スペースにコンバートする。読み込まれたカラーに対し、カラーアピアランスが数値をオーバーライドする)または

CombinationOfPreserveAndSafeCmyk(rawカラー値を保持し、埋め込まれたカラープロファイルを無視する)
CMYKProfile string 現在のCMYKプロファイル
CMYKProfileList 有効なCMYKプロファイルのリスト
Converted boolean trueのとき、ドキュメントはコンバートされている
DefaultImageIntent RenderingIntent_EnumValue デフォルト画像インテント。

UseColorSettings(カラー設定インテントを使用)

Perceptual(知覚的)

Saturation(彩度)

Relativecolorimetric(相対的な色域を維持)または

Absolutecolorimetric(絶対的な色域を維持)

FilePath string ファイルへの絶対パス
FullName string ドキュメント名を含むドキュメントへの絶対パス
Modified boolean trueのとき、ドキュメントは最後に保存されたあとに変更された
Name string ドキュメント名
RGBPolicy ColorSettings-Policy_EnumValue RGBカラーモデルでのカラーポリシー。カラープロファイルの読み込みと埋め込み、埋め込まれたカラープロファイルと作業用スペース不一致時の処理、ドキュメント間のカラープロファイルの移動を含む。

ColorPolicyOff(プロファイルと作業用スペースが一致しないドキュメントのカラーマネージメントをオフにする。読み込まれたカラーに対し、数値がカラーアピアランスをオーバーライドする)

PreserveEmbeddedProfiles(埋め込まれたカラープロファイルを新しく開かれたドキュメントに保持する)

ConvertToWorkingSpace(新しく開かれたドキュメントを現在の作業用スペースにコンバートする。読み込まれたカラーに対し、カラーアピアランスが数値をオーバーライドする)または

CombinationOfPreserveAndSafeCmyk(rawカラー値を保持し、埋め込まれたカラープロファイルを無視する)
RGBProfile string 現在のRGBプロファイル
RGBProfileList 有効なRGBプロファイルのリスト
ReadOnly boolean trueのとき、ドキュメントは読み込み専用
Recovered boolean trueのとき、ドキュメントは復旧された
Saved boolean trueのとき、新規作成されてからドキュメントは保存された
SolidColorIntent RenderingIntent_EnumValue ベタ塗りインテント。

UseColorSettings(カラー設定インテントを使用)

Perceptual(知覚的)

Saturation(彩度)

Relativecolorimetric(相対的な色域を維持)または

Absolutecolorimetric(絶対的な色域を維持)

StoryList string ドキュメント中のストーリーのリスト。各ストーリーのSelf属性への参照の順番。スペースで分割される
TransparencyAttributeDefaultProperty string ドキュメントの透明度のデフォルト
UnusedSwatches string 未使用のスウォッチのリスト。各スウォッチのSelf属性への参照の順番。スペースで分割される
Visible boolean trueのとき、ドキュメントは表示されている
ZeroPoint UnitPointType_TypeDef ルーラー原点。[x.y]の形式で設定されるページの座標
表4 エレメントとしてのDocumentプロパティ
名前 必須 説明
InstanceList IndexInstanceType_TypeDef ドキュメント中に配置されている索引インスタンスのリスト
IDMLの例 7. IDMLパッケージ内の他のファイルへの参照を含むDocumentエレメント
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <Document xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging"
  3. DOMVersion="7.0" Self="d" StoryList="ucb">
  4.   <idPkg:Graphic src="Resources/Graphic.xml"/>
  5.   <idPkg:Fonts src="Resources/Fonts.xml"/>
  6.   <idPkg:Styles src="Resources/Styles.xml"/>
  7.   <idPkg:Preferences src="Resources/Preferences.xml"/>
  8.   <idPkg:Tags src="XML/Tags.xml"/>
  9.   <idPkg:MasterSpread src="MasterSpreads/MasterSpread_ua4.xml"/>
  10.   <idPkg:Spread src="Spreads/Spread_ub5.xml"/>
  11.   <idPkg:BackingStory src="XML/BackingStory.xml"/>
  12.   <idPkg:Story src="Stories/Story_ucb.xml"/>
  13. </Document>

この例では、ドキュメントはStory_ucb.xmlという1つのストーリーファイルとSpread_ub5.xmlというスプレッドファイルで構成されています。他のidPkg:エレメントは標準的なファイルを参照し、ファイルはIDMLパッケージファイル内にあります。次の例では、<Story>エレメントと<Spread>エレメントがdesignmap.xmlファイル内に含まれています。

IDMLの例 8. designmap.xmlファイルのDocumentエレメント
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <?aid style="50" type="document" readerVersion="6.0" featureSet="257"
  3. product="6.0(351)" ?>
  4. <Document DOMVersion="6.0" Self="d" StoryList="u122" ActiveLayer="uc2" >
  5.   <DocumentPreference PageHeight="792" PageWidth="612" PagesPerDocument="1"
  6.   FacingPages="true" DocumentBleedTopOffset="0" DocumentBleedBottomOffset="0"
  7.   DocumentBleedInsideOrLeftOffset="0" DocumentBleedOutsideOrRightOffset="0"
  8.   DocumentBleedUniformSize="true" SlugTopOffset="0" SlugBottomOffset="0"
  9.   SlugInsideOrLeftOffset="0" SlugRightOrOutsideOffset="0"
  10.   DocumentSlugUniformSize="false" PreserveLayoutWhenShuffling="true"
  11.   AllowPageShuffle="true" OverprintBlack="true" PageBinding="LeftToRight"
  12.   ColumnDirection="Horizontal" ColumnGuideLocked="true" MasterTextFrame="false"
  13.   SnippetImportUsesOriginalLocation="false"/>
  14.   <Layer Self="uc2" Name="Layer 1" Visible="true" Locked="false" IgnoreWrap="false"
  15.   ShowGuides="true" LockGuides="false" UI="true" Expendable="true"
  16.   Printable="true"/>
  17.   <Section Self="ua6" Length="1" Name="" PageNumberStyle="Arabic"
  18.   ContinueNumbering="true" IncludeSectionPrefix="false" PageNumberStart="1"
  19.   Marker="" PageStart="ucf" SectionPrefix=""/>
  20.   <MasterSpread Self="uc3" ItemTransform="1 0 0 1 0 0" Name="A-Master"
  21.   NamePrefix="A" BaseName="Master" ShowMasterItems="true" PageCount="2"
  22.   AppliedMaster="n">
  23.     <Page Self="uc8" Name="A" AppliedMaster="n">
  24.       <MarginPreferenceColumnCount="1" ColumnGutter="12" Top="36"
  25.       Bottom="36" Left="36" Right="36" ColumnDirection="Horizontal"
  26.       ColumnsPositions="0 540"/>
  27.     </Page>
  28.     <Page Self="uc9" Name="A" AppliedMaster="">
  29.       <MarginPreferenceColumnCount="1" ColumnGutter="12" Top="36" Bottom="36"
  30.       Left="36" Right="36" ColumnDirection="Horizontal" ColumnsPositions="0 540"/>
  31.     </Page>
  32.   </MasterSpread>
  33.   <Spread Self="uca" PageCount="1" AppliedMaster="uc3" BindingLocation= "0"
  34.   ItemTransform="1 0 0 1 0 0">
  35.     <Page Self="ucf" Name="1" AppliedMaster="uc3"/>
  36.     <TextFrame Self="ud1" ParentStory="u122" PreviousTextFrame="n"
  37.     NextTextFrame="n" ItemLayer="uc2" ContentType="TextType"
  38.     ItemTransform="1 0 0 1 0 0">
  39.       <Properties>
  40.         <PathGeometry>
  41.           <GeometryPathType PathOpen="false">
  42.             <PathPointArray>
  43.               <PathPointType Anchor="72 -324" LeftDirection="72 -324"
  44.               RightDirection="72 -324"/>
  45.               <PathPointType Anchor="72 -252" LeftDirection="72 -252"
  46.               RightDirection="72 -252"/>
  47.               <PathPointType Anchor="144 -252" LeftDirection="144 -252"
  48.               RightDirection="144 -252"/>
  49.               <PathPointType Anchor="144 -324" LeftDirection="144 -324"
  50.               RightDirection="144 -324"/>
  51.             </PathPointArray>
  52.           </GeometryPathType>
  53.         </PathGeometry>
  54.       </Properties>
  55.     </TextFrame>
  56.   </Spread>
  57.   <Story Self="u122">
  58.     <ParagraphStyleRange>
  59.       <CharacterStyleRange>
  60.         <Content>Hello World!</Content>
  61.       </CharacterStyleRange>
  62.     </ParagraphStyleRange>
  63.   </Story>
  64. </Document>
Personal tools