mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 22:06:15 +00:00
- braille.module: add Inset for \braillebox
- Braille.lyx: update description as \braillebox is also valid for 6 dot Braille git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27123 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2b1e4cf890
commit
f8778fc9e0
@ -387,36 +387,65 @@ This is Braille.
|
|||||||
\begin_inset VSpace bigskip
|
\begin_inset VSpace bigskip
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
Computer Braille that uses 8 dots can be turned on with the command
|
Braille characters can alternatively be created by writing a number to a
|
||||||
|
Braille box.
|
||||||
|
A Braille box is inserted with the menu
|
||||||
|
\family sans
|
||||||
|
Insert\SpecialChar \menuseparator
|
||||||
|
Custom
|
||||||
|
\begin_inset space ~
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
insets
|
||||||
|
\family default
|
||||||
|
.
|
||||||
|
Every number that is in this box, turns on the corresponding Braille dot,
|
||||||
|
for example the number
|
||||||
|
\series bold
|
||||||
|
6145
|
||||||
|
\series default
|
||||||
|
box leads to:
|
||||||
|
\begin_inset Newline newline
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
|
\begin_inset Flex Braillebox
|
||||||
|
status open
|
||||||
|
|
||||||
|
\begin_layout Plain Layout
|
||||||
|
6145
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
\begin_inset VSpace bigskip
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
Computer Braille that uses 8
|
||||||
|
\begin_inset space \thinspace{}
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
dots can be turned on with the command
|
||||||
\series bold
|
\series bold
|
||||||
|
|
||||||
\backslash
|
\backslash
|
||||||
brailleeightdotstrue
|
brailleeightdotstrue
|
||||||
\series default
|
\series default
|
||||||
.
|
.
|
||||||
But the two extra dots are only used when they are accessed with the command
|
But the two extra dots are only used when using a Braille box.
|
||||||
|
For example the number
|
||||||
\series bold
|
\series bold
|
||||||
|
8175
|
||||||
\backslash
|
|
||||||
braillebox
|
|
||||||
\series default
|
\series default
|
||||||
.
|
in a Braille box leads to:
|
||||||
For example the command
|
|
||||||
\begin_inset Newline newline
|
\begin_inset Newline newline
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
\series bold
|
|
||||||
|
|
||||||
\backslash
|
|
||||||
braillebox{8175}
|
|
||||||
\series default
|
|
||||||
|
|
||||||
\begin_inset Newline newline
|
|
||||||
\end_inset
|
|
||||||
|
|
||||||
leads to:
|
|
||||||
\begin_inset ERT
|
\begin_inset ERT
|
||||||
status collapsed
|
status collapsed
|
||||||
|
|
||||||
@ -430,14 +459,11 @@ brailleeightdotstrue
|
|||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
\begin_inset ERT
|
\begin_inset Flex Braillebox
|
||||||
status collapsed
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
|
8175
|
||||||
|
|
||||||
\backslash
|
|
||||||
braillebox{8175}
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
@ -479,7 +505,7 @@ mm.
|
|||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
double-sized Braille where also the tiny dots have the double size, use
|
double-sized Braille where also the tiny dots have the double size, use
|
||||||
this command in ERT in your document:
|
this command in TeX code in your document:
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Standard
|
\begin_layout Standard
|
||||||
|
@ -17,6 +17,7 @@ AddToPreamble
|
|||||||
{\setlength{\brailleunit}{0.75ex}\braille{#1}}
|
{\setlength{\brailleunit}{0.75ex}\braille{#1}}
|
||||||
EndPreamble
|
EndPreamble
|
||||||
|
|
||||||
|
|
||||||
# default Braille
|
# default Braille
|
||||||
Style Braille_(default)
|
Style Braille_(default)
|
||||||
LatexType command
|
LatexType command
|
||||||
@ -39,6 +40,7 @@ Style Braille_(default)
|
|||||||
EndFont
|
EndFont
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
# Braille in text size
|
# Braille in text size
|
||||||
Style Braille_(textsize)
|
Style Braille_(textsize)
|
||||||
LatexType command
|
LatexType command
|
||||||
@ -61,6 +63,7 @@ Style Braille_(textsize)
|
|||||||
EndFont
|
EndFont
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
# turn on dots
|
# turn on dots
|
||||||
Style Braille_(dots_on)
|
Style Braille_(dots_on)
|
||||||
LatexType command
|
LatexType command
|
||||||
@ -84,6 +87,7 @@ Style Braille_(dots_on)
|
|||||||
EndFont
|
EndFont
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
# turn off dots
|
# turn off dots
|
||||||
Style Braille_(dots_off)
|
Style Braille_(dots_off)
|
||||||
LatexType command
|
LatexType command
|
||||||
@ -107,6 +111,7 @@ Style Braille_(dots_off)
|
|||||||
EndFont
|
EndFont
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
# turn off mirroring
|
# turn off mirroring
|
||||||
Style Braille_(mirror_on)
|
Style Braille_(mirror_on)
|
||||||
LatexType command
|
LatexType command
|
||||||
@ -130,6 +135,7 @@ Style Braille_(mirror_on)
|
|||||||
EndFont
|
EndFont
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
# turn off mirroring
|
# turn off mirroring
|
||||||
Style Braille_(mirror_off)
|
Style Braille_(mirror_off)
|
||||||
LatexType command
|
LatexType command
|
||||||
@ -153,3 +159,26 @@ Style Braille_(mirror_off)
|
|||||||
EndFont
|
EndFont
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
|
InsetLayout 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
|
||||||
|
MultiPar true
|
||||||
|
End
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user