Hello, All
I have successfully program to implement hyphenation using libHyphenate.
The attachment is screenshot and the codes.
LibHyphenate provides an implementation of Frank Liangs hyphenation
algorithm,better known as the TeX hyphenation algorithm,
for C++ and C.
the code is:
Hyphenator(RFC_3066::Language("en")).hyphenate("example")
'en' is the language-> we can change to other language
'example' is the input word
the output is the hyphenation result
=====================================language=====================
In order to hyphenate text, one must supply knowledge about the
language used. Unfortunately, both the well-established tex
hyphenation dictionaries and the libhnj dictionaries used by Star
Office lack one crucial bit of information, namely how many
characters have to be left unhyphenated at the start and end of each
word. This breaks, for example, the german language
patterns, which might be the language needing hyphenation most.
So the test folder contains some language file format. such as
'en'/'de'/'fr'....
=====================================abiword=====================
I have find where to add the code in Abiword to implement hyphenation.
If the library can be used in Abiword, I will have a
test.
Anyone who is interested in that can disscus with me, Thanks
Chen Xiajian
å‘件人: Fabiano_Fid阯cio
å‘逿—¶é—´ï¼š 2011-04-18 15:02:01
收件人: abiword-dev
抄é€ï¼š
主题: [patch] Using NSMenuItem class instead of NSMenuItem protocol
Howdy!
There's a lot of Cocoa's deprecated methods being used in current
version of AbiWord.
So, I'm starting a big clean to fix possible problems and segmentation faults.
I'm trying to organize my self, so, some patches will be send (I hope)
each one fixing a specific problem.
First of this is to use NSMenuItem class instead of NSMenuItem
protocol, according with developer.apple.com:
"The NSMenuItem protocol is being removed from the Application Kit;
you must use the
NSMenuItem class instead."
So, could someone review and apply?
Best Regards,
--
Fabiano Fidêncio
This archive was generated by hypermail 2.1.8 : Mon Apr 18 2011 - 09:10:03 CEST