[liblouis-liblouisxml] Re: Compressing whitespace on a node by node basis in LibLouisUTDML

  • From: Keith Creasy <kcreasy@xxxxxxx>
  • To: "liblouis-liblouisxml@xxxxxxxxxxxxx" <liblouis-liblouisxml@xxxxxxxxxxxxx>
  • Date: Thu, 13 Mar 2014 12:26:51 +0000

Yes John. It is easy enough using BrailleBlaster to add a missing space in the 
content. Much more difficult to fix it if LibLouisUTDML is doing the wrong 
thing.
 

-----Original Message-----
From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx 
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of John Gardner
Sent: Wednesday, March 12, 2014 3:39 PM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: Compressing whitespace on a node by node 
basis in LibLouisUTDML

John, this is very strange.  How can one distinguish am emphasized letter or 
phrase that is part of a word from emphasized words or phrases unless spaces 
are explicitly indicated somehow?  If one writes in html and leaves out spaces 
between two text spans, those two text spans have no space between them in the 
output.

John G



-----Original Message-----
From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of John J.
Boyer
Sent: Wednesday, March 12, 2014 12:23 PM
To: liblouis-liblouisxml@xxxxxxxxxxxxx
Subject: [liblouis-liblouisxml] Re: Compressing whitespace on a node by node 
basis in LibLouisUTDML

I put the \s in dtbook.sem to keep words from running together. It causes a 
space to be placed before the text in the em tag. Without it there are a lot of 
words run together in Bookshare files. That is messy, because it makes liblouis 
think that there is an ialicized part of a word. I don't know if it is 
necessary in nimas.sem .

nemeth.sem uses the third column a lot. You can see how it is used by looking 
at transcribe_math in transcribe_math.c .

John

On Wed, Mar 12, 2014 at 06:18:07PM +0000, Keith Creasy wrote:
> John.
> 
> Yes, it seems simple that \s means a single space but when it's in the
line of a semantic action file such as :
> 
> Italic em \s
> 
> What is the effect? A single space is added every time the <em> 
> element is
encountered? This seems unnecessary. Maybe it isn't actually needed. I am 
assuming someone put it there for a reason but I can't think what it might be.
> 
> 
> I'd suggest these be removed from nimas.sem and epub.sem until we find 
> a
reason to add them back.
> 
> 
> 
> -----Original Message-----
> From: liblouis-liblouisxml-bounce@xxxxxxxxxxxxx
[mailto:liblouis-liblouisxml-bounce@xxxxxxxxxxxxx] On Behalf Of John J.
Boyer
> Sent: Wednesday, March 12, 2014 2:12 PM
> To: liblouis-liblouisxml@xxxxxxxxxxxxx
> Subject: [liblouis-liblouisxml] Re: Compressing whitespace on a node 
> by
node basis in LibLouisUTDML
> 
> What would be the criteria for suppressing whitespace only for certain
nodes? The compression is done in insert_text in transcriber.c
> 
> \s means a single space, just as it does in liblouis.
> 
> John
> 
> On Wed, Mar 12, 2014 at 05:58:27PM +0000, Michael Whapples wrote:
> > Hello,
> > Is it possible to get liblouisutdml to compress the whitespace only 
> > for certain nodes in a document?
> > 
> > Also what is \s meant to do when it is in the third column of a 
> > liblouisutdml semantic action file? I have gathered it has something 
> > to do with spacing but cannot locate any documenting of this.
> > 
> > Michael Whapples
> > 
> > 
> > For a description of the software, to download it and links to 
> > project pages go to http://www.abilitiessoft.com
> 
> --
> John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc.
> http://www.abilitiessoft.com
> Madison, Wisconsin USA
> Developing software for people with disabilities
> 
> For a description of the software, to download it and links to project
pages go to http://www.abilitiessoft.com
> For a description of the software, to download it and links to project 
> pages go to http://www.abilitiessoft.com

--
John J. Boyer; President, Chief Software Developer Abilitiessoft, Inc.
http://www.abilitiessoft.com
Madison, Wisconsin USA
Developing software for people with disabilities

For a description of the software, to download it and links to project pages go 
to http://www.abilitiessoft.com

For a description of the software, to download it and links to project pages go 
to http://www.abilitiessoft.com
For a description of the software, to download it and links to
project pages go to http://www.abilitiessoft.com

Other related posts: