[brailleblaster] Re: BrailleBlaster error

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Mon, 21 Jul 2014 09:52:46 -0500

How do the    spaces get in the name of the semantic-action file? When 
liblouisutdml was written it never occured to me that a semantic-action 
filename might have spaces. Wouldn't it be simpler to just avoid them? 
Handling them would require some code changes, and the name of the file 
would have to be enclosed in quotation marks.

John

On Mon, Jul 21, 2014 at 09:47:09AM -0400, Brandon Roller wrote:
> Yes, spaces in the name of the semantic action file.  If a user edits the
> style of a file, for example making a paragraph a line, and saving the file
> then a semantic action file is created with the same name as the file, so
> that when the file is opened again in BB those style changes are maintained.
> 
> 
> On Mon, Jul 21, 2014 at 9:38 AM, John J. Boyer <john.boyer@xxxxxxxxxxxxxxxxx
> > wrote:
> 
> > I thought you were referring to an input file. Do you mean spaces in the
> > name of a semantic-action file? When   would this happen? Or do you mean
> > spaces inside the file itself?
> >
> > John
> >
> > On Mon, Jul 21, 2014 at 08:43:51AM -0400, Brandon Roller wrote:
> > > John, please re-read my last email from Friday and include a semantic
> > file
> > > with the same name as your test file with spaces.  A semantic file with
> > > spaces seems to be causing the issue.
> > >
> > >
> > > On Mon, Jul 21, 2014 at 4:36 AM, John J. Boyer <
> > john.boyer@xxxxxxxxxxxxxxxxx
> > > > wrote:
> > >
> > > > I passed a file name containing a space to file2brl. It worked fine.
> > the
> > > > program calls lbu_translateFile with that file name. I can't send the
> > > > file because it is copyrighted, but all you have to do is copy a file
> > > > that you know works into a new file whose name contains a space.
> > > >
> > > > John
> > > >
> > > > On Fri, Jul 18, 2014 at 03:34:30PM -0400, Brandon Roller wrote:
> > > > > TranslateFile is returning false and when you check the liblouisutdml
> > > > logs
> > > > > it is not including the entire semantic file.  It makes it through
> > the
> > > > > entire document and fails after the last text node.
> > > > >
> > > > >
> > > > > On Fri, Jul 18, 2014 at 3:27 PM, John J. Boyer <
> > > > john.boyer@xxxxxxxxxxxxxxxxx
> > > > > > wrote:
> > > > >
> > > > > > I think there is some sort of interaction with BrailleBlaster,
> > maybe
> > > > > > with the normalization algorithm. To really find out if it is a
> > > > > > liblouisutdml problem it would be necessary to test the
> > translateFile
> > > > > > method directly, or better, to test the lbu_translateFile function.
> > > > > >
> > > > > > John
> > > > > >
> > > > > > On Fri, Jul 18, 2014 at 01:51:19PM -0400, Brandon Roller wrote:
> > > > > > > It seems to handle the file name, but when you change an
> > something
> > > > to a
> > > > > > > different style to a new file, a new semantic action file is
> > created
> > > > with
> > > > > > > the same name as the file.  It doesn't seem to handle to the
> > spaces
> > > > in
> > > > > > the
> > > > > > > semantic action file name.
> > > > > > >
> > > > > > >
> > > > > > > On Fri, Jul 18, 2014 at 1:08 PM, Vic Beckley <
> > vic.beckley3@xxxxxxxxx
> > > > >
> > > > > > wrote:
> > > > > > >
> > > > > > > > Brandon,
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Yes, that was it. I took the spaces out of the filename and it
> > > > worked.
> > > > > > Why
> > > > > > > > would it work before I changed the styles and not after if it
> > was
> > > > the
> > > > > > > > spaces. They were always there.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Best regards from Ohio,
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Vic
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > *From:* brailleblaster-bounce@xxxxxxxxxxxxx [mailto:
> > > > > > > > brailleblaster-bounce@xxxxxxxxxxxxx] *On Behalf Of *Brandon
> > Roller
> > > > > > > > *Sent:* Friday, July 18, 2014 10:30 AM
> > > > > > > > *To:* brailleblaster@xxxxxxxxxxxxx
> > > > > > > > *Subject:* [brailleblaster] Re: BrailleBlaster error
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Does it have to do with the spaces in the file name?  I don't
> > think
> > > > > > > > liblouisutdml handles spaces in a file name well.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > On Wed, Jul 16, 2014 at 10:22 AM, Vic Beckley <
> > > > vic.beckley3@xxxxxxxxx>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > I am getting an error when I try to apply a new style in an XML
> > > > > > document.
> > > > > > > > Follow the below steps to reproduce it. I don’t think the
> > document
> > > > > > matters
> > > > > > > > but I have attached one that causes the error.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Open the attached file.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Make sure the cursor is in the first paragraph, the From: line.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Press Control-L to bring up the style panel.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Press L to move to the line style and press enter to apply it.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Press Alt-Home to bring up the Braille preview.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > You will see this error:
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ---------------------------
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ---------------------------
> > > > > > > >
> > > > > > > > An error has occurred.  Please check your original document
> > > > > > > >
> > > > > > > > ---------------------------
> > > > > > > >
> > > > > > > > OK
> > > > > > > >
> > > > > > > > ---------------------------
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > If you press Alt-Home before changing the style, then the
> > Braille
> > > > > > preview
> > > > > > > > comes up just fine.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > I am using the default nimas.cfg file. There is no nimas.cfg
> > in my
> > > > > > > > personal data folder.
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Best regards from Ohio,
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > Vic
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > >
> > > > > > --
> > > > > > 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
> > > >
> > > >
> > > >
> >
> > --
> > 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: