bookreader.git
14 years agoResolve conflicts with upstream repository
scollett [Mon, 16 Nov 2009 18:27:53 +0000 (10:27 -0800)]
Resolve conflicts with upstream repository

14 years agoMerge branch 'master' of git://github.com/openlibrary/bookreader
scollett [Fri, 13 Nov 2009 23:51:13 +0000 (15:51 -0800)]
Merge branch 'master' of git://github.com/openlibrary/bookreader

14 years agoAdd the functionality of a thumbnail view
scollett [Fri, 13 Nov 2009 23:42:43 +0000 (15:42 -0800)]
Add the functionality of a thumbnail view

14 years agoBump version number
Michael Ang [Fri, 13 Nov 2009 18:58:11 +0000 (18:58 +0000)]
Bump version number

14 years agoMove code for synethesizing blank pages out of integration specific code
Michael Ang [Thu, 12 Nov 2009 18:54:44 +0000 (18:54 +0000)]
Move code for synethesizing blank pages out of integration specific code

14 years agoCenter to search result after clicking on it in 1up. See https://bugs.edge.launchpad...
Michael Ang [Thu, 12 Nov 2009 00:50:46 +0000 (00:50 +0000)]
Center to search result after clicking on it in 1up.  See https://bugs.edge.launchpad.net/gnubook/+bug/394533

14 years agoRecalc search hilites on 1up resize in anticipation of 1up fit mode
Michael Ang [Wed, 11 Nov 2009 23:49:09 +0000 (23:49 +0000)]
Recalc search hilites on 1up resize in anticipation of 1up fit mode

14 years agoRecalculate search hilites after zoom
Michael Ang [Wed, 11 Nov 2009 23:43:15 +0000 (23:43 +0000)]
Recalculate search hilites after zoom

14 years agoUpdate currentIndex() to return only indices actually in book. Page number box uses...
Michael Ang [Wed, 11 Nov 2009 22:58:52 +0000 (22:58 +0000)]
Update currentIndex() to return only indices actually in book.  Page number box uses currentIndex()

14 years agoReuse page background colour logic in drawLeafsTwoPage
Michael Ang [Wed, 11 Nov 2009 22:52:24 +0000 (22:52 +0000)]
Reuse page background colour logic in drawLeafsTwoPage

14 years agoDebugging removal
Michael Ang [Wed, 11 Nov 2009 22:41:55 +0000 (22:41 +0000)]
Debugging removal

14 years agoCheck if in 2up mode when calculating last displayable index. Cruft removal.
Michael Ang [Wed, 11 Nov 2009 22:39:51 +0000 (22:39 +0000)]
Check if in 2up mode when calculating last displayable index.  Cruft removal.

14 years agoProper calculation of first/last displayable index taking into account page progression
Michael Ang [Wed, 11 Nov 2009 22:13:34 +0000 (22:13 +0000)]
Proper calculation of first/last displayable index taking into account page progression

14 years agoDisplay of first/last page in 2up. WIP.
Michael Ang [Wed, 11 Nov 2009 21:56:17 +0000 (21:56 +0000)]
Display of first/last page in 2up.  WIP.

14 years agoBump version number
Michael Ang [Mon, 9 Nov 2009 19:02:54 +0000 (19:02 +0000)]
Bump version number

14 years agoHate hate IE7
Michael Ang [Fri, 6 Nov 2009 22:24:15 +0000 (22:24 +0000)]
Hate hate IE7

14 years agoAvoid unnecessary call to build search page map, especially since it doesn't work...
Michael Ang [Thu, 5 Nov 2009 00:04:00 +0000 (00:04 +0000)]
Avoid unnecessary call to build search page map, especially since it doesn't work for books in subdirs.  Resolves https://bugs.edge.launchpad.net/gnubook/+bug/397219

14 years agoHack to update search terms box for case where search is triggered by loading fresh...
Michael Ang [Wed, 4 Nov 2009 23:42:01 +0000 (23:42 +0000)]
Hack to update search terms box for case where search is triggered by loading fresh GB in new browser window.

14 years agoOn trigger search from url fragment if fragment search differs from current search.
Michael Ang [Wed, 4 Nov 2009 22:50:49 +0000 (22:50 +0000)]
On trigger search from url fragment if fragment search differs from current search.

14 years agoPass through arrow/page key events when keyboard nav is disabled
Michael Ang [Wed, 4 Nov 2009 22:47:54 +0000 (22:47 +0000)]
Pass through arrow/page key events when keyboard nav is disabled

14 years agoRemove slashes in search terms
Michael Ang [Wed, 4 Nov 2009 22:34:05 +0000 (22:34 +0000)]
Remove slashes in search terms

14 years agoUpdate URL fragment with search term if search term is active in the current view.
Michael Ang [Wed, 4 Nov 2009 19:58:01 +0000 (19:58 +0000)]
Update URL fragment with search term if search term is active in the current view.

14 years agoTrigger search from terms passed in by URL. See https://bugs.launchpad.net/gnubook...
Michael Ang [Mon, 2 Nov 2009 23:30:23 +0000 (23:30 +0000)]
Trigger search from terms passed in by URL.  See https://bugs.launchpad.net/gnubook/+bug/126611

14 years agoAdded icon toggle button for thumbnail mode
scollett [Mon, 12 Oct 2009 20:15:52 +0000 (13:15 -0700)]
Added icon toggle button for thumbnail mode

14 years agoAdded basic thumbnail view (single row) based one page view
scollett [Mon, 12 Oct 2009 18:13:16 +0000 (11:13 -0700)]
Added basic thumbnail view (single row) based one page view

14 years agoUse encodeURIComponent instead of escape, since escape doesn't handle all characters...
Michael Ang [Sat, 26 Sep 2009 00:27:15 +0000 (00:27 +0000)]
Use encodeURIComponent instead of escape, since escape doesn't handle all characters properly.

14 years agoProcess escaped unicode characters in title
Michael Ang [Fri, 25 Sep 2009 20:49:07 +0000 (20:49 +0000)]
Process escaped unicode characters in title

14 years agoSpecify file path instead of just index so that images for multi-items are found...
Michael Ang [Fri, 25 Sep 2009 20:26:13 +0000 (20:26 +0000)]
Specify file path instead of just index so that images for multi-items are found correctly.

14 years agoBump version number
Michael Ang [Wed, 23 Sep 2009 18:21:52 +0000 (18:21 +0000)]
Bump version number

14 years agoCruft quarantine
Michael Ang [Wed, 23 Sep 2009 18:15:15 +0000 (18:15 +0000)]
Cruft quarantine

14 years agoClean up rotation logic.
Michael Ang [Wed, 23 Sep 2009 02:49:41 +0000 (02:49 +0000)]
Clean up rotation logic.

14 years agoEscape input params. Tweak conditional print.
Michael Ang [Wed, 23 Sep 2009 02:29:19 +0000 (02:29 +0000)]
Escape input params.  Tweak conditional print.

14 years agoPass in book title and page names to use as title
Michael Ang [Wed, 23 Sep 2009 02:19:36 +0000 (02:19 +0000)]
Pass in book title and page names to use as title

14 years agoDon't immediately print on Safari -- give the user a chance to resize the window
Michael Ang [Wed, 23 Sep 2009 01:53:19 +0000 (01:53 +0000)]
Don't immediately print on Safari -- give the user a chance to resize the window

14 years agoPrint icon and link. These are not themselves printed.
Michael Ang [Wed, 23 Sep 2009 01:47:05 +0000 (01:47 +0000)]
Print icon and link.  These are not themselves printed.

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 agoMerge branch 'master' of git://github.com/openlibrary/bookreader
scollett [Tue, 15 Sep 2009 19:35:26 +0000 (12:35 -0700)]
Merge branch 'master' of git://github.com/openlibrary/bookreader

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.