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}
}
EndPreamble
DocBookTag para
DocBookAttr role='hanging'
End

View File

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

View File

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