[liblouis-liblouisxml] Re: Greek braille.

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

Can be worked around with some more advanced context/multipass rules
though. But you need to be a bit careful with multipass rules because they
don't play that nice with backward translation, and depending on how
invasive your context rules are they could mess up the functioning of other
rules.

To have the capital indicator in the character definitions doesn't sound
like such a bad idea to me.



2017-01-04 12:15 GMT+01:00 Bert Frees <bertfrees@xxxxxxxxx>:

Liblouis attaches the class to both the Greek characters and the
corresponding dot patterns. So if for example both "alpha" and "A" map to
dots "1", this method doesn't work.

2017-01-04 12:07 GMT+01:00 Dave Mielke <dave@xxxxxxxxx>:

[quoted lines by Bert Frees on 2017/01/04 at 11:27 +0100]

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

How does pass2 know which class the character is in given that it's all
dots at
that point?

--
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of
God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
EMail: Dave@xxxxxxxxx | Canada  K2A 1H7   | http://FamilyRadio.org/
For a description of the software, to download it and links to
project pages go to http://liblouis.org



Other related posts: