[brailleblaster] Re: BrailleBlaster error

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Tue, 22 Jul 2014 03:48:18 -0500

I've been wondering about this also. The problem is that filenames occur 
in include statements and lists where whitespace is used to indicate the 
end of the operand. It would be possible to provide for enclosing the 
entire operand in quotation marks, but the code would have to be 
reviewed carefully and the change tested thoroughly to be sure nothing 
was broken. The modules involved are semantics.c and readconfig.c . 

BrailleBlaster is putting demands on liblouisutdml that were not 
foreseen when it was originally written, or up till now.

John

On Tue, Jul 22, 2014 at 07:27:12AM +0100, Michael Whapples wrote:
> Could I ask a question on this.
> 
> When we say no spaces in the semantic action file name, does this
> mean just the file part of the path or could it include no spaces in
> the diretory part of the path?
> 
> Spaces in the directory are highly likely and in my mind should be
> possible to use. Not to allow semantic action files to be in a
> directory with spaces in the directory name would criple the
> software.
> 
> Michael Whapples
> On 21/07/2014 17:05, John J. Boyer wrote:
> >Spaces are not allowed in the names of semantic-action files,
> >configuration files or liblouis tables. Allowing them would introduce
> >complications, especially in table lists and file lists. This should
> >probably be stated in the documentation.
> >
> >John
> >
> >On Mon, Jul 21, 2014 at 11:17:12AM -0400, Keith Creasy wrote:
> >>Well, it's based on the book's file name but, yes, it can probably be 
> >>avoided. It wouldn't be pretty though. Brandon, since this is a semantic 
> >>action file that is tied to a document, and kept with that document, could 
> >>we just name it something like "document.sem" or _document.sem"?
> >>
> >>
> >>-----Original Message-----
> >>From: brailleblaster-bounce@xxxxxxxxxxxxx 
> >>[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
> >>Sent: Monday, July 21, 2014 10:53 AM
> >>To: brailleblaster@xxxxxxxxxxxxx
> >>Subject: [brailleblaster] Re: BrailleBlaster error
> >>
> >>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
> >>
> >>
> >>
> 

-- 
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: