Translation:10 2/ja
From IDMLWiki
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>
10.2.1 ドキュメントとカラーマネージメント
すべてのスウォッチ(カラー、濃淡、グラデーション、混合インキまたは混合インキグループ。「10.6 グラフィック」にて説明)と配置された画像のアピアランスは、ドキュメントに適用されているカラーマネージメントによって決まります。プロファイルはそれらのオブジェクトのベースのプロパティを変えませんが(例えば、IDMLパッケージ内でGraphic.xmlによって設定されているCMYKカラー値は変更されません)、画面表示や出力(印刷、書き出し)時のレンダリングにのみ影響します。
IDMLの例9 カラーマネージメント属性
<Document Self="d" CMYKProfile="U.S. Web Coated (SWOP) v2"RGBProfile="sRGB IEC61966-2.1" SolidColorIntent="UseColorSettings"AfterBlendingIntent="UseColorSettings" DefaultImageIntent="UseColorSettings"RGBPolicy="PreserveEmbeddedProfiles" CMYKPolicy="CombinationOfPreserveAndSafeCmyk"AccurateLABSpots="false">
InDesignのカラーマネージメント機能についての完全な説明は、このドキュメントの目的ではありません。詳細はInDesignのドキュメントを参照してください。
Note:UIで使用される色(ガイド、グリッド、レイヤーのハイライトなど)は使用するシステムのRGBスクリーン値であり、カラーマネージメントはされていません。
10.2.2 Language
IDMLパッケージで、<Language>エレメントはドキュメントで使用できる言語の辞書を設定します。新規に<Language>エレメントを追加して言語を作成することはできません。参照として使用される(例えば、IDMLパッケージ中のResourcesフォルダにある、Styles.xmlファイルの<ParagraphStyle>エレメントからなど)ためのエレメントであるのと、InDesignやInCopyドキュメントとして確実に再現させるためです。
スキーマの例5 Language
Language_Object = element Language {
attribute Self { xsd:string },
attribute Name { xsd:string },
attribute SingleQuotes { xsd:string }?,
attribute DoubleQuotes { xsd:string }?,
attribute PrimaryLanguageName { xsd:string }?,
attribute SublanguageName { xsd:string }?,
attribute Id { xsd:int }?,
attribute HyphenationVendor { xsd:string }?,
attribute SpellingVendor { xsd:string }?,
element Properties {element Label { element KeyValuePair { KeyValuePair_TypeDef}*
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| DoubleQuates | string | 言語で使用する二重引用符の組 | |
| HyphenationVender | string | ハイフネーションの規則 | |
| Id | int | 言語のユニークなID | |
| Name | string | ○ | 言語の名前 |
| PrimaryLanguageName | string | 言語の名前 | |
| SingleQuotes | string | 言語で使用する引用符の組 |
10.2.3 Condition
InDesignドキュメントには、ある一定の条件でのみ表示される、条件付テキストの機能があります。<Condition>エレメントは条件により決められるテキストの表示/非表示を制御します。
スキーマの例6 Condition
Condition_Object = element Condition {
attribute Self { xsd:string },
attribute Name { xsd:string },
attribute IndicatorMethod { ConditionIndicatorMethod_EnumValue }?,
attribute UnderlineIndicatorAppearance
{ ConditionUnderlineIndicatorAppearance_EnumValue }?,
attribute Visible { xsd:boolean }?,
element Properties {element IndicatorColor { InDesignUIColorType_TypeDef }?&
element Label { element KeyValuePair { KeyValuePair_TypeDef }*
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| IndicatorMethod | ConditionIndicatorMethod_EnumValue | 条件付テキストのメソッド | |
| Name | string | ○ | 条件の名前 |
| UnderlineIndicatorAppearance | ConditionUnderlineIndicatorAppearance_EnumValue | 条件付テキストの下線のアピアランス | |
| Visible | boolean | trueのとき、Conditionは表示される |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| IndicatorColor | InDesignUIColorType_TypeDef | 条件付テキストの色。それぞれ0-255の範囲のRとG、Bの値3組の配列かUIカラーで設定される。3つの実数(0-255)の配列かUIカラーの列挙を返す |
10.2.4 ConditionalTextPreference
スキーマの例7 ConditionalTextPreference
ConditionalTextPreference_Object = element ConditionalTextPreference {
attribute Self { xsd:string },
attribute ShowConditionIndicators { xsd:boolean }?,
attribute ActiveConditionSet { xsd:string }?
}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| ShowConditionIndicators | boolean | trueのとき、UIに条件付テキストを表示する | |
| ActiveConditionSet | string | 現在の条件のセットへの参照。<Condidtion>エレメントのSelf属性の値。 |
10.2.5 TextVariable
テキスト変数とは、前後関係によって変化するテキストとして挿入するものです。例えば、テキスト変数「最終ページ番号」はそのドキュメントの最後のページのページ番号を表示します。ページの追加や削除をすると、変数が更新されます。IDMLドキュメントのテキスト変数は、<TextVariable>エレメントで設定します。テキスト変数には、次の種類のエレメントがあります。
- <CustomTextVariablePreference>
- <PageNumberVariablePreference>
- <chapterNumberVariablePreference>
- <DateVariablePreference>
- <MatchCharacterStylePreference>
- <MatchParagraphStylePreference>
テキスト変数の種類は<TextVariable>エレメントのVariableType属性で設定し、定義は子エレメントで行います。
<TextVariable>エレメントは<Document>エレメントに含まれ、テキスト変数の設定のみをします。テキスト変数インスタンスは<Story>エレメントに表れ、テキスト変数インスタンスの全ての形式は、<Document>エレメントではなく<Story>エレメントで定義されます。テキスト変数の詳細については、InDesignのオンラインヘルプを参照してください。
スキーマの例8 TextVariable
TextVariable_Object = element TextVariable {
attribute Self { xsd:string },
attribute Name { xsd:string },
attribute VariableType { VariableTypes_EnumValue }?,
(CustomTextVariablePreference_Object?&FileNameVariablePreference_Object?&PageNumberVariablePreference_Object?&ChapterNumberVariablePreference_Object?&DateVariablePreference_Object?&MatchCharacterStylePreference_Object?&MatchParagraphStylePreference_Object?)}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Name | string | テキスト変数の名前 | |
| VariableType | VariableTypes_EnumValue | テキスト変数の種類。CustomTextType(カスタムテキスト)、FileNameType(ファイル名)、LastPageNumberType(最終ページ番号)、ChapterNumberType(章番号)、OutputDateType(出力日)、CreationDateType(作成日)、ModificationDateType(修正日)、MatchCharacterStyleType(ランニングヘッド・柱(文字スタイル))、MatchParagraphStyleType(ランニングヘッド・柱(段落スタイル)) | |
| TextBefore | string | 先行テキスト | |
| TextAfter | string | 後続テキスト |
スキーマの例9 CustomTextVariblePreference
CustomTextVariablePreference_Object = element CustomTextVariablePreference {
attribute Self { xsd:string },
element Properties {element Contents {(string_type, xsd:string ) |
(enum_type, SpecialCharacters_EnumValue ) |
(object_type, xsd:string )
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Contents | stringまたはSpecialCharacters_EnumValueまたはstring(Self属性への参照) | テキストコンテンツ |
スキーマの例10 FileNameVariablePreference
FileNameVariablePreference_Object = element FileNameVariablePreference {
attribute Self { xsd:string },
attribute TextBefore { xsd:string }?,
attribute IncludePath { xsd:boolean }?,
attribute IncludeExtension { xsd:boolean }?,
attribute TextAfter { xsd:string }?
}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| IncludePath | boolean | trueのとき、テキスト変数インスタンスにファイルのパスを含む | |
| IncludeExtension | boolean | trueのとき、テキスト変数インスタンスにファイルの拡張子を含む |
スキーマの例11 PageNumberVariblePreference
PageNumberVariablePreference_Object = element PageNumberVariablePreference {
attribute Self { xsd:string },
attribute TextBefore { xsd:string }?,
attribute Format { VariableNumberingStyles_EnumValue }?,
attribute TextAfter { xsd:string }?,
attribute Scope { VariableScopes_EnumValue }?
}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Format | VariableNumberingStyles_EnumValue | ページ番号。Current、Arabic、UpperRoman、LowerRoman、UpperLetters、LowerLetters、Kanji、FullWidthArabic、SingleLeadingZeros、DoubleLeadingZeros | |
| Scope | VariableScopes_EnumValue | ページ番号の範囲。DocumentScopeかSectionScope |
スキーマの例12 ChapterNumberVariablePreference
ChapterNumberVariablePreference_Object = element ChapterNumberVariablePreference {
attribute Self { xsd:string },
attribute TextBefore { xsd:string }?,
attribute Format { VariableNumberingStyles_EnumValue }?,
attribute TextAfter { xsd:string }?
}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Format | VariableNumberingStyles_EnumValue | 章番号形式。Current、Arabic、UpperRoman、LowerRoman、UpperLetters、LowerLetters、Kanji、FullWidthArabic、SingleLeadingZeros、DoubleLeadingZeros |
スキーマの例13 DetaVariablePreference
DateVariablePreference_Object = element DateVariablePreference{
attribute Self { xsd:string },
attribute TextBefore{ xsd:string }?,
attribute Format { xsd:string }?,
attribute TextAfter{ xsd:string }?
}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Format | string | データ変数形式 |
スキーマの例14 MatchCharacterStylePreference
MatchCharacterStylePreference_Object = element MatchCharacterStylePreference{
attribute Self { xsd:string },
attribute TextBefore{ xsd:string }?,
attribute TextAfter{ xsd:string }?,
attribute AppliedCharacterStyle{ xsd:string }?,
attribute SearchStrategy{ SearchStrategies_EnumValue }?,
attribute ChangeCase{ ChangeCaseOptions_EnumValue }?,
attribute DeleteEndPunctuation{ xsd:boolean }?
}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| AppliedCharacterStyle | string | テキスト変数に適用する文字スタイル(<CharacterStyle>エレメントのSelf属性の値) | |
| ChangeCase | ChageCaseOptions_EnumValue | テキスト変数の大文字/小文字の変更。Uppercase、Lowercase、Titlecase、Sentencecase | |
| DeleteEndPunctuation | boolean | trueのとき、テキスト変数のすべての区切り約物を削除する | |
| SearchStrategy | SearthStrategies_EnumValue | テキスト変数に適用する文字スタイルの出現箇所。FirstOnPageかLastOnPage |
スキーマの例15 MatchParagraphStylePreference
MatchParagraphStylePreference_Object = element MatchParagraphStylePreference{
attribute Self { xsd:string },
attribute TextBefore{ xsd:string }?,
attribute TextAfter{ xsd:string }?,
attribute AppliedParagraphStyle{ xsd:string }?,
attribute SearchStrategy{ SearchStrategies_EnumValue }?,
attribute ChangeCase{ ChangeCaseOptions_EnumValue }?,
attribute DeleteEndPunctuation{ xsd:boolean }?
}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| AppliedParagraphStyle | string | テキスト変数へ適用する段落スタイル(<ParagraphStyle>エレメントのSelf属性の値) | |
| ChangeCase | ChageCaseOptions_EnumValue | テキスト変数の大文字/小文字の変更。Uppercase、Lowercase、Titlecase、Sentencecase | |
| DeleteEndPunctuation | boolean | trueのとき、テキスト変数のすべての区切り約物を削除する | |
| SearchStrategy | SearthStrategies_EnumValue | テキスト変数に適用する段落スタイルの出現箇所。FirstOnPageかLastOnPage |
IDMLの例10 TextVariable
<TextVariable Self="dTextVariablenLast Page Number" Name="Last Page Number"VariableType="LastPageNumberType"><PageNumberVariablePreferenceSelf="dTextVariablenLast Page NumberPageNumberVariablePreference1"TextBefore="" Format="Current" TextAfter="" Scope="SectionScope"/></TextVariable>
10.2.6 Layer
InDesignのドキュメントにはレイヤー機能があります。レイヤーを使って、透明のページを重ねるようにレイアウトができます。レイヤーはドキュメントでのオブジェクトの重ね順をコントロールするだけでなく、オブジェクトを整理することもできます。InDesignドキュメントのレイヤーは、ドキュメント全般に対しての機能ですが、IDMLの<Layer>エレメントはdesignmap.xmlファイルの<Document>エレメント内です。
レイヤーについての詳細は、InDesignのオンラインヘルプを参照してください。
スキーマの例16 Layer
Layer_Object = element Layer {
attribute Self { xsd:string },
attribute Name { xsd:string }?,
attribute Visible { xsd:boolean }?,
attribute Locked { xsd:boolean }?,
attribute IgnoreWrap{ xsd:boolean }?,
attribute ShowGuides{ xsd:boolean }?,
attribute LockGuides{ xsd:boolean }?,
attribute UI { xsd:boolean }?,
attribute Expendable { xsd:boolean }?,
attribute Printable { xsd:boolean }?,
element Properties {element LayerColor{ InDesignUIColorType_TypeDef }?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Expendable | boolean | trueのとき、レイヤーを削除できる | |
| IgnoreWrap | boolean | trueのとき、レイヤーにあるオブジェクトはテキストの回り込みを無視する | |
| Locked | boolean | trueのとき、レイヤーはロックされる | |
| LockGuides | boolean | trueのとき、レイヤーにあるガイドはロックされる | |
| Name | string | レイヤーの名前 | |
| Printable | boolean | trueのとき、レイヤーにあるオブジェクトは印刷される | |
| ShowGuides | boolean | trueのとき、レイヤーにあるガイドを表示する | |
| Visible | boolean | trueのとき、レイヤーは表示される |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| LayerColor | stringまたはInDesignUIColorType | レイヤーの色。それぞれ0-255の範囲のRとG、Bの値3組の配列かInDesignUIColorTypeの列挙 |
IDMLの例11 Layer
<Layer Self="ub5" Name="Layer 1" Visible="true" Locked="false" IgnoreWrap="false"ShowGuides="true" LockGuides="false" UI="true" Expendable="true" Printable="true"><Properties><LayerColor type="enumeration">LightBlue</LayerColor></Properties>
</Layer>
10.2.7 Section
InDesignドキュメントのページ範囲は、セクションで区切ることができます。Sectionプロパティはページ番号の設定をコントロールします。セクションについての詳細は、InDesignのオンラインヘルプを参照してください。
スキーマの例17 Section
Section_Object = element Section {
attribute Self { xsd:string },
attribute Length { xsd:int }?,
attribute Name { xsd:string }?,
attribute PageNumberStyle{ PageNumberStyle_EnumValue }?,
attribute ContinueNumbering{ xsd:boolean }?,
attribute IncludeSectionPrefix{ xsd:boolean }?,
attribute PageNumberStart{ xsd:int {minInclusive="1" maxInclusive="999999"} }?,
attribute Marker { xsd:string }?,
attribute PageStart{ xsd:string }?,
attribute SectionPrefix{ xsd:string }?,
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef}*
}?
}?}
Note:InDesignには、番号付けや相互参照に様々なやりかたがあります。セクション番号は特殊文字やテキスト変数、段落の自動番号と互いに影響しあいます。
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| ContinueNumbering | boolean | trueのとき、ドキュメン内の前のセクションからページ番号を継続する | |
| IncludeSectionPrefix | boolean | trueのとき、SectionPrefix属性の値を含む | |
| Length | int | セクションのページ数 | |
| Marker | string | セクションマーカー | |
| Name | string | セクション名 | |
| PageNumberStart | int | セクションのページ番号開始値 1-999999 | |
| PageNumberStyle | PageNumber_EnumValue | ページ番号のスタイル。UpperRoman、LowerRoman、UpperLetters、LowerLetters、Arabic、Kanji、DoubleLeadingZeros、TripleLeadingZeros、ArabicAlifBaTah、ArabicAbjad、HebrewBiblicalまたはHebrewNonStandard | |
| PageStart | string | セクションを開始するページへの参照(<Page>エレメントのSelf属性の値) | |
| SectionPrefix | string | セクションプレフィックス |
10.2.8 CrossReferenceFormat
InDesignドキュメントには相互参照の機能があります。相互参照は<BuildingBlock>エレメントで設定します。
スキーマの例18 CrossReferenceFormat
CrossReferenceFormat_Object = element CrossReferenceFormat{
attribute Self { xsd:string },
attribute Name { xsd:string },
attribute AppliedCharacterStyle{ xsd:string }?,
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(BuildingBlock_Object*)}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| AppliedCharacterStyle | string | 相互参照形式に適用する文字スタイル(<CharacterStyle>エレメントのSelf属性の値) | |
| Name | string | ○ | 相互参照形式の名前 |
相互参照は、テキストとテキスト形式の組み合わせで形成されます。(組み合わせ方についての詳細は、InDesignのドキュメントを参照してください)<CrossReferenceFormat>エレメントは複数の<BuildingBlock>エレメントを含むことができます。
スキーマの例19 BuildingBlock
BuildingBlock_Object = element BuildingBlock{
attribute Self { xsd:string },
attribute BlockType{ BuildingBlockTypes_EnumValue },
attribute AppliedCharacterStyle{ xsd:string }?,
attribute CustomText{ xsd:string }?,
attribute AppliedDelimiter{ xsd:string }?,
attribute IncludeDelimiter{ xsd:boolean }?
}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| AppliedCharacterStyle | string | 相互参照形式に適用する文字スタイル(<CharacterStyle>エレメントのSelf属性の値) | |
| AppliedDelimiter | string | 構成要素のデリミタ | |
| BlockType | BuildingBlockTypes_EnumValue | 構成要素の種類。CustomStringBuildingBlock、FileNameBuildingBlock、ChapterNumberBuildingBlock、PageNumberBuildingBlock、FullParagraphBuildingBlock、ParagraphNumberBuildingBlock、ParagraphTextBuildingBlockまたはBookmarkNameBuildingBlock | |
| CustomText | string | 構成要素としてのテキスト。BlockType属性がCustomStringBuildingBlockであるときのみ有効 | |
| IncludeDelimiter | boolean | trueのとき、インスタンスにデリミタを含む |
IDMLの例12 BuildingBlock
<BuildingBlock Self="u8bBuildingBlock1" BlockType="ParagraphNumberBuildingBlock"AppliedCharacterStyle="n" CustomText="$ID/" AppliedDelimiter="$ID/" Include-Delimiter="false"/>
10.2.9 Hyperlinks
InDesignドキュメントでハイパーリンクを設定して、同じファイル内や他のファイル、webサイトへのリンクを含むPDFファイルを書き出すことができます。ハイパーリンクにはハイパーリンク元とハイパーリンク先が必要で、さまざまな表示や形式のオプションがあります。
ハイパーリンク元となるのは、リンクされたテキスト、テキストフレームまたはグラフィックフレームです。ハイパーリンク先となるのはURL、テキストの位置またはハイパーリンクのジャンプです。ハイパーリンク元にはひとつのハイパーリンク先しか設定できませんが、ひとつのハイパーリンク先にはいくつものハイパーリンク元を設定することができます。
スキーマの例20 Hyperlink
Hyperlink_Object = element Hyperlink {
attribute Self { xsd:string },
attribute Name { xsd:string }?,
attribute Source { xsd:string },
attribute Visible { xsd:boolean }?,
attribute Highlight { HyperlinkAppearanceHighlight_EnumValue}?,
attribute Width { HyperlinkAppearanceWidth_EnumValue}?,
attribute BorderStyle{ HyperlinkAppearanceStyle_EnumValue}?,
attribute Hidden { xsd:boolean }?,
attribute DestinationUniqueKey{ xsd:int }?,
element Properties {element BorderColor{ InDesignUIColorType_TypeDef}?&
element Destination {(list_type, element ListItem{
(string_type, xsd:string ) |
(long_type, xsd:int ) |
(bool_type, xsd:boolean )
}* ) |
(object_type, xsd:string )
}?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Name | string | ○ | ハイパーリンクの名前 |
| Source | string | ○ | ハイパーリンク元(エレメントのSelf属性の値) |
| Visible | boolen | trueのとき、書き出されたPDFでハイパーリンクが表示される | |
| Highlight | HyperlinkAppearanceHighlight_EnumValue | ハイパーリンクのハイライト。None、InvertまたはInset | |
| Width | HyperlinkAppearanceWidth_EnumValue | ハイパーリンクの線幅。Thin、MediumまたはThick | |
| BorderStyle | HyperlinkAppearanceStyle_EnumValue | ハイパーリンクの境界線。SolidまたはDashed | |
| Hidden | boolean | trueのとき、書き出されたPDFでハイパーリンクが表示されない | |
| DestinationUniqueKey | int | ハイパーリンク先を指定するユニークなキー |
HyperlinkPageDestination
ハイパーリンク先に、ドキュメント中のページを指定します。
スキーマの例21 HyperlinkPageDestination
HyperlinkPageDestination_Object = element HyperlinkPageDestination{
attribute Self { xsd:string },
attribute Name { xsd:string }?,
attribute NameManually{ xsd:boolean }?,
attribute DestinationPage{ xsd:string }?,
attribute ViewSetting{ HyperlinkDestinationPageSetting_EnumValue }?,
attribute ViewPercentage{ xsd:double {minInclusive="5" maxInclusive="4000"} }?,
attribute Hidden { xsd:boolean }?,
attribute DestinationUniqueKey{ xsd:int }?,
HyperlinkPageDestelement Properties {element ViewBounds{ UnitRectangleBoundsType_TypeDef }?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| DestinationPage | string | ハイパーリンク先のページ | |
| DestinationUniqueKey | int | ハイパーリンク先を指定するユニークなキー | |
| Hidden | boolean | trueのとき、書き出されたPDFでハイパーリンクが表示されない | |
| Name | string | ハイパーリンク先のページの名前 | |
| NameManually | boolean | trueのとき、ハイパーリンク先のページ名が自動で付けられる | |
| ViewPercentage | double | 表示倍率。ViewSetting属性がFixedのときのみ有効 | |
| ViewSetting | HyperlinkDestinationPageSetting_EnumValue | ハイパーリンクコンテンツの表示方法。Fixed、FitView、FitWindow、FitWidth、FitHeight、FitVisibleまたはInheritZoom |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| ViewBounds | UnitRectangleBoundsType_TypeDef | ○ | [y1,x1,y2,x2]で設定される矩形。Note:ViewSetting属性がFixedのときのみ有効 |
HyperlinkURLDestination
ハイパーリンク先に、webのアドレスを指定します。
スキーマの例22 HyperlinkURLDestination
HyperlinkURLDestination_Object = element HyperlinkURLDestination{
attribute Self { xsd:string },
attribute Name { xsd:string }?,
attribute DestinationURL{ xsd:string }?,
attribute Hidden { xsd:boolean }?,
attribute DestinationUniqueKey{ xsd:int }?,
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| DestinationUniqueKey | int | ハイパーリンク先のURLを指定するユニークなキー | |
| DestinationURL | string | ハイパーリンク先のURL | |
| Name | string | ハイパーリンク先のURLの名前 | |
| Hidden | boolean | trueのとき、書き出されたPDFでハイパーリンクが表示されない |
HyperlinkExternalPageDestination
ハイパーリンク先に、他のドキュメントのページを指定します。
スキーマの例23 HyperlinkExternalPageDestination
HyperlinkExternalPageDestination_Object = elementHyperlinkExternalPageDestination{attribute Self { xsd:string },
attribute Name { xsd:string }?,
attribute DocumentPath{ xsd:string }?,
attribute DestinationPageIndex{ xsd:int {minInclusive="1"
maxInclusive="9999"} }?,
attribute ViewSetting{ HyperlinkDestinationPageSetting_EnumValue}?,
attribute ViewPercentage{ xsd:double {minInclusive="5" maxInclusive="4000"} }?,
attribute Hidden { xsd:boolean }?,
attribute DestinationUniqueKey{ xsd:int }?,
element Properties {element ViewBounds{ UnitRectangleBoundsType_TypeDef }?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| DestinationPageIndex | int | リンク先ドキュメントの、ページのインデックス。1-9999 | |
| DocumentPath | string | ハイパーリンク先ドキュメントへのパス | |
| DestinationUniqueKey | int | ハイパーリンク先のページを指定するユニークなキー | |
| Name | string | ○ | ハイパーリンク先の外部ドキュメントのページの名前 |
| ViewSetting | HyperlinkDestinationPageSetting_EnumValue | ハイパーリンクコンテンツの表示方法。Fixed、FitView、FitWindow、FitWidth、FitHeight、FitVisibleまたはInheritZoom | |
| ViewPercentage | double | 表示倍率。ViewSetting属性がFixedのときのみ有効 |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| ViewBounds | UnitRectangleBoundsType_TypeDef | ○ | [y1,x1,y2,x2]で設定される矩形。Note:ViewSetting属性がFixedのときのみ有効 |
HyperlinkPageItemSource
ページオブジェクトと連動したハイパーリンクを設定します。
スキーマの例24 HyperlinkPageItemSource
HyperlinkPageItemSource_Object = element HyperlinkPageItemSource{
attribute Self { xsd:string },
attribute Name { xsd:string }?,
attribute SourcePageItem{ xsd:string },
attribute Hidden { xsd:boolean }?,
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Name | string | ○ | ハイパーリンク先の名前 |
| Hidden | boolean | trueのとき、書き出されたPDFでハイパーリンク元が表示されない | |
| SourcePageItem | string | ○ | 参照するページオブジェクト。Self属性の値 |
10.2.10 Bookmark
InDesignドキュメントで、書き出したPDFのしおりの設定をすることができます。
スキーマの例25 Bookmark
Bookmark_Object = element Bookmark {
attribute Self { xsd:string },
attribute Name { xsd:string }?,
attribute Destination { xsd:string },
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(Bookmark_Object*)}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Destination | string | しおりの設定先。<Page>エレメントのSelf属性 | |
| Name | string | ○ | しおりの名前 |
