[brailleblaster] Re: CharToDots

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Wed, 22 Jan 2014 11:54:23 -0600

If you are passing 32, which is a blank, in inbuf the outbuf should 
contain 0. I'm not sure what is going on. The Java binding mey need 
revision.

John

On Wed, Jan 22, 2014 at 12:40:12PM -0500, Brandon Roller wrote:
> I am passing en-us-g2.ctb as the tablelist.  The in buffer contains value
> 32.  The resulting out buffer always contains -30, -96, -128.  Shouldn't it
> contain only a single value?
> 
> 
> On Wed, Jan 22, 2014 at 12:36 PM, John J. Boyer <
> john.boyer@xxxxxxxxxxxxxxxxx> wrote:
> 
> > Brandon,
> >
> > I assume you have looked at the Java bindings for charToDots and
> > dotsToChar. The tableList should be the name of the table you are using.
> > inbuf is supposed to be an array of bytes containing the low-order 8
> > bits of characters. This is ASCII Braille. outbuf is supposed to contain
> > the low-order 8 bits of the dot patterns generated by liblouis. The
> > problem may be in the contents of your inbug. If you press multiple keys
> > at once I would guess that the result would be multiple characters, not
> > a single character that could be converted to a dot pattern.
> >
> > Hope this helps,
> > John
> >
> > On Wed, Jan 22, 2014 at 11:49:26AM -0500, Brandon Roller wrote:
> > > I am working on 6 key entry in the braille view of BB.  I am trying to
> > call
> > > charToDots, but I don't seem to be getting back anything useful.  What
> > > exactly am I supposed to be pass as the tableList?  What is being put in
> > > the out buffer?
> >
> > --
> > 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: