hi, Gabriela. Thank you for your reply. ^_^
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'....
You can find a dictionary can support more than a few languages? I think we can find it by track what the Open Office do to slove this problem?
chenxiajian1985
发件人: Gabriela Botea
发送时间: 2011-04-18 19:59:11
收件人: chenxiajian1985
抄送: abiword-dev
主题: Re: [Discussion] implement hyphenation using libHyphen_Chen Xiajian
Hello, Chen!
I saw that you would like to add hyphentaion support to abiword using
libHyphenate, but I am not sure, as you said, that this dictionary can
support more than a few languages, and as I have seen, abiword should
add (at least in the future), support for many languages.
Will this mean that if this library will not add support for other
languages, that abiword will have to change the library used?
I am also interested in adding hyphenation support to abiword, but I
was thinking of firstly finding a powerful tool for the hyphenation
dictionary.
What are your ideas regarding where to add the library code in abiword?
Best regards,
On 18 April 2011 10:09, chenxiajian1985 <chenxiajian1985@gmail.com> wrote:
> 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
>
>
--
Gabriela Botea
Polytechnic University of Bucharest
Faculty of Automatic Control and Computers
Received on Mon Apr 18 14:45:32 2011
This archive was generated by hypermail 2.1.8 : Mon Apr 18 2011 - 14:45:32 CEST