commit d8e097686a8eae8f43b0f396b3ef9736911a94c8
Author: Thibaut Cuvelier <[email protected]>
Date: Sun Nov 1 02:51:49 2020 +0100
DocBook: implement Hollywood layout.
---
development/autotests/invertedTests | 3 +++
lib/layouts/hollywood.layout | 15 +++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/development/autotests/invertedTests
b/development/autotests/invertedTests
index f33c470..99cb831 100644
--- a/development/autotests/invertedTests
+++ b/development/autotests/invertedTests
@@ -440,6 +440,9 @@
export/templates/Books/Springer_Monographs_%28svmono%29/.*_docbook5
export/export/docbook/svmono_docbook5
# - scrbook with too many customisations.
export/templates/Theses/PhD_Thesis/.*_docbook5
+# - Hollywood, too much formatting in elements DocBook does not allow to be
formatted (like address).
+export/templates/Scripts/Hollywood_docbook5
+export/export/docbook/Hollywood_docbook5
# - Branches may cause problems (especially when mixing with parts that must
go in <info>).
export/export/latex/languages/supported-languages_docbook5
diff --git a/lib/layouts/hollywood.layout b/lib/layouts/hollywood.layout
index 536b564..da5a85e 100644
--- a/lib/layouts/hollywood.layout
+++ b/lib/layouts/hollywood.layout
@@ -222,6 +222,8 @@ Style Narrative
RightMargin MMMMM
Align Left
LabelType No_Label
+ DocBookTag para
+ DocBookAttr role='narrative'
End
@@ -294,6 +296,8 @@ Style General
Align Left
AlignPossible Block, Left, Right, Center
Labeltype No_Label
+ DocBookTag para
+ DocBookAttr role='general'
End
@@ -307,6 +311,15 @@ Style Scene
TopSep 0.25
Align Left
LabelType No_Label
+ # This style is a NOT_IN_TOC-level section, hence it cannot be output
as a real section in DocBook.
+ DocBookTag bridgehead
+ DocBookAttr renderas='sect1'
+ DocBookTagType paragraph
+ # DocBookTag title
+ # DocBookTagType paragraph
+ # DocBookSection true
+ # DocBookSectionTag section
+ # DocBookInInfo maybe
End
@@ -320,6 +333,8 @@ Style Right_Address
ParSep 1.5
Align Left
AlignPossible Left, Right
+ DocBookTag address
+ DocBookInInfo always
End
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs