2008-01-09 18:51:02 +00:00
|
|
|
#\DeclareLyXModule[braille.sty]{Braille}
|
2019-04-04 16:43:29 +00:00
|
|
|
#\DeclareCategory{Accessibility}
|
2008-01-09 18:51:02 +00:00
|
|
|
#DescriptionBegin
|
|
|
|
#Defines an environment to typeset Braille.
|
2008-09-29 15:58:08 +00:00
|
|
|
#For more details see Braille.lyx in examples.
|
2008-01-09 18:51:02 +00:00
|
|
|
#DescriptionEnd
|
2008-01-06 13:39:58 +00:00
|
|
|
# Author: Uwe Stöhr <uwestoehr@web.de>
|
|
|
|
|
2020-12-11 10:46:31 +00:00
|
|
|
Format 90
|
2008-01-06 13:39:58 +00:00
|
|
|
|
2008-03-24 13:11:16 +00:00
|
|
|
AddToPreamble
|
2008-01-06 13:39:58 +00:00
|
|
|
\usepackage{braille}
|
|
|
|
\newcommand{\braillenormal}[1]
|
|
|
|
{\setlength{\brailleunit}{2.4mm}\braille{#1}}
|
|
|
|
% With \brailleunit == 0.75ex, the braille letters will
|
|
|
|
% approximately match the other letters in size.
|
|
|
|
\newcommand{\brailletext}[1]
|
|
|
|
{\setlength{\brailleunit}{0.75ex}\braille{#1}}
|
|
|
|
EndPreamble
|
|
|
|
|
2008-10-25 23:44:58 +00:00
|
|
|
|
2008-01-06 13:39:58 +00:00
|
|
|
# default Braille
|
|
|
|
Style Braille_(default)
|
2013-01-20 15:44:05 +00:00
|
|
|
LatexType command
|
|
|
|
LatexName braillenormal
|
|
|
|
NextNoIndent 1
|
|
|
|
LeftMargin XBraille:
|
|
|
|
LabelSep xx
|
|
|
|
ParSkip 0.0
|
|
|
|
ItemSep 0.2
|
|
|
|
TopSep 0.7
|
|
|
|
BottomSep 0.7
|
|
|
|
ParSep 0.3
|
|
|
|
Align Block
|
|
|
|
AlignPossible Block, Left
|
|
|
|
LabelType Static
|
|
|
|
LabelString "Braille:"
|
2008-01-06 13:39:58 +00:00
|
|
|
LabelFont
|
2013-01-20 15:44:05 +00:00
|
|
|
Shape Italic
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel1
|
2008-01-06 13:39:58 +00:00
|
|
|
EndFont
|
2020-11-04 04:06:56 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='braille'
|
2008-01-06 13:39:58 +00:00
|
|
|
End
|
|
|
|
|
2008-10-25 23:44:58 +00:00
|
|
|
|
2008-01-06 13:39:58 +00:00
|
|
|
# Braille in text size
|
|
|
|
Style Braille_(textsize)
|
2013-01-20 15:44:05 +00:00
|
|
|
LatexType command
|
|
|
|
LatexName brailletext
|
|
|
|
NextNoIndent 1
|
|
|
|
LeftMargin XBraille:
|
|
|
|
LabelSep xx
|
|
|
|
ParSkip 0.0
|
|
|
|
ItemSep 0.2
|
|
|
|
TopSep 0.7
|
|
|
|
BottomSep 0.7
|
|
|
|
ParSep 0.3
|
|
|
|
Align Block
|
|
|
|
AlignPossible Block, Left
|
|
|
|
LabelType Static
|
|
|
|
LabelString "Braille:"
|
2008-01-06 13:39:58 +00:00
|
|
|
LabelFont
|
2013-01-20 15:44:05 +00:00
|
|
|
Shape Italic
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel1
|
2008-01-06 13:39:58 +00:00
|
|
|
EndFont
|
2020-11-04 04:06:56 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='braille-text'
|
2008-01-06 13:39:58 +00:00
|
|
|
End
|
|
|
|
|
2008-10-25 23:44:58 +00:00
|
|
|
|
2008-01-06 13:39:58 +00:00
|
|
|
# turn on dots
|
|
|
|
Style Braille_(dots_on)
|
2013-01-20 15:44:05 +00:00
|
|
|
LatexType command
|
|
|
|
LatexName brailleputtinydotstrue
|
|
|
|
NextNoIndent 1
|
|
|
|
KeepEmpty 1
|
|
|
|
LeftMargin XBraille_dots_on
|
|
|
|
LabelSep xx
|
|
|
|
ParSkip 0.0
|
|
|
|
ItemSep 0.2
|
|
|
|
TopSep 0.7
|
|
|
|
BottomSep 0.7
|
|
|
|
ParSep 0.3
|
|
|
|
Align Block
|
|
|
|
AlignPossible Block, Left
|
|
|
|
LabelType Static
|
|
|
|
LabelString "Braille_dots_on"
|
2008-01-06 13:39:58 +00:00
|
|
|
LabelFont
|
2013-01-20 15:44:05 +00:00
|
|
|
Shape Italic
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel2
|
2008-01-06 13:39:58 +00:00
|
|
|
EndFont
|
2020-11-04 04:06:56 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='braille-dots-on'
|
2008-01-06 13:39:58 +00:00
|
|
|
End
|
|
|
|
|
2008-10-25 23:44:58 +00:00
|
|
|
|
2008-01-06 13:39:58 +00:00
|
|
|
# turn off dots
|
|
|
|
Style Braille_(dots_off)
|
2013-01-20 15:44:05 +00:00
|
|
|
LatexType command
|
|
|
|
LatexName brailleputtinydotsfalse
|
|
|
|
NextNoIndent 1
|
|
|
|
KeepEmpty 1
|
|
|
|
LeftMargin XBraille_dots_off
|
|
|
|
LabelSep xx
|
|
|
|
ParSkip 0.0
|
|
|
|
ItemSep 0.2
|
|
|
|
TopSep 0.7
|
|
|
|
BottomSep 0.7
|
|
|
|
ParSep 0.3
|
|
|
|
Align Block
|
|
|
|
AlignPossible Block, Left
|
|
|
|
LabelType Static
|
|
|
|
LabelString "Braille_dots_off"
|
2008-01-06 13:39:58 +00:00
|
|
|
LabelFont
|
2013-01-20 15:44:05 +00:00
|
|
|
Shape Italic
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel2
|
2008-01-06 13:39:58 +00:00
|
|
|
EndFont
|
2020-11-04 04:06:56 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='braille-dots-off'
|
2008-01-06 13:39:58 +00:00
|
|
|
End
|
|
|
|
|
2008-10-25 23:44:58 +00:00
|
|
|
|
2008-09-30 23:39:24 +00:00
|
|
|
# turn off mirroring
|
2008-01-06 13:39:58 +00:00
|
|
|
Style Braille_(mirror_on)
|
2013-01-20 15:44:05 +00:00
|
|
|
LatexType command
|
|
|
|
LatexName braillemirrortrue
|
|
|
|
NextNoIndent 1
|
|
|
|
KeepEmpty 1
|
|
|
|
LeftMargin XBraille_mirror_on
|
|
|
|
LabelSep xx
|
|
|
|
ParSkip 0.0
|
|
|
|
ItemSep 0.2
|
|
|
|
TopSep 0.7
|
|
|
|
BottomSep 0.7
|
|
|
|
ParSep 0.3
|
|
|
|
Align Block
|
|
|
|
AlignPossible Block, Left
|
|
|
|
LabelType Static
|
|
|
|
LabelString "Braille_mirror_on"
|
2008-01-06 13:39:58 +00:00
|
|
|
LabelFont
|
2013-01-20 15:44:05 +00:00
|
|
|
Shape Italic
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel2
|
2008-01-06 13:39:58 +00:00
|
|
|
EndFont
|
2020-11-04 04:06:56 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='braille-mirror-on'
|
2008-01-06 13:39:58 +00:00
|
|
|
End
|
|
|
|
|
2008-10-25 23:44:58 +00:00
|
|
|
|
2008-09-30 23:39:24 +00:00
|
|
|
# turn off mirroring
|
2008-01-06 13:39:58 +00:00
|
|
|
Style Braille_(mirror_off)
|
2013-01-20 15:44:05 +00:00
|
|
|
LatexType command
|
|
|
|
LatexName braillemirrorfalse
|
|
|
|
NextNoIndent 1
|
|
|
|
KeepEmpty 1
|
|
|
|
LeftMargin XBraille_mirror_off
|
|
|
|
LabelSep xx
|
|
|
|
ParSkip 0.0
|
|
|
|
ItemSep 0.2
|
|
|
|
TopSep 0.7
|
|
|
|
BottomSep 0.7
|
|
|
|
ParSep 0.3
|
|
|
|
Align Block
|
|
|
|
AlignPossible Block, Left
|
|
|
|
LabelType Static
|
|
|
|
LabelString "Braille_mirror_off"
|
2008-01-06 13:39:58 +00:00
|
|
|
LabelFont
|
2013-01-20 15:44:05 +00:00
|
|
|
Shape Italic
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel2
|
2008-01-06 13:39:58 +00:00
|
|
|
EndFont
|
2020-11-04 04:06:56 +00:00
|
|
|
DocBookTag para
|
|
|
|
DocBookAttr role='braille-mirror-off'
|
2008-01-06 13:39:58 +00:00
|
|
|
End
|
|
|
|
|
2008-10-25 23:44:58 +00:00
|
|
|
|
2011-04-15 02:51:32 +00:00
|
|
|
InsetLayout "Flex:Braillebox"
|
2013-01-20 15:44:05 +00:00
|
|
|
LyxType custom
|
|
|
|
LatexType command
|
|
|
|
LatexName braillebox
|
|
|
|
LabelString "Braille box"
|
2008-10-25 23:44:58 +00:00
|
|
|
Font
|
2013-01-20 15:44:05 +00:00
|
|
|
Color foreground
|
|
|
|
Size Small
|
|
|
|
Family Roman
|
|
|
|
Shape Up
|
|
|
|
Series Medium
|
|
|
|
Misc No_Emph
|
|
|
|
Misc No_Noun
|
|
|
|
Misc No_Bar
|
2008-10-25 23:44:58 +00:00
|
|
|
EndFont
|
|
|
|
LabelFont
|
2020-12-11 10:46:31 +00:00
|
|
|
Color textlabel2
|
2013-01-20 15:44:05 +00:00
|
|
|
Size Small
|
2008-10-25 23:44:58 +00:00
|
|
|
EndFont
|
|
|
|
End
|
|
|
|
|