The Natural Philosopher:
>Erick T. Barkhuis wrote:
>>Is that size depending on the number of characters? The size of the
>>characters? Anything else? Is the user able to change appearance, so
>>that the contents of the 'page' is different from what another user
>>may expect?
>
>I wuill go with ans near as possible a nailed down font at a fixed
>size.
I'm just curious: on what type of device will the pages be shown? And
with what presentation technique?
>>If you can calculate the offset at the time you need to present the
>>data, there's no need (yet) to store that offset. It would even be
>>useless as soon as you decide to change the size of the frame or
>>chunk.
>>
>
>that has to be preset as I cannot second guess what page size the
>user might want.
Can't your application keep track of the page size the user has chosen,
and what page he is on now? For instance by using sessions (if that's
possible on the device).
>
>So he ghets a fixed number of chars per page ..I suppose actual page
>373 is just 373 x no of chars in a page and skip back to the last
>whitespace..but it gets trickier when I put in images.
You said we should leave images out of scope!
>Hence the need to pre calculate, not to do it on the fly.
Well, if the document has images and paragraph titles, and animation
movies and whatnot (which may or may not be blocked separately by the
user), you will not be in charge of the presentation. But you can still
be in charge of the data...and that's what the database is for.
[Imagine what would happen if you replace one image by another of
different size...your database records wouldn't fit to page anymore!]
However, just a completely different thought:
- why would you want to store the book in a database in the first place?
- wouldn't you rather store it as a book (for instance a PDF-file) and
present numbered pages of that PDF-file instead of records from a
database?
--
Erick