Translation:Paragraph Styles
From IDMLWiki
Contents |
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>

