About the architecture of the FBReader source code

107 views
Skip to first unread message

bercago

unread,
Oct 4, 2009, 10:24:30 PM10/4/09
to FBReader
Hi Everyone,
I just downloaded the source code of FBReader 0.11.0,
I would like to look into it and understand how it is implemented.

But I didn't find any help doc which can help me to get into it
quickly.

Is there such ducumentation existed?
Or can anyone give me an introduction about the code structure/
architecture?
especially where is the doc decode engine and how it coworks with the
presentation layer.

I uncompressed the source code and there are following folders:
Distributions
fbreader
makefiles
zlibrary

Thanks for help
bercago

geometer

unread,
Oct 5, 2009, 3:18:52 PM10/5/09
to FBReader
Sorry,

There is no description of the FBReader architecture outside the
developers heads. In the other hand, there are several fbreader-based
project (like OpenInkpot); that means it's possible to understand the
architecture if you are interested in. ;)

As for the decoding engine, take a look into the fbreader/formats/
<your format> directory.

I'm not sure what you mean as 'presentation layer'; if you mean a text
formatting engine, the directory zlibrary/text will be interesting for
you.

Best,

-- Nikolay

bercago

unread,
Oct 5, 2009, 9:53:08 PM10/5/09
to FBReader
Hi Nikolay,
Thanks for your information.

The presentation layer I mensioned is something like "MMI",
the GUI, user input interaction and so on.

I guess we need to open a file,
use correct decoder engine to decode the file,
and the decoder engine will return a kind of data to MMI to display.

I want to know what kind of data the decoder will return?
a pure ASCII text? or the decoded result has to be layout by text
formatting engine?

Thanks for your help
bercago
> > bercago- Hide quoted text -
>
> - Show quoted text -

techfanatic

unread,
Oct 8, 2009, 12:22:08 AM10/8/09
to FBReader
a pixmap ?

geometer

unread,
Oct 8, 2009, 4:29:54 AM10/8/09
to FBReader
Decoder "returns" an internal text model presentation, an instance of
type ZLPlainTextModel (zlibrary/text/src/model).

-- Nikolay
Reply all
Reply to author
Forward
0 new messages