Migrate the previous DocBook layouts so the old documents can still be generated with the new implementation.

The output WILL change for these documents, as the output is updated from DocBook 4 to DocBook 5.
This commit is contained in:
Thibaut Cuvelier 2019-05-10 02:20:20 +02:00 committed by Pavel Sanda
parent 1ec87298ff
commit 67414563ac
14 changed files with 34 additions and 489 deletions

View File

@ -1,25 +0,0 @@
# Textclass definition file for docbook.
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
# This is the counterpart of lyxmacros.inc
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 81
Input lyxmacros.inc
Style Code
CopyStyle LyX-Code
LatexType Environment
LatexName screen
PassThru 1
ParbreakIsNewline 1
End
Style LyX-Code
ObsoletedBy Code
End
NoStyle LyX-Code
NoStyle Address
NoStyle Right_Address

View File

@ -2,12 +2,12 @@
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
# Character Styles definition
Format 81
Format 82
InsetLayout Flex:Filename
LyXType element
LabelString Filename
LatexType Command
LatexName filename
DocBookTag filename
Font
Family Typewriter
EndFont
@ -19,11 +19,10 @@ InsetLayout Flex:Filename
End
InsetLayout Flex:Directory
LyXType element
LabelString Directory
LatexType Command
LatexName filename
LatexParam "class=<directory>"
DocBookTag filename
DocBookAttr "class='directory'"
Font
Family Typewriter
EndFont
@ -35,10 +34,9 @@ InsetLayout Flex:Directory
End
InsetLayout Flex:Firstname
LyXType element
LabelString Firstname
LatexType Command
LatexName firstname
DocBookTag firstname
LabelFont
Shape Up
Color blue
@ -47,10 +45,9 @@ InsetLayout Flex:Firstname
End
InsetLayout Flex:Surname
LyXType element
LabelString Surname
LatexType Command
LatexName surname
DocBookTag surname
LabelFont
Shape Up
Color blue
@ -59,10 +56,9 @@ InsetLayout Flex:Surname
End
InsetLayout Flex:Literal
LyXType element
LabelString Literal
LatexType Command
LatexName literal
DocBookTag literal
Font
Family Typewriter
EndFont
@ -74,10 +70,9 @@ InsetLayout Flex:Literal
End
InsetLayout Flex:Email
LyXType element
LabelString Email
LatexType Command
LatexName email
DocBookTag email
Font
Family Typewriter
EndFont
@ -89,10 +84,9 @@ InsetLayout Flex:Email
End
InsetLayout Flex:KeyCombo
LyXType element
LabelString KeyCombo
LatexType Command
LatexName keycombo
DocBookTag keycombo
Font
Family Typewriter
EndFont
@ -104,10 +98,9 @@ InsetLayout Flex:KeyCombo
End
InsetLayout Flex:KeyCap
LyXType element
LabelString KeyCap
LatexType Command
LatexName keycap
DocBookTag keycap
Font
Family Typewriter
EndFont
@ -119,10 +112,9 @@ InsetLayout Flex:KeyCap
End
InsetLayout Flex:GuiMenu
LyXType element
LabelString GuiMenu
LatexType Command
LatexName guimenu
DocBookTag guimenu
Font
Family Sans
EndFont
@ -134,10 +126,9 @@ InsetLayout Flex:GuiMenu
End
InsetLayout Flex:GuiMenuItem
LyXType element
LabelString GuiMenuItem
LatexType Command
LatexName guimenuitem
DocBookTag guimenuitem
Font
Family Sans
EndFont
@ -149,10 +140,9 @@ InsetLayout Flex:GuiMenuItem
End
InsetLayout Flex:GuiButton
LyXType element
LabelString GuiButton
LatexType Command
LatexName guibutton
DocBookTag guibutton
Font
Family Sans
EndFont
@ -164,10 +154,9 @@ InsetLayout Flex:GuiButton
End
InsetLayout Flex:MenuChoice
LyXType element
LabelString MenuChoice
LatexType Command
LatexName menuchoice
DocBookTag menuchoice
Font
Family Sans
EndFont

View File

@ -1,44 +0,0 @@
# Textclass definition file for docbook.
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
# This file is the counterpart of stdclass.inc
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 81
OutputType docbook
Columns 1
Sides 1
SecNumDepth 3
TocDepth 3
DefaultStyle Standard
ClassOptions
# Header "PUBLIC &quot;-//OASIS//DTD DocBook V4.3//EN&quot;"
Other ".-"
End
Style Standard
Category MainText
Margin Static
LatexType Paragraph
LatexName para
ParIndent MM
ParSkip 0.4
Align Block
LabelType No_Label
End
Input stdinsets.inc
Input db_stdcharstyles.inc
Input db_stdlists.inc
Input db_stdsections.inc
Input db_stdstarsections.inc
Input db_stdtitle.inc
Input db_stdstruct.inc
Input db_lyxmacros.inc
Input db_stdlayouts.inc
Input stdcounters.inc
Input db_stdcounters.inc
Input stdfloats.inc

View File

@ -1,32 +0,0 @@
# Author : José Matos <jamatos@lyx.org>
# Martin Vermeer <martin.vermeer@hut.fi>
# This include file contains all the counters that are defined as standard
# in Docbook LyX layouts.
Format 81
Counter sect1
GuiName "Section Level 1"
Within chapter
End
Counter sect2
GuiName "Section Level 2"
Within sect1
End
Counter sect3
GuiName "Section Level 3"
Within sect2
End
Counter sect4
GuiName "Section Level 4"
Within sect3
End
Counter sect5
GuiName "Section Level 5"
Within sect4
End

View File

@ -1,33 +0,0 @@
# Textclass definition file for docbook.
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
# This is the counterpart of stdlayouts.inc
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 81
Input stdlayouts.inc
Style Literal
LatexType Environment
LatexName literallayout
PassThru 1
ParbreakIsNewline 1
End
Style Quotation
LatexType Environment
LatexName blockquote
InnerTag para
End
# Quote should be an inline element
NoStyle Quote
NoStyle Verse
Style SGML
ObsoletedBy Standard
End

View File

@ -1,36 +0,0 @@
# Textclass definition file for docbook.
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
# This is the counterpart of stdlists.inc
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 81
Input stdlists.inc
Style Itemize
LatexType Item_Environment
LatexName itemizedlist
ItemTag listitem
End
Style Enumerate
LatexType Item_Environment
LatexName orderedlist
ItemTag listitem
End
Style Description
LatexType Item_environment
LatexName variablelist
InnerTag varlistentry
LabelTag term
ItemTag listitem
End
# maybe List is the same as simplelist (I need to check it).
NoStyle List

View File

@ -1,66 +0,0 @@
# Textclass definition file for docbook.
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
# Modified by Martin Vermeer <martin.vermeer@hut.fi>
# This file is the counterpart of stdsections.inc
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 81
Input stdsections.inc
Style Part
LatexType Command
LatexName part
InnerTag "title"
CommandDepth 0
End
Style Chapter
LatexType Command
LatexName chapter
InnerTag "title"
CommandDepth 1
End
Style Section
LatexType Command
LatexName sect1
InnerTag "title"
CommandDepth 2
End
Style Subsection
LatexType Command
LatexName sect2
InnerTag "title"
CommandDepth 3
End
Style Subsubsection
LatexType Command
LatexName sect3
InnerTag "title"
CommandDepth 4
End
Style Paragraph
LatexType Command
LatexName sect4
InnerTag "title"
CommandDepth 5
End
Style Subparagraph
LatexType Command
LatexName sect5
InnerTag "title"
CommandDepth 6
End

View File

@ -3,91 +3,6 @@
# Transposed by Pascal André <andre@via.ecp.fr>
# Heavily modifed and enhanced by several developers.
# This include files contains all non numbered versions of the
# sectioning-related commands that are useful for article-like
# document classes, but not for letters. It should be Input after
# modifying the style of the regular sectioning layouts.
Format 81
Style Part*
CopyStyle Part
Margin Static
LatexName bridgehead
LatexType Paragraph
InnerTag "!-- --"
LabelType No_Label
LatexParam renderas="part"
End
Style Chapter*
CopyStyle Chapter
Margin Static
LatexType Paragraph
InnerTag "!-- --"
LatexName bridgehead
LabelType No_Label
ResetArgs 1
LatexParam renderas="chapter"
End
Style Section*
CopyStyle Section
Margin Static
LatexName bridgehead
LatexType Paragraph
InnerTag "!-- --"
LabelType No_Label
ResetArgs 1
LatexParam renderas="sect1"
End
Style Subsection*
CopyStyle Subsection
Margin Static
LatexName bridgehead
LatexType Paragraph
InnerTag "!-- --"
LabelType No_Label
ResetArgs 1
LatexParam renderas="sect2"
End
Style Subsubsection*
CopyStyle Subsubsection
Margin Static
LatexName bridgehead
LatexType Paragraph
InnerTag "!-- --"
LabelType No_Label
ResetArgs 1
LatexParam renderas="sect3"
End
Style Paragraph*
CopyStyle Paragraph
Margin Static
LatexName bridgehead
LatexType Paragraph
InnerTag "!-- --"
LabelType No_Label
ResetArgs 1
LatexParam renderas="sect4"
End
Style Subparagraph*
CopyStyle Subparagraph
Margin Static
LatexName bridgehead
LatexType Paragraph
InnerTag "!-- --"
LabelType No_Label
ResetArgs 1
LatexParam renderas="sect5"
End
Format 82
Input stdstarsections.inc

View File

@ -1,17 +0,0 @@
# Textclass definition file for docbook.
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
# This file is the counterpart of stdstruct.inc
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 81
Input stdstruct.inc
Style Abstract
LatexType Environment
LatexName abstract
InnerTag para
End
NoStyle Bibliography

View File

@ -1,100 +0,0 @@
# Textclass definition file for docbook.
# Author : José Abílio Oliveira Matos <jamatos@lyx.org>
# Modified Martin Vermeer <martin.vermeer@hut.fi>
#
# This file is the counterpart of stdstyle.inc
# It is desirable, as far as possible, to have the same look and feel for
# related layouts in latex and docbook.
Format 81
Input stdtitle.inc
Style Title
LatexType Command
LatexName articleinfo
CommandDepth 2
InnerTag title
End
Style Author
LatexType Environment
LatexName author
End
Style Authorgroup
CopyStyle Author
LatexType Environment
LatexName authorgroup
InnerTag author
End
Style Date
LatexType Paragraph
LatexName date
Align Center
AlignPossible Left,Center
End
Style RevisionHistory
Margin Static
LatexType Command
LatexName revhistory
CommandDepth 3
InnerTag "!-- --"
LeftMargin MMM
RightMargin MMM
ParIndent MM
TopSep 0.7
BottomSep 0
ParSep 0
Align Block
KeepEmpty 1
LabelType Centered
LabelString "Revision History"
LabelBottomSep 0.5
End
Style Revision
Margin Dynamic
LatexType Command
LatexName revision
CommandDepth 4
InnerTag revnumber
LabelSep xxx
ParSkip 0.4
TopSep 0.9
BottomSep 0.5
ParSep 0.5
Align Block
End
Style RevisionRemark
Margin Static
LatexType Paragraph
InTitle 1
LatexName revremark
LabelSep xxx
ParIndent MM
ParSkip 0.0
TopSep 0.0
BottomSep 0.0
ParSep 1
Align Block
LabelType No_Label
End
Style FirstName
ObsoletedBy Standard
End
Style Surname
ObsoletedBy Standard
End

View File

@ -1,16 +1,18 @@
#% Do not delete the line below; configure depends on this
# \DeclareDocBookClass[book]{DocBook Book (SGML)}
# \DeclareDocBookClass[book]{DocBook Book (XML)}
# \DeclareCategory{Books (DocBook)}
# DocBook textclass definition file.
# Author : Jose' Matos <jamatos@lyx.org>
# hacked for books: Luc Abom <luc@abom.com>
Format 81
Format 82
Input report
Input db_stdclass.inc
DocBookRoot book
DocBookForceAbstract true
Style Title
LatexType Command
LatexName bookinfo
CommandDepth 1
End

View File

@ -1,15 +1,18 @@
#% Do not delete the line below; configure depends on this
# \DeclareDocBookClass[chapter]{DocBook Chapter (SGML)}
# \DeclareDocBookClass[chapter]{DocBook Chapter (XML)}
# \DeclareCategory{Books (DocBook)}
# DocBook textclass definition file.
# Author : Jose' Matos <jamatos@lyx.org>
Format 81
Format 82
Input db_stdclass.inc
SecNumDepth 2
TocDepth 2
DocBookRoot chapter
Style Title
LatexType Command
LatexName "!-- --"
CommandDepth 2
End

View File

@ -1,15 +1,18 @@
#% Do not delete the line below; configure depends on this
# \DeclareDocBookClass[section]{DocBook Section (SGML)}
# \DeclareDocBookClass[section]{DocBook Section (XML)}
# \DeclareCategory{Books (DocBook)}
# DocBook textclass definition file.
# Author : Jose' Matos <jamatos@lyx.org>
Format 81
Format 82
Input db_stdclass.inc
SecNumDepth 3
TocDepth 3
DocBookRoot section
Style Title
LatexType Command
LatexName "!-- --"
CommandDepth 3
End

View File

@ -1,14 +0,0 @@
#% Do not delete the line below; configure depends on this
# \DeclareDocBookClass[article]{DocBook Article (SGML)}
# \DeclareCategory{Articles (DocBook)}
# DocBook textclass definition file.
# Author : Jose' Matos <jamatos@lyx.org>
Format 81
Input db_stdclass.inc
# Exclude higher, or equal, sections:
NoStyle Part
NoCounter part
NoStyle Chapter
NoCounter chapter