[brailleblaster] Re: Opening XML documents

  • From: François Ouellette <braille@xxxxxxx>
  • To: brailleblaster@xxxxxxxxxxxxx
  • Date: Fri, 27 Jul 2012 13:44:39 -0400

Keith: see my previous post.

F.

On Fri, Jul 27, 2012 at 1:13 PM, Keith Creasy <kcreasy@xxxxxxx> wrote:
> I haven't looked to se what parser is being used but in many cases SAX 
> parsing picks up any whitespace as a text node so walking through and 
> displaying text nodes could result in the observed behavior. Often it even 
> ends up including new-line chars from the XML file. Maybe I can take a look 
> over the weekend.
>
> Keith
>
>
>
>
> -----Original Message-----
> From: brailleblaster-bounce@xxxxxxxxxxxxx 
> [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of John J. Boyer
> Sent: Friday, July 27, 2012 1:09 PM
> To: brailleblaster@xxxxxxxxxxxxx
> Subject: [brailleblaster] Re: Opening XML documents
>
> That is probably right. I'm puzzled by the statement that "what comes out of 
> liblouisutdml is displayed in hthe Daisy view". It should be displayed in the 
> Braille view. They way I set up opening an xml file originally was that after 
> the file is parsed we walk through the parse tree and display any text nodes. 
> I didn't notice unwanted blank lines.
>
> John
>
> On Fri, Jul 27, 2012 at 04:41:47PM +0000, Keith Creasy wrote:
>> You are probably having issues with whitespace outside the normal content 
>> elements. Some XML parsers have settings to avoid this.
>>
>>
>>
>>
>> -----Original Message-----
>> From: brailleblaster-bounce@xxxxxxxxxxxxx
>> [mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of François
>> Ouellette
>> Sent: Friday, July 27, 2012 12:40 PM
>> To: brailleblaster@xxxxxxxxxxxxx
>> Subject: [brailleblaster] Re: Opening XML documents
>>
>> It seems that the blank lines are inserted by BB when the translation is 
>> done using the commands in the sem files. The daisy view displays what comes 
>> out of liblouisutdml, but I noticed that the code appends a newline to every 
>> string it receives from it, so when a 'no' command in the sem file returns a 
>> blank, a newline will be added. An easy fix would be to check if the value 
>> is an empty string and just ignore it.
>>
>> François.
>>
>> On Fri, Jul 27, 2012 at 11:53 AM, Vic Beckley <vic.beckley3@xxxxxxxxx> wrote:
>> > François,
>> >
>> > Opening XML documents is working now but I still get different
>> > results when I open XML or import it. It is formatted like it used
>> > to be when I import it. When I open it there are many blank lines
>> > that are not there when I import it. It is more like the original when 
>> > importing.
>> > Can you duplicate this? If not, I can send you a document to try it
>> > with. Why would this difference exist?
>> >
>> >
>> > Best regards from Ohio, U.S.A.,
>> >
>> > Vic
>> > E-mail: vic.beckley3@xxxxxxxxx
>> >
>> >
>> >
>> >
>>
>
> --
> 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: