DocBook: implement the Hanging and Initials modules.

This commit is contained in:
Thibaut Cuvelier 2023-07-31 21:28:15 -04:00 committed by Richard Kimberly Heck
parent d1398a5ba2
commit 3112728a58
3 changed files with 15 additions and 2 deletions

View File

@ -48,4 +48,6 @@ Style Hanging
\everypar={\hangpara}}{\par} \everypar={\hangpara}}{\par}
} }
EndPreamble EndPreamble
DocBookTag para
DocBookAttr role='hanging'
End End

View File

@ -21,7 +21,9 @@ InsetLayout Flex:Initial
Size Large Size Large
EndFont EndFont
Requires lettrine Requires lettrine
ResetsFont true ResetsFont true
DocBookTag para
DocBookAttr role='hanging'
End End
Style Initial Style Initial
@ -34,16 +36,23 @@ Style Initial
Argument 1 Argument 1
LabelString "Options" LabelString "Options"
Tooltip "Option(s) for the initial" Tooltip "Option(s) for the initial"
DocBookTag NONE
EndArgument EndArgument
Argument 2 Argument 2
Mandatory 1 Mandatory 1
LabelString "Initial" LabelString "Initial"
Tooltip "Initial letter(s)" Tooltip "Initial letter(s)"
DocBookTag phrase
DocBookAttr role='initial'
DocBookTagType inline
EndArgument EndArgument
Argument 3 Argument 3
Mandatory 1 Mandatory 1
LabelString "Rest of Initial" LabelString "Rest of Initial"
Tooltip "Rest of initial word or text" Tooltip "Rest of initial word or text"
DocBookTag phrase
DocBookAttr role='rest-of-initial'
DocBookTagType inline
EndArgument EndArgument
LabelSep x LabelSep x
ParIndent MMM ParIndent MMM
@ -56,5 +65,7 @@ Style Initial
LabelFont LabelFont
Series Bold Series Bold
EndFont EndFont
DocBookTag para
DocBookAttr role='paragraph-with-initial'
End End

View File

@ -236,7 +236,7 @@ Style Example
BabelPreamble BabelPreamble
\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}} \addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
EndBabelPreamble EndBabelPreamble
DocBookWrapperTag informalexample DocBookWrapperTag example
DocBookTag para DocBookTag para
DocBookAttr "" DocBookAttr ""
End End