[LyX/master] DocBook: implement the Hanging and Initials modules.

Richard Kimberly Heck rikiheck at lyx.org
Tue Aug 1 00:14:23 UTC 2023


commit 3112728a585d96ba376a4a63e665ab3077dbde78
Author: Thibaut Cuvelier <thibaut at tcuvelier.be>
Date:   Mon Jul 31 21:28:15 2023 -0400

    DocBook: implement the Hanging and Initials modules.
---
 lib/layouts/hanging.module  |    2 ++
 lib/layouts/initials.module |   13 ++++++++++++-
 lib/layouts/theorems.inc    |    2 +-
 3 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/lib/layouts/hanging.module b/lib/layouts/hanging.module
index 7de86aa..55c1a2e 100644
--- a/lib/layouts/hanging.module
+++ b/lib/layouts/hanging.module
@@ -48,4 +48,6 @@ Style Hanging
       \everypar={\hangpara}}{\par}
     }
   EndPreamble
+  DocBookTag             para
+  DocBookAttr            role='hanging'
 End
diff --git a/lib/layouts/initials.module b/lib/layouts/initials.module
index 87f19e5..2a39c07 100644
--- a/lib/layouts/initials.module
+++ b/lib/layouts/initials.module
@@ -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
 
diff --git a/lib/layouts/theorems.inc b/lib/layouts/theorems.inc
index b725b1a..6033882 100644
--- a/lib/layouts/theorems.inc
+++ b/lib/layouts/theorems.inc
@@ -236,7 +236,7 @@ Style Example
 	BabelPreamble
 		\addto\captions$$lang{\renewcommand{\examplename}{_(Example)}}
 	EndBabelPreamble
-	DocBookWrapperTag     informalexample
+	DocBookWrapperTag     example
 	DocBookTag            para
 	DocBookAttr           ""
 End


More information about the lyx-cvs mailing list