Translation:Designmap.xml as reference
From IDMLWiki
Contents |
10.2 designmap.xml
designmap.xmlファイルは、ドキュメントを作り上げるXMLエレメントの「ロードマップ」で、ドキュメントレベル属性の種類を定義します。ハイパーリンクや相互参照などのいくつかのエレメントは、<Document>エレメントファイルにまとめられます。そうすることにより、IDMLファイルやパッケージ間での参照を容易にします。
この章では、IDMLパッケージファイルのdesignmap.xmlファイルについて説明します。IDMLドキュメントを単独で作成するときは、同じエレメントを使い、ファイル中のエレメントへ参照させる、同じメソッド(通常、Self属性のコンテンツによる)を使ってください。ただし、ファイル間を参照させることはできません。
スキーマの例 4. Document
Document_Object = element Document {
attribute DOMVersion { "6.0" },
attribute Self { xsd:string },
attribute ActiveProcess { xsd:string }?,
attribute TransparencyAttributeDefaultProperty { xsd:string }?,
attribute StoryList { list { xsd:string * } }?,
attribute FullName { xsd:string }?,
attribute Name { xsd:string }?,
attribute Visible { xsd:boolean }?,
attribute FilePath { xsd:string }?,
attribute Modified { xsd:boolean }?,
attribute Saved { xsd:boolean }?,
attribute ZeroPoint { UnitPointType_TypeDef }?,
attribute ActiveLayer { xsd:string }?,
attribute UnusedSwatches { list { xsd:string * } }?,
attribute Converted { xsd:boolean }?,
attribute Recovered { xsd:boolean }?,
attribute ReadOnly { xsd:boolean }?,
attribute CMYKProfileList { list { xsd:string * } }?,
attribute RGBProfileList { list { xsd:string * } }?,
attribute CMYKProfile { xsd:string }?,
attribute RGBProfile { xsd:string }?,
attribute SolidColorIntent { RenderingIntent_EnumValue }?,
attribute AfterBlendingIntent { RenderingIntent_EnumValue }?,
attribute DefaultImageIntent { RenderingIntent_EnumValue }?,
attribute RGBPolicy { ColorSettingsPolicy_EnumValue }?,
attribute CMYKPolicy { ColorSettingsPolicy_EnumValue }?,
attribute AccurateLABSpots { xsd:boolean }?,
element Properties {element InstanceList { element IndexInstanceType { IndexInstanceType_TypeDef }*
}?&
element Label { element KeyValuePair { KeyValuePair_TypeDef }*
}?
}?,(Language_Object*,element idPkg:Graphic { attribute src {"Resources/Graphic.xml"} }?,
element idPkg:Fonts { attribute src {"Resources/Fonts.xml"} }?,
KinsokuTable_Object*,MojikumiTable_Object*,element idPkg:Styles { attribute src {"Resources/Styles.xml"} }?,
NumberingList_Object*,NamedGrid_Object*,Condition_Object*,ConditionSet_Object*,(element idPkg:Preferences { attribute src {"Resources/Preferences.xml"} }?&
MetadataPacketPreference_Object?&ConditionalTextPreference_Object?),
TextVariable_Object*,element idPkg:Tags { attribute src {"XML/Tags.xml"} }?,
Layer_Object*,element idPkg:MasterSpread { attribute src {xsd:string {pattern = ".*\.xml"} } }*,
element idPkg:Spread { attribute src {xsd:string {pattern = ".*\.xml"} } }*,
Section_Object*,DocumentUser_Object*,CrossReferenceFormat_Object*,element idPkg:BackingStory { attribute src {"XML/BackingStory.xml"} }?,
element idPkg:Story { attribute src {xsd:string {pattern = ".*\.xml"} } }*,
HyperlinkPageDestination_Object*,HyperlinkURLDestination_Object*,HyperlinkExternalPageDestination_Object*,HyperlinkPageItemSource_Object*,Hyperlink_Object*,DTD_Object*,element idPkg:Mapping { attribute src {"XML/Mapping.xml"} }?,
Index_Object*,Bookmark_Object*,(PreflightProfile_Object*&
DataMergeImagePlaceholder_Object*&HyphenationException_Object*&IndexingSortOption_Object*&ABullet_Object*&Assignment_Object*)
)}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| 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]の形式で設定されるページの座標 |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| InstanceList | IndexInstanceType_TypeDef | ドキュメント中に配置されている索引インスタンスのリスト |
IDMLの例 7. IDMLパッケージ内の他のファイルへの参照を含むDocumentエレメント
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Document xmlns:idPkg="http://ns.adobe.com/AdobeInDesign/idml/1.0/packaging"DOMVersion="7.0" Self="d" StoryList="ucb"><idPkg:Graphic src="Resources/Graphic.xml"/><idPkg:Fonts src="Resources/Fonts.xml"/><idPkg:Styles src="Resources/Styles.xml"/><idPkg:Preferences src="Resources/Preferences.xml"/><idPkg:Tags src="XML/Tags.xml"/><idPkg:MasterSpread src="MasterSpreads/MasterSpread_ua4.xml"/><idPkg:Spread src="Spreads/Spread_ub5.xml"/><idPkg:BackingStory src="XML/BackingStory.xml"/><idPkg:Story src="Stories/Story_ucb.xml"/></Document>
この例では、ドキュメントはStory_ucb.xmlという1つのストーリーファイルとSpread_ub5.xmlというスプレッドファイルで構成されています。他のidPkg:エレメントは標準的なファイルを参照し、ファイルはIDMLパッケージファイル内にあります。次の例では、<Story>エレメントと<Spread>エレメントがdesignmap.xmlファイル内に含まれています。
IDMLの例 8. designmap.xmlファイルのDocumentエレメント
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><?aid style="50" type="document" readerVersion="6.0" featureSet="257"product="6.0(351)" ?><Document DOMVersion="6.0" Self="d" StoryList="u122" ActiveLayer="uc2" ><DocumentPreference PageHeight="792" PageWidth="612" PagesPerDocument="1"FacingPages="true" DocumentBleedTopOffset="0" DocumentBleedBottomOffset="0"DocumentBleedInsideOrLeftOffset="0" DocumentBleedOutsideOrRightOffset="0"DocumentBleedUniformSize="true" SlugTopOffset="0" SlugBottomOffset="0"SlugInsideOrLeftOffset="0" SlugRightOrOutsideOffset="0"DocumentSlugUniformSize="false" PreserveLayoutWhenShuffling="true"AllowPageShuffle="true" OverprintBlack="true" PageBinding="LeftToRight"ColumnDirection="Horizontal" ColumnGuideLocked="true" MasterTextFrame="false"SnippetImportUsesOriginalLocation="false"/><Layer Self="uc2" Name="Layer 1" Visible="true" Locked="false" IgnoreWrap="false"ShowGuides="true" LockGuides="false" UI="true" Expendable="true"Printable="true"/><Section Self="ua6" Length="1" Name="" PageNumberStyle="Arabic"ContinueNumbering="true" IncludeSectionPrefix="false" PageNumberStart="1"Marker="" PageStart="ucf" SectionPrefix=""/><MasterSpread Self="uc3" ItemTransform="1 0 0 1 0 0" Name="A-Master"NamePrefix="A" BaseName="Master" ShowMasterItems="true" PageCount="2"AppliedMaster="n"><Page Self="uc8" Name="A" AppliedMaster="n"><MarginPreferenceColumnCount="1" ColumnGutter="12" Top="36"Bottom="36" Left="36" Right="36" ColumnDirection="Horizontal"ColumnsPositions="0 540"/></Page><Page Self="uc9" Name="A" AppliedMaster=""><MarginPreferenceColumnCount="1" ColumnGutter="12" Top="36" Bottom="36"Left="36" Right="36" ColumnDirection="Horizontal" ColumnsPositions="0 540"/></Page></MasterSpread><Spread Self="uca" PageCount="1" AppliedMaster="uc3" BindingLocation= "0"ItemTransform="1 0 0 1 0 0"><Page Self="ucf" Name="1" AppliedMaster="uc3"/><TextFrame Self="ud1" ParentStory="u122" PreviousTextFrame="n"NextTextFrame="n" ItemLayer="uc2" 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></TextFrame></Spread><Story Self="u122"><ParagraphStyleRange><CharacterStyleRange><Content>Hello World!</Content>
</CharacterStyleRange></ParagraphStyleRange></Story></Document>
