lyx_mirror/lib/layouts/braille.module
Juergen Spitzmueller b5af05b4a7 Make module categories (almost) great again
The category tag was rarely used and thus not very useful. This adds
categorization to most modules (the rest will follow) and uses the
\DeclareCategory tag we use in layouts rather than the extra syntax
we used in modules. Categories are now added to the po files and
translated.

Note that this is work in progress: the current categories are still
subject to change.

The ultimate goal of this is to sort the modules in the GUI by category
as we do with layouts, examples and templates (and add a filter to search
for specific modules)

As it is now (with the many modules we accumulated), the module selector
is not really usable anymore. If you don't happen to know how exactly a
module is named, selecting a module is really a PITA.
2019-04-04 18:43:29 +02:00

185 lines
3.1 KiB
Plaintext

#\DeclareLyXModule[braille.sty]{Braille}
#\DeclareCategory{Accessibility}
#DescriptionBegin
#Defines an environment to typeset Braille.
#For more details see Braille.lyx in examples.
#DescriptionEnd
# Author: Uwe Stöhr <uwestoehr@web.de>
Format 72
AddToPreamble
\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
# default Braille
Style Braille_(default)
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:"
LabelFont
Shape Italic
Color Blue
EndFont
End
# Braille in text size
Style Braille_(textsize)
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:"
LabelFont
Shape Italic
Color Blue
EndFont
End
# turn on dots
Style Braille_(dots_on)
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"
LabelFont
Shape Italic
Color Green
EndFont
End
# turn off dots
Style Braille_(dots_off)
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"
LabelFont
Shape Italic
Color Green
EndFont
End
# turn off mirroring
Style Braille_(mirror_on)
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"
LabelFont
Shape Italic
Color Green
EndFont
End
# turn off mirroring
Style Braille_(mirror_off)
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"
LabelFont
Shape Italic
Color Green
EndFont
End
InsetLayout "Flex:Braillebox"
LyxType custom
LatexType command
LatexName braillebox
LabelString "Braille box"
Font
Color foreground
Size Small
Family Roman
Shape Up
Series Medium
Misc No_Emph
Misc No_Noun
Misc No_Bar
EndFont
LabelFont
Color green
Size Small
EndFont
End