[liblouis-liblouisxml] Re: Stripping Carriage Returns

  • From: "John J. Boyer" <john.boyer@xxxxxxxxxxxxxxxxx>
  • To: liblouis-liblouisxml@xxxxxxxxxxxxx
  • Date: Wed, 18 May 2011 16:19:00 -0500

all the tables are set up to treat multiple whitespace, including tabs 
and carriage returns as just one space. This is what almost everybody 
wants. You can get around it partially by using a table list. Make a 
small table with the whitespace character definitions you want, then 
instead of a single table name use something like 
whitespace.cti,en-us-g2.ctb However the tables also include the opcode 
"repeated" to get rid of multiple spzces, long lines of dashes, long 
lines of periods, etc. You would have to comment these out. Another way 
to preserve at least carriage returns would be to give liblouis only one 
line at a time.

John

On Wed, May 18, 2011 at 10:06:19AM -0600, 
Marc Mulcahy wrote:
> Hi All:
> 
> Sorry if this should be obvious, but I can't figure out how to use liblouis 
> to translate text preserving whitespace such as carriage returns.  Is there a 
> way to do that?
> 
> MarcFor 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

Other related posts: