2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

1693 Commits

Author SHA1 Message Date
kai771
326b9065de another fixes to overlap in 2 column mode (this time with fw left/right) 2012-11-17 23:13:52 +01:00
kai771
7adb096c4d overlap bugfixes (again)
1. Fixes showing overlap when it shouldn't in 2 column mode
2. number jumps (10%, 20% etc) should reset overlap
3. jumps from TOC should reset overlap
2012-11-17 22:57:01 +01:00
Tigran Aivazian
20fe6e9af9 Merge pull request #603 from chrox/k2pdfopt-v1.62
remove unused function dprintf
2012-11-17 11:42:39 -08:00
chrox
38abe95ad3 remove unused function dprintf 2012-11-18 03:33:32 +08:00
Tigran Aivazian
07ff1474a3 Merge pull request #596 from kai771/emu_rotate
Implements Kindle screen rotate on emulator and forces portrait mode on doc close
2012-11-17 11:04:18 -08:00
{Qingping,Dave} Hou
a100014c47 Merge pull request #602 from chrox/k2pdfopt-v1.62
cleanup unused variables in libk2pdfopt
2012-11-17 10:42:21 -08:00
chrox
e38e889e6d cleanup unused variables 2012-11-18 02:33:52 +08:00
{Qingping,Dave} Hou
bafcea0d33 Merge pull request #601 from chrox/k2pdfopt-v1.62
bugfix: fixed missing words in last line
2012-11-17 10:24:18 -08:00
kai771
9f68c07b5a force portrait mode on KPV start too 2012-11-17 17:36:16 +01:00
chrox
b60566bfe2 cleanup: comment out unnecessary debugs 2012-11-17 23:30:00 +08:00
chrox
ffd49835af bugfix: fixed missing words in last line 2012-11-17 23:14:17 +08:00
Tigran Aivazian
f3f193c69b Merge pull request #600 from chrox/k2pdfopt-v1.62
update k2pdfopt to version 1.62
2012-11-17 06:09:03 -08:00
chrox
f792eeb227 cleanup: don't log reflow duration to file 2012-11-17 21:16:49 +08:00
chrox
31e4f6ba89 update k2pdfopt to version 1.62 2012-11-17 21:12:45 +08:00
Tigran Aivazian
7f3256511d Merge pull request #599 from kai771/bugfix_overlap
fixes a bug that dracodoc reported in #597. I missed it :(
2012-11-17 01:13:48 -08:00
kai771
fc604057b6 fixes a bug that dracodoc reported in #597. I missed it :( 2012-11-17 00:18:48 +01:00
kai771
eafeb2fce3 force portrait mode after closing document 2012-11-16 22:52:58 +01:00
kai771
3f6bea1220 Implements Kindle screen rotate on emulator 2012-11-16 22:21:59 +01:00
Tigran Aivazian
b681967243 Merge pull request #594 from kai771/overlap_fix
Overlap on/off improvement
2012-11-16 10:10:17 -08:00
kai771
47fd08a3a3 fixes and changes suggested by tigran123 2012-11-16 17:58:35 +01:00
kai771
2382d46c66 deleted call to :inform() 2012-11-15 22:17:25 +01:00
kai771
2b5e161575 things I missed 1 2012-11-15 21:07:53 +01:00
kai771
427f1c6a10 Overlap on/off improvement
Turning off overlap was instantly visible, but turning it back on was visible only on the next view. This makes both turning on/off overlap instantly visible. Since the result of a keypress is immediately visible, I commented out the inform message, since it's not needed anymore.
2012-11-15 20:45:54 +01:00
Tigran Aivazian
ccea393775 Merge pull request #593 from kai771/shift-s_bugfix
bugfix: bottom of bbox should be respected in fit-to-content-width mode
2012-11-15 10:01:05 -08:00
kai771
4c3f9fdeb7 bugfix: bottom of bbox should be respected in fit-to-content-width mode 2012-11-15 18:24:26 +01:00
Tigran Aivazian
4dc1d479bc Merge pull request #590 from tigran123/inform2
Cleanup InfoMessage:inform() API and its usage
2012-11-15 05:57:55 -08:00
Tigran Aivazian
609089629c Cleanup InfoMessage:inform() API and its usage
This patch changes the second argument of InfoMessage:inform() function
to be either DINFO_DELAY or DINFO_NODELAY with the following
semantics:

DINFO_DELAY - display the message and delay DINFO_DELAY ms before
returning. Save and restore the screen content.

DINFO_NODELAY - display the message and return immediately without
saving/restoring the screen content.

Also, tidy up the call to modBBox() from Shift-X command handler, it
should be unireader:modBBox() and not self:modBBox(unireader) --- there
is no need to pass the reader object to the :modBBox() method.
2012-11-15 13:35:41 +00:00
Tigran Aivazian
81b3da5bd8 Merge pull request #588 from chrox/modbbox-method
refactoring: move function in "Shift+X" command into the modBBox method
2012-11-15 05:09:58 -08:00
Tigran Aivazian
e6559f158e Merge pull request #589 from chrox/kopt-reflowlog
add function to log page reflow duration
2012-11-15 04:19:12 -08:00
chrox
2d0659f33a add function to log page reflow duration 2012-11-15 18:02:58 +08:00
chrox
974a6dd066 refactoring: move function in "Shift+X" command into the modBBox method
So that other modules like koptconfig could reuse the code to have the
fuctionality of modifying the page bbox.
2012-11-15 18:00:08 +08:00
Tigran Aivazian
d7d718fc53 Merge pull request #586 from chrox/master
bugfix: change the default word spacing for koptreader
2012-11-15 00:23:40 -08:00
chrox
3945ab232b bugfix: change the default word spacing for koptreader
Because in most Chinese docs there is very small spacing between
characters compared to the word spacing in English docs. The previous
default is ideal for English documents but is too large for
Chinese docs so that it will be impossible to read reflowed
Chinese pages without changing in to a smaller value. I decrease the
default value a little in this patch so that both English and Chinese
documents will have a satisfatory reflow by default although it's better
to switch it to large for English doc and change it to small for Chinese
doc.
2012-11-15 12:02:51 +08:00
Tigran Aivazian
95be75c87e Merge pull request #585 from tigran123/fast1
Bugfix: toggle popup windows don't disappear
2012-11-14 11:41:53 -08:00
Tigran Aivazian
fd0120ad69 Bugfix: toggle popup windows don't disappear
Thanks to kai771's idea of setting the value of DINFO_TIMEOUT_FAST=1
(in defaults.lua) we can still have the same behaviour of calls to
InfoMessage:inform(..DINFO_TIMEOUT_FAST..) on both the emulator and the
Kindle without the need to manually refresh the page after the call.
Also, now we don't need to set pagedirty=true in filechooser when
displaying a popup window with DINFO_TIMEOUT_FAST flag.
Also, add space to the end of the text messages passed to :inform() for
symmetry.
2012-11-14 19:38:05 +00:00
Tigran Aivazian
4e74b70b9f Revert "Bugfix: need page redraw after DINFO_TIMEOUT_FAST"
This reverts commit 3393a4a9ea5fd41d0a97cb9e6ae2ebd00b9f03b1.
2012-11-14 19:32:02 +00:00
Tigran Aivazian
3268e487f0 Bugfix: need page redraw after DINFO_TIMEOUT_FAST
I have removed the calls to self:redrawPage() recently after the calls
to InfoMessage:inform() with DINFO_TIMEOUT_FAST because on the emulator
the screen was refreshed automatically. But not so on the real Kindle
hardware --- we have to refresh the page explicitly, otherwise the popup
window stays until one forces manual refresh via Space or turns the page
(or causes a refresh by some other way, e.g. pressing Menu twice).
This patch restores those calls to self:redrawCurrentPage().
Also, it adds space to the end of some messages for symmetry and
switches Alt-Z toggle to DINFO_TIMEOUT_FAST mode as well.
2012-11-14 19:32:02 +00:00
Tigran Aivazian
8aa7530782 Merge pull request #583 from chrox/kopt-threads
bugfix: wait only when the bgthread is running
2012-11-14 11:30:19 -08:00
Tigran Aivazian
ca12b469dc Merge pull request #580 from kai771/zip_in_pdfreader
Adds zip ext to PDFReader and makes extensions accesible through defaults.lua
2012-11-14 11:07:47 -08:00
kai771
5a3eca91d2 moved comment about pdb from readerchooser.lua to defaults.lua 2012-11-14 19:44:02 +01:00
chrox
8d0a6f6ee2 bugfix: wait only when the bgthread is running
When the bgthread has finished, do the fgthread's reflow.
2012-11-15 01:55:25 +08:00
kai771
01331ed4d1 explicitly require defaults in readerchooser.lua 2012-11-14 18:20:47 +01:00
kai771
b14d79d225 Adds zip ext to PDFReader and makes extensions accesible through defaults.lua
A lot of manga comes as .zip, and not .cbz (for all intents and purposes, it
is the same thing, just the extension is different). This allows the user to
choose the reader to open her zip files - PDFReader or CREReader, in the same
way she can choose to use PDFReader or PDFReflow for pdf files. I also moved
the list of supported extensions to defaults.lua.
2012-11-14 17:41:02 +01:00
Tigran Aivazian
af463cd993 Merge pull request #578 from tigran123/goto-page
Optimize UniReader:redrawCurrentPage()
2012-11-14 01:47:25 -08:00
Tigran Aivazian
3fd89106bd Merge pull request #577 from tigran123/link-jumps
Add any link jump to the history.
2012-11-14 01:38:27 -08:00
Tigran Aivazian
f3c5670016 Merge pull request #571 from tigran123/bbox-fix
Don't slow down :inform() when modifying bbox (and other very minor fixes)
2012-11-14 01:37:50 -08:00
Tigran Aivazian
348a496f8c Merge pull request #579 from chrox/kopt-threads
bugfix: save one reflow when switching between multi-threads on and off
2012-11-14 01:37:19 -08:00
chrox
5ca6c8728c cleanup: change drawToCache method name to writeToCache
It will be more reasonable to fit in the read(reflow) - write(cache) -
draw(blit) system.
2012-11-14 10:11:09 +08:00
chrox
7faeece952 bugfix: save one reflow when switching between multi-threads on and off
The multi_threads variable should be excluded from the hash as cache
from the multi-threads procedure is valid for non-multi-threads
procedure and vice versa.
2012-11-14 10:03:44 +08:00
Tigran Aivazian
96da77ba96 Make the code more compact. 2012-11-13 23:34:58 +00:00