mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
DocBook: implement DIN-Brief.
This commit is contained in:
parent
d1a732f696
commit
d9d5bb9324
@ -451,6 +451,8 @@ export/templates/Letters/G-Brief_%28V._2%29_docbook5
|
|||||||
export/templates/Obsolete/G-Brief_%28V._1,_Obsolete%29/.*_docbook5
|
export/templates/Obsolete/G-Brief_%28V._1,_Obsolete%29/.*_docbook5
|
||||||
# - KOMA-Script Letter: too hard to output phone and fax numbers at the right place (need two levels of wrapping).
|
# - KOMA-Script Letter: too hard to output phone and fax numbers at the right place (need two levels of wrapping).
|
||||||
export/templates/Letters/KOMA-Script_Letter_%28V._2%29_docbook5
|
export/templates/Letters/KOMA-Script_Letter_%28V._2%29_docbook5
|
||||||
|
# - DIN-Brief: order of paragraphs cannot match valid DocBook.
|
||||||
|
export/templates/Letters/DIN-Brief_docbook5
|
||||||
# - Branches may cause problems (especially when mixing with parts that must go in <info>).
|
# - Branches may cause problems (especially when mixing with parts that must go in <info>).
|
||||||
export/export/latex/languages/supported-languages_docbook5
|
export/export/latex/languages/supported-languages_docbook5
|
||||||
|
|
||||||
|
@ -14,6 +14,8 @@
|
|||||||
# Modified by: Juergen Spitzmueller <spitz@lyx.org>
|
# Modified by: Juergen Spitzmueller <spitz@lyx.org>
|
||||||
# use English strings, localization is done by gettext!
|
# use English strings, localization is done by gettext!
|
||||||
|
|
||||||
|
# TODO: DocBook doesn't support several letters in the same file.
|
||||||
|
|
||||||
Format 85
|
Format 85
|
||||||
|
|
||||||
Input letter.layout
|
Input letter.layout
|
||||||
@ -28,7 +30,7 @@ EndPreamble
|
|||||||
# the LeftMargin is set to the probably longest string
|
# the LeftMargin is set to the probably longest string
|
||||||
# (no typo! the umlaut is delibarately omitted)
|
# (no typo! the umlaut is delibarately omitted)
|
||||||
Style DinBrief
|
Style DinBrief
|
||||||
Category Letter
|
Category Letter
|
||||||
LatexType Command
|
LatexType Command
|
||||||
Margin Static
|
Margin Static
|
||||||
LeftMargin "Rucksende-Adresse:"
|
LeftMargin "Rucksende-Adresse:"
|
||||||
@ -46,7 +48,7 @@ End
|
|||||||
|
|
||||||
Style Addresses
|
Style Addresses
|
||||||
CopyStyle DinBrief
|
CopyStyle DinBrief
|
||||||
Category "Postal Data"
|
Category "Postal Data"
|
||||||
End
|
End
|
||||||
|
|
||||||
# Open a new letter
|
# Open a new letter
|
||||||
@ -58,6 +60,11 @@ Style Send_To_Address
|
|||||||
KeepEmpty 1
|
KeepEmpty 1
|
||||||
BottomSep 0.1
|
BottomSep 0.1
|
||||||
LatexName letter
|
LatexName letter
|
||||||
|
DocBookTag NONE
|
||||||
|
DocBookWrapperTag address
|
||||||
|
DocBookWrapperAttr role='send-to-address'
|
||||||
|
DocBookWrapperMergeWithPrevious true
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
# Data Fields, placed according to DIN norm
|
# Data Fields, placed according to DIN norm
|
||||||
@ -73,6 +80,8 @@ Style My_Address
|
|||||||
KeepEmpty 1
|
KeepEmpty 1
|
||||||
BottomSep 0.5
|
BottomSep 0.5
|
||||||
AlignPossible Block, Left, Right, Center
|
AlignPossible Block, Left, Right, Center
|
||||||
|
DocBookTag address
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
# backaddress in address window
|
# backaddress in address window
|
||||||
@ -83,6 +92,10 @@ Style "Return address"
|
|||||||
TextFont
|
TextFont
|
||||||
Size Small
|
Size Small
|
||||||
EndFont
|
EndFont
|
||||||
|
DocBookTag NONE
|
||||||
|
DocBookWrapperTag address
|
||||||
|
DocBookWrapperAttr role='return-address'
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
# Printed above the address (e.g., Air Mail, Registered Mail)
|
# Printed above the address (e.g., Air Mail, Registered Mail)
|
||||||
@ -90,6 +103,13 @@ Style "Postal comment"
|
|||||||
CopyStyle Addresses
|
CopyStyle Addresses
|
||||||
LabelString "Postal Remark:"
|
LabelString "Postal Remark:"
|
||||||
LatexName postremark
|
LatexName postremark
|
||||||
|
DocBookTag otheraddr
|
||||||
|
DocBookAttr role='postal-comment'
|
||||||
|
DocBookTagType paragraph
|
||||||
|
DocBookWrapperTag address
|
||||||
|
DocBookWrapperAttr role='send-to-address'
|
||||||
|
DocBookWrapperMergeWithPrevious true
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
# Printed right next to Receiver (e.g., Urgent, Confidential)
|
# Printed right next to Receiver (e.g., Urgent, Confidential)
|
||||||
@ -97,24 +117,44 @@ Style Handling
|
|||||||
CopyStyle Addresses
|
CopyStyle Addresses
|
||||||
LabelString "Handling:"
|
LabelString "Handling:"
|
||||||
LatexName handling
|
LatexName handling
|
||||||
|
DocBookTag otheraddr
|
||||||
|
DocBookAttr role='handling'
|
||||||
|
DocBookTagType paragraph
|
||||||
|
DocBookWrapperTag address
|
||||||
|
DocBookWrapperAttr role='send-to-address'
|
||||||
|
DocBookWrapperMergeWithPrevious true
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
Style YourRef
|
Style YourRef
|
||||||
CopyStyle DinBrief
|
CopyStyle DinBrief
|
||||||
LabelString "Your ref.:"
|
LabelString "Your ref.:"
|
||||||
LatexName yourmail
|
LatexName yourmail
|
||||||
|
DocBookTag productnumber
|
||||||
|
DocBookAttr role='your-ref'
|
||||||
|
DocBookTagType paragraph
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
Style MyRef
|
Style MyRef
|
||||||
CopyStyle DinBrief
|
CopyStyle DinBrief
|
||||||
LabelString "Our ref.:"
|
LabelString "Our ref.:"
|
||||||
LatexName sign
|
LatexName sign
|
||||||
|
DocBookTag productnumber
|
||||||
|
DocBookAttr role='my-ref'
|
||||||
|
DocBookTagType paragraph
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
Style Writer
|
Style Writer
|
||||||
CopyStyle DinBrief
|
CopyStyle DinBrief
|
||||||
LabelString "Writer:"
|
LabelString "Writer:"
|
||||||
LatexName writer
|
LatexName writer
|
||||||
|
DocBookTag personname
|
||||||
|
DocBookTagType paragraph
|
||||||
|
DocBookWrapperTag othercredit
|
||||||
|
DocBookWrapperAttr class='typesetter'
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
Style Signature
|
Style Signature
|
||||||
@ -122,6 +162,8 @@ Style Signature
|
|||||||
Category Closings
|
Category Closings
|
||||||
LabelString "Signature:"
|
LabelString "Signature:"
|
||||||
LatexName signature
|
LatexName signature
|
||||||
|
DocBookTag para
|
||||||
|
DocBookAttr role='opening'
|
||||||
End
|
End
|
||||||
|
|
||||||
# contact info at the bottom of the first page
|
# contact info at the bottom of the first page
|
||||||
@ -130,6 +172,9 @@ Style Bottomtext
|
|||||||
LabelString "Bottom text:"
|
LabelString "Bottom text:"
|
||||||
LatexName bottomtext
|
LatexName bottomtext
|
||||||
AlignPossible Block, Left, Right, Center
|
AlignPossible Block, Left, Right, Center
|
||||||
|
# TODO: DocBook, this is typically within the <info> elements in LyX, but that makes no sense for DocBook.
|
||||||
|
DocBookTag para
|
||||||
|
DocBookAttr role='bottom-text'
|
||||||
End
|
End
|
||||||
|
|
||||||
# dinbrief's \phone has 2 args, area and number,
|
# dinbrief's \phone has 2 args, area and number,
|
||||||
@ -139,6 +184,11 @@ Style "Area code"
|
|||||||
CopyStyle DinBrief
|
CopyStyle DinBrief
|
||||||
LabelString "Area Code:"
|
LabelString "Area Code:"
|
||||||
LatexName "renewcommand{\areacode}"
|
LatexName "renewcommand{\areacode}"
|
||||||
|
# TODO: should be in <address>, but too far away from these paragraphs.
|
||||||
|
DocBookTag phone
|
||||||
|
DocBookAttr role='area-code'
|
||||||
|
DocBookTagType paragraph
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
Style Telephone
|
Style Telephone
|
||||||
@ -146,6 +196,10 @@ Style Telephone
|
|||||||
LabelString "Telephone:"
|
LabelString "Telephone:"
|
||||||
LatexName phone
|
LatexName phone
|
||||||
LatexParam {\areacode}
|
LatexParam {\areacode}
|
||||||
|
# TODO: should be in <address>, but too far away from these paragraphs.
|
||||||
|
DocBookTag phone
|
||||||
|
DocBookTagType paragraph
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
Style Location
|
Style Location
|
||||||
@ -156,12 +210,19 @@ Style Location
|
|||||||
TopSep 0.1
|
TopSep 0.1
|
||||||
BottomSep 0.1
|
BottomSep 0.1
|
||||||
ParSep 0.1
|
ParSep 0.1
|
||||||
|
DocBookTag address
|
||||||
|
DocBookAttr role='location'
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
Style Date
|
Style Date
|
||||||
CopyStyle Location
|
CopyStyle Location
|
||||||
LabelString "Date:"
|
LabelString "Date:"
|
||||||
LatexName date
|
LatexName date
|
||||||
|
DocBookTag date
|
||||||
|
DocBookAttr ""
|
||||||
|
DocBookTagType paragraph
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
# dinbrief does not emphasize the subject line
|
# dinbrief does not emphasize the subject line
|
||||||
@ -174,6 +235,9 @@ Style Subject
|
|||||||
ParSep 0.4
|
ParSep 0.4
|
||||||
Align Block
|
Align Block
|
||||||
AlignPossible Block, Left, Right, Center
|
AlignPossible Block, Left, Right, Center
|
||||||
|
DocBookTag title
|
||||||
|
DocBookTagType paragraph
|
||||||
|
DocBookInInfo always
|
||||||
End
|
End
|
||||||
|
|
||||||
# Opening (Anrede)
|
# Opening (Anrede)
|
||||||
@ -190,6 +254,8 @@ Style Opening
|
|||||||
KeepEmpty 1
|
KeepEmpty 1
|
||||||
TopSep 1.5
|
TopSep 1.5
|
||||||
BottomSep 1
|
BottomSep 1
|
||||||
|
DocBookTag para
|
||||||
|
DocBookAttr role='opening'
|
||||||
End
|
End
|
||||||
|
|
||||||
# Backmatter (styles to be used at the end of the letter)
|
# Backmatter (styles to be used at the end of the letter)
|
||||||
@ -207,6 +273,8 @@ Style Closing
|
|||||||
Tooltip "Here you can insert a signature scan"
|
Tooltip "Here you can insert a signature scan"
|
||||||
EndArgument
|
EndArgument
|
||||||
KeepEmpty 1
|
KeepEmpty 1
|
||||||
|
DocBookTag para
|
||||||
|
DocBookAttr role='closing'
|
||||||
End
|
End
|
||||||
|
|
||||||
Style encl
|
Style encl
|
||||||
@ -223,12 +291,16 @@ Style encl
|
|||||||
Size Normal
|
Size Normal
|
||||||
Color black
|
Color black
|
||||||
EndFont
|
EndFont
|
||||||
|
DocBookTag para
|
||||||
|
DocBookAttr role='enclosed'
|
||||||
End
|
End
|
||||||
|
|
||||||
Style cc
|
Style cc
|
||||||
CopyStyle encl
|
CopyStyle encl
|
||||||
LabelString "cc:"
|
LabelString "cc:"
|
||||||
LatexName cc
|
LatexName cc
|
||||||
|
DocBookTag para
|
||||||
|
DocBookAttr role='carbon-copy'
|
||||||
End
|
End
|
||||||
|
|
||||||
Style PS
|
Style PS
|
||||||
@ -238,6 +310,8 @@ Style PS
|
|||||||
Align Block
|
Align Block
|
||||||
AlignPossible Block, Left
|
AlignPossible Block, Left
|
||||||
ParSep 0.4
|
ParSep 0.4
|
||||||
|
DocBookTag para
|
||||||
|
DocBookAttr role='post-scriptum'
|
||||||
End
|
End
|
||||||
|
|
||||||
# Obsoleted (or differently named) styles
|
# Obsoleted (or differently named) styles
|
||||||
|
Loading…
Reference in New Issue
Block a user