[brailleblaster] Re: BrailleBlaster error

  • From: Brandon Roller <brandon.r.roller@xxxxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Mon, 21 Jul 2014 12:59:28 -0400

To me it seems that associating a semantic action file with a specific file
by giving them the same name would be a common occurrence.  It is a
straightforward, simple solution that guarentees that the semantic action
file is associated with the correct file.  If liblouisutdml can read a file
to be translated with spaces in the file name, what exactly is so difficult
about having LibLouisUTDML read a semantic action file with spaces in the
file name?


On Mon, Jul 21, 2014 at 12:46 PM, John J. Boyer <
john.boyer@xxxxxxxxxxxxxxxxx> wrote:

> There are Java methods for replacing any  character with any other.
> Input and output files may have spaces. Use the replacemennt methods
> when needed.
>
> John
>
>
> John
>
> On Mon, Jul 21, 2014 at 12:27:50PM -0400, Brandon Roller wrote:
> > Well in that case, BB should not open any file with spaces.
> >
> >
> > On Mon, Jul 21, 2014 at 12:05 PM, John J. Boyer <
> > john.boyer@xxxxxxxxxxxxxxxxx> 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
> > >
> > >
> > >
>
> --
> 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: