Translation:10 8/ja
From IDMLWiki
8節 / スタイル
10.8 スタイル
InDesignドキュメントには、スタイル付けされたオブジェクトがあります。
- 段落スタイル
- 文字スタイル
- オブジェクトスタイル
- 表スタイル
- セルスタイル
- アンカー付きオブジェクト
IDMLパッケージでは、Resourcesフォルダ内のStyles.xmlファイルに、ドキュメントで使用するスタイルがあります。
10.8.1 スタイルのパスとSelf属性
IDMLパッケージ内でスタイルを参照するときは、スタイルのエレメントの位置をパスで指定します。例えば、<RootParagraphStyle>エレメントに「Heading1」という段落スタイルを参照するときは、Self属性の値を下記のように設定します。
\ParagraphStyles\Heading1
グループ化されているスタイルの場合は、グループ名とスタイル名をコロンで区切ります。(バックスラッシュではありません)コロンはスタイルのName属性で表示されますが、Self属性では「%3a」とエンコードされます。下記はその例です。
<ParagraphStyleSelf="ParagraphStyle\Headings%3aHeading1" Name="Headings:Heading1">
下記は、段落スタイルが「Headings」というグループのさらに中にある「TableHeadings」というグループ内にあるときです。
<ParagraphStyle Self="ParagraphStyle\Headings%3aTableHeadings%3aTableHeading1" Name="Headings:TableHeadings:TableHeading1">
10.8.2 段落スタイル
段落スタイルには、文字と段落のフォーマット属性が含まれており、段落単位または複数の段落の範囲に適用することができます。段落スタイルは、適用された段落範囲全体に渡る、文字スタイルを含むすべてのフォーマット属性を定義できます。InDesignドキュメントでの段落スタイルは、その目的に応じた段落スタイルグループにまとめることができます。IDMLでは、段落スタイルのすべてのフォーマット属性を定義する必要はありませんが、定義されない値は、アプリケーションのデフォルト値が適用されることに気をつけてください。
それぞれのIDMLパッケージドキュメントには、<RootParagraphStyleGroup>エレメントが含まれ、さらにその中には<ParagraphStyle>エレメントと<ParagraphStyleGroup>エレメントが含まれます。ひとつの<ParagraphStyleGroup>エレメント中に、他の<ParagraphStyleGroup>エレメントを複数含めることもできます。下記の図は、InDesignドキュメントでのエレメント間の関係の例です。
図54 <RootParagraphStyleGroup>、<ParagraphStyle>、<ParagraphStyleGroup>エレメントの例(Self属性値を表示)
<RootParagraphStyle>エレメントと<ParagraphStyleGroup>エレメントの構造は同じです。
スキーマの例111 ParagraphStyleGroup
ParagraphStyleGroup_Object = element ParagraphStyleGroup{
attribute Self { xsd:string },
attribute Name { xsd:string }?,
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(ParagraphStyle_Object*&ParagraphStyleGroup_Object*)}
InDesignドキュメントには、2つのデフォルト段落スタイルが常にあります。[基本段落]と[段落スタイルなし]です。[基本段落]は、ユーザーで編集可能です。(段落スタイルのUIで[基本段落]と表示されます)[段落スタイルなし]は、デフォルトのフォーマットで、編集不可です。
ほとんどのドキュメントのデザインは、ある種の属性を共有しているスタイルを階層化します。例えば、見出しと小見出しは大抵同じフォントを使います。ベースのスタイルか、または親となるスタイルを作成して、同じスタイルをリンクさせることができます。親スタイルを編集すると、子スタイルも更新されます。子スタイルを、親スタイルとは別に編集することもできます。段落スタイルのBasedOn属性は、親スタイルの<ParagraphStyle>エレメントへの参照です。
NextStyle属性は、UIだけに影響し、ユーザーが入力したテキストに対して自動的にスタイルを割り当てます。例えばドキュメントが、スタイル「body text」は見出しスタイル「heading 1」の次にくるというデザインだとしたら、「heading 1」の次のスタイルに「body text」を設定します。スタイル「heading 1」の段落を入力したあと、EnterかReturnを押すと、スタイル「body text」の新しい段落が作られます。
下記は、<RootParagraphStyleGroup>エレメント内の<ParagraphStyleGroup>エレメントの例です。個々の<ParagraphStyle>エレメントのフォーマットは省略しています。
IDMLの例77 ParagraphStyleGroup
<idPkg: Styles xmlns:idPkg=" http://ns.adobe.com/AdobeInDesign/ idml/1.0/packaging"><RootParagraphStyleGroup Self="u69"><ParagraphStyleGroup Self="ParagraphStyleGroup\ Headings" Name="Headings"><ParagraphStyle Self="ParagraphStyle\ Headings%3aHeading1" Name="Headings:Heading1"></ParagraphStyle><ParagraphStyle Self="ParagraphStyle\ Headings%3aHeading2" Name="Headings:Heading2"></ParagraphStyle><ParagraphStyle Self="ParagraphStyle\ Headings%3aHeading3" Name="Headings:Heading3"></ParagraphStyle></ParagraphStyleGroup></RootParagraphStyleGroup></idPkg: Styles>
スキーマの例112 ParagraphStyle
ParagraphStyle_Object = element ParagraphStyle{
attribute Self { xsd:string },
attribute Name { xsd:string },
attribute Imported { xsd:boolean }?,
attribute NextStyle{ xsd:string }?,
attribute FirstLineIndent{ xsd:double }?,
attribute LeftIndent{ xsd:double }?,
attribute RightIndent{ xsd:double }?,
attribute SpaceBefore{ xsd:double }?,
attribute SpaceAfter{ xsd:double }?,
attribute Justification { Justification_EnumValue }?,
attribute SingleWordJustification{ SingleWordJustification_EnumValue }?,
attribute AutoLeading{ xsd:double }?,
attribute DropCapLines{ xsd:short {minInclusive="0" maxInclusive="25"} }?,
attribute DropCapCharacters{ xsd:short {minInclusive="0"maxInclusive="150"} }?,
attribute KeepLinesTogether{ xsd:boolean }?,
attribute KeepAllLinesTogether{ xsd:boolean }?,
attribute KeepWithNext{ xsd:short {minInclusive="0" maxInclusive="5"} }?,
attribute KeepFirstLines{ xsd:short {minInclusive="1" maxInclusive="50"} }?,
attribute KeepLastLines{ xsd:short {minInclusive="1" maxInclusive="50"} }?,
attribute StartParagraph{ StartParagraph_EnumValue }?,
attribute Composer { xsd:string }?,
attribute MinimumWordSpacing{ xsd:double }?,
attribute MaximumWordSpacing{ xsd:double }?,
attribute DesiredWordSpacing{ xsd:double }?,
attribute MinimumLetterSpacing{ xsd:double }?,
attribute MaximumLetterSpacing{ xsd:double }?,
attribute DesiredLetterSpacing{ xsd:double }?,
attribute MinimumGlyphScaling{ xsd:double }?,
attribute MaximumGlyphScaling{ xsd:double }?,
attribute DesiredGlyphScaling{ xsd:double }?,
attribute RuleAbove{ xsd:boolean }?,
attribute RuleAboveOverprint{ xsd:boolean }?,
attribute RuleAboveLineWeight{ xsd:double }?,
attribute RuleAboveTint{ xsd:double }?,
attribute RuleAboveOffset{ xsd:double }?,
attribute RuleAboveLeftIndent{ xsd:double }?,
attribute RuleAboveRightIndent{ xsd:double }?,
attribute RuleAboveWidth{ RuleWidth_EnumValue }?,
attribute RuleAboveGapTint{ xsd:double }?,
attribute RuleAboveGapOverprint{ xsd:boolean }?,
attribute RuleBelow{ xsd:boolean }?,
attribute RuleBelowLineWeight{ xsd:double }?,
attribute RuleBelowTint{ xsd:double }?,
attribute RuleBelowOffset{ xsd:double }?,
attribute RuleBelowLeftIndent{ xsd:double }?,
attribute RuleBelowRightIndent{ xsd:double }?,
attribute RuleBelowWidth{ RuleWidth_EnumValue }?,
attribute RuleBelowGapTint{ xsd:double }?,
attribute HyphenateCapitalizedWords{ xsd:boolean }?,
attribute Hyphenation { xsd:boolean }?,
attribute HyphenateBeforeLast{ xsd:short {minInclusive="1"maxInclusive="15"} }?,
attribute HyphenateAfterFirst{ xsd:short {minInclusive="1"maxInclusive="15"} }?,
attribute HyphenateWordsLongerThan{ xsd:short {minInclusive="3"maxInclusive="25"} }?,
attribute HyphenateLadderLimit{ xsd:short {minInclusive="0"maxInclusive="25"} }?,
attribute HyphenationZone{ xsd:double }?,
attribute HyphenWeight{ xsd:short {minInclusive="0" maxInclusive="10"} }?,
attribute FontStyle{ xsd:string }?,
attribute PointSize{ xsd:double }?,
attribute KerningMethod{ xsd:string }?,
attribute Tracking { xsd:double }?,
attribute Capitalization { Capitalization_EnumValue }?,
attribute Position { Position_EnumValue }?,
attribute Underline { xsd:boolean }?,
attribute StrikeThru{ xsd:boolean }?,
attribute Ligatures { xsd:boolean }?,
attribute NoBreak{ xsd:boolean }?,
attribute HorizontalScale{ xsd:double }?,
attribute VerticalScale{ xsd:double }?,
attribute BaselineShift{ xsd:double }?,
attribute Skew { xsd:double }?,
attribute FillTint{ xsd:double }?,
attribute StrokeTint{ xsd:double }?,
attribute StrokeWeight{ xsd:double }?,
attribute OverprintStroke{ xsd:boolean }?,
attribute OverprintFill{ xsd:boolean }?,
attribute OTFFigureStyle{ OTFFigureStyle_EnumValue }?,
attribute OTFOrdinal { xsd:boolean }?,
attribute OTFFraction { xsd:boolean }?,
attribute OTFDiscretionaryLigature{ xsd:boolean }?,
attribute OTFTitling { xsd:boolean }?,
attribute OTFContextualAlternate{ xsd:boolean }?,
attribute OTFSwash { xsd:boolean }?,
attribute UnderlineTint{ xsd:double }?,
attribute UnderlineGapTint{ xsd:double }?,
attribute UnderlineOverprint{ xsd:boolean }?,
attribute UnderlineGapOverprint{ xsd:boolean }?,
attribute UnderlineOffset{ xsd:double }?,
attribute UnderlineWeight{ xsd:double }?,
attribute StrikeThroughTint{ xsd:double }?,
attribute StrikeThroughGapTint{ xsd:double }?,
attribute StrikeThroughOverprint{ xsd:boolean }?,
attribute StrikeThroughGapOverprint{ xsd:boolean }?,
attribute StrikeThroughOffset{ xsd:double }?,
attribute StrikeThroughWeight{ xsd:double }?,
attribute FillColor{ xsd:string }?,
attribute StrokeColor{ xsd:string }?,
attribute AppliedLanguage{ xsd:string }?,
attribute KeyboardShortcut{ list { xsd:short ,xsd:short } }?,
attribute LastLineIndent{ xsd:double }?,
attribute HyphenateLastWord{ xsd:boolean }?,
attribute OTFSlashedZero{ xsd:boolean }?,
attribute OTFHistorical { xsd:boolean }?,
attribute OTFStylisticSets{ xsd:int }?,
attribute GradientFillLength{ xsd:double }?,
attribute GradientFillAngle{ xsd:double }?,
attribute GradientStrokeLength{ xsd:double }?,
attribute GradientStrokeAngle{ xsd:double }?,
attribute GradientFillStart{ UnitPointType_TypeDef }?,
attribute GradientStrokeStart{ UnitPointType_TypeDef }?,
attribute RuleBelowOverprint{ xsd:boolean }?,
attribute RuleBelowGapOverprint{ xsd:boolean }?,
attribute DropcapDetail{ xsd:int }?,
attribute HyphenateAcrossColumns{ xsd:boolean }?,
attribute KeepRuleAboveInFrame{ xsd:boolean }?,
attribute IgnoreEdgeAlignment{ xsd:boolean }?,
attribute OTFMark { xsd:boolean }?,
attribute OTFLocale { xsd:boolean }?,
attribute PositionalForm{ PositionalForms_EnumValue }?,
attribute ParagraphDirection{ ParagraphDirection_EnumValue }?,
attribute ParagraphJustification{ ParagraphJustification_EnumValue }?,
attribute MiterLimit{ xsd:double {minInclusive="1" maxInclusive="500"} }?,
attribute StrokeAlignment{ TextStrokeAlign_EnumValue }?,
attribute EndJoin{ OutlineJoin_EnumValue }?,
attribute OTFOverlapSwash{ xsd:boolean }?,
attribute OTFStylisticAlternate{ xsd:boolean }?,
attribute OTFJustificationAlternate{ xsd:boolean }?,
attribute OTFStretchedAlternate{ xsd:boolean }?,
attribute CharacterDirection{ CharacterDirection_EnumValue }?,
attribute KeyboardDirection{ CharacterDirection_EnumValue }?,
attribute DigitsType{ DigitsType_EnumValue }?,
attribute Kashidas { Kashidas_EnumValue }?,
attribute DiacriticPosition{ DiacriticPosition_EnumValue }?,
attribute XOffsetDiacritic{ xsd:double }?,
attribute YOffsetDiacritic{ xsd:double }?,
attribute GotoNextX{ GotoNextX_EnumValue }?,
attribute PageNumberType{ PageNumberType_EnumValue }?,
attribute CharacterAlignment{ CharacterAlignment_EnumValue }?,
attribute Tsume { xsd:double }?,
attribute LeadingAki{ xsd:double }?,
attribute TrailingAki{ xsd:double }?,
attribute CharacterRotation{ xsd:double }?,
attribute Jidori { xsd:short }?,
attribute ShataiMagnification{ xsd:double }?,
attribute ShataiDegreeAngle{ xsd:double }?,
attribute ShataiAdjustRotation{ xsd:boolean }?,
attribute ShataiAdjustTsume{ xsd:boolean }?,
attribute Tatechuyoko { xsd:boolean }?,
attribute TatechuyokoXOffset{ xsd:double }?,
attribute TatechuyokoYOffset{ xsd:double }?,
attribute KentenTint{ xsd:double }?,
attribute KentenStrokeTint{ xsd:double }?,
attribute KentenWeight{ xsd:double }?,
attribute KentenOverprintFill{ AdornmentOverprint_EnumValue }?,
attribute KentenOverprintStroke{ AdornmentOverprint_EnumValue }?,
attribute KentenKind{ KentenCharacter_EnumValue }?,
attribute KentenPlacement{ xsd:double }?,
attribute KentenAlignment{ KentenAlignment_EnumValue }?,
attribute KentenPosition{ RubyKentenPosition_EnumValue }?,
attribute KentenFontSize{ xsd:double }?,
attribute KentenXScale{ xsd:double }?,
attribute KentenYScale{ xsd:double }?,
attribute KentenCustomCharacter{ xsd:string }?,
attribute KentenCharacterSet{ KentenCharacterSet_EnumValue }?,
attribute RubyTint{ xsd:double }?,
attribute RubyWeight{ xsd:double }?,
attribute RubyOverprintFill{ AdornmentOverprint_EnumValue }?,
attribute RubyOverprintStroke{ AdornmentOverprint_EnumValue }?,
attribute RubyStrokeTint{ xsd:double }?,
attribute RubyFontSize{ xsd:double }?,
attribute RubyOpenTypePro{ xsd:boolean }?,
attribute RubyXScale{ xsd:double }?,
attribute RubyYScale{ xsd:double }?,
attribute RubyType{ RubyTypes_EnumValue }?,
attribute RubyAlignment{ RubyAlignments_EnumValue }?,
attribute RubyPosition{ RubyKentenPosition_EnumValue }?,
attribute RubyXOffset{ xsd:double }?,
attribute RubyYOffset{ xsd:double }?,
attribute RubyParentSpacing{ RubyParentSpacing_EnumValue }?,
attribute RubyAutoAlign{ xsd:boolean }?,
attribute RubyOverhang{ xsd:boolean }?,
attribute RubyAutoScaling{ xsd:boolean }?,
attribute RubyParentScalingPercent{ xsd:double }?,
attribute RubyParentOverhangAmount{ RubyOverhang_EnumValue }?,
attribute Warichu { xsd:boolean }?,
attribute WarichuSize{ xsd:double }?,
attribute WarichuLines{ xsd:short }?,
attribute WarichuLineSpacing{ xsd:double }?,
attribute WarichuAlignment{ WarichuAlignment_EnumValue }?,
attribute WarichuCharsAfterBreak{ xsd:short }?,
attribute WarichuCharsBeforeBreak{ xsd:short }?,
attribute OTFProportionalMetrics{ xsd:boolean }?,
attribute OTFHVKana { xsd:boolean }?,
attribute OTFRomanItalics{ xsd:boolean }?,
attribute ScaleAffectsLineHeight{ xsd:boolean }?,
attribute CjkGridTracking{ xsd:boolean }?,
attribute GlyphForm{ AlternateGlyphForms_EnumValue }?,
attribute GridAlignFirstLineOnly{ xsd:boolean }?,
attribute GridAlignment{ GridAlignment_EnumValue }?,
attribute GridGyoudori{ xsd:short }?,
attribute AutoTcy{ xsd:short }?,
attribute AutoTcyIncludeRoman{ xsd:boolean }?,
attribute KinsokuType{ KinsokuType_EnumValue }?,
attribute KinsokuHangType{ KinsokuHangTypes_EnumValue }?,
attribute BunriKinshi{ xsd:boolean }?,
attribute Rensuuji { xsd:boolean }?,
attribute RotateSingleByteCharacters{ xsd:boolean }?,
attribute LeadingModel{ LeadingModel_EnumValue }?,
attribute RubyAutoTcyDigits{ xsd:short }?,
attribute RubyAutoTcyIncludeRoman{ xsd:boolean }?,
attribute RubyAutoTcyAutoScale{ xsd:boolean }?,
attribute TreatIdeographicSpaceAsSpace{ xsd:boolean }?,
attribute AllowArbitraryHyphenation{ xsd:boolean }?,
attribute ParagraphGyoudori{ xsd:boolean }?,
attribute NumberingExpression{ xsd:string }?,
attribute BulletsTextAfter{ xsd:string }?,
attribute NumberingLevel{ xsd:int }?,
attribute NumberingContinue{ xsd:boolean }?,
attribute NumberingStartAt{ xsd:int }?,
attribute NumberingApplyRestartPolicy{ xsd:boolean }?,
attribute BulletsAlignment{ ListAlignment_EnumValue }?,
attribute NumberingAlignment{ ListAlignment_EnumValue }?,
attribute BulletsAndNumberingListType{ ListType_EnumValue }?,
element Properties {element BasedOn{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element BalanceRaggedLines{(bool_type, xsd:boolean ) |
(enum_type, BalanceLinesStyle_EnumValue )
}?&
element RuleAboveColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RuleAboveGapColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RuleAboveType{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RuleBelowColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RuleBelowGapColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RuleBelowType{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element AllNestedStyles{ list_type, element ListItem{
record_type,(element AppliedCharacterStyle{ object_type, xsd:string }&
element Delimiter {(string_type, xsd:string ) |
(enum_type, NestedStyleDelimiters_EnumValue )
}&
element Repetition { long_type, xsd:int }&
element Inclusive { bool_type, xsd:boolean })
}*
}?&
element TabList{ list_type, element ListItem{
record_type,(element Alignment { enum_type, TabStopAlignment_EnumValue }&
element AlignmentCharacter{ string_type, xsd:string }&
element Leader { string_type, xsd:string }&
element Position { unit_type, xsd:double })
}*
}?&
element AppliedFont{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element Leading {(unit_type, xsd:double ) |
(enum_type, Leading_EnumValue )
}?&
element UnderlineColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element UnderlineGapColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element UnderlineType{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element StrikeThroughColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element StrikeThroughGapColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element StrikeThroughType{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element PreviewColor{(InDesignUIColorType_TypeDef ) |
(enum_type, NothingEnum_EnumValue )
}?&
element KentenFillColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element KentenStrokeColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element KentenFont{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element KentenFontStyle{(string_type, xsd:string ) |
(enum_type, NothingEnum_EnumValue )
}?&
element RubyFill{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RubyStroke{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RubyFont{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RubyFontStyle{(string_type, xsd:string ) |
(enum_type, NothingEnum_EnumValue )
}?&
element KinsokuSet{(object_type, xsd:string ) |
(enum_type, KinsokuSet_EnumValue ) |
(string_type, xsd:string )
}?&
element Mojikumi {(object_type, xsd:string ) |
(string_type, xsd:string ) |
(enum_type, MojikumiTableDefaults_EnumValue )
}?&
element BulletsFont{(object_type, xsd:string ) |
(string_type, xsd:string ) |
(enum_type, AutoEnum_EnumValue )
}?&
element BulletsFontStyle{(string_type, xsd:string ) |
(enum_type, NothingEnum_EnumValue ) |
(enum_type, AutoEnum_EnumValue )
}?&
element BulletsCharacterStyle{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element NumberingCharacterStyle{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element AppliedNumberingList{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element NumberingFormat{(enum_type, NumberingStyle_EnumValue ) |
(string_type, xsd:string )
}?&
element NumberingRestartPolicies{attribute RestartPolicy{ RestartPolicy_EnumValue },
attribute LowerLevel{ xsd:int },
attribute UpperLevel{ xsd:int }
}?&
element BulletChar{attribute BulletCharacterType{ BulletCharacterType_EnumValue },
attribute BulletCharacterValue{ xsd:int }
}?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(NestedLineStyle_Object*&NestedGrepStyle_Object*)}
<ParagraphStyle>エレメントのほとんどの属性とエレメントは、他のテキスト関連エレメントと共有されています。「10.4.6 共通のTextプロパティ」を参照してください。下の表は、<ParagraphStyle>エレメントだけが持つ属性とエレメントです。
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Imported | boolean | trueのとき、段落スタイルは他のファイルから読み込まれた | |
| KeyboardShortcut | string | キーボードショートカット | |
| NextStyle | string | 次の段落に割り当てるスタイル。ユニークなID。(<ParagraphStyle>エレメントのSelf属性の値)段落の最後でEnterかReturnを押してできた次の段落に対して割り当てるスタイル |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| BasedOn | string | 基準となる段落スタイル。ユニークなID(<ParagraphStyle>エレメントのSelf属性値)か、デフォルトの[段落スタイルなし]への参照($ID/[No paragraph style]) |
IDMLの例78 BasedOnを[段落スタイルなし]にするとき
<ParagraphStyle Self="ParagraphStyle\ Code" Name="Code" Imported="false" NextStyle=" ParagraphStyle\ Code"><Properties><BasedOn type="string">$ID/[No paragraph style]</BasedOn>
</Properties></ParagraphStyle>
IDMLの例79 BasedOnを他のスタイルにするとき
<ParagraphStyle Self="ParagraphStyle\ ListStyles% 3aListFirst" Name="ListFirst" Imported="false" NextStyle=" ParagraphStyle\ ListStyles% 3aList"><Properties><BasedOn type="object">ParagraphStyle\ ListStyles% 3aList</ BasedOn>
</Properties></ParagraphStyle>
10.8.3 先頭文字スタイル
先頭文字スタイルは、InDesignの段落フォーマットの機能です。ローカルのフォーマットまたは段落スタイルの一部として適用することができます。先頭文字スタイルを使うと、段落内の1文字以上のテキスト単位で、文字レベルのフォーマットをすることができます。先頭文字スタイルは2つの要素から成り立っています。スタイルを適用するテキストの範囲を区切る区切り文字と、適用する文字スタイルです。
先頭文字スタイルは、特に突き出し見出し(先頭の数文字が見出し文字となるような見出しスタイル)の作成に便利です。例えば、段落の最初の文字に文字スタイルを適用し、違う文字スタイルを最初のコロン(:)の範囲まで適用するように設定することができます。また、それぞれの先頭文字スタイルに、タブ文字や単語の末尾の文字などを、区切り文字として定義することもできます。
先頭文字スタイルのスキーマは、いくつかのテキストオブジェクト(特に<ParagraphStyle>エレメントと<ParagraphStyleRange>エレメント)に含まれています。
スキーマの例113 NestedStyle
element AllNestedStyles { list_type, element ListItem {
record_type,(element AppliedCharacterStyle { object_type, xsd:string }&
element Delimiter {(string_type, xsd:string ) |
(enum_type, NestedStyleDelimiters_EnumValue )
}&
element Repetition { long_type, xsd:int }&
element Inclusive { bool_type, xsd:boolean })
}*
}?&
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| AppliedCharacterStyle | string | ○ | 適用する文字スタイル。文字スタイルのSelf属性の参照 |
| Delimiter | stringまたはNestedStyleDelimiters_EnumValue | ○ | 区切り文字 |
| Repetition | int | ○ | 繰り返し回数 |
| Inclusive | boolean | ○ | trueのとき、区切り文字が先頭文字スタイルに含まれる |
下記は、先頭文字スタイルでの文字スタイルと段落スタイルの使用例です。
IDMLの例80 NestedStyle
<CharacterStyle Self="CharacterStyle/Note" Name="Note" FillColor="Color/C=15 M=100 Y=100 K=0" FontStyle="Bold"><Properties><BasedOn type="string">$ID/[No character style]</BasedOn>
<PreviewColor type="enumeration">Nothing</PreviewColor>
<AppliedFont type="string">Myriad Pro</AppliedFont>
</Properties></CharacterStyle><ParagraphStyle Self="ParagraphStyle/note" Name="note" NextStyle="ParagraphStyle/paragraph"><Properties><BasedOn type="object">ParagraphStyle/paragraph</BasedOn>
<PreviewColor type="enumeration">Nothing</PreviewColor>
<AllNestedStyles type="list"><ListItem type="record"><AppliedCharacterStyle type="object">CharacterStyle/Note </AppliedCharacterStyle>
<Delimiter type="string">:</Delimiter>
<Repetition type="long">1</Repetition>
<Inclusive type="boolean">true</Inclusive>
</ListItem></AllNestedStyles></Properties></ParagraphStyle>
図55 先頭文字スタイル
10.8.4 文字スタイル
文字スタイルは、1回の操作でテキストに適用できる、文字書式の属性の集まりです。段落スタイルとは異なり、文字スタイルには選択したテキストのすべての書式設定属性が含まれるわけではなく、通常、適用するテキストで周囲のテキストと異なる書式だけを設定します。
IDMLでの文字スタイルは、段落スタイルと同じ方法で記述されます。各ドキュメントには<RootCharacterStyleGroup>エレメントがあり、その中にドキュメントで使用されるすべての<CharacterStyle>エレメントと<CharacterStyleGroup>エレメントが含まれます。<RootCharacterStyleGroup>エレメントと<CharacterStyleGroup>エレメントは同じ構造です。
スキーマの例114 CharacterStyleGroup
CharacterStyleGroup_Object = element CharacterStyleGroup{
attribute Self { xsd:string },
attribute Name { xsd:string }?,
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(CharacterStyle_Object*&CharacterStyleGroup_Object*)}
IDMLの例81 CharacterStyleGroup
<RootCharacterStyleGroup Self="u6a"><CharacterStyle Self="CharacterStyle\[ No character style]" Imported="false" Name="$ID/[No character style]"/><CharacterStyle Self="CharacterStyle\ Emphasis" Imported="false" Name="Emphasis" FontStyle=" Italic"><Properties><BasedOn type="string">$ID/[No character style]</BasedOn>
</Properties></CharacterStyle><CharacterStyle Self="CharacterStyle\ cInlineCode" Imported="false" Name="InlineCode" FontStyle=" Regular"><Properties><BasedOn type="string">$ID/[No character style]</BasedOn>
<AppliedFont type="string">Droid Sans Mono</AppliedFont>
</Properties></CharacterStyle><CharacterStyleGroup Self="CharacterStyleGroup\ HyperlinkStyles" Name="$ID/HyperlinkStyles"><CharacterStyle Self="CharacterStyle\ HyperlinkStyles% 3aEmail" Imported="false" Name="HyperlinkStyles: Email"><Properties><BasedOn type="object">CharacterStyle\ HyperlinkStyles\ Hyperlink</BasedOn>
</Properties></CharacterStyle><CharacterStyle Self="CharacterStyle\ HyperlinkStyles\ URL" Imported="false" Name="HyperlinkStyles: URL"><Properties><BasedOn type="object">CharacterStyle\ HyperlinkStyles\ Hyperlink</BasedOn>
</Properties></CharacterStyle><CharacterStyle Self="CharacterStyle\ HyperlinkStyles\ Hyperlink" Imported="false" Name="HyperlinkStyles: Hyperlink"><Properties><BasedOn type="string">$ID/[No character style]</BasedOn>
</Properties></CharacterStyle></CharacterStyleGroup></RootCharacterStyleGroup>
図56 文字スタイル
スキーマの例115 CharacterStyle
CharacterStyle_Object = element CharacterStyle{
attribute Self { xsd:string },
attribute Imported { xsd:boolean }?,
attribute FontStyle{ xsd:string }?,
attribute PointSize{ xsd:double }?,
attribute KerningMethod{ xsd:string }?,
attribute Tracking { xsd:double }?,
attribute Capitalization { Capitalization_EnumValue }?,
attribute Position { Position_EnumValue }?,
attribute Underline { xsd:boolean }?,
attribute StrikeThru{ xsd:boolean }?,
attribute Ligatures { xsd:boolean }?,
attribute NoBreak{ xsd:boolean }?,
attribute HorizontalScale{ xsd:double }?,
attribute VerticalScale{ xsd:double }?,
attribute BaselineShift{ xsd:double }?,
attribute Skew { xsd:double }?,
attribute FillTint{ xsd:double }?,
attribute StrokeTint{ xsd:double }?,
attribute StrokeWeight{ xsd:double }?,
attribute OverprintStroke{ xsd:boolean }?,
attribute OverprintFill{ xsd:boolean }?,
attribute OTFFigureStyle{ OTFFigureStyle_EnumValue }?,
attribute OTFOrdinal { xsd:boolean }?,
attribute OTFFraction { xsd:boolean }?,
attribute OTFDiscretionaryLigature{ xsd:boolean }?,
attribute OTFTitling { xsd:boolean }?,
attribute OTFContextualAlternate{ xsd:boolean }?,
attribute OTFSwash { xsd:boolean }?,
attribute UnderlineTint{ xsd:double }?,
attribute UnderlineGapTint{ xsd:double }?,
attribute UnderlineOverprint{ xsd:boolean }?,
attribute UnderlineGapOverprint{ xsd:boolean }?,
attribute UnderlineOffset{ xsd:double }?,
attribute UnderlineWeight{ xsd:double }?,
attribute StrikeThroughTint{ xsd:double }?,
attribute StrikeThroughGapTint{ xsd:double }?,
attribute StrikeThroughOverprint{ xsd:boolean }?,
attribute StrikeThroughGapOverprint{ xsd:boolean }?,
attribute StrikeThroughOffset{ xsd:double }?,
attribute StrikeThroughWeight{ xsd:double }?,
attribute FillColor{ xsd:string }?,
attribute StrokeColor{ xsd:string }?,
attribute AppliedLanguage{ xsd:string }?,
attribute KeyboardShortcut{ list { xsd:short ,xsd:short } }?,
attribute OTFSlashedZero{ xsd:boolean }?,
attribute OTFHistorical { xsd:boolean }?,
attribute OTFStylisticSets{ xsd:int }?,
attribute GradientFillLength{ xsd:double }?,
attribute GradientFillAngle{ xsd:double }?,
attribute GradientStrokeLength{ xsd:double }?,
attribute GradientStrokeAngle{ xsd:double }?,
attribute GradientFillStart{ UnitPointType_TypeDef }?,
attribute GradientStrokeStart{ UnitPointType_TypeDef }?,
attribute OTFMark { xsd:boolean }?,
attribute OTFLocale { xsd:boolean }?,
attribute PositionalForm{ PositionalForms_EnumValue }?,
attribute Name { xsd:string },
attribute MiterLimit{ xsd:double {minInclusive="1" maxInclusive="500"} }?,
attribute StrokeAlignment{ TextStrokeAlign_EnumValue }?,
attribute EndJoin{ OutlineJoin_EnumValue }?,
attribute OTFOverlapSwash{ xsd:boolean }?,
attribute OTFStylisticAlternate{ xsd:boolean }?,
attribute OTFJustificationAlternate{ xsd:boolean }?,
attribute OTFStretchedAlternate{ xsd:boolean }?,
attribute CharacterDirection{ CharacterDirection_EnumValue }?,
attribute KeyboardDirection{ CharacterDirection_EnumValue }?,
attribute DigitsType{ DigitsType_EnumValue }?,
attribute Kashidas { Kashidas_EnumValue }?,
attribute DiacriticPosition{ DiacriticPosition_EnumValue }?,
attribute XOffsetDiacritic{ xsd:double }?,
attribute YOffsetDiacritic{ xsd:double }?,
attribute GotoNextX{ GotoNextX_EnumValue }?,
attribute PageNumberType{ PageNumberType_EnumValue }?,
attribute CharacterAlignment{ CharacterAlignment_EnumValue }?,
attribute Tsume { xsd:double }?,
attribute LeadingAki{ xsd:double }?,
attribute TrailingAki{ xsd:double }?,
attribute CharacterRotation{ xsd:double }?,
attribute Jidori { xsd:short }?,
attribute ShataiMagnification{ xsd:double }?,
attribute ShataiDegreeAngle{ xsd:double }?,
attribute ShataiAdjustRotation{ xsd:boolean }?,
attribute ShataiAdjustTsume{ xsd:boolean }?,
attribute Tatechuyoko { xsd:boolean }?,
attribute TatechuyokoXOffset{ xsd:double }?,
attribute TatechuyokoYOffset{ xsd:double }?,
attribute KentenTint{ xsd:double }?,
attribute KentenStrokeTint{ xsd:double }?,
attribute KentenWeight{ xsd:double }?,
attribute KentenOverprintFill{ AdornmentOverprint_EnumValue }?,
attribute KentenOverprintStroke{ AdornmentOverprint_EnumValue }?,
attribute KentenKind{ KentenCharacter_EnumValue }?,
attribute KentenPlacement{ xsd:double }?,
attribute KentenAlignment{ KentenAlignment_EnumValue }?,
attribute KentenPosition{ RubyKentenPosition_EnumValue }?,
attribute KentenFontSize{ xsd:double }?,
attribute KentenXScale{ xsd:double }?,
attribute KentenYScale{ xsd:double }?,
attribute KentenCustomCharacter{ xsd:string }?,
attribute KentenCharacterSet{ KentenCharacterSet_EnumValue }?,
attribute RubyTint{ xsd:double }?,
attribute RubyWeight{ xsd:double }?,
attribute RubyOverprintFill{ AdornmentOverprint_EnumValue }?,
attribute RubyOverprintStroke{ AdornmentOverprint_EnumValue }?,
attribute RubyStrokeTint{ xsd:double }?,
attribute RubyFontSize{ xsd:double }?,
attribute RubyOpenTypePro{ xsd:boolean }?,
attribute RubyXScale{ xsd:double }?,
attribute RubyYScale{ xsd:double }?,
attribute RubyType{ RubyTypes_EnumValue }?,
attribute RubyAlignment{ RubyAlignments_EnumValue }?,
attribute RubyPosition{ RubyKentenPosition_EnumValue }?,
attribute RubyXOffset{ xsd:double }?,
attribute RubyYOffset{ xsd:double }?,
attribute RubyParentSpacing{ RubyParentSpacing_EnumValue }?,
attribute RubyAutoAlign{ xsd:boolean }?,
attribute RubyOverhang{ xsd:boolean }?,
attribute RubyAutoScaling{ xsd:boolean }?,
attribute RubyParentScalingPercent{ xsd:double }?,
attribute RubyParentOverhangAmount{ RubyOverhang_EnumValue }?,
attribute Warichu { xsd:boolean }?,
attribute WarichuSize{ xsd:double }?,
attribute WarichuLines{ xsd:short }?,
attribute WarichuLineSpacing{ xsd:double }?,
attribute WarichuAlignment{ WarichuAlignment_EnumValue }?,
attribute WarichuCharsAfterBreak{ xsd:short }?,
attribute WarichuCharsBeforeBreak{ xsd:short }?,
attribute OTFProportionalMetrics{ xsd:boolean }?,
attribute OTFHVKana { xsd:boolean }?,
attribute OTFRomanItalics{ xsd:boolean }?,
attribute ScaleAffectsLineHeight{ xsd:boolean }?,
attribute CjkGridTracking{ xsd:boolean }?,
attribute GlyphForm{ AlternateGlyphForms_EnumValue }?,
attribute RubyAutoTcyDigits{ xsd:short }?,
attribute RubyAutoTcyIncludeRoman{ xsd:boolean }?,
attribute RubyAutoTcyAutoScale{ xsd:boolean }?,
element Properties {element BasedOn{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element AppliedFont{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element Leading {(unit_type, xsd:double ) |
(enum_type, Leading_EnumValue )
}?&
element UnderlineColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element UnderlineGapColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element UnderlineType{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element StrikeThroughColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element StrikeThroughGapColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element StrikeThroughType{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element PreviewColor{(InDesignUIColorType_TypeDef ) |
(enum_type, NothingEnum_EnumValue )
}?&
element KentenFillColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element KentenStrokeColor{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element KentenFont{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element KentenFontStyle{(string_type, xsd:string ) |
(enum_type, NothingEnum_EnumValue )
}?&
element RubyFill{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RubyStroke{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RubyFont{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element RubyFontStyle{(string_type, xsd:string ) |
(enum_type, NothingEnum_EnumValue )
}?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?}
<CharacterStyle>エレメントのほとんどの属性とエレメントは、他のテキスト関連エレメントと共有されています。「10.4.6 共通のテキストプロパティ」を参照してください。下の表は、<CharacterStyle>エレメントだけが持つ属性とエレメントです。
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Imported | boolean | trueのとき、文字スタイルは他のファイルから読み込まれた | |
| KeyboardShortcut | string | キーボードショートカット | |
| Name | string | ○ | 文字スタイル名 |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| BasedOn | string | 基準となる文字スタイル。ユニークなID(<CharacterStyle>エレメントのSelf属性値)か、デフォルトの[なし]への参照($ID/[No character style]) |
10.8.5 表スタイル
表スタイルは、1回の操作で適用できる、表の境界線や行と列の罫線などの表の書式設定属性の集まりです。表スタイルグループでまとめることもできます。IDMLパッケージでは、<TableStyle>エレメントは<TableStyleGroup>エレメント内に保存されます。すべての<TableStyle>エレメントと<TableStyleGroup>エレメントは<RootTableStyleGroup>エレメント内に存在します。<TableStyleGroup>エレメントには、<TableStyle>エレメントと<TableStyleGroup>エレメントを含むことができます。
スキーマの例116 TableStyleGroup
TableStyleGroup_Object = element TableStyleGroup{
attribute Self { xsd:string },
attribute Name { xsd:string },
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(TableStyle_Object*&TableStyleGroup_Object*)}
スキーマの例117 TableStyle
TableStyle_Object = element TableStyle{
attribute Self { xsd:string },
attribute Name { xsd:string },
attribute StrokeOrder{ StrokeOrderTypes_EnumValue }?,
attribute TopBorderStrokeWeight{ xsd:double }?,
attribute TopBorderStrokeType{ xsd:string }?,
attribute TopBorderStrokeColor{ xsd:string }?,
attribute TopBorderStrokeTint{ xsd:double }?,
attribute TopBorderStrokeOverprint{ xsd:boolean }?,
attribute TopBorderStrokeGapColor{ xsd:string }?,
attribute TopBorderStrokeGapTint{ xsd:double }?,
attribute TopBorderStrokeGapOverprint{ xsd:boolean }?,
attribute LeftBorderStrokeWeight{ xsd:double }?,
attribute LeftBorderStrokeType{ xsd:string }?,
attribute LeftBorderStrokeColor{ xsd:string }?,
attribute LeftBorderStrokeTint{ xsd:double }?,
attribute LeftBorderStrokeOverprint{ xsd:boolean }?,
attribute LeftBorderStrokeGapColor{ xsd:string }?,
attribute LeftBorderStrokeGapTint{ xsd:double }?,
attribute LeftBorderStrokeGapOverprint{ xsd:boolean }?,
attribute BottomBorderStrokeWeight{ xsd:double }?,
attribute BottomBorderStrokeType{ xsd:string }?,
attribute BottomBorderStrokeColor{ xsd:string }?,
attribute BottomBorderStrokeTint{ xsd:double }?,
attribute BottomBorderStrokeOverprint{ xsd:boolean }?,
attribute BottomBorderStrokeGapColor{ xsd:string }?,
attribute BottomBorderStrokeGapTint{ xsd:double }?,
attribute BottomBorderStrokeGapOverprint{ xsd:boolean }?,
attribute RightBorderStrokeWeight{ xsd:double }?,
attribute RightBorderStrokeType{ xsd:string }?,
attribute RightBorderStrokeColor{ xsd:string }?,
attribute RightBorderStrokeTint{ xsd:double }?,
attribute RightBorderStrokeOverprint{ xsd:boolean }?,
attribute RightBorderStrokeGapColor{ xsd:string }?,
attribute RightBorderStrokeGapTint{ xsd:double }?,
attribute RightBorderStrokeGapOverprint{ xsd:boolean }?,
attribute SpaceBefore{ xsd:double }?,
attribute SpaceAfter{ xsd:double }?,
attribute SkipFirstAlternatingStrokeRows{ xsd:int }?,
attribute SkipLastAlternatingStrokeRows{ xsd:int }?,
attribute StartRowStrokeCount{ xsd:int }?,
attribute StartRowStrokeColor{ xsd:string }?,
attribute StartRowStrokeWeight{ xsd:double }?,
attribute StartRowStrokeType{ xsd:string }?,
attribute StartRowStrokeTint{ xsd:double }?,
attribute StartRowStrokeGapOverprint{ xsd:boolean }?,
attribute StartRowStrokeGapColor{ xsd:string }?,
attribute StartRowStrokeGapTint{ xsd:double }?,
attribute StartRowStrokeOverprint{ xsd:boolean }?,
attribute EndRowStrokeCount{ xsd:int }?,
attribute EndRowStrokeColor{ xsd:string }?,
attribute EndRowStrokeWeight{ xsd:double }?,
attribute EndRowStrokeType{ xsd:string }?,
attribute EndRowStrokeTint{ xsd:double }?,
attribute EndRowStrokeOverprint{ xsd:boolean }?,
attribute EndRowStrokeGapColor{ xsd:string }?,
attribute EndRowStrokeGapTint{ xsd:double }?,
attribute EndRowStrokeGapOverprint{ xsd:boolean }?,
attribute SkipFirstAlternatingStrokeColumns{ xsd:int }?,
attribute SkipLastAlternatingStrokeColumns{ xsd:int }?,
attribute StartColumnStrokeCount{ xsd:int }?,
attribute StartColumnStrokeColor{ xsd:string }?,
attribute StartColumnStrokeWeight{ xsd:double }?,
attribute StartColumnStrokeType{ xsd:string }?,
attribute StartColumnStrokeTint{ xsd:double }?,
attribute StartColumnStrokeOverprint{ xsd:boolean }?,
attribute StartColumnStrokeGapColor{ xsd:string }?,
attribute StartColumnStrokeGapTint{ xsd:double }?,
attribute StartColumnStrokeGapOverprint{ xsd:boolean }?,
attribute EndColumnStrokeCount{ xsd:int }?,
attribute EndColumnStrokeColor{ xsd:string }?,
attribute EndColumnStrokeWeight{ xsd:double }?,
attribute EndColumnLineStyle{ xsd:string }?,
attribute EndColumnStrokeTint{ xsd:double }?,
attribute EndColumnStrokeOverprint{ xsd:boolean }?,
attribute EndColumnStrokeGapColor{ xsd:string }?,
attribute EndColumnStrokeGapTint{ xsd:double }?,
attribute EndColumnStrokeGapOverprint{ xsd:boolean }?,
attribute ColumnFillsPriority{ xsd:boolean }?,
attribute SkipFirstAlternatingFillRows{ xsd:int }?,
attribute SkipLastAlternatingFillRows{ xsd:int }?,
attribute StartRowFillColor{ xsd:string }?,
attribute StartRowFillCount{ xsd:int }?,
attribute StartRowFillTint{ xsd:double }?,
attribute StartRowFillOverprint{ xsd:boolean }?,
attribute EndRowFillCount{ xsd:int }?,
attribute EndRowFillColor{ xsd:string }?,
attribute EndRowFillTint{ xsd:double }?,
attribute EndRowFillOverprint{ xsd:boolean }?,
attribute SkipFirstAlternatingFillColumns{ xsd:int }?,
attribute SkipLastAlternatingFillColumns{ xsd:int }?,
attribute StartColumnFillCount{ xsd:int }?,
attribute StartColumnFillColor{ xsd:string }?,
attribute StartColumnFillTint{ xsd:double }?,
attribute StartColumnFillOverprint{ xsd:boolean }?,
attribute EndColumnFillCount{ xsd:int }?,
attribute EndColumnFillColor{ xsd:string }?,
attribute EndColumnFillTint{ xsd:double }?,
attribute EndColumnFillOverprint{ xsd:boolean }?,
attribute HeaderRegionSameAsBodyRegion{ xsd:boolean }?,
attribute FooterRegionSameAsBodyRegion{ xsd:boolean }?,
attribute LeftColumnRegionSameAsBodyRegion{ xsd:boolean }?,
attribute RightColumnRegionSameAsBodyRegion{ xsd:boolean }?,
attribute HeaderRegionCellStyle{ xsd:string }?,
attribute FooterRegionCellStyle{ xsd:string }?,
attribute LeftColumnRegionCellStyle{ xsd:string }?,
attribute RightColumnRegionCellStyle{ xsd:string }?,
attribute BodyRegionCellStyle{ xsd:string }?,
attribute KeyboardShortcut{ list { xsd:short ,xsd:short } }?,
element Properties {element BasedOn{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| BodyRegionCellStyle | string | セルスタイル/本文行(ヘッダやフッタでないセル) | |
| BottomBorderStrokeColor | string | 下境界線のカラー。スウォッチ(カラー、グラデーション、濃淡または混合インキ)で指定 | |
| BottomBorderStrokeGapColor | string | 下境界線の間隔のカラー。スウォッチ(カラー、グラデーション、濃淡または混合インキ)で指定。Note:BottomBorderStrokeTypeがSolidでないときのみ | |
| BottomBorderStrokeGapOverprint | boolean | trueのとき、下境界線の間隔はオーバープリント。Note:BottomBorderStrokeTypeがSolidでないときのみ | |
| BottomBorderStrokeGapTint | double | 下境界線の間隔の濃淡(0-100%)Note:BottomBorderStrokeTypeがSolidでないときのみ | |
| BottomBorderStrokeOverprint | boolean | trueのとき、下境界線はオーバープリント | |
| BottomBorderStrokeTint | double | 下境界線の濃淡(0-100%) | |
| BottomBorderStrokeType | string | 下境界線の種類 | |
| BottomBorderStrokeWeight | double | 下境界線の線幅 | |
| ColumnFillsPriority | boolean | trueのとき、塗りのパターンの繰り返しは列単位。falseのときは行単位 | |
| EndColumnFillColor | string | 塗りのスタイル/次の列のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:塗りのパターンの繰り返しが列単位に設定されているときのみ | |
| EndColumnFillCount | int | 塗りのスタイル/次の列数。Note:塗りのパターンの繰り返しが列単位に設定されているときのみ | |
| EndColumnFillOverprint | boolean | trueのとき、塗りのスタイル/次の列のカラーはオーバープリント。Note:塗りのパターンの繰り返しが列単位に設定されているときのみ | |
| EndColumnFillTint | double | 塗りのスタイル/次の列の濃淡(0-100%)Note:塗りのパターンの繰り返しが列単位に設定されているときのみ | |
| EndColumnLineStyle | string | 列の罫線/次の種類 | |
| EndColumnStrokeColor | string | 列の罫線/次の列のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:次の列数が1以上のときのみ | |
| EndColumnStrokeCount | int | 列の罫線/次の列数 | |
| EndColumnStrokeGapColor | string | 列の罫線/次の間隔のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:次の列数が1以上のときのみ | |
| EndColumnStrokeGapOverprint | boolean | trueのとき、列の罫線/次の間隔はオーバープリント。Note:次の列数が1以上のときのみ | |
| EndColumnStrokeGapTint | double | 列の罫線/次の間隔の濃淡(0-100%)。Note:次の列数が1以上のときのみ | |
| EndColumnStrokeOverprint | boolean | trueのとき、列の罫線/次はオーバープリント。Note:次の列数が1以上のときのみ | |
| EndColumnStrokeTint | double | 列の罫線/次の濃淡(0-100%)。Note:次の列数が1以上のときのみ | |
| EndColumnStrokeWeight | double | 列の罫線/次の線幅。Note:次の列数が1以上のときのみ有効 | |
| EndRowFillColor | string | 塗りのスタイル/次の行のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:塗りのパターンの繰り返しが行単位に設定されているときのみ | |
| EndRowFillCount | int | 塗りのスタイル/次の行数。Note:塗りのパターンの繰り返しが行単位に設定されているときのみ | |
| EndRowFillOverprint | boolean | trueのとき、塗りのスタイル/次の行のカラーはオーバープリント。Note:塗りのパターンの繰り返しが行単位に設定されているときのみ | |
| EndRowFillTint | double | 塗りのスタイル/次の行の濃淡(0-100%)Note:塗りのパターンの繰り返しが行単位に設定されているときのみ | |
| EndRowStrokeColor | string | 行の罫線/次の行のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:次の行数が1以上のときのみ | |
| EndRowStrokeCount | int | 行の罫線/次の行数 | |
| EndRowStrokeGapColor | string | 行の罫線/次の間隔のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:次の行数が1以上のときのみ | |
| EndRowStrokeGapOverprint | boolean | trueのとき、行の罫線/次の間隔はオーバープリント。Note:次の行数が1以上のときのみ | |
| EndRowStrokeGapTint | double | 行の罫線/次の間隔の濃淡(0-100%)。Note:次の行数が1以上のときのみ | |
| EndRowStrokeOverprint | boolean | trueのとき、行の罫線/次はオーバープリント。Note:次の行数が1以上のときのみ | |
| EndRowStrokeTint | double | 行の罫線/次の濃淡(0-100%)。Note:次の行数が1以上のときのみ | |
| EndRowStrokeType | string | 行の罫線/次の種類 | |
| EndRowStrokeWeight | double | 行の罫線/次の線幅。Note:次の行数が1以上のときのみ有効 | |
| FooterRegionCellStyle | string | セルスタイル/フッタ行 | |
| FooterRegionSameAsBodyRegion | boolean | trueのとき、フッタ行のセルスタイルは本文行と同じ | |
| HeaderRegionCellStyle | string | セルスタイル/ヘッダ行 | |
| HeaderRegionSameAsBodyRegion | boolean | trueのとき、ヘッダ行のセルスタイルは本文行と同じ | |
| KeyboardShortcut | |||
| LeftBorderStrokeColor | string | 左境界線のカラー。スウォッチ(カラー、グラデーション、濃淡または混合インキ)で指定 | |
| LeftBorderStrokeGapColor | string | 左境界線の間隔のカラー。スウォッチ(カラー、グラデーション、濃淡または混合インキ)で指定。Note:LeftBorderStrokeTypeがSolidでないときのみ | |
| LeftBorderStrokeGapOverprint | boolean | trueのとき、左境界線の間隔はオーバープリント。Note:LeftBorderStrokeTypeがSolidでないときのみ | |
| LeftBorderStrokeGapTint | double | 左境界線の間隔の濃淡(0-100%)Note:LeftBorderStrokeTypeがSolidでないときのみ | |
| LeftBorderStrokeOverprint | boolean | trueのとき、左境界線はオーバープリント | |
| LeftBorderStrokeTint | double | 左境界線の濃淡(0-100%) | |
| LeftBorderStrokeType | string | 左境界線の種類 | |
| LeftBorderStrokeWeight | double | 左境界線の線幅 | |
| LeftColumnRegionCellStyle | string | セルスタイル/左/上の列 | |
| LeftColumnRegionSameAsBodyRegion | boolean | trueのとき、左/上の列のセルスタイルは本文行と同じ | |
| Name | string | ○ | 表スタイル名 |
| RightBorderStrokeColor | string | 右境界線のカラー。スウォッチ(カラー、グラデーション、濃淡または混合インキ)で指定 | |
| RightBorderStrokeGapColor | string | 右境界線の間隔のカラー。スウォッチ(カラー、グラデーション、濃淡または混合インキ)で指定。Note:RightBorderStrokeTypeがSolidでないときのみ | |
| RightBorderStrokeGapOverprint | boolean | trueのとき、右境界線の間隔はオーバープリント。Note:RightBorderStrokeTypeがSolidでないときのみ | |
| RightBorderStrokeGapTint | double | 右境界線の間隔の濃淡(0-100%)Note:RightBorderStrokeTypeがSolidでないときのみ | |
| RightBorderStrokeOverprint | boolean | trueのとき、右境界線はオーバープリント | |
| RightBorderStrokeTint | double | 右境界線の濃淡(0-100%) | |
| RightBorderStrokeType | string | 右境界線の種類 | |
| RightBorderStrokeWeight | double | 右境界線の線幅 | |
| RightColumnRegionCellStyle | string | セルスタイル/右/下の列 | |
| RightColumnRegionSameAsBodyRegion | boolean | trueのとき、右/下の列のセルスタイルは本文行と同じ | |
| SkipFirstAlternatingFillColumns | int | 塗りのスタイル/スキップする最初の列数。Note:塗りのパターンの繰り返しが列単位に設定されているときのみ | |
| SkipFirstAlternatingFillRows | int | 塗りのスタイル/スキップする最初の行数。Note:塗りのパターンの繰り返しが行単位に設定されているときのみ | |
| SkipFirstAlternatingStrokeColumns | int | 列の罫線/スキップする最初の列数。Note:最初の列数または次の列数が1以上のときのみ | |
| SkipFirstAlternatingStrokeRows | int | 行の罫線/スキップする最初の行数。Note:最初の行数または次の行数が1以上のときのみ | |
| SkipLastAlternatingFillColumns | int | 塗りのスタイル/スキップする最後の列数。Note:塗りのパターンの繰り返しが列単位に設定されているときのみ | |
| SkipLastAlternatingFillRows | int | 塗りのスタイル/スキップする最後の行数。Note:塗りのパターンの繰り返しが行単位に設定されているときのみ | |
| SkipLastAlternatingStrokeColumns | int | 列の罫線/スキップする最後の列数。Note:最初の列数または次の列数が1以上のときのみ | |
| SkipLastAlternatingStrokeRows | int | 行の罫線/スキップする最後の行数。Note:最初の行数または次の行数が1以上のときのみ | |
| SpaceAfter | double | 表の後のアキ | |
| SpaceBefore | double | 表の前のアキ | |
| StartColumnFillColor | string | 塗りのスタイル/最初のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:塗りのパターンの繰り返しが列単位に設定されているときのみ | |
| StartColumnFillCount | int | 塗りのスタイル/最初の行数。Note:塗りのパターンの繰り返しが列単位に設定されているときのみ | |
| StartColumnFillOverprint | boolean | trueのとき、塗りのスタイル/最初のカラーはオーバープリント。Note:塗りのパターンの繰り返しが列単位に設定されているときのみ | |
| StartColumnFillTint | double | 塗りのスタイル/最初の濃淡(0-100%)Note:塗りのパターンの繰り返しが列単位に設定されているときのみ | |
| StartColumnStrokeColor | string | 列の罫線/最初のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ) | |
| StartColumnStrokeCount | int | 列の罫線/最初の列数 | |
| StartColumnStrokeGapColor | string | 列の罫線/最初の間隔のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:最初の列数が1以上のときのみ | |
| StartColumnStrokeGapOverprint | boolean | trueのとき、列の罫線/最初の間隔はオーバープリント。Note:最初の列数が1以上のときのみ | |
| StartColumnStrokeGapTint | double | 列の罫線/最初の間隔の濃淡(0-100%)。Note:最初の列数が1以上のときのみ | |
| StartColumnStrokeOverprint | boolean | trueのとき、列の罫線/最初はオーバープリント。Note:最初の列数が1以上のときのみ | |
| StartColumnStrokeTint | double | 列の罫線/最初の濃淡(0-100%)。Note:最初の列数が1以上のときのみ | |
| StartColumnStrokeType | string | 列の罫線/最初の種類 | |
| StartColumnStrokeWeight | double | 列の罫線/最初の線幅。Note:最初の列数が1以上のときのみ | |
| StartRowFillColor | string | 塗りのスタイル/最初のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:塗りのパターンの繰り返しが行単位に設定されているときのみ | |
| StartRowFillCount | int | 塗りのスタイル/最初の行数。Note:塗りのパターンの繰り返しが行単位に設定されているときのみ | |
| StartRowFillOverprint | boolean | trueのとき、塗りのスタイル/最初のカラーはオーバープリント。Note:塗りのパターンの繰り返しが行単位に設定されているときのみ | |
| StartRowFillTint | double | 塗りのスタイル/最初の濃淡(0-100%)Note:塗りのパターンの繰り返しが行単位に設定されているときのみ | |
| StartRowStrokeColor | string | 行の罫線/最初のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:最初の行数が1以上のときのみ | |
| StartRowStrokeCount | int | 行の罫線/最初の行数 | |
| StartRowStrokeGapColor | string | 行の罫線/最初の間隔のカラーのスウォッチ(カラー、グラデーション、濃淡または混合インキ)。Note:最初の行数が1以上のときのみ | |
| StartRowStrokeGapOverprint | boolean | trueのとき、行の罫線/最初の間隔はオーバープリント。Note:最初の行数が1以上のときのみ | |
| StartRowStrokeGapTint | double | 行の罫線/最初の間隔の濃淡(0-100%)。Note:最初の行数が1以上のときのみ | |
| StartRowStrokeOverprint | boolean | trueのとき、行の罫線/最初はオーバープリント。Note:最初の行数が1以上のときのみ | |
| StartRowStrokeTint | double | 行の罫線/最初の濃淡(0-100%)。Note:最初の行数が1以上のときのみ | |
| StartRowStrokeType | string | 行の罫線/最初の種類 | |
| StartRowStrokeWeight | double | 行の罫線/最初の線幅。Note:最初の行数が1以上のときのみ | |
| StrokeOrder | StrokeOrderTypes_EnumValue | 表の設定/罫線のアレンジ。RowOnTop(行の罫線を前面へ)、ColumnOnTop(列の罫線を前面へ)、BestJoins(行と列の結合を最適化)またはInDesign2Compatibility(InDesign 2.0 ベース) | |
| TopBorderStrokeColor | string | 上境界線のカラー。スウォッチ(カラー、グラデーション、濃淡または混合インキ)で指定 | |
| TopBorderStrokeGapColor | string | 上境界線の間隔のカラー。スウォッチ(カラー、グラデーション、濃淡または混合インキ)で指定。Note:TopBorderStrokeTypeがSolidでないときのみ | |
| TopBorderStrokeGapOverprint | boolean | trueのとき、上境界線の間隔はオーバープリント。Note:TopBorderStrokeTypeがSolidでないときのみ | |
| TopBorderStrokeGapTint | double | 上境界線の間隔の濃淡(0-100%)Note:TopBorderStrokeTypeがSolidでないときのみ | |
| TopBorderStrokeOverprint | boolean | trueのとき、上境界線はオーバープリント | |
| TopBorderStrokeTint | double | 上境界線の濃淡(0-100%) | |
| TopBorderStrokeType | string | 上境界線の種類 | |
| TopBorderStrokeWeight | double | 上境界線の線幅 |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| BasedOn | string | 基準にする表スタイル。 type = "object" 基準にする表スタイルのユニークなID(<TableStyle>エレメントのSelf属性) または type = "string" デフォルト表スタイル[表スタイルなし]エレメントの参照($ID/[No table style]) |
10.8.6 セルスタイル
セルスタイルは、セルの余白、段落スタイル、罫線、塗りなどの書式設定が含まれます。セルスタイルグループでまとめることもできます。IDMLパッケージでは、<CellStyle>エレメントは<CellStyleGroup>エレメント内に保存されます。すべての<CellStyle>エレメントと<CellStyleGroup>エレメントは<RootCellStyleGroup>エレメント内に存在します。<CellStyleGroup>エレメントには、<CellStyle>エレメントと<CellStyleGroup>エレメントを含むことができます。
スキーマの例118 CellStyleGroup
CellStyleGroup_Object = element CellStyleGroup{
attribute Self { xsd:string },
attribute Name { xsd:string },
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(CellStyle_Object*&CellStyleGroup_Object*)}
スキーマの例119 CellStyle
CellStyle_Object = element CellStyle{
attribute Self { xsd:string },
attribute AppliedParagraphStyle{ xsd:string }?,
attribute GradientFillLength{ xsd:double }?,
attribute GradientFillAngle{ xsd:double }?,
attribute GradientFillStart{ UnitPointType_TypeDef }?,
attribute TopInset{ xsd:double }?,
attribute LeftInset{ xsd:double }?,
attribute BottomInset{ xsd:double }?,
attribute RightInset{ xsd:double }?,
attribute FillColor{ xsd:string }?,
attribute FillTint{ xsd:double }?,
attribute OverprintFill{ xsd:boolean }?,
attribute TopLeftDiagonalLine{ xsd:boolean }?,
attribute TopRightDiagonalLine{ xsd:boolean }?,
attribute DiagonalLineInFront{ xsd:boolean }?,
attribute DiagonalLineStrokeWeight{ xsd:double }?,
attribute DiagonalLineStrokeType{ xsd:string }?,
attribute DiagonalLineStrokeColor{ xsd:string }?,
attribute DiagonalLineStrokeTint{ xsd:double }?,
attribute DiagonalLineStrokeOverprint{ xsd:boolean }?,
attribute DiagonalLineStrokeGapColor{ xsd:string }?,
attribute DiagonalLineStrokeGapTint{ xsd:double }?,
attribute DiagonalLineStrokeGapOverprint{ xsd:boolean }?,
attribute ClipContentToCell{ xsd:boolean }?,
attribute FirstBaselineOffset{ FirstBaseline_EnumValue }?,
attribute VerticalJustification{ VerticalJustification_EnumValue }?,
attribute ParagraphSpacingLimit{ xsd:double }?,
attribute MinimumFirstBaselineOffset{ xsd:double {minInclusive="0" max Inclusive="8640"} }?,
attribute RotationAngle{ xsd:double }?,
attribute LeftEdgeStrokeWeight{ xsd:double }?,
attribute LeftEdgeStrokeType{ xsd:string }?,
attribute LeftEdgeStrokeColor{ xsd:string }?,
attribute LeftEdgeStrokeTint{ xsd:double }?,
attribute LeftEdgeStrokeOverprint{ xsd:boolean }?,
attribute LeftEdgeStrokeGapColor{ xsd:string }?,
attribute LeftEdgeStrokeGapTint{ xsd:double }?,
attribute LeftEdgeStrokeGapOverprint{ xsd:boolean }?,
attribute TopEdgeStrokeWeight{ xsd:double }?,
attribute TopEdgeStrokeType{ xsd:string }?,
attribute TopEdgeStrokeColor{ xsd:string }?,
attribute TopEdgeStrokeTint{ xsd:double }?,
attribute TopEdgeStrokeOverprint{ xsd:boolean }?,
attribute TopEdgeStrokeGapColor{ xsd:string }?,
attribute TopEdgeStrokeGapTint{ xsd:double }?,
attribute TopEdgeStrokeGapOverprint{ xsd:boolean }?,
attribute RightEdgeStrokeWeight{ xsd:double }?,
attribute RightEdgeStrokeType{ xsd:string }?,
attribute RightEdgeStrokeColor{ xsd:string }?,
attribute RightEdgeStrokeTint{ xsd:double }?,
attribute RightEdgeStrokeOverprint{ xsd:boolean }?,
attribute RightEdgeStrokeGapColor{ xsd:string }?,
attribute RightEdgeStrokeGapTint{ xsd:double }?,
attribute RightEdgeStrokeGapOverprint{ xsd:boolean }?,
attribute BottomEdgeStrokeWeight{ xsd:double }?,
attribute BottomEdgeStrokeType{ xsd:string }?,
attribute BottomEdgeStrokeColor{ xsd:string }?,
attribute BottomEdgeStrokeTint{ xsd:double }?,
attribute BottomEdgeStrokeOverprint{ xsd:boolean }?,
attribute BottomEdgeStrokeGapColor{ xsd:string }?,
attribute BottomEdgeStrokeGapTint{ xsd:double }?,
attribute BottomEdgeStrokeGapOverprint{ xsd:boolean }?,
attribute KeyboardShortcut{ list { xsd:short ,xsd:short } }?,
attribute RotationRunsAgainstStory{ xsd:boolean }?,
attribute Name { xsd:string },
element Properties {element BasedOn{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?}
ほとんどのCellStyleプロパティは、Cellプロパティと共有されています。「10.4.11 インラインエレメント」の「セル」を参照してください。
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| BasedOn | string | 基準にするセルスタイル。ユニークなID(<CellStyle>エレメントのSelf属性)か、デフォルトの[なし]の参照($ID/[No cell style]) |
10.8.7 オブジェクトスタイル
段落スタイルや文字スタイルを使用して簡単にテキストを書式設定するように、オブジェクトスタイルを使用してグラフィックやフレームを簡単に書式設定できます。オブジェクトスタイルには、線、カラー、透明度、ドロップシャドウ、段落スタイル、テキストの回り込みなどの設定が含まれます。オブジェクト、塗り、線、およびテキストに対してさまざまな透明効果を割り当てることができます。ページオブジェクトは、ローカルで設定するのではなくオブジェクトスタイルを使うようにしてください。
オブジェクトスタイルは、オブジェクト、グループおよびフレーム(テキストフレームを含む)に適用できます。スタイルを使用すると、すべてのオブジェクト設定を消去して置換することも、その他の設定を変更せずに特定の設定のみを置換することもできます。定義内に設定カテゴリーを含めるか、または除外することで、スタイルが影響を及ぼす設定を制御できます。
InDesignドキュメントでのオブジェクトスタイルは、オブジェクトスタイルグループにまとめることができます。
InDesignドキュメントには、デフォルトのオブジェクトスタイルがあります。
- [なし]
- [基本グラフィックフレーム]
- [基本テキストフレーム]
- [基本グリッド]
[なし]以外のデフォルトオブジェクトスタイルは編集可なので、これらをオブジェクトの書式として使用するならば、IDMLで定義することができます。[なし]には書式が何もありません。このオブジェクトスタイルは、ページオブジェクトにローカルの書式を設定するときに使用します。
デフォルトオブジェクトスタイルについては、InDesignのドキュメントを参照してください。
IDMLパッケージでは、Styles.xmlドキュメントに<RootObjectStyleGroup>エレメントがあり、その中に<ObjectStyle>エレメントと<ObjectStyleGroup>エレメントがあります。<ObjectStyleGroup>エレメントの中に他の<ObjectStyleGroup>エレメントを入れることもできます。
スキーマの例120 ObjectStyleGroup
ObjectStyleGroup_Object = element ObjectStyleGroup{
attribute Self { xsd:string },
attribute Name { xsd:string },
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(ObjectStyle_Object*&ObjectStyleGroup_Object*)}
スキーマの例121 ObjectStyle
ObjectStyle_Object = element ObjectStyle{
attribute Self { xsd:string },
attribute Name { xsd:string },
attribute AppliedParagraphStyle{ xsd:string }?,
attribute ApplyNextParagraphStyle{ xsd:boolean }?,
attribute EnableFill{ xsd:boolean }?,
attribute EnableStroke{ xsd:boolean }?,
attribute EnableParagraphStyle{ xsd:boolean }?,
attribute EnableTextFrameGeneralOptions{ xsd:boolean }?,
attribute EnableTextFrameBaselineOptions{ xsd:boolean }?,
attribute EnableStoryOptions{ xsd:boolean }?,
attribute EnableTextWrapAndOthers{ xsd:boolean }?,
attribute EnableAnchoredObjectOptions{ xsd:boolean }?,
attribute FillColor{ xsd:string }?,
attribute FillTint{ xsd:double }?,
attribute OverprintFill{ xsd:boolean }?,
attribute StrokeWeight{ xsd:double }?,
attribute MiterLimit{ xsd:double {minInclusive="1" maxInclusive="500"} }?,
attribute EndCap{ EndCap_EnumValue }?,
attribute EndJoin{ EndJoin_EnumValue }?,
attribute StrokeType{ xsd:string }?,
attribute StrokeCornerAdjustment{ StrokeCornerAdjustment_EnumValue }?,
attribute StrokeDashAndGap{ list { xsd:double * } }?,
attribute LeftLineEnd{ ArrowHead_EnumValue }?,
attribute RightLineEnd{ ArrowHead_EnumValue }?,
attribute StrokeColor{ xsd:string }?,
attribute StrokeTint{ xsd:double }?,
attribute CornerRadius{ xsd:double }?,
attribute OverprintStroke{ xsd:boolean }?,
attribute GapColor{ xsd:string }?,
attribute GapTint{ xsd:double }?,
attribute OverprintGap{ xsd:boolean }?,
attribute StrokeAlignment{ StrokeAlignment_EnumValue }?,
attribute Nonprinting { xsd:boolean }?,
attribute GradientFillAngle{ xsd:double }?,
attribute GradientStrokeAngle{ xsd:double }?,
attribute AppliedNamedGrid{ xsd:string }?,
attribute KeyboardShortcut{ list { xsd:short ,xsd:short } }?,
attribute EnableFrameFittingOptions{ xsd:boolean }?,
attribute CornerOption{ CornerOptions_EnumValue }?,
attribute EnableStrokeAndCornerOptions{ xsd:boolean }?,
element Properties {element BasedOn{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(TextFramePreference_Object?&BaselineFrameGridOption_Object?&AnchoredObjectSetting_Object?&TextWrapPreference_Object?&StoryPreference_Object?&FrameFittingOption_Object?&TransparencySetting_Object?&StrokeTransparencySetting_Object?&FillTransparencySetting_Object?&ContentTransparencySetting_Object?&ObjectStyleObjectEffectsCategorySettings_Object?&ObjectStyleStrokeEffectsCategorySettings_Object?&ObjectStyleFillEffectsCategorySettings_Object?&ObjectStyleContentEffectsCategorySettings_Object?)}
オブジェクトスタイルのほとんどの属性とエレメントは、他のエレメントと共有されています。下記のエレメントについては、「10.3 スプレッドとマスタースプレッド」の対応するセクションを参照してください。
- <TextFramePreference>エレメント
- <BaselineFrameGridOption>エレメント
- <TextWrapPreference>エレメント
- <FrameFittingOption>エレメント
- <TransparencySetting>エレメント
- <StrokeTransparencySetting>エレメント
- <ContentTransparencySetting>エレメント
下記のエレメントについては、「10.4 ストーリー」を参照してください。
- <AnchoredObjectSetting>エレメント
- <StoryPreference>エレメント
<ObjectStyleObjectEffectsCategorySettings>エレメント、<ObjectStyleStrokeEffectsCategorySettings>エレメント、<ObjectStyleFillEffectsCategorySettings>エレメントおよび<ObjectStyleContentEffectsCategorySettings>エレメントは、<ObjectStyle>エレメント特有のものです。これらのエレメントには<ObjectStyle>のセクションの有効(true)無効(false)を設定する属性があります。例えば、オブジェクトスタイルのドロップシャドウの設定を、ページオブジェクトの塗りに適用させないようにするには、<ObjectStyleStrokeEffectsCategorySettings>エレメントのEnableDropShadow属性をfalseに設定します。
スキーマの例122 ObjectStyleObjectEffectsCategorySettings
ObjectStyleObjectEffectsCategorySettings_Object = element ObjectStyleObjectEffectsCategorySettings{
attribute Self { xsd:string },
attribute EnableTransparency{ xsd:boolean }?,
attribute EnableDropShadow{ xsd:boolean }?,
attribute EnableFeather{ xsd:boolean }?,
attribute EnableInnerShadow{ xsd:boolean }?,
attribute EnableOuterGlow{ xsd:boolean }?,
attribute EnableInnerGlow{ xsd:boolean }?,
attribute EnableBevelEmboss{ xsd:boolean }?,
attribute EnableSatin{ xsd:boolean }?,
attribute EnableDirectionalFeather{ xsd:boolean }?,
attribute EnableGradientFeather{ xsd:boolean }?
}
スキーマの例123 ObjectStyleStrokeEffectsCategorySettings
ObjectStyleStrokeEffectsCategorySettings_Object = element ObjectStyleStrokeEffectsCategorySettings{
attribute Self { xsd:string },
attribute EnableTransparency{ xsd:boolean }?,
attribute EnableDropShadow{ xsd:boolean }?,
attribute EnableFeather{ xsd:boolean }?,
attribute EnableInnerShadow{ xsd:boolean }?,
attribute EnableOuterGlow{ xsd:boolean }?,
attribute EnableInnerGlow{ xsd:boolean }?,
attribute EnableBevelEmboss{ xsd:boolean }?,
attribute EnableSatin{ xsd:boolean }?,
attribute EnableDirectionalFeather{ xsd:boolean }?,
attribute EnableGradientFeather{ xsd:boolean }?
}
スキーマの例124 ObjectStyleFillEffectsCategorySettings
ObjectStyleFillEffectsCategorySettings_Object = element ObjectStyleFillEffectsCategorySettings{
attribute Self { xsd:string },
attribute EnableTransparency{ xsd:boolean }?,
attribute EnableDropShadow{ xsd:boolean }?,
attribute EnableFeather{ xsd:boolean }?,
attribute EnableInnerShadow{ xsd:boolean }?,
attribute EnableOuterGlow{ xsd:boolean }?,
attribute EnableInnerGlow{ xsd:boolean }?,
attribute EnableBevelEmboss{ xsd:boolean }?,
attribute EnableSatin{ xsd:boolean }?,
attribute EnableDirectionalFeather{ xsd:boolean }?,
attribute EnableGradientFeather{ xsd:boolean }?
}
スキーマの例125 ObjectStyleContentEffectsCategorySettings
ObjectStyleContentEffectsCategorySettings_Object = element ObjectStyleContentEffectsCategorySettings{
attribute Self { xsd:string },
attribute EnableTransparency{ xsd:boolean }?,
attribute EnableDropShadow{ xsd:boolean }?,
attribute EnableFeather{ xsd:boolean }?,
attribute EnableInnerShadow{ xsd:boolean }?,
attribute EnableOuterGlow{ xsd:boolean }?,
attribute EnableInnerGlow{ xsd:boolean }?,
attribute EnableBevelEmboss{ xsd:boolean }?,
attribute EnableSatin{ xsd:boolean }?,
attribute EnableDirectionalFeather{ xsd:boolean }?,
attribute EnableGradientFeather{ xsd:boolean }?
}
文字スタイルと同じように、オブジェクトスタイルはオブジェクトの書式をすべて設定する必要はありません。ページオブジェクトの塗りカラーはそのままでドロップシャドウだけを適用するオブジェクトスタイルを作れます。下記に例を示します。このオブジェクトスタイルと、基本になっているオブジェクトスタイルとの唯一の違いは、<TransparencySetting>エレメントのMode属性がDrop(ドロップシャドウ効果を適用する)に設定されていることです。<TransparencySetting>エレメントの属性については、「透明(Transparency)」を参照してください。
IDMLの例82 ObjectStyle
<ObjectStyle Self="ObjectStyle\ DropShadow" Name="DropShadow"><Properties><BasedOn type="object">ObjectStyle\[ Normal Graphics Frame]</BasedOn>
</Properties><TransparencySetting Self="ud4TransparencySetting1"><DropShadowSetting Self="ud4TransparencySetting1DropShadowSetting1" Mode="Drop"/></TransparencySetting></ObjectStyle>
図57 オブジェクトスタイル
10.8.8 目次スタイル
目次(TOC)は、InDesignドキュメントのコンテンツのリストです。ドキュメントには、複数の目次を設定できます。例えば、章の目次と図の目次です。目次スタイルで、目次の生成方法と書式設定を行います。
IDMLドキュメントでは、<TOCStyle>エレメントにTOCのプロパティを定義する属性があります。<TOCStyle>エレメント内の<TOCStyleElement>エレメントが、目次として抽出する段落と各段落の書式を定義します。
スキーマの例126 TOCStyle
TOCStyle_Object = element TOCStyle {
attribute Self { xsd:string },
attribute TitleStyle{ xsd:string }?,
attribute Title { xsd:string }?,
attribute Name { xsd:string },
attribute RunIn{ xsd:boolean }?,
attribute IncludeHidden{ xsd:boolean }?,
attribute IncludeBookDocuments{ xsd:boolean }?,
attribute CreateBookmarks{ xsd:boolean }?,
attribute SetStoryDirection{ HorizontalOrVertical_EnumValue }?,
attribute NumberedParagraphs{ NumberedParagraphsOptions_EnumValue }?,
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(TOCStyleEntry_Object*)}
スキーマの例127 TOCStyleEntry
TOCStyleEntry_Object = element TOCStyleEntry{
attribute Self { xsd:string },
attribute Name { xsd:string }?,
attribute Level { xsd:short }?,
attribute PageNumberPosition{ PageNumberPosition_EnumValue }?,
attribute Separator { xsd:string }?,
attribute SortAlphabet{ xsd:boolean }?,
element Properties {element FormatStyle{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element PageNumberStyle{(object_type, xsd:string ) |
(string_type, xsd:string )
}?&
element SeparatorStyle{(object_type, xsd:string ) |
(string_type, xsd:string )
}?
}?}
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| CreateBookmarks | boolean | trueのとき、PDFブックマークを作成 | |
| IncludeBookDocuments | boolean | trueのとき、ブックのドキュメントを含む。falseのとき、現在のドキュメントのみ。Note:現在のドキュメントがブックに登録されているときのみ | |
| IncludeHidden | boolean | trueのとき、非表示レイヤーのテキストを含む(次回生成時に適用され、現在の目次は変更されない) | |
| Name | string | TOCStyleの名前 | |
| NumberedParagraphs | NumberedParagraphsOptions_EnumValue | 段落の自動番号。IncludeFullParagraph、IncludeNumbersOnlyまたはExcludeNumbers | |
| RunIn | boolean | trueのとき、1行にまとめる | |
| SetStoryDirection | HorizontalOrVertical_EnumValue | フレームの方向。LeftToRightDirectionまたはRightToLeftDirection | |
| Title | string | タイトル | |
| TitleStyle | string | タイトルの段落スタイル |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| Level | short | レベル | |
| Name | string | TOCStyleEntryの名前 | |
| PageNumberPosition | PageNumberPosition_EnumValue | ページ番号。AfterEntry、BeforeEntryまたはNone | |
| Self | string | ○ | オブジェクトのユニークID |
| Separator | string | 項目と番号間 | |
| SortAlphabet | boolean | trueのとき、項目をアルファベット・50音順に並べる |
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| FormatStyle | string | 目次項目に割り当てる段落スタイル。 type = "object" 参照する段落スタイルのユニークID(<ParagraphStyle>エレメントのSelf属性) または type = "string" デフォルト段落スタイル[段落スタイルなし]エレメントの参照($ID/[No paragraph style]) |
|
| PageNumberStyle | string | ページ番号に割り当てる文字スタイル。 type = "object" 参照する文字スタイルのユニークID(<CharacterStyle>エレメントのSelf属性) または type = "string" デフォルト文字スタイル[なし]エレメントの参照($ID/[No character style]) |
|
| SeparatorStyle | string | 項目と番号間に割り当てる文字スタイル。 type = "object" 参照する文字スタイルのユニークID(<CharacterStyle>エレメントのSelf属性) または type = "string" デフォルト文字スタイル[なし]エレメントの参照($ID/[No character style]) |
IDMLの例83 TOCStyle
<TOCStyle Self="TOCStyle\kDefaultTOCStyleName" TitleStyle=" ParagraphStyle\ k[No paragraph style]" Title="Contents" Name="$ID/DefaultTOCStyleName" RunIn=" false" IncludeHidden=" false" IncludeBookDocuments=" false" CreateBookmarks=" true" SetStoryDirection=" Horizontal" NumberedParagraphs=" IncludeFullParagraph"/><TOCStyle Self="TOCStyle\cExampleTOCStyle" TitleStyle=" ParagraphStyle\ cContentsTitle" Title="Contents" Name="ExampleTOCStyle" RunIn=" false" IncludeHidden=" false" IncludeBookDocuments=" false" CreateBookmarks=" true" NumberedParagraphs=" IncludeFullParagraph"><TOCStyleEntry Self="ue4TOCStyleEntry0" Name="Headings:Heading1" Level="1" PageNumberPosition=" AfterEntry" Separator="$ID/^t" SortAlphabet=" false"><Properties><FormatStyle type="object">ParagraphStyle\ TOCHeading1</FormatStyle>
<PageNumberStyle type="object">CharacterStyle\ PageNumber</ PageNumberStyle>
<SeparatorStyle type="object">CharacterStyle\ DotLeader</ SeparatorStyle>
</Properties></TOCStyleEntry><TOCStyleEntry Self="ue4TOCStyleEntry1" Name="Headings:Heading2" Level="2" PageNumberPosition=" AfterEntry" Separator="$ID/^t" SortAlphabet=" false"><Properties><FormatStyle type="object">ParagraphStyle\ TOCHeading2</FormatStyle>
<PageNumberStyle type="object">CharacterStyle\ PageNumber</ PageNumberStyle>
<SeparatorStyle type="object">CharacterStyle\ DotLeader</ SeparatorStyle>
</Properties></TOCStyleEntry><TOCStyleEntry Self="ue4TOCStyleEntry2" Name="Headings:Heading3" Level="3" PageNumberPosition=" AfterEntry" Separator="$ID/^t" SortAlphabet=" false"><Properties><FormatStyle type="object">ParagraphStyle\ TOCHeading3</FormatStyle>
<PageNumberStyle type="object">CharacterStyle\ PageNumber</ PageNumberStyle>
<SeparatorStyle type="object">CharacterStyle\ DotLeader</ SeparatorStyle>
</Properties></TOCStyleEntry></TOCStyle>
図58 目次スタイル
10.8.9 トラッププリセット
トラッププリセットは、ドキュメントのページまたはページ範囲に適用するトラップ設定の組み合わせです。トラッププリセットはドキュメント全体、ページ範囲またはページ単位で適用することができます。トラッププリセットが適用されていないと、InDesignはトラッププリセット[デフォルト]を使用します。
IDMLパッケージでのトラッププリセットは、<TrapPreset>エレメントにあります。
スキーマの例128 TrapPreset
TrapPreset_Object = element TrapPreset{
attribute Self { xsd:string },
attribute Name { xsd:string },
attribute DefaultTrapWidth{ xsd:double {minInclusive="0" maxInclusive="8"} }?,
attribute BlackWidth{ xsd:double {minInclusive="0" maxInclusive="8"} }?,
attribute TrapJoin{ EndJoin_EnumValue }?,
attribute TrapEnd{ TrapEndTypes_EnumValue }?,
attribute ObjectsToImages{ xsd:boolean }?,
attribute ImagesToImages{ xsd:boolean }?,
attribute InternalImages{ xsd:boolean }?,
attribute OneBitImages{ xsd:boolean }?,
attribute ImagePlacement{ TrapImagePlacementTypes_EnumValue }?,
attribute StepThreshold{ xsd:double {minInclusive="1" maxInclusive="100"} }?,
attribute BlackColorThreshold{ xsd:double {minInclusive="0" maxInclusive="100"} }?,
attribute BlackDensity{ xsd:double {minInclusive="0" maxInclusive="10"} }?,
attribute SlidingTrapThreshold{ xsd:double {minInclusive="0" maxInclusive="100"} }?,
attribute ColorReduction{ xsd:double {minInclusive="0" maxInclusive="100"} }?,
element Properties {element Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?}
IDMLの例84 TrapPreset
<TrapPreset Self="TrapPreset\ ExampleTrapPreset" Name="ExampleTrapPreset" DefaultTrapWidth=" 0.25" BlackWidth=" 0.5" TrapJoin=" MiterEndJoin" TrapEnd=" MiterTrapEnds" ObjectsToImages=" true" ImagesToImages=" true" InternalImages=" false" OneBitImages=" true" ImagePlacement=" CenterEdges" StepThreshold=" 10" BlackColorThreshold=" 100" BlackDensity=" 1.6" SlidingTrapThreshold=" 70" ColorReduction=" 100"/>
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| BlackColorThreshold | double | トラップのしきい値/ブラックカラーリミット(0-100%) | |
| BlackDensity | double | トラップのしきい値/ブラック濃度リミット(0.001-10) | |
| BlackWidth | double | トラップの幅/対ブラック(0.0-8.0) | |
| ColorReduction | double | トラップのしきい値/トラップ減色(0-100%)Note:値を0%にすると、トラップのND値は暗いカラーのND値と同じになる | |
| DefaultTrapWidth | double | トラップの幅/デフォルト(0.0-8.0) | |
| ImagePlacement | TrapImagePlacementTypes_EnumValue | 画像/トラップ配置。CenterEdges、Choke、ImageNeutralDensityまたはImagesOverSpread | |
| ImagesToImages | boolean | trueのとき、画像間でトラップ | |
| InternalImages | boolean | trueのとき、内側の画像をトラップ | |
| Name | string | トラッププリセット名 | |
| ObjectsToImages | boolean | trueのとき、オブジェクトを画像にトラップ | |
| OneBitImages | boolean | trueのとき、1-ビット画像をトラップ | |
| SlidingTrapThreshold | double | トラップのしきい値/トラップ限界のスライド(0-100%) | |
| StepThreshold | double | トラップのしきい値/色差(1-100%) | |
| TrapEnd | TrapEndTypes_EnumValue | トラップの外観/端のスタイル。MiterTrapEndsまたはOverlapTrapEnds | |
| TrapJoin | EndJoin_EnumValue | トラップの外観/結合スタイル。MiterEndJoin、RoundEndJoinまたはBevelEndJoin |






