Commit Graph

214 Commits

Author SHA1 Message Date
chrox 92219a1f1e cleanup: expand tab to 4 spaces 2014-03-13 21:52:43 +08:00
chrox 560444c168 add fallback_font option in G_reader_settings 2014-03-10 22:06:17 +08:00
chrox 9f507e6447 add 'full/mini' options for progress bar of crereader 2014-02-12 15:43:52 +08:00
chrox bfff863861 fix cannot highlight hyphenated words in crereader 2014-01-22 17:25:03 +08:00
chrox 9e3e070522 check link on the fly when tapping 2014-01-20 20:41:15 +08:00
chrox e947f83548 fix dogear not shown properly in crereader 2014-01-18 19:18:12 +08:00
chrox 637904a711 add text highlight for credocument
Three highlight drawers "lighten", "underscore" and "invert" are
available in reader menu.
This should implement #176.
2014-01-18 03:11:04 +08:00
chrox 3275413366 add missing registry for fb2 document 2014-01-16 12:54:49 +08:00
chrox 1329f10fa5 add goto link function for CreDocument 2014-01-15 23:36:56 +08:00
chrox a6e885e77d show battery icon in crereader page header 2014-01-04 22:30:36 +08:00
chrox 865815b42b set visible page count when loading document 2014-01-03 19:35:45 +08:00
chrox 23982b185e add debug information in credocument api 2014-01-03 11:10:06 +08:00
chrox 210293b561 add floating punctuation option for crereader
Luckily after disabling floating punctuation left/right margin
are able to be same now (with large enough margins, should be
more than 1em). So I also changed the default page margins for
crereader and removed the dirty hack.
2014-01-03 02:07:32 +08:00
chrox 14e94f39a4 explicitly call free method of Blitbuffer 2014-01-02 19:03:52 +08:00
chrox 62e12ddfba import document module on-demand 2013-12-31 13:12:56 +08:00
chrox 3b9eaafadd add dictionary lookup in crereader 2013-12-25 01:43:28 +08:00
HW 09cd5c4104 Make DEBUG a require()d local 2013-10-22 20:51:29 +02:00
HW 748a443cd5 Merge remote-tracking branch 'upstream/master'
resolved conflicts with refactored structure
2013-10-22 17:19:08 +02:00
HW 2154e7e852 Further refactoring
This should finish the work to make all globals to local variables.
That allows LuaJIT to properly compile things by interning the
references to the relevant parts (rather than looking up globals
all the time which stops a trace).
2013-10-22 17:11:31 +02:00
HW ef111b99c6 Refactored to use strictly locals 2013-10-18 22:38:07 +02:00
Qingping Hou 10bf048d77 move configurable to Document class
since every document type is depend on it now
2013-10-17 17:28:20 -04:00
chrox c86bb46ef7 add gotoLocation for credocument 2013-10-17 23:53:29 +08:00
chrox 506dbed865 save cre3.ini on closing each credocument
and page margin settings will be restored before rendering.
This patch should fix #299.
2013-10-16 23:21:20 +08:00
chrox 32ffacdf77 adjust font sizes in credocument according to screen dpi
and font sizes list is moved to defaults.lua
2013-10-16 17:06:28 +08:00
Qingping Hou a8a589c27b only set two pages mode for crengine in kindle dxg 2013-07-28 02:35:46 -04:00
chrox 94526fa26d add page margin options in CREOptions 2013-06-28 17:12:04 +08:00
Qingping Hou 1783b16d69 credoc fix: load metadata info after document is rendered 2013-04-21 05:54:20 +08:00
chrox 22b650d0c7 move kopt/cre options into ui/data directory & wrap strings in config options 2013-04-08 22:26:54 +08:00
Qingping Hou 09e1c0af06 add gettext to document modules 2013-04-08 15:38:04 +08:00
Qingping Hou c5ff50abdf remove trailing spaces 2013-03-13 10:43:15 +08:00
chrox 87eec1b539 save/restore view mode and embedded css mode 2013-03-04 23:23:37 +08:00
chrox df7f7714e4 remove default options in KoptOptions and CreOptions 2013-02-20 13:01:52 +08:00
Qingping Hou ae6c4bd03a Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into rotate
Conflicts:
	frontend/ui/reader/readerconfig.lua
2013-02-04 15:00:17 +08:00
Qingping Hou f91c913530 set default_arg for screen_mode option on runtime 2013-02-03 13:17:02 +08:00
Qingping Hou 0dba667937 rename setScreenViewMode to setScreenMode 2013-02-03 13:13:46 +08:00
chrox a1aa41136c add manual page crop for pdf/djvu documents 2013-02-03 04:42:59 +08:00
Qingping Hou 2d9534e092 add screen rotate to readerconfig 2013-02-02 17:02:36 +08:00
Qingping Hou 6d8ebb4126 adapt credocument to new changes in cre.cpp 2013-01-22 06:27:22 +08:00
Qingping Hou 65910b2017 add default_css to credocument 2013-01-17 17:12:20 -05:00
Qingping Hou 6c4da43dbf add setStyleSheet method to credocument 2013-01-17 16:59:40 -05:00
Qingping Hou 93d3aea905 pass filename properly for zipped fb2 in CreDocument:init() 2013-01-13 12:17:43 +08:00
Qingping Hou 874890aaec save and restore gamma_index for crengine 2013-01-13 12:07:20 +08:00
Qingping Hou 02ea5f1fbf read header font from config 2013-01-13 11:23:30 +08:00
Qingping Hou 687aabc173 adapt ui to loadDocument before setFont 2013-01-13 10:22:33 +08:00
Qingping Hou 59a424203b add font gamma to readerconfig 2013-01-07 16:42:50 -05:00
Qingping Hou 5ce4f24c37 move CreOptions to credocument.lua 2013-01-07 12:32:33 -05:00
Qingping Hou 2fa919e1b6 add CreDocument:toggleFontBolder 2013-01-07 12:16:17 -05:00
Qingping Hou ac1cf212d1 add setViewMode to CreDocument 2013-01-07 06:53:35 -05:00
Qingping Hou fdc05b066c add readerconfig to document supported by crengine
* now font size can be changed by readerconfig
2013-01-06 23:21:11 -05:00
Qingping Hou 93abd2fee7 add page status to readerrolling for better page view_mode support
* now when rendering in page view mode, we only keep track of page
number instead of pos inside document. Because using pos inside
document for page view mode is really a bad idea and will lead to
many unsovlabe bugs...
2012-12-22 13:27:46 +08:00