Re: chenxiajian_enchant_dict_hyphenationSuggest ?

From: Kathiravelu Pradeeban <kk.pradeeban_at_gmail.com>
Date: Sat Jun 18 2011 - 16:37:19 CEST

Hi Chen,
As you discussed with me during our last chat, have you implemented
this? Can you pls send the enchant specific code that you have
implemented as a patch so that I can have a look?

Can you also pls send a quick update of your progress to the mailing
list upto now? We have been discussing over gtalk and personal mail.
So a higher level update to the group would be great to see how far we
have gone against the timeline that we have initially come up.

We will also need a quick chat to ensure that we are on the track.

Thank you.
Regards,
Pradeeban.

On Tue, Jun 14, 2011 at 7:32 PM, Urmas <davian818@gmail.com> wrote:
> From: "chenxiajian1985" <chenxiajian1985@gmail.com>
> Subject: chenxiajian_enchant_dict_hyphenationSuggest ?
>
>> I try to implement hyphenation using enchant. so I add one method in enchant.
>> ENCHANT_MODULE_EXPORT (char **)
>> enchant_dict_hyphenationSuggest (EnchantDict * dict, const char *const word,
>> ssize_t len, size_t * out_n_suggs);
>>
>
> No, you'll need a separate object for doing hyphenation, something like:
>
> EnchantHyph* enchant_broker_request_hyph(EnchantBroker*, const char *const lang);
>
> to create an provider-dependant hyphenation object, and
>
> char *enchant_hyph_hyphenate(EnchantHyph *hyphenator, const char *const word);
>
> which would call a virtual method of "hyphenator" to obtain results;
>
>>
>> 2. what is the best way to encode hyphenation results from enchant
>>   now I used (char **) to save the hyphenation results:
>>   such as : the word "hyphenation" can be save as:
>>   "hy-phen-ation" "hyphen-ation"....
>
> That's looks like terribly inefficient way, better just to return a string with embedded meta-characters (like '~' or control ones) in most desired and less desired breakpoints.

-- 
Kathiravelu Pradeeban.
Software Engineer.
WSO2 Inc.
Blog: [Llovizna] http://kkpradeeban.blogspot.com/
Received on Sat Jun 18 16:37:44 2011

This archive was generated by hypermail 2.1.8 : Sat Jun 18 2011 - 16:37:44 CEST