"Phil Krylov" phil@newstar.rinet.ru wrote:
Added some missing but useful items to the RichEdit TODO list.
- full justification
- hyphenation
- tables
What kind of hyphenation richedit needs? Would an automatic, not dictionary based algorithm suffice?
In 1996-97 I've developed and implemented that kind of algorithm for russian language and MS Word/Pagemaker. It produces much better results than Ventura Publisher for DOS and similar results to (released later) builtin automatic hyphenation in Pagemaker 6.0 (russian edition).
The code has been written for TurboC/DOS but should be easy enough to port), and I would be happy if it could be handy for Wine's richedit. Just let me know and I'll send the sources.
Hi Dmitry,
On Sat, 23 Jul 2005 00:41:42 +0900 "Dmitry Timoshkov" dmitry@baikal.ru wrote:
What kind of hyphenation richedit needs? Would an automatic, not dictionary based algorithm suffice?
Actually I'm unsure if the original RichEdit implements any hyphenation algorithm itself. However, version 4.1 allows to specify a callback function for hyphenation via EM_SETHYPHENATEINFO message. I need to perform some tests to see if there is any default algorithm. If there is one, we should also implement it, and your code could be useful (but probably only for East Slavic languages as the algorithm must be language-specific).
-- Ph.
On Friday 22 July 2005 11:41, Dmitry Timoshkov wrote:
"Phil Krylov" phil@newstar.rinet.ru wrote:
Added some missing but useful items to the RichEdit TODO list.
- full justification
- hyphenation
- tables
What kind of hyphenation richedit needs? Would an automatic, not dictionary based algorithm suffice?
There was some apparently good, groundbreaking work done for TeX's hyphenation algorithms. I don't have the reference handy, but it's at least a very good algorithm for English, and it seems like many other lanugages that people use TeX with also put that method to good use.
If anyone cares, I'll try digging up that reference from TeXbook.
Kuba