DocBook: implement chess.

This commit is contained in:
Thibaut Cuvelier 2020-11-12 04:45:02 +01:00
parent 3963ef0891
commit 03a8208dc5
3 changed files with 40 additions and 2 deletions

View File

@ -472,10 +472,10 @@ export/doc(|/de|/es|/fr|/ja)/EmbeddedObjects_docbook5
export/doc(|/de|/es|/fr|/ja|/ru)/Math_docbook5 export/doc(|/de|/es|/fr|/ja|/ru)/Math_docbook5
# - UserGuide: formula in inline tag, use of fancyhdr # - UserGuide: formula in inline tag, use of fancyhdr
export/doc(|/de|/es|/fr|/ja|/ru)/UserGuide_docbook5 export/doc(|/de|/es|/fr|/ja|/ru)/UserGuide_docbook5
# - Customization: double inlines (code within code, typically). # - Double inlines (code within code, personname within personname, emphasis within date, etc.).
export/doc/(es|fr|ja)/Customization_docbook5 export/doc/(es|fr|ja)/Customization_docbook5
# - Tutorial: double inlines (personname within personname).
export/doc/gl/Tutorial_docbook5 export/doc/gl/Tutorial_docbook5
export/examples/Articles/Chess/Game_2_docbook5
# - Bicaption module would require some C++ implementation. # - Bicaption module would require some C++ implementation.
export/examples(|/de|/fr|/ja)/Modules/Multilingual_Captions_docbook5 export/examples(|/de|/fr|/ja)/Modules/Multilingual_Captions_docbook5

View File

@ -53,6 +53,8 @@ Style Mainline
TextFont TextFont
Color blue Color blue
EndFont EndFont
DocBookTag para
DocBookAttr role='mainline'
End End
@ -65,6 +67,8 @@ Style Variation
LatexName lyxvariation[1] LatexName lyxvariation[1]
LabelString "Variation:" LabelString "Variation:"
LeftMargin MMMMMMMMM LeftMargin MMMMMMMMM
DocBookTag para
DocBookAttr role='variation'
End End
@ -74,6 +78,8 @@ Style SubVariation
LatexName lyxvariation[2] LatexName lyxvariation[2]
LabelString "Subvariation:" LabelString "Subvariation:"
LeftMargin MMMMMMMMMMMM LeftMargin MMMMMMMMMMMM
DocBookTag para
DocBookAttr role='subvariation'
End End
@ -83,6 +89,8 @@ Style SubVariation2
LatexName lyxvariation[3] LatexName lyxvariation[3]
LabelString "Subvariation(2):" LabelString "Subvariation(2):"
LeftMargin MMMMMMMMMMMMMMM LeftMargin MMMMMMMMMMMMMMM
DocBookTag para
DocBookAttr role='subsubvariation'
End End
@ -92,6 +100,8 @@ Style SubVariation3
LatexName lyxvariation[4] LatexName lyxvariation[4]
LabelString "Subvariation(3):" LabelString "Subvariation(3):"
LeftMargin MMMMMMMMMMMMMMMMMM LeftMargin MMMMMMMMMMMMMMMMMM
DocBookTag para
DocBookAttr role='subsubsubvariation'
End End
@ -101,6 +111,8 @@ Style SubVariation4
LatexName lyxvariation[5] LatexName lyxvariation[5]
LabelString "Subvariation(4):" LabelString "Subvariation(4):"
LeftMargin MMMMMMMMMMMMMMMMMMMMM LeftMargin MMMMMMMMMMMMMMMMMMMMM
DocBookTag para
DocBookAttr role='subsubsubsubvariation'
End End
@ -110,6 +122,8 @@ Style SubVariation5
LatexName lyxvariation[6] LatexName lyxvariation[6]
LabelString "Subvariation(5):" LabelString "Subvariation(5):"
LeftMargin MMMMMMMMMMMMMMMMMMMMMMMM LeftMargin MMMMMMMMMMMMMMMMMMMMMMMM
DocBookTag para
DocBookAttr role='subsubsubsubsubvariation'
End End
@ -121,6 +135,8 @@ Style HideMoves
LeftMargin "HideMoves:M" LeftMargin "HideMoves:M"
LabelSep M LabelSep M
LabelString "HideMoves:" LabelString "HideMoves:"
DocBookTag para
DocBookAttr role='hide-moves'
End End
@ -134,6 +150,8 @@ Style ChessBoard
LabelFont LabelFont
Color red Color red
EndFont EndFont
DocBookTag para
DocBookAttr role='chess-board'
End End
@ -148,6 +166,8 @@ Style BoardCentered
LabelFont LabelFont
Color red Color red
EndFont EndFont
DocBookTag para
DocBookAttr role='board-centered'
End End
@ -168,6 +188,8 @@ Style HighLight
Series Bold Series Bold
Color black Color black
EndFont EndFont
DocBookTag para
DocBookAttr role='highlights'
End End
@ -179,6 +201,8 @@ Style Arrow
LatexName lyxprintarrow LatexName lyxprintarrow
LeftMargin MMMMMMMM LeftMargin MMMMMMMM
LabelString "Arrow:" LabelString "Arrow:"
DocBookTag para
DocBookAttr role='arrow'
End End
@ -190,6 +214,8 @@ Style KnightMove
LatexName lyxknightmove LatexName lyxknightmove
LeftMargin MMMMMMMM LeftMargin MMMMMMMM
LabelString "KnightMove:" LabelString "KnightMove:"
DocBookTag para
DocBookAttr role='knight-move'
End End
Input article.layout Input article.layout

View File

@ -38,6 +38,8 @@ Style NewChessGame
EndFont EndFont
EndArgument EndArgument
Requires xskak Requires xskak
DocBookTag para
DocBookAttr role='new-chess-game'
End End
@ -74,12 +76,16 @@ InsetLayout Flex:Mainline
EndFont EndFont
EndArgument EndArgument
Requires xskak Requires xskak
DocBookTag para
DocBookAttr role='mainline'
End End
InsetLayout Flex:Variation InsetLayout Flex:Variation
CopyStyle Flex:Mainline CopyStyle Flex:Mainline
LatexName variation LatexName variation
LabelString Variation LabelString Variation
DocBookTag para
DocBookAttr role='variation'
End End
@ -101,6 +107,8 @@ InsetLayout Flex:SetChessBoard
Color blue Color blue
EndFont EndFont
Requires chessboard Requires chessboard
DocBookTag para
DocBookAttr role='set-chess-board'
End End
@ -115,6 +123,8 @@ InsetLayout Flex:SetBoardStoreStyle
AutoInsert true AutoInsert true
Decoration conglomerate Decoration conglomerate
EndArgument EndArgument
DocBookTag para
DocBookAttr role='set-board-store-style'
End End
@ -136,5 +146,7 @@ InsetLayout Flex:ChessBoard
EndFont EndFont
EndArgument EndArgument
Requires chessboard Requires chessboard
DocBookTag para
DocBookAttr role='chess-board'
End End