[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: hyphenator in xsl implementing LIANG's algorithm
Subject: Re: hyphenator in xsl implementing LIANG's algorithm|
From: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Thu, 27 Aug 2009 12:33:51 +0200
Bruno Mascret schrieb:
The patterns are regex indicating where a substring can be cut.
Only odd numbers (1 and 3) are valid hyphens.
If a regex matches a region of the word, this region is replaced with
At the end, for each position, only the max number is kept, and if
this number is odd then it gives an hyphen.
I see. A clever algorithm. And it all depends on the quality of the
For more explanations, you may read this article in English (only the
first part concerns Liang algorythm):
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format