The rectangle is specified as - Rotate the image in 90 degree increments. region - (not yet implemented) the reader should attempt to show the given rectangle specified in source image coordinates or source image percentages.mode - can be 1up for single page display or 2up for two page display.The GnuBook reader supports the following options: For the Archive this corresponds to pages with addToAccessFormat true in the scandata.xml.įor books where there are multiple leafs with the same page number the index form can be used to uniquely identify the page.ĭisplay options inform the bookreader how the book should be displayed to the user. Each page that should be included in the access formats (bookreader, PDF, etc) is given a monotonically increasing number starting from 0. At the level of the bookreader and user-visible URLs the underlying leaf numbers should not be exposed unless necessary. It corresponds to the image sequence taken during the scanning process. Note: "Leaf" is a concept from the Archive's Scribe scanning software. damaged) or other reasons page numbers are not continuous. There may be foldouts, pages missing (e.g. How do we handle these?Īn external site or embedding should not assume that the page numbers are available or monotonically increasing. compilations of articles) which may have more than one page with the same number. Named pages (such as the title page) may be referred to using the page name.Ĭover (automatically chosen "best" image to represent the book)Ĭover0 (first marked cover, or 404 if no cover image was explicitly marked)įirst (corresponds to first page 1 if marked) String-based page numbers should be compared in lowercase. Our earlier Scribe 1 books may have Roman Numeral pages marked. The page numbers may be either numeric or a string (e.g. When the page numbers are available they may be referenced with: The image stack can also contain images which should not be considered for access (e.g. a completely blank page may face a figure page, both of which are inserted between consecutively numbered pages). In addition, certain pages are not numbered at all (e.g. These two are equivalent and would be remapped to the canonical order:įor a book with a set of numbered camera images we do not always have a mapping between these images and the page numbers (as printed in the book). Specifying display options (zoom level, 2-page view) If a reader implementation does not understand a given key-value pair, it should be ignored.īookreader URLs support the following functionality: The purpose for the remapping to canonical order is to reduce the number of URLs "out there" on the net that point to the same resource. by redirecting, so it appears in the address bar). A user supplied URL will be remapped to the canonical order when given back to the user (e.g. We specify a canonical order in which the key-value pairs should occur but accept the key-value pairs in whatever order the user-agent specifies. The keys and values are separated by '/'. Minimal/sufficient features - keep the supported feature set small yet sufficient for core tasksīookreader URLs are composed of key-value pairs. Resilience - display and other options should be accepted in any order "translucency" - while not being fully descriptive, BookReader URLs should give some indication to a human what they point to URLs have the following goals:Ĭompactness - short enough to be printed on the cover of a book or included in an academic paper.- uses cookies to remember the current page.- automatically updates the browser url.- add tts (read aloud) ui, sound library, and callbacks.See the plugins directory for all the included plugins, but here are some examples: The general idea is that they are mixins that augment the BookReader prototype. See the examples in the plugins directory. TODO (for now see src/BookReader/options.js).drawing & resizing the book and the various modes (1up, 2 page spread, gallery view)Ī peek in how to use/extend core functionality:.init ( ) īookReader's core functionality is in jQuery. Create the BookReader object var options = var br = new BookReader ( options ) // Let's go! br.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |