bookreader.git
14 years agoImplementation with new window and server based content. Prints better in Safari.
Michael Ang [Wed, 23 Sep 2009 01:21:57 +0000 (01:21 +0000)]
Implementation with new window and server based content.  Prints better in Safari.

14 years agoUse CSS to break title at word boundaries if not enough space to display full title
Michael Ang [Tue, 22 Sep 2009 22:19:11 +0000 (22:19 +0000)]
Use CSS to break title at word boundaries if not enough space to display full title

14 years agoPrints on single page in Safari
Michael Ang [Mon, 21 Sep 2009 23:21:00 +0000 (23:21 +0000)]
Prints on single page in Safari

14 years agoImproved print UI
Michael Ang [Mon, 21 Sep 2009 22:50:16 +0000 (22:50 +0000)]
Improved print UI

14 years agoShow page preview with assumed aspect ratio. Text links for Prev Next
Michael Ang [Mon, 21 Sep 2009 22:09:38 +0000 (22:09 +0000)]
Show page preview with assumed aspect ratio.  Text links for Prev Next

14 years agoBetter print layout
Michael Ang [Mon, 21 Sep 2009 21:43:37 +0000 (21:43 +0000)]
Better print layout

14 years agoUse rotate/scale if passed in
Michael Ang [Mon, 21 Sep 2009 21:39:40 +0000 (21:39 +0000)]
Use rotate/scale if passed in

14 years agoAdd ability to go to previous or next pages when printing.
Michael Ang [Mon, 21 Sep 2009 21:00:49 +0000 (21:00 +0000)]
Add ability to go to previous or next pages when printing.

14 years agoRemove php backend version. Now using dynamically populated iframe
Michael Ang [Mon, 21 Sep 2009 21:00:05 +0000 (21:00 +0000)]
Remove php backend version. Now using dynamically populated iframe

14 years agoHide print icon when embedded
Michael Ang [Mon, 21 Sep 2009 20:55:54 +0000 (20:55 +0000)]
Hide print icon when embedded

14 years agoRefactor generation of html for print iframe to own function
Michael Ang [Mon, 21 Sep 2009 19:21:36 +0000 (19:21 +0000)]
Refactor generation of html for print iframe to own function

14 years agoBind load event before iframe is added to document DOM.
Michael Ang [Mon, 21 Sep 2009 19:14:09 +0000 (19:14 +0000)]
Bind load event before iframe is added to document DOM.

14 years agoPrint icon
Michael Ang [Mon, 21 Sep 2009 18:00:31 +0000 (18:00 +0000)]
Print icon

14 years agoDynamic iframe implementation
Michael Ang [Fri, 18 Sep 2009 02:57:19 +0000 (02:57 +0000)]
Dynamic iframe implementation

14 years agoInclude subPrefix in embed code if needed (for multi or user item). See https:/...
Michael Ang [Fri, 18 Sep 2009 01:29:29 +0000 (01:29 +0000)]
Include subPrefix in embed code if needed (for multi or user item).  See https://bugs.edge.launchpad.net/gnubook/+bug/429768

14 years agoUse subPrefix in embed code. Needed for multi/user-uploaded items.
Michael Ang [Fri, 18 Sep 2009 01:23:08 +0000 (01:23 +0000)]
Use subPrefix in embed code.  Needed for multi/user-uploaded items.

14 years agoFix bug preventing pages with number assertions from being accessed by index. See...
Michael Ang [Fri, 18 Sep 2009 00:52:32 +0000 (00:52 +0000)]
Fix bug preventing pages with number assertions from being accessed by index.  See https://bugs.edge.launchpad.net/gnubook/+bug/432204

14 years agoPass image aspect ratio to page printer. Rotate image for better fit (assume portrai...
Michael Ang [Fri, 18 Sep 2009 00:38:04 +0000 (00:38 +0000)]
Pass image aspect ratio to page printer.  Rotate image for better fit (assume portrait orientation) if possible.  Fit based on assumed paper size.

14 years agoAdd jp2 image rotation to image processor
Michael Ang [Thu, 17 Sep 2009 18:21:49 +0000 (18:21 +0000)]
Add jp2 image rotation to image processor

14 years agoFocus print iframe before printing so that IE prints the frame instead of the documen...
Michael Ang [Tue, 15 Sep 2009 23:00:15 +0000 (23:00 +0000)]
Focus print iframe before printing so that IE prints the frame instead of the document window

14 years agoMerge commit 'origin/master' into mangprint
Michael Ang [Tue, 15 Sep 2009 21:38:00 +0000 (21:38 +0000)]
Merge commit 'origin/master' into mangprint

Update print code with latest from mainline development

Conflicts:
GnuBook/GnuBook.js
GnuBook/GnuBookEmbed.css

14 years agoRevert "Remove unused special page number code"
Michael Ang [Thu, 10 Sep 2009 19:48:47 +0000 (19:48 +0000)]
Revert "Remove unused special page number code"

May be needed for named pages to access them by index.  Reverting for now.

This reverts commit d009b21bbcbfee26566cf694f52376ab92c6e336.

14 years agoBump version number
Michael Ang [Thu, 10 Sep 2009 18:57:49 +0000 (18:57 +0000)]
Bump version number

14 years agoRename functions for closer to consistency
Michael Ang [Thu, 10 Sep 2009 18:50:44 +0000 (18:50 +0000)]
Rename functions for closer to consistency

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