DigitalLatin / viewer

HTML Document viewer for DLL editions
GNU Affero General Public License v3.0
8 stars 4 forks source link

Need a convention for splitting texts #1

Open hcayless opened 8 years ago

hcayless commented 8 years ago

We need to decide how the viewer will know how to split up texts into pages for viewing. For Calpurnius, it's fairly straightforward: obviously, each poem is a reasonable viewing "chunk". But it will be much less obvious for prose, or even longer poetry, like epics.

Options:

  1. We could decide on an arbitrary limit, say 100-line chunks for verse and maybe a word count for prose (i.e. split after the paragraph containing the 1000th word or something like that)—that is, have the chunking be algorithmically determined.
  2. We could embed milestones, like Perseus does, that trigger a split in the text.

A related problem is navigation and building a table of contents.

sjhuskey commented 7 years ago

I prefer option #1. I have never liked the chunking in Perseus, and I don't like the idea of encoding breaks. I'd rather do it algorithmically.

How does this affect navigation and building of the table of contents?