Translation:Story Schema
From IDMLWiki
10.4.7 ストーリーのスキーマ
<Story>エレメントの属性とエレメントは、ストーリーのテキストコンテンツとフォーマットを設定します。InDesignのストーリーは、テキストフレームやグラフィックフレームなどのページオブジェクト、注釈、脚注、ハイパーリンクと他のオブジェクトを含むことができます。<Story>エレメントに含まれるものも、InDesignドキュメントのストーリー内にあるものと同じです。
ストーリー用にスキーマで設定されるほとんどの属性とエレメントは、フォーマットのデフォルトとプリファレンスに関するものです。例えばAppliedParagraphStyle属性、AppliedCharacterStyle属性やFontStyle属性は、ストーリー内のテキストのフォーマットを設定します。これらの属性は、ストーリー内の子エレメントの、関連する属性(例えば<ParagraphStyleRange>エレメント)でオーバーライドすることもできます。
スキーマの例42 ストーリーのスキーマ
Story_Object = element Story {
attribute Self { xsd:string },
attribute AppliedTOCStyle{ 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 AppliedParagraphStyle{ xsd:string }?,
attribute AppliedCharacterStyle{ xsd:string }?,
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 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="0" maxInclusive="1000"} }?,
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 TrackChanges{ xsd:boolean }?,
attribute StoryTitle{ xsd:string }?,
attribute AppliedNamedGrid{ xsd:string }?,
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 RubyFlag{ xsd:int }?,
attribute RubyString{ xsd:string }?,
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 BulletsAndNumberingListType{ ListType_EnumValue }?,
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 }?,
element Properties {element ExcelImportPreferences{ list_type, element ListItem{
(enum_type, AlignmentStyleOptions_EnumValue ) |
(long_type, xsd:int ) |
(bool_type, xsd:boolean ) |
(enum_type, TableFormattingOptions_EnumValue ) |
(string_type, xsd:string )
}*
}?&
element WordRTFImportPreferences{ list_type, element ListItem{
(bool_type, xsd:boolean ) |
(enum_type, ConvertPageBreaks_EnumValue ) |
(enum_type, ConvertTablesOptions_EnumValue ) |
(enum_type, ResolveStyleClash_EnumValue ) |
(long_type, xsd:int )
}*
}?&
element TextImportPreferences{ list_type, element ListItem{
(bool_type, xsd:boolean ) |
(long_type, xsd:int ) |
(enum_type, TextImportCharacterSet_EnumValue ) |
(enum_type, ImportPlatform_EnumValue ) |
(short_type, xsd:short )
}*
}?&
element StyleMappingPreferences{ list_type,
element ListItem{list_type, element ListItem{ string_type, xsd:string }*
}?,
element ListItem{list_type, element ListItem{ 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 AllLineStyles{ list_type, element ListItem{
record_type,(element AppliedCharacterStyle{ object_type, xsd:string }&
element LineCount{ long_type, xsd:int }&
element RepeatLast{ long_type, xsd:int })
}*
}?&
element AllGREPStyles{ list_type, element ListItem{
record_type,(element AppliedCharacterStyle{ object_type, xsd:string }&
element GrepExpression{ string_type, xsd:string })
}*
}?&
element OpenTypeFeatures{ list_type, element ListItem{
list_type,element ListItem{(string_type, xsd:string ) |
(long_type, xsd:int ) }?,
element ListItem{(string_type, xsd:string ) |
(long_type, xsd:int )
}}*
}?&
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 BulletChar{attribute BulletCharacterType{ BulletCharacterType_EnumValue }?,
attribute BulletCharacterValue{ xsd:int }
}?&
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 Label { element KeyValuePair{ KeyValuePair_TypeDef }*
}?
}?,(GridDataInformation_Object?,(StoryPreference_Object?&
MetadataPacketPreference_Object?&InCopyExportOption_Object?),
(GaijiOwnedItemObject_Object*&
Footnote_Object*&TextVariableInstance_Object*&ParagraphStyleRange_Object*&CharacterStyleRange_Object*&XMLElement_Object*&Table_Object*&Link_Object*&Change_Object*&Note_Object*&TextFrame_Object*&Oval_Object*&Rectangle_Object*&GraphicLine_Object*&Polygon_Object*&Group_Object*&EPSText_Object*&FormField_Object*&Button_Object*&HiddenText_Object*&element Content {text}*&
element Br {empty}*)
)}
属性で表されるStoryプロパティのほとんどは、Textプロパティと共通です。(「10.4.6 共通のTextプロパティ」参照)
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| AppliedNameGrid | string | 適用されるグリッドフォーマット | |
| AppliedTOCStyle | string | 適用される目次スタイル | |
| StoryTitle | string | ストーリーのタイトル | |
| TrackChanges | boolean | trueのとき、字送りの変更はオン |
エレメントで表されるStoryプロパティのほとんどは、Textプロパティと共通です。(「10.4.6 共通のTextプロパティ」参照)ストーリーは、複数のユニークなエレメントを含むこともできます。エレメントは下表の通りです。
| 名前 | 値 | 必須 | 説明 |
|---|---|---|---|
| ExcelImportPreference | ListItem | Excelファイルの読み込みオプションプロパティを設定する、ListItemエレメント。InDesignはこれらのプロパティを読み込んで、IDMLドキュメントの再現性を維持する。IDMLドキュメントにこれらのプロパティを含める必要はなし | |
| StyleMappingPreference | ListItem | タグ付きテキストの読み込みオプションプロパティを設定する、ListItemエレメント。InDesignはこれらのプロパティを読み込んで、IDMLドキュメントの再現性を維持する。IDMLドキュメントにこれらのプロパティを含める必要はなし | |
| TextImportPreference | ListItem | テキストファイルの読み込みオプションプロパティを設定する、ListItemエレメント。InDesignはこれらのプロパティを読み込んで、IDMLドキュメントの再現性を維持する。IDMLドキュメントにこれらのプロパティを含める必要はなし | |
| WordRTFImportPreference | ListItem | Microsoft WordおよびRTFの読み込みオプションの読み込みオプションプロパティを設定する、ListItemエレメント。InDesignはこれらのプロパティを読み込んで、IDMLドキュメントの再現性を維持する。IDMLドキュメントにこれらのプロパティを含める必要はなし |
