Translation:10 2/ja

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>

10.2.1 ドキュメントとカラーマネージメント

すべてのスウォッチ(カラー、濃淡、グラデーション、混合インキまたは混合インキグループ。「10.6 グラフィック」にて説明)と配置された画像のアピアランスは、ドキュメントに適用されているカラーマネージメントによって決まります。プロファイルはそれらのオブジェクトのベースのプロパティを変えませんが(例えば、IDMLパッケージ内でGraphic.xmlによって設定されているCMYKカラー値は変更されません)、画面表示や出力(印刷、書き出し)時のレンダリングにのみ影響します。

IDMLの例9 カラーマネージメント属性
  1. <Document Self="d" CMYKProfile="U.S. Web Coated (SWOP) v2"
  2. RGBProfile="sRGB IEC61966-2.1" SolidColorIntent="UseColorSettings"
  3. AfterBlendingIntent="UseColorSettings" DefaultImageIntent="UseColorSettings"
  4. RGBPolicy="PreserveEmbeddedProfiles" CMYKPolicy="CombinationOfPreserveAndSafeCmyk"
  5. AccurateLABSpots="false">

InDesignのカラーマネージメント機能についての完全な説明は、このドキュメントの目的ではありません。詳細はInDesignのドキュメントを参照してください。

Note:UIで使用される色(ガイド、グリッド、レイヤーのハイライトなど)は使用するシステムのRGBスクリーン値であり、カラーマネージメントはされていません。

10.2.2 Language

IDMLパッケージで、<Language>エレメントはドキュメントで使用できる言語の辞書を設定します。新規に<Language>エレメントを追加して言語を作成することはできません。参照として使用される(例えば、IDMLパッケージ中のResourcesフォルダにある、Styles.xmlファイルの<ParagraphStyle>エレメントからなど)ためのエレメントであるのと、InDesignやInCopyドキュメントとして確実に再現させるためです。

スキーマの例5 Language
  1. Language_Object = element Language {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string },
  4.   attribute SingleQuotes { xsd:string }?,
  5.   attribute DoubleQuotes { xsd:string }?,
  6.   attribute PrimaryLanguageName { xsd:string }?,
  7.   attribute SublanguageName { xsd:string }?,
  8.   attribute Id { xsd:int }?,
  9.   attribute HyphenationVendor { xsd:string }?,
  10.   attribute SpellingVendor { xsd:string }?,
  11.   element Properties {
  12.     element Label { element KeyValuePair { KeyValuePair_TypeDef}*
  13.     }?
  14.   }
  15.   ?
  16. }
表5 属性としてのLanguageプロパティ
名前 必須 説明
DoubleQuates string 言語で使用する二重引用符の組
HyphenationVender string ハイフネーションの規則
Id int 言語のユニークなID
Name string 言語の名前
PrimaryLanguageName string 言語の名前
SingleQuotes string 言語で使用する引用符の組

10.2.3 Condition

InDesignドキュメントには、ある一定の条件でのみ表示される、条件付テキストの機能があります。<Condition>エレメントは条件により決められるテキストの表示/非表示を制御します。

スキーマの例6 Condition
  1. Condition_Object = element Condition {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string },
  4.   attribute IndicatorMethod { ConditionIndicatorMethod_EnumValue }?,
  5.   attribute UnderlineIndicatorAppearance
  6.   { ConditionUnderlineIndicatorAppearance_EnumValue }?,
  7.   attribute Visible { xsd:boolean }?,
  8.   element Properties {
  9.     element IndicatorColor { InDesignUIColorType_TypeDef }?&
  10.     element Label { element KeyValuePair { KeyValuePair_TypeDef }*
  11.     }?
  12.   }
  13.   ?
  14. }
表6 属性としてのConditionプロパティ
名前 必須 説明
IndicatorMethod ConditionIndicatorMethod_EnumValue 条件付テキストのメソッド
Name string 条件の名前
UnderlineIndicatorAppearance ConditionUnderlineIndicatorAppearance_EnumValue 条件付テキストの下線のアピアランス
Visible boolean trueのとき、Conditionは表示される
表7 エレメントとしてのConditionプロパティ
名前 必須 説明
IndicatorColor InDesignUIColorType_TypeDef 条件付テキストの色。それぞれ0-255の範囲のRとG、Bの値3組の配列かUIカラーで設定される。3つの実数(0-255)の配列かUIカラーの列挙を返す

10.2.4 ConditionalTextPreference

スキーマの例7 ConditionalTextPreference
  1. ConditionalTextPreference_Object = element ConditionalTextPreference {
  2.   attribute Self { xsd:string },
  3.   attribute ShowConditionIndicators { xsd:boolean }?,
  4.   attribute ActiveConditionSet { xsd:string }?
  5. }
表8 属性としてのConditionalTextPreferenceプロパティ
名前 必須 説明
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
  1. TextVariable_Object = element TextVariable {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string },
  4.   attribute VariableType { VariableTypes_EnumValue }?,
  5. (
  6.   CustomTextVariablePreference_Object?&
  7.   FileNameVariablePreference_Object?&
  8.   PageNumberVariablePreference_Object?&
  9.   ChapterNumberVariablePreference_Object?&
  10.   DateVariablePreference_Object?&
  11.   MatchCharacterStylePreference_Object?&
  12.   MatchParagraphStylePreference_Object?
  13. )
  14. }
表9 属性としてのTextVariableプロパティ
名前 必須 説明
Name string テキスト変数の名前
VariableType VariableTypes_EnumValue テキスト変数の種類。CustomTextType(カスタムテキスト)、FileNameType(ファイル名)、LastPageNumberType(最終ページ番号)、ChapterNumberType(章番号)、OutputDateType(出力日)、CreationDateType(作成日)、ModificationDateType(修正日)、MatchCharacterStyleType(ランニングヘッド・柱(文字スタイル))、MatchParagraphStyleType(ランニングヘッド・柱(段落スタイル))
TextBefore string 先行テキスト
TextAfter string 後続テキスト
スキーマの例9 CustomTextVariblePreference
  1. CustomTextVariablePreference_Object = element CustomTextVariablePreference {
  2.   attribute Self { xsd:string },
  3.   element Properties {
  4.     element Contents {
  5.       (string_type, xsd:string ) |
  6.       (enum_type, SpecialCharacters_EnumValue ) |
  7.       (object_type, xsd:string )
  8.     }?
  9.   }
  10.   ?
  11. }
表11 エレメントとしてのCustomTextVariablePreferenceプロパティ
名前 必須 説明
Contents stringまたはSpecialCharacters_EnumValueまたはstring(Self属性への参照) テキストコンテンツ
スキーマの例10 FileNameVariablePreference
  1. FileNameVariablePreference_Object = element FileNameVariablePreference {
  2.   attribute Self { xsd:string },
  3.   attribute TextBefore { xsd:string }?,
  4.   attribute IncludePath { xsd:boolean }?,
  5.   attribute IncludeExtension { xsd:boolean }?,
  6.   attribute TextAfter { xsd:string }?
  7. }
表12 属性としてのFileNameVariablePreferenceプロパティ
名前 必須 説明
IncludePath boolean trueのとき、テキスト変数インスタンスにファイルのパスを含む
IncludeExtension boolean trueのとき、テキスト変数インスタンスにファイルの拡張子を含む
スキーマの例11 PageNumberVariblePreference
  1. PageNumberVariablePreference_Object = element PageNumberVariablePreference {
  2.   attribute Self { xsd:string },
  3.   attribute TextBefore { xsd:string }?,
  4.   attribute Format { VariableNumberingStyles_EnumValue }?,
  5.   attribute TextAfter { xsd:string }?,
  6.   attribute Scope { VariableScopes_EnumValue }?
  7. }
表13 属性としてのPageNumberVariablePreferenceプロパティ
名前 必須 説明
Format VariableNumberingStyles_EnumValue ページ番号。Current、Arabic、UpperRoman、LowerRoman、UpperLetters、LowerLetters、Kanji、FullWidthArabic、SingleLeadingZeros、DoubleLeadingZeros
Scope VariableScopes_EnumValue ページ番号の範囲。DocumentScopeかSectionScope
スキーマの例12 ChapterNumberVariablePreference
  1. ChapterNumberVariablePreference_Object = element ChapterNumberVariablePreference {
  2.   attribute Self { xsd:string },
  3.   attribute TextBefore { xsd:string }?,
  4.   attribute Format { VariableNumberingStyles_EnumValue }?,
  5.   attribute TextAfter { xsd:string }?
  6. }
表14 属性としてのChapterNumberVariablePreferenceプロパティ
名前 必須 説明
Format VariableNumberingStyles_EnumValue 章番号形式。Current、Arabic、UpperRoman、LowerRoman、UpperLetters、LowerLetters、Kanji、FullWidthArabic、SingleLeadingZeros、DoubleLeadingZeros
スキーマの例13 DetaVariablePreference
  1. DateVariablePreference_Object = element DateVariablePreference{ 
  2.   attribute Self { xsd:string },
  3.   attribute TextBefore{  xsd:string }?,
  4.   attribute Format { xsd:string }?,
  5.   attribute TextAfter{  xsd:string }?
  6. }
表15 属性としてのDateVariablePreferenceプロパティ
名前 必須 説明
Format string データ変数形式
スキーマの例14 MatchCharacterStylePreference
  1. MatchCharacterStylePreference_Object = element MatchCharacterStylePreference{ 
  2.   attribute Self { xsd:string },
  3.   attribute TextBefore{  xsd:string }?,
  4.   attribute TextAfter{  xsd:string }?,
  5.   attribute AppliedCharacterStyle{  xsd:string }?,
  6.   attribute SearchStrategy{  SearchStrategies_EnumValue }?,
  7.   attribute ChangeCase{  ChangeCaseOptions_EnumValue }?,
  8.   attribute DeleteEndPunctuation{  xsd:boolean }?
  9. }
表16 属性としてのMatchCharacterStylePreferenceプロパティ
名前 必須 説明
AppliedCharacterStyle string テキスト変数に適用する文字スタイル(<CharacterStyle>エレメントのSelf属性の値)
ChangeCase ChageCaseOptions_EnumValue テキスト変数の大文字/小文字の変更。Uppercase、Lowercase、Titlecase、Sentencecase
DeleteEndPunctuation boolean trueのとき、テキスト変数のすべての区切り約物を削除する
SearchStrategy SearthStrategies_EnumValue テキスト変数に適用する文字スタイルの出現箇所。FirstOnPageかLastOnPage
スキーマの例15 MatchParagraphStylePreference
  1. MatchParagraphStylePreference_Object = element MatchParagraphStylePreference{ 
  2.   attribute Self { xsd:string },
  3.   attribute TextBefore{  xsd:string }?,
  4.   attribute TextAfter{  xsd:string }?,
  5.   attribute AppliedParagraphStyle{  xsd:string }?,
  6.   attribute SearchStrategy{  SearchStrategies_EnumValue }?,
  7.   attribute ChangeCase{  ChangeCaseOptions_EnumValue }?,
  8.   attribute DeleteEndPunctuation{  xsd:boolean }?
  9. }
表17 属性としてのMatchParagraphStylePreference
名前 必須 説明
AppliedParagraphStyle string テキスト変数へ適用する段落スタイル(<ParagraphStyle>エレメントのSelf属性の値)
ChangeCase ChageCaseOptions_EnumValue テキスト変数の大文字/小文字の変更。Uppercase、Lowercase、Titlecase、Sentencecase
DeleteEndPunctuation boolean trueのとき、テキスト変数のすべての区切り約物を削除する
SearchStrategy SearthStrategies_EnumValue テキスト変数に適用する段落スタイルの出現箇所。FirstOnPageかLastOnPage
IDMLの例10 TextVariable
  1. <TextVariable Self="dTextVariablenLast Page Number" Name="Last Page Number"
  2. VariableType="LastPageNumberType">
  3.     <PageNumberVariablePreference
  4.     Self="dTextVariablenLast Page NumberPageNumberVariablePreference1"
  5.     TextBefore="" Format="Current" TextAfter="" Scope="SectionScope"/>
  6. </TextVariable>

10.2.6 Layer

InDesignのドキュメントにはレイヤー機能があります。レイヤーを使って、透明のページを重ねるようにレイアウトができます。レイヤーはドキュメントでのオブジェクトの重ね順をコントロールするだけでなく、オブジェクトを整理することもできます。InDesignドキュメントのレイヤーは、ドキュメント全般に対しての機能ですが、IDMLの<Layer>エレメントはdesignmap.xmlファイルの<Document>エレメント内です。

レイヤーについての詳細は、InDesignのオンラインヘルプを参照してください。

スキーマの例16 Layer
  1. Layer_Object = element Layer {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4.   attribute Visible { xsd:boolean }?,
  5.   attribute Locked { xsd:boolean }?,
  6.   attribute IgnoreWrap{  xsd:boolean }?,
  7.   attribute ShowGuides{  xsd:boolean }?,
  8.   attribute LockGuides{  xsd:boolean }?,
  9.   attribute UI { xsd:boolean }?,
  10.   attribute Expendable { xsd:boolean }?,
  11.   attribute Printable { xsd:boolean }?,
  12.     element Properties {
  13.     element LayerColor{  InDesignUIColorType_TypeDef }?&
  14.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  15.     }?
  16.   }
  17.   ?
  18. }
表18 属性としてのLayerプロパティ
名前 必須 説明
Expendable boolean trueのとき、レイヤーを削除できる
IgnoreWrap boolean trueのとき、レイヤーにあるオブジェクトはテキストの回り込みを無視する
Locked boolean trueのとき、レイヤーはロックされる
LockGuides boolean trueのとき、レイヤーにあるガイドはロックされる
Name string レイヤーの名前
Printable boolean trueのとき、レイヤーにあるオブジェクトは印刷される
ShowGuides boolean trueのとき、レイヤーにあるガイドを表示する
Visible boolean trueのとき、レイヤーは表示される
表19 エレメントとしてのLayerプロパティ
名前 必須 説明
LayerColor stringまたはInDesignUIColorType レイヤーの色。それぞれ0-255の範囲のRとG、Bの値3組の配列かInDesignUIColorTypeの列挙
IDMLの例11 Layer
  1. <Layer Self="ub5" Name="Layer 1" Visible="true" Locked="false" IgnoreWrap="false"
  2. ShowGuides="true" LockGuides="false" UI="true" Expendable="true" Printable="true">
  3. <Properties><LayerColor type="enumeration">LightBlue</LayerColor></Properties>
  4. </Layer>

10.2.7 Section

InDesignドキュメントのページ範囲は、セクションで区切ることができます。Sectionプロパティはページ番号の設定をコントロールします。セクションについての詳細は、InDesignのオンラインヘルプを参照してください。

スキーマの例17 Section
  1. Section_Object = element Section {
  2.   attribute Self { xsd:string },
  3.   attribute Length { xsd:int }?,
  4.   attribute Name { xsd:string }?,
  5.   attribute PageNumberStyle{  PageNumberStyle_EnumValue }?,
  6.   attribute ContinueNumbering{  xsd:boolean }?,
  7.   attribute IncludeSectionPrefix{  xsd:boolean }?,
  8.   attribute PageNumberStart{  xsd:int {minInclusive="1" maxInclusive="999999"} }?,
  9.   attribute Marker { xsd:string }?,
  10.   attribute PageStart{  xsd:string }?,
  11.   attribute SectionPrefix{  xsd:string }?,
  12.   element Properties {
  13.     element Label { element KeyValuePair{  KeyValuePair_TypeDef}*
  14.     }?
  15.   }
  16.   ?
  17. }

Note:InDesignには、番号付けや相互参照に様々なやりかたがあります。セクション番号は特殊文字やテキスト変数、段落の自動番号と互いに影響しあいます。

表20 属性としてのSectionプロパティ
名前 必須 説明
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
  1. CrossReferenceFormat_Object = element CrossReferenceFormat{ 
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string },
  4.   attribute AppliedCharacterStyle{  xsd:string }?,
  5.   element Properties {
  6.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  7.     }?
  8.   }
  9.   ?
  10.   ,
  11. (
  12.   BuildingBlock_Object*
  13. )
  14. }
表21 属性としてのCrossReferenceFormatプロパティ
名前 必須 説明
AppliedCharacterStyle string 相互参照形式に適用する文字スタイル(<CharacterStyle>エレメントのSelf属性の値)
Name string 相互参照形式の名前

相互参照は、テキストとテキスト形式の組み合わせで形成されます。(組み合わせ方についての詳細は、InDesignのドキュメントを参照してください)<CrossReferenceFormat>エレメントは複数の<BuildingBlock>エレメントを含むことができます。

スキーマの例19 BuildingBlock
  1. BuildingBlock_Object = element BuildingBlock{ 
  2.   attribute Self { xsd:string },
  3.   attribute BlockType{  BuildingBlockTypes_EnumValue },
  4.   attribute AppliedCharacterStyle{  xsd:string }?,
  5.   attribute CustomText{  xsd:string }?,
  6.   attribute AppliedDelimiter{  xsd:string }?,
  7.   attribute IncludeDelimiter{  xsd:boolean }?
  8. }
表22 属性としてのBuildingBlockプロパティ
名前 必須 説明
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
  1. <BuildingBlock Self="u8bBuildingBlock1" BlockType="ParagraphNumberBuildingBlock"
  2. AppliedCharacterStyle="n" CustomText="$ID/" AppliedDelimiter="$ID/" Include-
  3. Delimiter="false"/>

10.2.9 Hyperlinks

InDesignドキュメントでハイパーリンクを設定して、同じファイル内や他のファイル、webサイトへのリンクを含むPDFファイルを書き出すことができます。ハイパーリンクにはハイパーリンク元とハイパーリンク先が必要で、さまざまな表示や形式のオプションがあります。

ハイパーリンク元となるのは、リンクされたテキスト、テキストフレームまたはグラフィックフレームです。ハイパーリンク先となるのはURL、テキストの位置またはハイパーリンクのジャンプです。ハイパーリンク元にはひとつのハイパーリンク先しか設定できませんが、ひとつのハイパーリンク先にはいくつものハイパーリンク元を設定することができます。

スキーマの例20 Hyperlink
  1. Hyperlink_Object = element Hyperlink {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4.   attribute Source { xsd:string },
  5.   attribute Visible { xsd:boolean }?,
  6.   attribute Highlight { HyperlinkAppearanceHighlight_EnumValue}?,
  7.   attribute Width { HyperlinkAppearanceWidth_EnumValue}?,
  8.   attribute BorderStyle{  HyperlinkAppearanceStyle_EnumValue}?,
  9.   attribute Hidden { xsd:boolean }?,
  10.   attribute DestinationUniqueKey{  xsd:int }?,
  11.   element Properties {
  12.     element BorderColor{  InDesignUIColorType_TypeDef}?&
  13.     element Destination {
  14.       (list_type, element ListItem{ 
  15.         (string_type, xsd:string ) |
  16.         (long_type, xsd:int ) |
  17.         (bool_type, xsd:boolean )
  18.       }* ) |
  19.       (object_type, xsd:string )
  20.     }?&
  21.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  22.     }?
  23.   }
  24.   ?
  25. }
表23 属性としてのHyperlinkプロパティ
名前 必須 説明
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
  1. HyperlinkPageDestination_Object = element HyperlinkPageDestination{ 
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4.   attribute NameManually{  xsd:boolean }?,
  5.   attribute DestinationPage{  xsd:string }?,
  6.   attribute ViewSetting{  HyperlinkDestinationPageSetting_EnumValue }?,
  7.   attribute ViewPercentage{  xsd:double {minInclusive="5" maxInclusive="4000"} }?,
  8.   attribute Hidden { xsd:boolean }?,
  9.   attribute DestinationUniqueKey{  xsd:int }?,
  10.   HyperlinkPageDestelement Properties {
  11.     element ViewBounds{  UnitRectangleBoundsType_TypeDef }?&
  12.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  13.     }?
  14.   }
  15.   ?
  16. }
表24 属性としてのHyperlinkPageDestinationプロパティ
名前 必須 説明
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
表25 エレメントとしてのHyperlinkPageDestinationプロパティ
名前 必須 説明
ViewBounds UnitRectangleBoundsType_TypeDef [y1,x1,y2,x2]で設定される矩形。Note:ViewSetting属性がFixedのときのみ有効
HyperlinkURLDestination

ハイパーリンク先に、webのアドレスを指定します。

スキーマの例22 HyperlinkURLDestination
  1. HyperlinkURLDestination_Object = element HyperlinkURLDestination{ 
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4.   attribute DestinationURL{  xsd:string }?,
  5.   attribute Hidden { xsd:boolean }?,
  6.   attribute DestinationUniqueKey{  xsd:int }?,
  7.   element Properties {
  8.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  9.     }?
  10.   }
  11.   ?
  12. }
表26 属性としてのHyperlinkURLDestination
名前 必須 説明
DestinationUniqueKey int ハイパーリンク先のURLを指定するユニークなキー
DestinationURL string ハイパーリンク先のURL
Name string ハイパーリンク先のURLの名前
Hidden boolean trueのとき、書き出されたPDFでハイパーリンクが表示されない
HyperlinkExternalPageDestination

ハイパーリンク先に、他のドキュメントのページを指定します。

スキーマの例23 HyperlinkExternalPageDestination
  1. HyperlinkExternalPageDestination_Object = element
  2. HyperlinkExternalPageDestination{ 
  3.   attribute Self { xsd:string },
  4.   attribute Name { xsd:string }?,
  5.   attribute DocumentPath{  xsd:string }?,
  6.   attribute DestinationPageIndex{  xsd:int {minInclusive="1"
  7.   maxInclusive="9999"} }?,
  8.   attribute ViewSetting{  HyperlinkDestinationPageSetting_EnumValue}?,
  9.   attribute ViewPercentage{  xsd:double {minInclusive="5" maxInclusive="4000"} }?,
  10.   attribute Hidden { xsd:boolean }?,
  11.   attribute DestinationUniqueKey{  xsd:int }?,
  12.   element Properties {
  13.     element ViewBounds{  UnitRectangleBoundsType_TypeDef }?&
  14.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  15.     }?
  16.   }
  17.   ?
  18. }
表27 属性としてのHyperlinkExternalPageDestinationプロパティ
名前 必須 説明
DestinationPageIndex int リンク先ドキュメントの、ページのインデックス。1-9999
DocumentPath string ハイパーリンク先ドキュメントへのパス
DestinationUniqueKey int ハイパーリンク先のページを指定するユニークなキー
Name string ハイパーリンク先の外部ドキュメントのページの名前
ViewSetting HyperlinkDestinationPageSetting_EnumValue ハイパーリンクコンテンツの表示方法。Fixed、FitView、FitWindow、FitWidth、FitHeight、FitVisibleまたはInheritZoom
ViewPercentage double 表示倍率。ViewSetting属性がFixedのときのみ有効
表28 エレメントとしてのHyperlinkExternalPageDestinationプロパティ
名前 必須 説明
ViewBounds UnitRectangleBoundsType_TypeDef [y1,x1,y2,x2]で設定される矩形。Note:ViewSetting属性がFixedのときのみ有効
HyperlinkPageItemSource

ページオブジェクトと連動したハイパーリンクを設定します。

スキーマの例24 HyperlinkPageItemSource
  1. HyperlinkPageItemSource_Object = element HyperlinkPageItemSource{ 
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4.   attribute SourcePageItem{  xsd:string },
  5.   attribute Hidden { xsd:boolean }?,
  6.   element Properties {
  7.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  8.     }?
  9.   }
  10.   ?
  11. }
表29 属性としてのHyperlinkPageItemSource
名前 必須 説明
Name string ハイパーリンク先の名前
Hidden boolean trueのとき、書き出されたPDFでハイパーリンク元が表示されない
SourcePageItem string 参照するページオブジェクト。Self属性の値

10.2.10 Bookmark

InDesignドキュメントで、書き出したPDFのしおりの設定をすることができます。

スキーマの例25 Bookmark
  1. Bookmark_Object = element Bookmark {
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4.   attribute Destination { xsd:string },
  5.   element Properties {
  6.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  7.     }?
  8.   }
  9.   ?
  10.   ,
  11. (
  12.   Bookmark_Object*
  13. )
  14. }
表30 属性としてのBookmarkプロパティ
名前 必須 説明
Destination string しおりの設定先。<Page>エレメントのSelf属性
Name string しおりの名前
Personal tools