Re: Re: Some Open Source libraries about hyphenation_ChenXiajian

From: chenxiajian1985 <chenxiajian1985_at_gmail.com>
Date: Mon Apr 04 2011 - 08:51:54 CEST

I try to use libhyphenate to implement the hyphenation. And then refer to the source code of libhyphenate.
In libhyphenate, it is easy to carry out the hyphenation.

#include <libhyphenate\Hyphenator.h>
#include <iostream>
using namespace Hyphenate;
using namespace std;
int main () {
   cout << "The hyphenation of the english word example is: "
        << Hyphenator(RFC_3066::Language("en")).hyphenate("example") << endl;
   return 0;
}


now, I read the source code of libhyphenate to find what we can refer to libhyphenate.

Thank you very much!


2011-04-04



chenxiajian1985



发件人: Chaitanya Kansal
发送时间: 2011-04-04 13:34:15
收件人: chenxiajian1985
抄送:
主题: Re: Some Open Source libraries about hyphenation_ChenXiajian
 
Hi!
I have not used libhyphenate.
But have been trying to integrate the 'hunspell' dictionaries for
hyphenation. What do you say? Have you worked with them?
On Sun, Apr 3, 2011 at 8:58 PM, chenxiajian1985
<chenxiajian1985@gmail.com> wrote:
> Hello, my name is Chen Xiajian. I come from Chinese Academy of Sciences. I am interested in the project in Add Hyphenation support to AbiWord in GSoc2011.
>
> I think hyphenation is locale dependent because in different languages, some data type such as number and date are different from each other. So we must find a method support for many different Languages besides English. AbiWord is the word processor for everybody, not just English speakers.
>
> I have searched some Open Source libraries we can use to determine word break points. There is a wide range of different free open source solutions for spell-checking and hyphenation by computer.
> 1. libhyphenate -- An hyphenation library for C++, LGPL Hyphenation Library. Developer Steve Wolter has released Version 1.0 of Libhyphenate, his C++ hyphenation library. Libhyphenate implements the hyphenation algorithm also used by the Tex layout system. The library currently supports hyphenation libraries for English, German and French. More languages can be generated from the corresponding Tex files.
> 2. In the thesis” Word Hyphenation by Computer” mention a lot of library. I think we can read that.
> 3. wordaxe : Hyphenation by decomposition of compound words
> 4. SyFi: A C++ library built on top of the symbolic math library GiNaC.
> ===============some python and other language libraries we can refer to===============
> 1 PyHyphen: Hyphenation module for Python programs with the ability to automatically hyphenate words using an algorithm which is based on decomposition of compound words into base words, and is named DCWHyphenator in the code.
> 2 Pslib is a C-library to create PostScript files on the fly. It offers text rendering including hyphenation, kerning and gatures.
> 3 XHTML hyphenator: XHTML hyphenator is a hyphenation program for XHTML documents.
>
> I will spend more time to care about the C++ hyphenation library.
>
>
> Recently I will try to implement hyphenation algorithm using libhyphenate in VS2008.
> And make an programming example. I think I can find more thing need to care about while programming.
>
>
> Anyone who has the programming experience using libhyphenate to implement hyphenation algorithm can give some advices.
> Thank you very much!
>
>
>
Received on Mon Apr 4 08:52:06 2011

This archive was generated by hypermail 2.1.8 : Mon Apr 04 2011 - 08:52:06 CEST