Translation:Paragraph Styles

From IDMLWiki

Jump to: navigation, search

Contents

10.8.2 段落スタイル

段落スタイルには、文字と段落のフォーマット属性が含まれており、段落単位または複数の段落の範囲に適用することができます。段落スタイルは、適用された段落範囲全体に渡る、文字スタイルを含むすべてのフォーマット属性を定義できます。InDesignドキュメントでの段落スタイルは、その目的に応じた段落スタイルグループにまとめることができます。IDMLでは、段落スタイルのすべてのフォーマット属性を定義する必要はありませんが、定義されない値は、アプリケーションのデフォルト値が適用されることに気をつけてください。

それぞれのIDMLパッケージドキュメントには、<RootParagraphStyleGroup>エレメントが含まれ、さらにその中には<ParagraphStyle>エレメントと<ParagraphStyleGroup>エレメントが含まれます。ひとつの<ParagraphStyleGroup>エレメント中に、他の<ParagraphStyleGroup>エレメントを複数含めることもできます。下記の図は、InDesignドキュメントでのエレメント間の関係の例です。

図54 <RootParagraphStyleGroup>、<ParagraphStyle>、<ParagraphStyleGroup>エレメントの例(Self属性値を表示)

Image:Fig054.png

<RootParagraphStyle>エレメントと<ParagraphStyleGroup>エレメントの構造は同じです。

スキーマの例111 ParagraphStyleGroup
  1. ParagraphStyleGroup_Object = element ParagraphStyleGroup{ 
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string }?,
  4.   element Properties {
  5.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  6.     }?
  7.   }
  8.   ?
  9.   ,
  10. (
  11.   ParagraphStyle_Object*&
  12.   ParagraphStyleGroup_Object*
  13. )
  14. }

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
  1. <idPkg: Styles xmlns:idPkg=" http://ns.adobe.com/AdobeInDesign/ idml/1.0/packaging">
  2.   <RootParagraphStyleGroup Self="u69">
  3.     <ParagraphStyleGroup Self="ParagraphStyleGroup\ Headings" Name="Headings">
  4.       <ParagraphStyle Self="ParagraphStyle\ Headings%3aHeading1" Name="Headings:Heading1">
  5.       </ParagraphStyle>
  6.       <ParagraphStyle Self="ParagraphStyle\ Headings%3aHeading2" Name="Headings:Heading2">
  7.       </ParagraphStyle>
  8.       <ParagraphStyle Self="ParagraphStyle\ Headings%3aHeading3" Name="Headings:Heading3">
  9.       </ParagraphStyle>
  10.     </ParagraphStyleGroup>
  11.   </RootParagraphStyleGroup>
  12. </idPkg: Styles>
スキーマの例112 ParagraphStyle
  1. ParagraphStyle_Object = element ParagraphStyle{ 
  2.   attribute Self { xsd:string },
  3.   attribute Name { xsd:string },
  4.   attribute Imported { xsd:boolean }?,
  5.   attribute NextStyle{  xsd:string }?,
  6.   attribute FirstLineIndent{  xsd:double }?,
  7.   attribute LeftIndent{  xsd:double }?,
  8.   attribute RightIndent{  xsd:double }?,
  9.   attribute SpaceBefore{  xsd:double }?,
  10.   attribute SpaceAfter{  xsd:double }?,
  11.   attribute Justification { Justification_EnumValue }?,
  12.   attribute SingleWordJustification{  SingleWordJustification_EnumValue }?,
  13.   attribute AutoLeading{  xsd:double }?,
  14.   attribute DropCapLines{  xsd:short {minInclusive="0" maxInclusive="25"} }?,
  15.   attribute DropCapCharacters{  xsd:short {minInclusive="0"maxInclusive="150"} }?,
  16.   attribute KeepLinesTogether{  xsd:boolean }?,
  17.   attribute KeepAllLinesTogether{  xsd:boolean }?,
  18.   attribute KeepWithNext{  xsd:short {minInclusive="0" maxInclusive="5"} }?,
  19.   attribute KeepFirstLines{  xsd:short {minInclusive="1" maxInclusive="50"} }?,
  20.   attribute KeepLastLines{  xsd:short {minInclusive="1" maxInclusive="50"} }?,
  21.   attribute StartParagraph{  StartParagraph_EnumValue }?,
  22.   attribute Composer { xsd:string }?,
  23.   attribute MinimumWordSpacing{  xsd:double }?,
  24.   attribute MaximumWordSpacing{  xsd:double }?,
  25.   attribute DesiredWordSpacing{  xsd:double }?,
  26.   attribute MinimumLetterSpacing{  xsd:double }?,
  27.   attribute MaximumLetterSpacing{  xsd:double }?,
  28.   attribute DesiredLetterSpacing{  xsd:double }?,
  29.   attribute MinimumGlyphScaling{  xsd:double }?,
  30.   attribute MaximumGlyphScaling{  xsd:double }?,
  31.   attribute DesiredGlyphScaling{  xsd:double }?,
  32.   attribute RuleAbove{  xsd:boolean }?,
  33.   attribute RuleAboveOverprint{  xsd:boolean }?,
  34.   attribute RuleAboveLineWeight{  xsd:double }?,
  35.   attribute RuleAboveTint{  xsd:double }?,
  36.   attribute RuleAboveOffset{  xsd:double }?,
  37.   attribute RuleAboveLeftIndent{  xsd:double }?,
  38.   attribute RuleAboveRightIndent{  xsd:double }?,
  39.   attribute RuleAboveWidth{  RuleWidth_EnumValue }?,
  40.   attribute RuleAboveGapTint{  xsd:double }?,
  41.   attribute RuleAboveGapOverprint{  xsd:boolean }?,
  42.   attribute RuleBelow{  xsd:boolean }?,
  43.   attribute RuleBelowLineWeight{  xsd:double }?,
  44.   attribute RuleBelowTint{  xsd:double }?,
  45.   attribute RuleBelowOffset{  xsd:double }?,
  46.   attribute RuleBelowLeftIndent{  xsd:double }?,
  47.   attribute RuleBelowRightIndent{  xsd:double }?,
  48.   attribute RuleBelowWidth{  RuleWidth_EnumValue }?,
  49.   attribute RuleBelowGapTint{  xsd:double }?,
  50.   attribute HyphenateCapitalizedWords{  xsd:boolean }?,
  51.   attribute Hyphenation { xsd:boolean }?,
  52.   attribute HyphenateBeforeLast{  xsd:short {minInclusive="1"maxInclusive="15"} }?,
  53.   attribute HyphenateAfterFirst{  xsd:short {minInclusive="1"maxInclusive="15"} }?,
  54.   attribute HyphenateWordsLongerThan{  xsd:short {minInclusive="3"maxInclusive="25"} }?,
  55.   attribute HyphenateLadderLimit{  xsd:short {minInclusive="0"maxInclusive="25"} }?,
  56.   attribute HyphenationZone{  xsd:double }?,
  57.   attribute HyphenWeight{  xsd:short {minInclusive="0" maxInclusive="10"} }?,
  58.   attribute FontStyle{  xsd:string }?,
  59.   attribute PointSize{  xsd:double }?,
  60.   attribute KerningMethod{  xsd:string }?,
  61.   attribute Tracking { xsd:double }?,
  62.   attribute Capitalization { Capitalization_EnumValue }?,
  63.   attribute Position { Position_EnumValue }?,
  64.   attribute Underline { xsd:boolean }?,
  65.   attribute StrikeThru{  xsd:boolean }?,
  66.   attribute Ligatures { xsd:boolean }?,
  67.   attribute NoBreak{  xsd:boolean }?,
  68.   attribute HorizontalScale{  xsd:double }?,
  69.   attribute VerticalScale{  xsd:double }?,
  70.   attribute BaselineShift{  xsd:double }?,
  71.   attribute Skew { xsd:double }?,
  72.   attribute FillTint{  xsd:double }?,
  73.   attribute StrokeTint{  xsd:double }?,
  74.   attribute StrokeWeight{  xsd:double }?,
  75.   attribute OverprintStroke{  xsd:boolean }?,
  76.   attribute OverprintFill{  xsd:boolean }?,
  77.   attribute OTFFigureStyle{  OTFFigureStyle_EnumValue }?,
  78.   attribute OTFOrdinal { xsd:boolean }?,
  79.   attribute OTFFraction { xsd:boolean }?,
  80.   attribute OTFDiscretionaryLigature{  xsd:boolean }?,
  81.   attribute OTFTitling { xsd:boolean }?,
  82.   attribute OTFContextualAlternate{  xsd:boolean }?,
  83.   attribute OTFSwash { xsd:boolean }?,
  84.   attribute UnderlineTint{  xsd:double }?,
  85.   attribute UnderlineGapTint{  xsd:double }?,
  86.   attribute UnderlineOverprint{  xsd:boolean }?,
  87.   attribute UnderlineGapOverprint{  xsd:boolean }?,
  88.   attribute UnderlineOffset{  xsd:double }?,
  89.   attribute UnderlineWeight{  xsd:double }?,
  90.   attribute StrikeThroughTint{  xsd:double }?,
  91.   attribute StrikeThroughGapTint{  xsd:double }?,
  92.   attribute StrikeThroughOverprint{  xsd:boolean }?,
  93.   attribute StrikeThroughGapOverprint{  xsd:boolean }?,
  94.   attribute StrikeThroughOffset{  xsd:double }?,
  95.   attribute StrikeThroughWeight{  xsd:double }?,
  96.   attribute FillColor{  xsd:string }?,
  97.   attribute StrokeColor{  xsd:string }?,
  98.   attribute AppliedLanguage{  xsd:string }?,
  99.   attribute KeyboardShortcut{  list { xsd:short ,xsd:short } }?,
  100.   attribute LastLineIndent{  xsd:double }?,
  101.   attribute HyphenateLastWord{  xsd:boolean }?,
  102.   attribute OTFSlashedZero{  xsd:boolean }?,
  103.   attribute OTFHistorical { xsd:boolean }?,
  104.   attribute OTFStylisticSets{  xsd:int }?,
  105.   attribute GradientFillLength{  xsd:double }?,
  106.   attribute GradientFillAngle{  xsd:double }?,
  107.   attribute GradientStrokeLength{  xsd:double }?,
  108.   attribute GradientStrokeAngle{  xsd:double }?,
  109.   attribute GradientFillStart{  UnitPointType_TypeDef }?,
  110.   attribute GradientStrokeStart{  UnitPointType_TypeDef }?,
  111.   attribute RuleBelowOverprint{  xsd:boolean }?,
  112.   attribute RuleBelowGapOverprint{  xsd:boolean }?,
  113.   attribute DropcapDetail{  xsd:int }?,
  114.   attribute HyphenateAcrossColumns{  xsd:boolean }?,
  115.   attribute KeepRuleAboveInFrame{  xsd:boolean }?,
  116.   attribute IgnoreEdgeAlignment{  xsd:boolean }?,
  117.   attribute OTFMark { xsd:boolean }?,
  118.   attribute OTFLocale { xsd:boolean }?,
  119.   attribute PositionalForm{  PositionalForms_EnumValue }?,
  120.   attribute ParagraphDirection{  ParagraphDirection_EnumValue }?,
  121.   attribute ParagraphJustification{  ParagraphJustification_EnumValue }?,
  122.   attribute MiterLimit{  xsd:double {minInclusive="1" maxInclusive="500"} }?,
  123.   attribute StrokeAlignment{  TextStrokeAlign_EnumValue }?,
  124.   attribute EndJoin{  OutlineJoin_EnumValue }?,
  125.   attribute OTFOverlapSwash{  xsd:boolean }?,
  126.   attribute OTFStylisticAlternate{  xsd:boolean }?,
  127.   attribute OTFJustificationAlternate{  xsd:boolean }?,
  128.   attribute OTFStretchedAlternate{  xsd:boolean }?,
  129.   attribute CharacterDirection{  CharacterDirection_EnumValue }?,
  130.   attribute KeyboardDirection{  CharacterDirection_EnumValue }?,
  131.   attribute DigitsType{  DigitsType_EnumValue }?,
  132.   attribute Kashidas { Kashidas_EnumValue }?,
  133.   attribute DiacriticPosition{  DiacriticPosition_EnumValue }?,
  134.   attribute XOffsetDiacritic{  xsd:double }?,
  135.   attribute YOffsetDiacritic{  xsd:double }?,
  136.   attribute GotoNextX{  GotoNextX_EnumValue }?,
  137.   attribute PageNumberType{  PageNumberType_EnumValue }?,
  138.   attribute CharacterAlignment{  CharacterAlignment_EnumValue }?,
  139.   attribute Tsume { xsd:double }?,
  140.   attribute LeadingAki{  xsd:double }?,
  141.   attribute TrailingAki{  xsd:double }?,
  142.   attribute CharacterRotation{  xsd:double }?,
  143.   attribute Jidori { xsd:short }?,
  144.   attribute ShataiMagnification{  xsd:double }?,
  145.   attribute ShataiDegreeAngle{  xsd:double }?,
  146.   attribute ShataiAdjustRotation{  xsd:boolean }?,
  147.   attribute ShataiAdjustTsume{  xsd:boolean }?,
  148.   attribute Tatechuyoko { xsd:boolean }?,
  149.   attribute TatechuyokoXOffset{  xsd:double }?,
  150.   attribute TatechuyokoYOffset{  xsd:double }?,
  151.   attribute KentenTint{  xsd:double }?,
  152.   attribute KentenStrokeTint{  xsd:double }?,
  153.   attribute KentenWeight{  xsd:double }?,
  154.   attribute KentenOverprintFill{  AdornmentOverprint_EnumValue }?,
  155.   attribute KentenOverprintStroke{  AdornmentOverprint_EnumValue }?,
  156.   attribute KentenKind{  KentenCharacter_EnumValue }?,
  157.   attribute KentenPlacement{  xsd:double }?,
  158.   attribute KentenAlignment{  KentenAlignment_EnumValue }?,
  159.   attribute KentenPosition{  RubyKentenPosition_EnumValue }?,
  160.   attribute KentenFontSize{  xsd:double }?,
  161.   attribute KentenXScale{  xsd:double }?,
  162.   attribute KentenYScale{  xsd:double }?,
  163.   attribute KentenCustomCharacter{  xsd:string }?,
  164.   attribute KentenCharacterSet{  KentenCharacterSet_EnumValue }?,
  165.   attribute RubyTint{  xsd:double }?,
  166.   attribute RubyWeight{  xsd:double }?,
  167.   attribute RubyOverprintFill{  AdornmentOverprint_EnumValue }?,
  168.   attribute RubyOverprintStroke{  AdornmentOverprint_EnumValue }?,
  169.   attribute RubyStrokeTint{  xsd:double }?,
  170.   attribute RubyFontSize{  xsd:double }?,
  171.   attribute RubyOpenTypePro{  xsd:boolean }?,
  172.   attribute RubyXScale{  xsd:double }?,
  173.   attribute RubyYScale{  xsd:double }?,
  174.   attribute RubyType{  RubyTypes_EnumValue }?,
  175.   attribute RubyAlignment{  RubyAlignments_EnumValue }?,
  176.   attribute RubyPosition{  RubyKentenPosition_EnumValue }?,
  177.   attribute RubyXOffset{  xsd:double }?,
  178.   attribute RubyYOffset{  xsd:double }?,
  179.   attribute RubyParentSpacing{  RubyParentSpacing_EnumValue }?,
  180.   attribute RubyAutoAlign{  xsd:boolean }?,
  181.   attribute RubyOverhang{  xsd:boolean }?,
  182.   attribute RubyAutoScaling{  xsd:boolean }?,
  183.   attribute RubyParentScalingPercent{  xsd:double }?,
  184.   attribute RubyParentOverhangAmount{  RubyOverhang_EnumValue }?,
  185.   attribute Warichu { xsd:boolean }?,
  186.   attribute WarichuSize{  xsd:double }?,
  187.   attribute WarichuLines{  xsd:short }?,
  188.   attribute WarichuLineSpacing{  xsd:double }?,
  189.   attribute WarichuAlignment{  WarichuAlignment_EnumValue }?,
  190.   attribute WarichuCharsAfterBreak{  xsd:short }?,
  191.   attribute WarichuCharsBeforeBreak{  xsd:short }?,
  192.   attribute OTFProportionalMetrics{  xsd:boolean }?,
  193.   attribute OTFHVKana { xsd:boolean }?,
  194.   attribute OTFRomanItalics{  xsd:boolean }?,
  195.   attribute ScaleAffectsLineHeight{  xsd:boolean }?,
  196.   attribute CjkGridTracking{  xsd:boolean }?,
  197.   attribute GlyphForm{  AlternateGlyphForms_EnumValue }?,
  198.   attribute GridAlignFirstLineOnly{  xsd:boolean }?,
  199.   attribute GridAlignment{  GridAlignment_EnumValue }?,
  200.   attribute GridGyoudori{  xsd:short }?,
  201.   attribute AutoTcy{  xsd:short }?,
  202.   attribute AutoTcyIncludeRoman{  xsd:boolean }?,
  203.   attribute KinsokuType{  KinsokuType_EnumValue }?,
  204.   attribute KinsokuHangType{  KinsokuHangTypes_EnumValue }?,
  205.   attribute BunriKinshi{  xsd:boolean }?,
  206.   attribute Rensuuji { xsd:boolean }?,
  207.   attribute RotateSingleByteCharacters{  xsd:boolean }?,
  208.   attribute LeadingModel{  LeadingModel_EnumValue }?,
  209.   attribute RubyAutoTcyDigits{  xsd:short }?,
  210.   attribute RubyAutoTcyIncludeRoman{  xsd:boolean }?,
  211.   attribute RubyAutoTcyAutoScale{  xsd:boolean }?,
  212.   attribute TreatIdeographicSpaceAsSpace{  xsd:boolean }?,
  213.   attribute AllowArbitraryHyphenation{  xsd:boolean }?,
  214.   attribute ParagraphGyoudori{  xsd:boolean }?,
  215.   attribute NumberingExpression{  xsd:string }?,
  216.   attribute BulletsTextAfter{  xsd:string }?,
  217.   attribute NumberingLevel{  xsd:int }?,
  218.   attribute NumberingContinue{  xsd:boolean }?,
  219.   attribute NumberingStartAt{  xsd:int }?,
  220.   attribute NumberingApplyRestartPolicy{  xsd:boolean }?,
  221.   attribute BulletsAlignment{  ListAlignment_EnumValue }?,
  222.   attribute NumberingAlignment{  ListAlignment_EnumValue }?,
  223.   attribute BulletsAndNumberingListType{  ListType_EnumValue }?,
  224.   element Properties {
  225.     element BasedOn{ 
  226.       (object_type, xsd:string ) |
  227.       (string_type, xsd:string )
  228.     }?&
  229.     element BalanceRaggedLines{ 
  230.       (bool_type, xsd:boolean ) |
  231.       (enum_type, BalanceLinesStyle_EnumValue )
  232.     }?&
  233.     element RuleAboveColor{ 
  234.       (object_type, xsd:string ) |
  235.       (string_type, xsd:string )
  236.     }?&
  237.     element RuleAboveGapColor{ 
  238.       (object_type, xsd:string ) |
  239.       (string_type, xsd:string )
  240.     }?&
  241.     element RuleAboveType{ 
  242.       (object_type, xsd:string ) |
  243.       (string_type, xsd:string )
  244.     }?&
  245.     element RuleBelowColor{ 
  246.       (object_type, xsd:string ) |
  247.       (string_type, xsd:string )
  248.     }?&
  249.     element RuleBelowGapColor{ 
  250.       (object_type, xsd:string ) |
  251.       (string_type, xsd:string )
  252.     }?&
  253.     element RuleBelowType{ 
  254.       (object_type, xsd:string ) |
  255.       (string_type, xsd:string )
  256.     }?&
  257.     element AllNestedStyles{  list_type, element ListItem{ 
  258.         record_type,
  259.         (
  260.         element AppliedCharacterStyle{  object_type, xsd:string }&
  261.         element Delimiter {
  262.           (string_type, xsd:string ) |
  263.           (enum_type, NestedStyleDelimiters_EnumValue )
  264.         }&
  265.         element Repetition { long_type, xsd:int }&
  266.         element Inclusive { bool_type, xsd:boolean })
  267.       }*
  268.     }?&
  269.     element TabList{  list_type, element ListItem{ 
  270.         record_type,
  271.         (
  272.         element Alignment { enum_type, TabStopAlignment_EnumValue }&
  273.         element AlignmentCharacter{  string_type, xsd:string }&
  274.         element Leader { string_type, xsd:string }&
  275.         element Position { unit_type, xsd:double })
  276.       }*
  277.     }?&
  278.     element AppliedFont{ 
  279.       (object_type, xsd:string ) |
  280.       (string_type, xsd:string )
  281.     }?&
  282.     element Leading {
  283.       (unit_type, xsd:double ) |
  284.       (enum_type, Leading_EnumValue )
  285.     }?&
  286.     element UnderlineColor{ 
  287.       (object_type, xsd:string ) |
  288.       (string_type, xsd:string )
  289.     }?&
  290.     element UnderlineGapColor{ 
  291.       (object_type, xsd:string ) |
  292.       (string_type, xsd:string )
  293.     }?&
  294.     element UnderlineType{ 
  295.       (object_type, xsd:string ) |
  296.       (string_type, xsd:string )
  297.     }?&
  298.     element StrikeThroughColor{ 
  299.       (object_type, xsd:string ) |
  300.       (string_type, xsd:string )
  301.     }?&
  302.     element StrikeThroughGapColor{ 
  303.       (object_type, xsd:string ) |
  304.       (string_type, xsd:string )
  305.     }?&
  306.     element StrikeThroughType{ 
  307.       (object_type, xsd:string ) |
  308.       (string_type, xsd:string )
  309.     }?&
  310.     element PreviewColor{ 
  311.       (InDesignUIColorType_TypeDef ) |
  312.       (enum_type, NothingEnum_EnumValue )
  313.     }?&
  314.     element KentenFillColor{ 
  315.       (object_type, xsd:string ) |
  316.       (string_type, xsd:string )
  317.     }?&
  318.     element KentenStrokeColor{ 
  319.       (object_type, xsd:string ) |
  320.       (string_type, xsd:string )
  321.     }?&
  322.     element KentenFont{ 
  323.       (object_type, xsd:string ) |
  324.       (string_type, xsd:string )
  325.     }?&
  326.     element KentenFontStyle{ 
  327.       (string_type, xsd:string ) |
  328.       (enum_type, NothingEnum_EnumValue )
  329.     }?&
  330.     element RubyFill{ 
  331.       (object_type, xsd:string ) |
  332.       (string_type, xsd:string )
  333.     }?&
  334.     element RubyStroke{ 
  335.       (object_type, xsd:string ) |
  336.       (string_type, xsd:string )
  337.     }?&
  338.     element RubyFont{ 
  339.       (object_type, xsd:string ) |
  340.       (string_type, xsd:string )
  341.     }?&
  342.     element RubyFontStyle{ 
  343.       (string_type, xsd:string ) |
  344.       (enum_type, NothingEnum_EnumValue )
  345.     }?&
  346.     element KinsokuSet{ 
  347.       (object_type, xsd:string ) |
  348.       (enum_type, KinsokuSet_EnumValue ) |
  349.       (string_type, xsd:string )
  350.     }?&
  351.     element Mojikumi {
  352.       (object_type, xsd:string ) |
  353.       (string_type, xsd:string ) |
  354.       (enum_type, MojikumiTableDefaults_EnumValue )
  355.     }?&
  356.     element BulletsFont{ 
  357.       (object_type, xsd:string ) |
  358.       (string_type, xsd:string ) |
  359.       (enum_type, AutoEnum_EnumValue )
  360.     }?&
  361.     element BulletsFontStyle{ 
  362.       (string_type, xsd:string ) |
  363.       (enum_type, NothingEnum_EnumValue ) |
  364.       (enum_type, AutoEnum_EnumValue )
  365.     }?&
  366.     element BulletsCharacterStyle{ 
  367.       (object_type, xsd:string ) |
  368.       (string_type, xsd:string )
  369.     }?&
  370.     element NumberingCharacterStyle{ 
  371.       (object_type, xsd:string ) |
  372.       (string_type, xsd:string )
  373.     }?&
  374.     element AppliedNumberingList{ 
  375.       (object_type, xsd:string ) |
  376.       (string_type, xsd:string )
  377.     }?&
  378.     element NumberingFormat{ 
  379.       (enum_type, NumberingStyle_EnumValue ) |
  380.       (string_type, xsd:string )
  381.     }?&
  382.     element NumberingRestartPolicies{ 
  383.       attribute RestartPolicy{  RestartPolicy_EnumValue },
  384.       attribute LowerLevel{  xsd:int },
  385.       attribute UpperLevel{  xsd:int }
  386.     }?&
  387.     element BulletChar{ 
  388.       attribute BulletCharacterType{  BulletCharacterType_EnumValue },
  389.       attribute BulletCharacterValue{  xsd:int }
  390.     }?&
  391.     element Label { element KeyValuePair{  KeyValuePair_TypeDef }*
  392.     }?
  393.   }
  394.   ?
  395.   ,
  396. (
  397.   NestedLineStyle_Object*&
  398.   NestedGrepStyle_Object*
  399. )
  400. }

<ParagraphStyle>エレメントのほとんどの属性とエレメントは、他のテキスト関連エレメントと共有されています。「10.4.6 共通のTextプロパティ」を参照してください。下の表は、<ParagraphStyle>エレメントだけが持つ属性とエレメントです。

表113 属性としてのParagraphStyleプロパティ
名前 必須 説明
Imported boolean trueのとき、段落スタイルは他のファイルから読み込まれた
KeyboardShortcut string キーボードショートカット
NextStyle string 次の段落に割り当てるスタイル。ユニークなID。(<ParagraphStyle>エレメントのSelf属性の値)段落の最後でEnterかReturnを押してできた次の段落に対して割り当てるスタイル
表114 エレメントとしてのParagraphStyleプロパティ
名前 必須 説明
BasedOn string 基準となる段落スタイル。ユニークなID(<ParagraphStyle>エレメントのSelf属性値)か、デフォルトの[段落スタイルなし]への参照($ID/[No paragraph style])
IDMLの例78 BasedOnを[段落スタイルなし]にするとき
  1. <ParagraphStyle Self="ParagraphStyle\ Code" Name="Code" Imported="false" NextStyle=" ParagraphStyle\ Code">
  2.   <Properties>
  3.     <BasedOn type="string">$ID/[No paragraph style]</BasedOn>
  4.   </Properties>
  5. </ParagraphStyle>
IDMLの例79 BasedOnを他のスタイルにするとき
  1. <ParagraphStyle Self="ParagraphStyle\ ListStyles% 3aListFirst" Name="ListFirst" Imported="false" NextStyle=" ParagraphStyle\ ListStyles% 3aList">
  2.   <Properties>
  3.     <BasedOn type="object">ParagraphStyle\ ListStyles% 3aList</ BasedOn>
  4.   </Properties>
  5. </ParagraphStyle>
Personal tools