Commit Graph
1594 Commits
Author SHA1 Message Date
HW 7b91935df0 Merge pull request #1230 from chrox/fix_1170
fix #1169 and #1170
2014-11-23 13:13:07 +01:00
chrox d11dba0558 fix #1169 and #1170 2014-11-23 18:06:20 +08:00
chrox 3574865dcb fix #1166 by auto alignment of option name 2014-11-23 16:52:08 +08:00
Hans-Werner Hilse f9f97163e8 wait for background thread before free()ing koptcontext
This should prevent freeing resources that are actually in use in
a background thread.
2014-11-22 14:44:24 +00:00
HW 9b5ff4ca41 Merge pull request #1224 from chrox/cover_60
add unit tests for readerdictionary and readerhighlight
2014-11-22 15:30:57 +01:00
Huang Xin 823147f8df Merge pull request #1225 from Frenzie/language
Refactored menu
2014-11-22 10:03:01 +08:00
Huang Xin b6f37debeb Merge pull request #1226 from Frenzie/filesearcher
Filesearcher: added notification for no results
2014-11-22 10:02:41 +08:00
Frans de Jonge 7c01a3f2a9 Fixed spaces stripped out by Transifex in readerui.lua by using util.template 2014-11-21 17:08:55 +01:00
Frans de Jonge da00b4b8a9 Refactored menu
While looking into #1219 I accidentally ended up refactoring some stuff.

Tested in emulator and on H2O, but be wary because I might have overlooked something.
2014-11-21 15:57:10 +01:00
chrox 566586619a add unit tests for readerdictionary and readerhighlight 2014-11-21 18:32:43 +08:00
Frans de Jonge 92f0092ad4 Filesearcher: added notification for no results 2014-11-20 22:42:51 +01:00
chrox dbf8faa9b1 remove hardcoded footer height of reader menu 2014-11-20 18:02:50 +08:00
chrox f52872b081 default autoscale for IconButton 2014-11-20 18:02:50 +08:00
chrox 8384eba810 consider also the screen size when scaling by DPI 2014-11-20 18:02:50 +08:00
chrox e66801039b refactoring: reuse IconButton for config menu bar 2014-11-20 18:02:50 +08:00
Frans de Jonge ab442c2434 gettext: unescape \n
Fixes the problem that any msgid with \n in it wouldn't show up translated.
2014-11-19 21:46:45 +01:00
Hans-Werner Hilse ab44d1f7e3 fix item number distinction (plural forms) 2014-11-19 13:25:32 +01:00
Frans de Jonge 8b9bbf918c Fix typo in #1176 2014-11-19 12:53:03 +01:00
Frans de Jonge d701d9b198 First util.template encapsulated strings 2014-11-19 12:23:37 +01:00
HW c9d6c02d04 Merge pull request #1203 from chrox/fix_1202
find the finest toc ticks by sorting out the largest one
2014-11-18 10:54:47 +01:00
NiLuJe e9573ebe58 Try to avoid more update_regions_func mismatches
scheduling tricks
2014-11-18 10:32:47 +01:00
NiLuJe f6753085ef Detect another KT2 model 2014-11-18 10:32:47 +01:00
NiLuJe 9bd089812b Tweaks and fixes for refresh logic
Don't increase counter for regional updates
Also some workarounds for Kobos

Try to avoid update_regions_func poisoning

Reset it at the end of repaint() even if nothing was found dirty

Ensure regional updates are always PARTIAL, in
case we get a region attached to an automatically triggered refresh, not
marked force_partial [which, hey, shouldn't happen, but apparently does
sometimes ^^]
2014-11-18 10:31:32 +01:00
chrox a65dcb4c0d find the finest toc ticks by sorting out the largest one 2014-11-18 16:50:37 +08:00
chrox 897358e09a add missing translation of 'Screensaver' options 2014-11-17 21:45:14 +08:00
chrox ee3c5525f9 add an option to show an arrow to indicate page overlap 2014-11-17 21:45:14 +08:00
HW c651816f4b Merge pull request #1195 from chrox/fix_1121
fix #1121
2014-11-17 11:39:44 +01:00
chrox 3e7ca5706e fix #1121 2014-11-17 18:21:47 +08:00
chrox b80dd1f966 add fulltext search for PDF documents 2014-11-17 17:58:44 +08:00
Hans-Werner Hilse 5af4ccb0c4 add support for GIF and PNG to picdocument provider
needs update to latest base
2014-11-17 10:23:06 +01:00
Hans-Werner Hilse bcf0a9923c (really?) fix refresh viewport calculations
This adds more documentation about the viewport offset calculations
for refreshing rotated viewports.

The old behaviour also was (still) buggy, even after the latest round
of fixes. Now, the offsets when rotated are hopefully calculated correct.
2014-11-17 10:04:36 +01:00
Huang Xin e54d2fec30 Merge pull request #1186 from Frenzie/filesearcher
Initial file search implementation
2014-11-17 10:04:38 +08:00
Hans-Werner Hilse 3d03713cb1 implement case-insensitive sort, make default and configurable
This will convert any file name to lowercase before doing the comparison.
Note that this will only work for ASCII character range, a full Unicode
aware solution will be much more complicated. And in the end, file names
are byte arrays, not character strings ;-)

fixes #1183.
2014-11-16 19:27:31 +01:00
Hans-Werner Hilse e031599c0a fix strcoll() workaround
The strcoll() workaround we had in place for Kobo devices was (or has
become) ineffective. We had set self.strcoll to nil on Kobo devices -
but this was the instance variable. Setting it to nil effectively makes
the instance variable vanish, so when trying to access it later, it
was not there and got looked up via the metatable - which had the original
reference. Setting it to nil had no effect whatsoever.

We simplify that approach and set the replacement function where before we
had set this to nil.

This is a partial fix for issue #1183 (and explains a comment in issue #686
which says that the old fix did not work).

However, to really fix #1183 - if we want to do so - we would need a collate
function that normalizes uppercase/lowercase before compare.
2014-11-16 19:15:24 +01:00
Hans-Werner Hilse 7e0b49edd1 fix dump() recursion detection
only detect recursions for table values.
2014-11-16 17:27:37 +01:00
Frans de Jonge 7a4b737ecd Changed "delete" in history to "remove this item from history" for clarity 2014-11-16 15:54:47 +01:00
Frans de Jonge 518c46033e Change "Search Books" to "Search books" for consistency with other search dialogs 2014-11-16 13:09:03 +01:00
Frans de Jonge 19029d1aab Comment out wasteful DEBUG statements 2014-11-16 13:08:41 +01:00
Frans de Jonge 06239fb9ec Initial file search implementation
See #1165.
2014-11-16 12:57:56 +01:00
Andrey Golovizin f785b29f34 Fix the viewport on Kobo Aura (phoenix). 2014-11-16 09:53:52 +01:00
Andrey Golovizin 50d9041c1d Use checked_func instead of remembering the checked item. 2014-11-16 09:03:00 +01:00
Andrey Golovizin a3e51b339d Show current font face in menu. 2014-11-16 08:59:35 +01:00
Andrey Golovizin c5122abb21 Show current hyphenation dictionary in menu. 2014-11-16 08:59:35 +01:00
Hans-Werner Hilse e8d576f99f fix bug in viewport offset calculation for refreshes
The calculation did not correctly calculate the offset in rotated
modes when the rotation was 90 or 270 degrees. Under these circumstances,
getWidth() and getHeight() did return rotated values for the framebuffer,
while Device.viewport did return not rotated values.
2014-11-15 22:01:04 +01:00
Andrey Golovizin 99eecde875 Use setStringProperty method to set hyphenation dictionary. 2014-11-15 12:22:47 +01:00
Huang Xin 7dbe940b71 Merge pull request #1174 from Frenzie/master
Various language-related fixes.
2014-11-15 07:43:18 +08:00
Frans de Jonge 90d3c23030 Enter *a* word to look up. 2014-11-14 23:04:27 +01:00
Frans de Jonge fcb59bfd30 Improved SetDefaults dialog message. 2014-11-14 22:01:32 +01:00
Frans de Jonge 26baa5e007 Added timeout to successful delete message. 2014-11-14 21:57:06 +01:00
Frans de Jonge 324d67a7a8 Various language-related fixes. 2014-11-14 20:34:55 +01:00