Hi Christian, I'll have to think about this and get back to you. Your suggestion that the cursor-position code might be extended to handle external hyphenation has possibilities. John On Fri, Nov 18, 2011 at 05:01:04PM +0100, Christian Egli wrote: > Hi all > > I was wondering if there was a way to use liblouis to translate > pre-hyphenated text and get contracted text containing hyphenation > markers. In other words I would send a string containing soft hyphens to > lou_translate and I'd expect to receive the contracted string containing > the soft hyphens where they have not been obliterated by the > contraction. I would imagine that the code that deals with cursor > position has the functionality to find out if a position in the string > is still there in the contracted string. Maybe the hyphenation marks > could be converted into virtual dots so that we can use the existing > translation tables. After the contraction we'd have to find out if a > hyphenation point is still valid. > > My motivation is that hyphenation in liblouisxml/utdml currently works > with back-translation which is very poor for German. So I'm hoping that > there is a possibility to do the hyphenation in an external step before > doing the braille translation. > > Thanks > Christian > > -- > Christian Egli > Swiss Library for the Blind, Visually Impaired and Print Disabled > Grubenstrasse 12, CH-8045 Zürich, Switzerland > > ----- > Neu bei der SBS: 9000 Buecher kaufen oder schenken. Mehr dazu finden Sie > unter http://www.sbs.ch/verkauf > 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