The problem with the patch is that the "hyphenation-hint" (<font fontSize="1"> </font>) is added pretty much everywhere in the text. That destroys the ability to copy&paste text, increases filesize etc.

That's why I am hesitant to include it in our repository.

Best,
Volker

On 08/02/2010 03:57 PM, Fabrizio Tronci wrote:
Oops, I've pasted the wrong regex :P. The working code is

     newelem = []
     for elem in txtList:
                if style != 'box' or style !=  'source' or style !=  
'preformatted':
                        elem = re.sub(re.compile('([^<]/[^>]|\+|-|_|\?)(\S)'), 
'\g<1>%s
\g<2>' %'<font fontSize="1">  </font>' , elem)
                newelem.append(elem)
     _txt = ' '.join(newelem)
     # fine modifiche
     _txt = _txt.strip()

~ Fabrizio


--
volker haas                 brainbot technologies ag
fon +49 6131 2116394        boppstraße 64
fax +49 6131 2116392        55118 mainz
[email protected]    http://www.brainbot.com/

--
You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/mwlib?hl=en.

Reply via email to