]> git.lyx.org Git - lyx.git/commitdiff
- braille.module: add Inset for \braillebox
authorUwe Stöhr <uwestoehr@web.de>
Sat, 25 Oct 2008 23:44:58 +0000 (23:44 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 25 Oct 2008 23:44:58 +0000 (23:44 +0000)
- 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

lib/examples/Braille.lyx
lib/layouts/braille.module

index 1cae639bfdcd7502fe66de456b5bcad4c9abd0b8..2a2ff816d95fe62e5dac3ac071eb0b7bde9a60c4 100644 (file)
@@ -387,36 +387,65 @@ This is Braille.
 \begin_inset VSpace bigskip
 \end_inset
 
-Computer Braille that uses 8 dots can be turned on with the command 
-\series bold
+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
 
-\backslash
-brailleeightdotstrue
-\series default
+insets
+\family default
 .
- But the two extra dots are only used when they are accessed with the command
+ Every number that is in this box, turns on the corresponding Braille dot,
+ for example the number
 \series bold
-
-\backslash
-braillebox
+ 6145
 \series default
-.
- For example the command
+ box leads to:
 \begin_inset Newline newline
 \end_inset
 
 
-\series bold
+\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
 \backslash
-braillebox{8175}
+brailleeightdotstrue
 \series default
-
+.
+ But the two extra dots are only used when using a Braille box.
+ For example the number
+\series bold
+ 8175
+\series default
+ in a Braille box leads to:
 \begin_inset Newline newline
 \end_inset
 
-leads to: 
+
 \begin_inset ERT
 status collapsed
 
@@ -424,25 +453,22 @@ status collapsed
 
 
 \backslash
-brailleeightdotstrue
+brailleeightdotstrue 
 \end_layout
 
 \end_inset
 
  
-\begin_inset ERT
-status collapsed
+\begin_inset Flex Braillebox
+status open
 
 \begin_layout Plain Layout
-
-
-\backslash
-braillebox{8175}
+8175
 \end_layout
 
 \end_inset
 
-
 \begin_inset ERT
 status collapsed
 
@@ -450,7 +476,7 @@ status collapsed
 
 
 \backslash
-brailleeightdotsfalse
+brailleeightdotsfalse 
 \end_layout
 
 \end_inset
@@ -479,7 +505,7 @@ mm.
 \end_inset
 
 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
 
 \begin_layout Standard
index ddc3f17284c2a2b00a3c2ce24625d82c8bf15f62..063db48654ea1d467cde14aca005faaa52aab8ea 100644 (file)
@@ -17,6 +17,7 @@ AddToPreamble
         {\setlength{\brailleunit}{0.75ex}\braille{#1}}
 EndPreamble
 
+
 # default Braille
 Style Braille_(default)
        LatexType               command
@@ -39,6 +40,7 @@ Style Braille_(default)
        EndFont
 End
 
+
 # Braille in text size
 Style Braille_(textsize)
        LatexType               command
@@ -61,6 +63,7 @@ Style Braille_(textsize)
        EndFont
 End
 
+
 # turn on dots
 Style Braille_(dots_on)
        LatexType               command
@@ -84,6 +87,7 @@ Style Braille_(dots_on)
        EndFont
 End
 
+
 # turn off dots
 Style Braille_(dots_off)
        LatexType               command
@@ -107,6 +111,7 @@ Style Braille_(dots_off)
        EndFont
 End
 
+
 # turn off mirroring
 Style Braille_(mirror_on)
        LatexType               command
@@ -130,6 +135,7 @@ Style Braille_(mirror_on)
        EndFont
 End
 
+
 # turn off mirroring
 Style Braille_(mirror_off)
        LatexType               command
@@ -153,3 +159,26 @@ Style Braille_(mirror_off)
        EndFont
 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
+