[brailleblaster] Re: Opening XML documents

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

John: Sorry, my mistake! Yes it gets displayed in the braille view,
and there is a parse routine that displays the text in the daisy view.
This is the one that may add unwanted newline characters.

François.

On Fri, Jul 27, 2012 at 1:08 PM, John J. Boyer
<john.boyer@xxxxxxxxxxxxxxxxx> wrote:
> 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: