]> git.lyx.org Git - features.git/commitdiff
DocBook: implement the Hanging and Initials modules.
authorThibaut Cuvelier <thibaut@tcuvelier.be>
Tue, 1 Aug 2023 01:28:15 +0000 (21:28 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Tue, 1 Aug 2023 01:28:42 +0000 (21:28 -0400)
lib/layouts/hanging.module
lib/layouts/initials.module
lib/layouts/theorems.inc

index 7de86aa8c58b1c03380c0103328ef877cd381855..55c1a2e2d44660f4677e067e7818cb3eaaa55b4d 100644 (file)
@@ -48,4 +48,6 @@ Style Hanging
       \everypar={\hangpara}}{\par}
     }
   EndPreamble
+  DocBookTag             para
+  DocBookAttr            role='hanging'
 End
index 87f19e56e341799c5a2d1b2e829eca5df75deb90..2a39c07bb67b57347e5640ceb901f74968cca25e 100644 (file)
@@ -21,7 +21,9 @@ InsetLayout Flex:Initial
          Size          Large
        EndFont
        Requires        lettrine
-       ResetsFont true
+       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
 
index b725b1a2ee1e67bad8bb4f0a7d6083b0de841446..60338825701e09d4e846a14be9917ba882532ba3 100644 (file)
@@ -236,7 +236,7 @@ Style Example
        BabelPreamble
                \addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
        EndBabelPreamble
-       DocBookWrapperTag     informalexample
+       DocBookWrapperTag     example
        DocBookTag            para
        DocBookAttr           ""
 End