Re: Add Hyphenation support to AbiWord_chenxiajian

From: Martin Sevior <msevior_at_gmail.com>
Date: Fri Apr 01 2011 - 12:26:12 CEST

Dear Chen,

Thank you very much for your detailed and enthusiastic application to
me. I have a few suggestions.

Firstly your application should be submitted to google through:
 http://socghop.appspot.com/gsoc/homepage/google/gsoc2011

Secondly when sending word processing documents, you impress me a lot
more if you send me documents made with abiword :-)

I didn't like to receive documents written in MS Word format for
project which competes directly with MS Word.

Next I like to give free and open help to everyone so I reply to the
abiword-dev mailing list
when answering general questions. I won't give away your ideas at
first but if and when you are accepted it is important you communicate
with everyone in the project. We do this by having discussions on
either mailing list or in our IRC channel. abiword#gimpnet

Prabadeen made a really nice presentation about Open Source etiquette.
You can read it here:

http://www.docstoc.com/docs/71909183/GSoC-2011-AbiWord

OK I hope I haven't put you off :-) I'm really a rather friendly
person but I thought it would help to point these things out very
directly.

OK on to your application. It's great to see you dig into the code and
start your investigations. You've correctly identified the code that
calculates the width of the on-screen document in pixels. These are
what we call "Device Units".

We actually layout text with an abstract set of units called "Layout
Units". Our text is positioned on a virtual canvas at a resolution of
1040 dots per inch (DPI). We then translate this to on-screen
locations in device units when we actually draw to the screen or print
to paper. These layout units map directly to paper sizes like Letter,
A4 etc so that what you see on screen is what ends up on printed
paper.

This technique allows us to rapidly zoom the document and ensure that
the document as seen on the screen is what is actually delivered when
we print to paper or print to a pdf driver.

The code that does all the text positioning, which is the core of the
project, is located in the directory:

src/text/fmt/xp/*.(h,cpp)

You will need to adjust the code in fb_LineBreaker.(h,cpp) and
fb_Alignment.(h,cpp)

Your flow diagrams are almost exactly what I envisioned would be
necessary, so that is great.

However, you need to investigate what library you will use to
determine the breakpoints within words. I believe that the TeX
formatting system has much of what we need but I have no idea if we
can pull out just the code we need from the package.

Furthermore there may be other Open Source libraries we can use to
determine word break points. If at all possible it would be great to
use a library that has support for many different Languages besides
English. AbiWord is the word processor for everybody, not just English
speakers :-)

 OK, Good luck with your application! You certainly have a very
impressive resume'

Cheers

Martin

2011/4/1 chenxiajian1985 <chenxiajian1985@gmail.com>:
> Hello, my name is Chen Xiajian. I come from Chinese Academy of Sciences. I
> am interested in the project AbiWord in GSoc2011.
> The Attachment is the my proposal in Add Hyphenation support to AbiWord and
> my screenshot to build the AbiWord in VS2008.
>
>
> I am looking forward to hear from you and you suggestion is helpfull to me
> Thank you very much!
>
>
> Best Regards!
> Chen xiajian
>
>
>
> 2011-03-31
> ________________________________
> chenxiajian1985
Received on Fri Apr 1 12:26:29 2011

This archive was generated by hypermail 2.1.8 : Fri Apr 01 2011 - 12:26:29 CEST