bookreader.git
14 years agoRemove unused special page number code
Michael Ang [Thu, 10 Sep 2009 18:46:19 +0000 (18:46 +0000)]
Remove unused special page number code

14 years agoImplement click to flip and drag (with minimum distance) to pan
Michael Ang [Thu, 10 Sep 2009 18:45:50 +0000 (18:45 +0000)]
Implement click to flip and drag (with minimum distance) to pan

14 years agoIncrease image quality to reduce noise at edges of letters
Michael Ang [Thu, 10 Sep 2009 18:33:19 +0000 (18:33 +0000)]
Increase image quality to reduce noise at edges of letters

14 years agoBump version number
Michael Ang [Tue, 8 Sep 2009 23:35:44 +0000 (23:35 +0000)]
Bump version number

14 years agoPut transparent background image in flip areas so that mouse events are captured...
Michael Ang [Tue, 8 Sep 2009 23:34:22 +0000 (23:34 +0000)]
Put transparent background image in flip areas so that mouse events are captured on IE.

14 years agoIdeal height should be based on container height
Michael Ang [Tue, 8 Sep 2009 22:55:11 +0000 (22:55 +0000)]
Ideal height should be based on container height

14 years agoPrevent default at start of handler, so it's actually prevented
Michael Ang [Tue, 8 Sep 2009 22:29:06 +0000 (22:29 +0000)]
Prevent default at start of handler, so it's actually prevented

14 years agoUpdate width of flip areas
Michael Ang [Thu, 3 Sep 2009 00:19:26 +0000 (00:19 +0000)]
Update width of flip areas

14 years agoUpdate gutter value before placing flip areas
Michael Ang [Wed, 2 Sep 2009 23:53:42 +0000 (23:53 +0000)]
Update gutter value before placing flip areas

14 years agoPrefetch after scaling has been calculated
Michael Ang [Wed, 2 Sep 2009 23:35:58 +0000 (23:35 +0000)]
Prefetch after scaling has been calculated

14 years agoPrefetch images starting with current indices and moving outward
Michael Ang [Wed, 2 Sep 2009 23:27:31 +0000 (23:27 +0000)]
Prefetch images starting with current indices and moving outward

14 years agoDon't reload images when preparing two page view (as happens at resize) unless image...
Michael Ang [Wed, 2 Sep 2009 23:02:38 +0000 (23:02 +0000)]
Don't reload images when preparing two page view (as happens at resize) unless image URI (scaling) has changed.

14 years agoIf scale matches exactly we should give that image size, not a larger one.
Michael Ang [Wed, 2 Sep 2009 21:12:59 +0000 (21:12 +0000)]
If scale matches exactly we should give that image size, not a larger one.

14 years agoWIP on 0.9.14: 606aa36... On 0.9.14: keyweird
Michael Ang [Wed, 2 Sep 2009 21:00:16 +0000 (21:00 +0000)]
WIP on 0.9.14: 606aa36... On 0.9.14: keyweird

14 years agoindex on 0.9.14: 606aa36... On 0.9.14: keyweird
Michael Ang [Wed, 2 Sep 2009 21:00:16 +0000 (21:00 +0000)]
index on 0.9.14: 606aa36... On 0.9.14: keyweird

14 years agoOn 0.9.14: keyweird
Michael Ang [Tue, 1 Sep 2009 22:04:41 +0000 (22:04 +0000)]
On 0.9.14: keyweird

14 years agoindex on 0.9.14: 55f7b7f... Invisible divs at edges of spread for single-click flip.
Michael Ang [Tue, 1 Sep 2009 22:04:41 +0000 (22:04 +0000)]
index on 0.9.14: 55f7b7f... Invisible divs at edges of spread for single-click flip.

14 years agoInvisible divs at edges of spread for single-click flip.
Michael Ang [Thu, 27 Aug 2009 00:56:14 +0000 (00:56 +0000)]
Invisible divs at edges of spread for single-click flip.

14 years agoAllow mouseup to propagate, for consistency
Michael Ang [Wed, 26 Aug 2009 23:27:19 +0000 (23:27 +0000)]
Allow mouseup to propagate, for consistency

14 years agoUse jQuery event.preventDefault() in mouse event handling
Michael Ang [Wed, 26 Aug 2009 23:04:48 +0000 (23:04 +0000)]
Use jQuery event.preventDefault() in mouse event handling

14 years agoUnbind previous mouse handler when binding.
Michael Ang [Wed, 26 Aug 2009 22:45:50 +0000 (22:45 +0000)]
Unbind previous mouse handler when binding.

14 years agoFix display of zoom level in 1up. Preserve zoom level when switching modes. See...
Michael Ang [Thu, 20 Aug 2009 22:24:22 +0000 (22:24 +0000)]
Fix display of zoom level in 1up.  Preserve zoom level when switching modes.  See https://bugs.edge.launchpad.net/gnubook/+bug/341863

14 years agoUpdate version number
Michael Ang [Wed, 19 Aug 2009 22:31:33 +0000 (22:31 +0000)]
Update version number

14 years agoPrettier formatting for zoom percentage displayed in toolbar
Michael Ang [Wed, 19 Aug 2009 21:49:32 +0000 (21:49 +0000)]
Prettier formatting for zoom percentage displayed in toolbar

14 years agoBetter calculation of ideal spread size. Offset from gutter was being applied in...
Michael Ang [Wed, 19 Aug 2009 21:31:46 +0000 (21:31 +0000)]
Better calculation of ideal spread size.  Offset from gutter was being applied in wrong direction.

14 years agoAssign total leaf edge width before using that value in calculation!
Michael Ang [Wed, 19 Aug 2009 20:34:21 +0000 (20:34 +0000)]
Assign total leaf edge width before using that value in calculation!

14 years agoChange page flip action in two up to double click. Show "move" icon when over pages...
Michael Ang [Wed, 19 Aug 2009 19:13:24 +0000 (19:13 +0000)]
Change page flip action in two up to double click.  Show "move" icon when over pages in 2up.

14 years agoFix zoom quantization going from 2up to 1up
Michael Ang [Mon, 17 Aug 2009 23:59:14 +0000 (23:59 +0000)]
Fix zoom quantization going from 2up to 1up

14 years agoFix typo
Michael Ang [Mon, 17 Aug 2009 23:30:22 +0000 (23:30 +0000)]
Fix typo

14 years agoCleanup
Michael Ang [Mon, 17 Aug 2009 23:21:19 +0000 (23:21 +0000)]
Cleanup

14 years agoCruft removal.
Michael Ang [Mon, 17 Aug 2009 23:09:13 +0000 (23:09 +0000)]
Cruft removal.

14 years agoBetter sizing for cover in right to left flip. See https://bugs.edge.launchpad.net...
Michael Ang [Mon, 17 Aug 2009 22:37:49 +0000 (22:37 +0000)]
Better sizing for cover in right to left flip.  See https://bugs.edge.launchpad.net/gnubook/+bug/413355

14 years agoHard stop flip animations when stopping autoplay. Don't reprepare page view if new...
Michael Ang [Mon, 17 Aug 2009 22:24:07 +0000 (22:24 +0000)]
Hard stop flip animations when stopping autoplay.  Don't reprepare page view if new zoom is the same.

14 years agoQuantize zoom in 2up going to autofit when its zoom level falls between quantized...
Michael Ang [Mon, 17 Aug 2009 19:39:42 +0000 (19:39 +0000)]
Quantize zoom in 2up going to autofit when its zoom level falls between quantized levels.  See https://bugs.edge.launchpad.net/gnubook/+bug/411591 and https://bugs.edge.launchpad.net/gnubook/+bug/413819

14 years agoChange to autofit mode when starting autoplay. See https://bugs.edge.launchpad.net...
Michael Ang [Mon, 17 Aug 2009 18:43:36 +0000 (18:43 +0000)]
Change to autofit mode when starting autoplay.  See https://bugs.edge.launchpad.net/gnubook/+bug/414936

14 years agoSet offset of twopagediv before adding images to reduce visual glitches during zoom...
Michael Ang [Fri, 14 Aug 2009 23:21:09 +0000 (23:21 +0000)]
Set offset of twopagediv before adding images to reduce visual glitches during zoom.  See https://bugs.edge.launchpad.net/gnubook/+bug/413353

14 years agoAllow reduction factors down to 32. Reduces size of loaded images in 2up when zoomed...
Michael Ang [Fri, 14 Aug 2009 22:18:32 +0000 (22:18 +0000)]
Allow reduction factors down to 32.  Reduces size of loaded images in 2up when zoomed out far.  See https://bugs.edge.launchpad.net/gnubook/+bug/333458

14 years agoQuantize reduction factor in 2up. See https://bugs.edge.launchpad.net/gnubook/+bug...
Michael Ang [Fri, 14 Aug 2009 21:38:24 +0000 (21:38 +0000)]
Quantize reduction factor in 2up. See https://bugs.edge.launchpad.net/gnubook/+bug/411591

14 years agoRecenter if no scrollbars during non-autofit 2up resize
Michael Ang [Fri, 14 Aug 2009 01:01:15 +0000 (01:01 +0000)]
Recenter if no scrollbars during non-autofit 2up resize

14 years agoIf there won't be scrollbars in a direction when zooming (out) center the book in...
Michael Ang [Fri, 14 Aug 2009 00:48:12 +0000 (00:48 +0000)]
If there won't be scrollbars in a direction when zooming (out) center the book in that axis.

14 years agoOnly recalculate and re-center 2up mode after resize if autofit.
Michael Ang [Fri, 14 Aug 2009 00:44:06 +0000 (00:44 +0000)]
Only recalculate and re-center 2up mode after resize if autofit.

14 years agoPreserve 2up view center during zoom. WIP
Michael Ang [Fri, 14 Aug 2009 00:07:42 +0000 (00:07 +0000)]
Preserve 2up view center during zoom.  WIP

14 years agoCenter two page view at resize. WIP
Michael Ang [Thu, 13 Aug 2009 23:32:50 +0000 (23:32 +0000)]
Center two page view at resize.  WIP

14 years agoBetter calculation for cover left position in calculateSpreadSize. WIP
Michael Ang [Thu, 13 Aug 2009 18:43:11 +0000 (18:43 +0000)]
Better calculation for cover left position in calculateSpreadSize. WIP

14 years agoImproved center calculation. Comments. WIP
Michael Ang [Thu, 13 Aug 2009 18:35:04 +0000 (18:35 +0000)]
Improved center calculation.  Comments.  WIP

14 years agoDon't return unused ratio from getIdealSpreadSize
Michael Ang [Thu, 13 Aug 2009 18:10:33 +0000 (18:10 +0000)]
Don't return unused ratio from getIdealSpreadSize

14 years agoWork on left/right flip. WIP
Michael Ang [Thu, 13 Aug 2009 17:52:13 +0000 (17:52 +0000)]
Work on left/right flip.  WIP

14 years agoDoc problem area with link to Launchpad
Michael Ang [Wed, 12 Aug 2009 23:58:38 +0000 (23:58 +0000)]
Doc problem area with link to Launchpad

14 years agoBook cover div position calculated relative to book center
Michael Ang [Wed, 12 Aug 2009 23:56:15 +0000 (23:56 +0000)]
Book cover div position calculated relative to book center

14 years agoMore refactoring of layout code in 2up. WIP
Michael Ang [Wed, 12 Aug 2009 23:46:55 +0000 (23:46 +0000)]
More refactoring of layout code in 2up.  WIP

14 years agoCleanup and comments
Michael Ang [Wed, 12 Aug 2009 22:36:52 +0000 (22:36 +0000)]
Cleanup and comments

14 years agoConsolidate calculation and formatting for zoom percentage in toolbar. Fixes "zoom...
Michael Ang [Wed, 12 Aug 2009 18:38:25 +0000 (18:38 +0000)]
Consolidate calculation and formatting for zoom percentage in toolbar.  Fixes "zoom percentage in toolbar should be pretty formatted" (https://bugs.edge.launchpad.net/gnubook/+bug/411581)

14 years agoMore consistent use of GBtwopageview
Michael Ang [Mon, 10 Aug 2009 21:33:41 +0000 (21:33 +0000)]
More consistent use of GBtwopageview

14 years agoRefactoring zoom code
Michael Ang [Mon, 10 Aug 2009 21:05:25 +0000 (21:05 +0000)]
Refactoring zoom code

14 years agoBetter zooming in/out in 2up. WIP
Michael Ang [Mon, 10 Aug 2009 19:17:32 +0000 (19:17 +0000)]
Better zooming in/out in 2up.  WIP

14 years agoMore cruft removal
Michael Ang [Fri, 7 Aug 2009 22:16:51 +0000 (22:16 +0000)]
More cruft removal

14 years agoCruft removal
Michael Ang [Fri, 7 Aug 2009 22:16:32 +0000 (22:16 +0000)]
Cruft removal

14 years agoTwo page zoom WIP
Michael Ang [Fri, 7 Aug 2009 22:15:33 +0000 (22:15 +0000)]
Two page zoom WIP

14 years agoRefactor calculation of ideal spread size into its own function, getIdealSpreadSize
Michael Ang [Fri, 7 Aug 2009 18:51:41 +0000 (18:51 +0000)]
Refactor calculation of ideal spread size into its own function, getIdealSpreadSize

14 years agoMove two page mode specific variables to this.twoPage object.
Michael Ang [Fri, 7 Aug 2009 18:25:40 +0000 (18:25 +0000)]
Move two page mode specific variables to this.twoPage object.

14 years agoNote to self about cleaning up in-code CSS
Michael Ang [Thu, 6 Aug 2009 22:47:31 +0000 (22:47 +0000)]
Note to self about cleaning up in-code CSS

14 years agoMerge branch '0.9.12' into twopagezoom
Michael Ang [Thu, 6 Aug 2009 22:41:28 +0000 (22:41 +0000)]
Merge branch '0.9.12' into twopagezoom

14 years agoFix typo (min vs max)
Michael Ang [Thu, 6 Aug 2009 22:39:47 +0000 (22:39 +0000)]
Fix typo (min vs max)

14 years agoHook up generic zoom function which dispatches to mode-specific function
Michael Ang [Thu, 6 Aug 2009 22:17:14 +0000 (22:17 +0000)]
Hook up generic zoom function which dispatches to mode-specific function

14 years agoUpdate comments noting possible point for improvement in tooltip positioning
Michael Ang [Wed, 5 Aug 2009 23:36:04 +0000 (23:36 +0000)]
Update comments noting possible point for improvement in tooltip positioning

14 years agoTwo page popup position accounts for offset of GBcontainer div
Michael Ang [Wed, 5 Aug 2009 23:31:31 +0000 (23:31 +0000)]
Two page popup position accounts for offset of GBcontainer div

14 years agoAdd scrollTop to two page popup since it positioned inside GBcontainer which may...
Michael Ang [Wed, 5 Aug 2009 23:20:52 +0000 (23:20 +0000)]
Add scrollTop to two page popup since it positioned inside GBcontainer which may be scrolling

14 years agoJump index still works since it was using document-relative coordinates
Michael Ang [Wed, 5 Aug 2009 23:17:54 +0000 (23:17 +0000)]
Jump index still works since it was using document-relative coordinates

14 years agoDisplay two page jump popup relative to GBcontainer
Michael Ang [Wed, 5 Aug 2009 23:13:21 +0000 (23:13 +0000)]
Display two page jump popup relative to GBcontainer

14 years agoMove two page display into GBtwopageview, similar to GBpageview
Michael Ang [Wed, 5 Aug 2009 22:38:17 +0000 (22:38 +0000)]
Move two page display into GBtwopageview, similar to GBpageview

14 years agoUse clientWidth to account for possible presence of scroll bars
Michael Ang [Wed, 5 Aug 2009 22:12:07 +0000 (22:12 +0000)]
Use clientWidth to account for possible presence of scroll bars

14 years agoRemove note to self
Michael Ang [Mon, 3 Aug 2009 20:37:23 +0000 (20:37 +0000)]
Remove note to self

14 years agoPreserve center of view when zooming in 1up. See https://bugs.edge.launchpad.net...
Michael Ang [Wed, 22 Jul 2009 15:29:30 +0000 (15:29 +0000)]
Preserve center of view when zooming in 1up.  See https://bugs.edge.launchpad.net/gnubook/+bug/402262

14 years agoNotes to self
Michael Ang [Tue, 21 Jul 2009 15:05:03 +0000 (15:05 +0000)]
Notes to self

14 years agoAdjust jpeg image compression (65% quality instead of 90%) to reduce download times...
Michael Ang [Mon, 20 Jul 2009 16:04:43 +0000 (16:04 +0000)]
Adjust jpeg image compression (65% quality instead of 90%) to reduce download times.  Addresses https://bugs.edge.launchpad.net/gnubook/+bug/394013

14 years agoMerge Replace hardcoded zoom percentage from scollett. See https://bugs.edge.launchp...
Michael Ang [Mon, 20 Jul 2009 13:30:58 +0000 (13:30 +0000)]
Merge Replace hardcoded zoom percentage from scollett.  See https://bugs.edge.launchpad.net/gnubook/+bug/394950

Merge commit '162afb7a06c13547bd7fb15f6a5a8fe3da67c251' into 0.9.12

14 years agoHide mode and autoplay buttons if 2up is not available. See https://bugs.edge.launch...
Michael Ang [Thu, 9 Jul 2009 22:07:12 +0000 (22:07 +0000)]
Hide mode and autoplay buttons if 2up is not available.  See https://bugs.edge.launchpad.net/gnubook/+bug/394525

14 years agoMode button not present if not applicable
Michael Ang [Thu, 9 Jul 2009 21:52:52 +0000 (21:52 +0000)]
Mode button not present if not applicable

14 years agoGenerate proper URIs for books inside sub-directories. See https://bugs.edge.launchp...
Michael Ang [Thu, 9 Jul 2009 00:13:59 +0000 (00:13 +0000)]
Generate proper URIs for books inside sub-directories.  See https://bugs.edge.launchpad.net/gnubook/+bug/397219

14 years agoAllow sub-books such as /stream/itemid/subbook1 and /stream/itemid/subbook2. See...
Michael Ang [Wed, 8 Jul 2009 23:33:03 +0000 (23:33 +0000)]
Allow sub-books such as /stream/itemid/subbook1 and /stream/itemid/subbook2.  See https://bugs.edge.launchpad.net/gnubook/+bug/375056

14 years agoMerge branch 'multiitem' of /home/testflip/bookreader into multiitem
Michael Ang [Tue, 7 Jul 2009 22:42:55 +0000 (22:42 +0000)]
Merge branch 'multiitem' of /home/testflip/bookreader into multiitem

14 years agoUse dev code if on dev host
Michael Ang [Tue, 7 Jul 2009 22:41:40 +0000 (22:41 +0000)]
Use dev code if on dev host

14 years agoAllow for file names containing '-'
Michael Ang [Thu, 2 Jul 2009 00:27:02 +0000 (00:27 +0000)]
Allow for file names containing '-'

14 years agoSupport for books that do not have file names the same as the item identifier.
Michael Ang [Thu, 2 Jul 2009 00:22:45 +0000 (00:22 +0000)]
Support for books that do not have file names the same as the item identifier.

14 years agoDeclare variable for cleanliness
Michael Ang [Tue, 30 Jun 2009 23:46:55 +0000 (23:46 +0000)]
Declare variable for cleanliness

14 years agoWherein we demonstrate the utility of QA testing.
Michael Ang [Tue, 30 Jun 2009 23:41:47 +0000 (23:41 +0000)]
Wherein we demonstrate the utility of QA testing.

14 years agoSmushed version. The file was previously a jpg!
Michael Ang [Tue, 30 Jun 2009 23:41:14 +0000 (23:41 +0000)]
Smushed version.  The file was previously a jpg!

14 years agoFix typo
Michael Ang [Tue, 30 Jun 2009 22:24:08 +0000 (22:24 +0000)]
Fix typo

14 years agoNew function getPageName(index) which returns user-visible page name. Map search...
Michael Ang [Tue, 30 Jun 2009 22:05:08 +0000 (22:05 +0000)]
New function getPageName(index) which returns user-visible page name.  Map search results to page name.  Show "Searching..." while search is in progress.

14 years agoRound and clamp jump index values coming from book edge.
Michael Ang [Tue, 30 Jun 2009 21:44:48 +0000 (21:44 +0000)]
Round and clamp jump index values coming from book edge.

14 years agoMerge branches 'ambiguouspage', 'fixembed', 'jquery13' and 'smushit' into merge
Michael Ang [Mon, 29 Jun 2009 23:28:36 +0000 (23:28 +0000)]
Merge branches 'ambiguouspage', 'fixembed', 'jquery13' and 'smushit' into merge

14 years agoBump version number.
Michael Ang [Mon, 29 Jun 2009 23:01:54 +0000 (23:01 +0000)]
Bump version number.

14 years agoOnly attempt to convert title leaf to index if titleLeaf is set.
Michael Ang [Mon, 29 Jun 2009 22:26:02 +0000 (22:26 +0000)]
Only attempt to convert title leaf to index if titleLeaf is set.

14 years agoUse CSS-relative paths for images. Fixes embed case.
Michael Ang [Mon, 29 Jun 2009 22:21:08 +0000 (22:21 +0000)]
Use CSS-relative paths for images.  Fixes embed case.

14 years agoUpgrade to jQuery 1.3. Fix problem where .show() was changing toolbar display attrib...
Michael Ang [Fri, 26 Jun 2009 22:51:45 +0000 (22:51 +0000)]
Upgrade to jQuery 1.3.  Fix problem where .show() was changing toolbar display attribute to block.

14 years agoSmushed images
Michael Ang [Fri, 26 Jun 2009 22:05:42 +0000 (22:05 +0000)]
Smushed images

14 years agoFix wrong function call
Michael Ang [Tue, 23 Jun 2009 22:34:44 +0000 (22:34 +0000)]
Fix wrong function call

14 years agoClean up metadata to remove duplicate page number assertions. Last page to make...
Michael Ang [Tue, 23 Jun 2009 22:27:37 +0000 (22:27 +0000)]
Clean up metadata to remove duplicate page number assertions.  Last page to make the assertion wins.

14 years agoReturn page numbers as "n{index}" if no page number is defined for that index. Show...
Michael Ang [Tue, 23 Jun 2009 18:18:16 +0000 (18:18 +0000)]
Return page numbers as "n{index}" if no page number is defined for that index.  Show "View Page {pagenum}" for leaf edge mouseover tooltip.

14 years agoMake naming of various wrt "leaf" or "index" more consistent
Michael Ang [Tue, 23 Jun 2009 18:06:41 +0000 (18:06 +0000)]
Make naming of various wrt "leaf" or "index" more consistent