[liblouis-liblouisxml] Re: Greek braille.

  • From: Bert Frees <bertfrees@xxxxxxxxx>
  • To: "liblouis-liblouisxml@xxxxxxxxxxxxx" <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Wed, 4 Jan 2017 11:27:18 +0100

Hi Dave,

The first problem can be solved. The second problem I'm not sure how to
handle.

In liblouis 3.0 you can mark English text as if it's a special type of
emphasis.

    emphclass english
    begemphword english 56


See http://liblouis.org/documentation/liblouis.html#Emphasis-Opcodes.

The information about which parts of the text are English needs to be
passes to Liblouis via the typeform parameter. See http://liblouis.org/
documentation/liblouis.html#lou_005ftranslateString.

Example:

     Ας πάμε στο McDonald's
    [0000000000001111111111]

In order to know which number to use ("1" in this case) you need to call
the `getTypeformForEmphClass` function. See http://liblouis.org/
documentation/liblouis.html#lou_005fgetTypeformForEmphClass.

There is no simple way to specify an alternate English capital letter
indicator. One way could be to define a certain (possibly virtual) dot
pattern for the capital indicator and then in a second pass change the
indicator to either 46 or 6 depending on which character follows.

This could be done for example like this (not tested):

    capsign 6a
    class greek ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρςστυφχψωϕ
    pass2 [@6a]%greek @6
    pass2 [@6a] @46




2016-12-30 23:10 GMT+01:00 Dave Mielke <dave@xxxxxxxxx>:

I'm writing a proper table for Greek braille. When I get it working
correctly
I'll post it to you guys.

I'm trying to figure out how to code something and I hope you won't mind
giving
me some hints:

Greek braille uses dots 46 to indicate a capital letter, so that'd be
defined
with capsign. But it gets a little more comopicated than that because it
also
supports English letters, which, of course, use the same set of braille
representations as the Greek letters. An English word needs to be prefixed
with
dots 56, and, within an English word, the capital letter indicator is dot 6
(not the Greek dots 46). This raises at least two questions:

First: Is there a simple way to specify that a word should be prefixed with
dots 56 if it contains specific characters (English letters) and/or if it
contains other than a specific set of characters (Greek letters)?

Second: Is there a simple way to specify the alternate English capital
letter
indicator, or do I need to define each capital English letter specifically,
e.g.: uplow Aa 6-1,1


Other related posts: