[liblouis-liblouisxml] Re: [brailleblaster] Re: Examples of liblouis scripting language and request for feedback

  • From: Brandon Roller <brandon.r.roller@xxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Thu, 24 Oct 2013 10:02:11 -0400

Yes, documentation is necessary to determine whether this is user friendly
and something developer's really want.  I have a lot of questions and
thoughts, so for the sake of clarity I am just going to put them in a
numbered list.

1) What are some detailed examples of current issues that the scripting
language would solve and how would it be implemented to solve it?
2) Many of the examples seem similar to regex search and replace.  Is using
regex and alternative?
4)Will developers really want to learn a variation of regex that is only
used in liblouis?
3) Are there any other alternatives that add less complexity?
4)What is repcopy?
5) One example has the attr function with 3 parameters, what are the three
parameters?


On Thu, Oct 24, 2013 at 9:32 AM, Aaron Cannon <
cannona@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Thanks for this description.  I agree with Ken that a document
> describing the syntax in better detail would be excellent.
>
> That being said, it looks quite promising!
>
> I am working on a table for IPA Braille, and there is a situation
> where I potentially need to reorder some characters from how they're
> ordered in print.  Basically, in Unicode, there are some characters
> that modify the symbol preceding it.  What's more, you can have more
> than one of these modifier characters following a single character.
> In print, as I understand it, the order of these modifier characters
> doesn't matter, but in braille, the rules state that they need to be
> in a certain order.  I also believe that the number of these
> characters would make it impractical to simply create different rules
> for each possible permutation.
>
> Anyway, hopefully the scripting language would be sufficiently robust
> to be able to handle this situation.
>
> I'll post more about this on the liblouis mailing list soon, as I
> don't want to highjack this thread.
>
> Aaron
>
> On 10/23/13, John J. Boyer <john.boyer@xxxxxxxxxxxxxxxxx> wrote:
> > The general form of the script is first the opcode, then the word script
> > to distinguish it form the assembly-like older context-multipass
> > language, then the word if, then the if part, which may contain a
> > replacement (rep) function, then the then part.
> >
> > The second context rule then says
> >
> > context script if back attr(l) rep(".") attr(l) then @256
> >
> > Go back one position. if the attribute of the character at that position
> > is letter and the next character (enclosed in a rep function) is a
> > period, and the character after that is a letter then replace the period
> > with dots 256
> >
> > This fixes things like U.S.
> >
> > John
> >
> > On Wed, Oct 23, 2013 at 03:43:18PM -0500, Aaron Cannon wrote:
> >> Sorry for the empty message.
> >>
> >> Perhaps a short description explaining what effect each line has would
> >> help.
> >>
> >> Aaron
> >>
> >> On 10/23/13, Aaron Cannon <cannona@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> >> > On 10/22/13, John J. Boyer <john.boyer@xxxxxxxxxxxxxxxxx> wrote:
> >> >> Below are some examples of the liblouis scripting language as it now
> >> >> exists. They work. Extensions to the language will mainly involve
> >> >> querying the typeform parameter and providing for more than one
> >> >> replacement or insertion.
> >> >>
> >> >> Your feedback is needed so that we have alanguage which is
> >> >> user-friendly
> >> >> and capable of doing exactly what is required. Thank you.
> >> >>
> >> >> --------------------
> >> >>
> >> >> context script if "\e" attr(a) then repcopy
> >> >> context script if back attr(l) rep(".") attr(l) then @256
> >> >> context script if back attr(d) rep("a") then @56-1
> >> >> context script if back attr(d) rep("A") then @56-1
> >> >> pass2 script if rep(@36-36-36) then  @36-36
> >> >> pass2 script if rep(@6-236-3456) then @3-3456
> >> >> pass2 script if attr(s,1,10) then @0
> >> >> pass2 script if @6-56 then @56-6
> >> >>
> >> >> --
> >> >> John J. Boyer; President, Chief Software Developer
> >> >> Abilitiessoft, Inc.
> >> >> http://www.abilitiessoft.com
> >> >> Madison, Wisconsin USA
> >> >> Developing software for people with disabilities
> >> >>
> >> >>
> >> >>
> >> >
> >
> > --
> > John J. Boyer; President, Chief Software Developer
> > Abilitiessoft, Inc.
> > http://www.abilitiessoft.com
> > Madison, Wisconsin USA
> > Developing software for people with disabilities
> >
> >
> >
>
>

Other related posts:

  • » [liblouis-liblouisxml] Re: [brailleblaster] Re: Examples of liblouis scripting language and request for feedback - Brandon Roller