Commit Graph

39 Commits (2b185961e8dff79a4248b98c4c6345daa827d96a)

Author SHA1 Message Date
Qingping Hou f70dc54864 update getXPointer method definition 12 years ago
Dobrica Pavlinusic 3c19365145 use DEBUG_CRENGINE from enviroment if available
This allows to specify DEBUG_CRENGINE=1 while compiling without editing
source code
12 years ago
Dobrica Pavlinusic 484d85ab0f getSelections can be 0
This depends on visible selections and not on content of file. So if we
have search results on screen this will be more than 0, but if we don't
we won't get any link shortcuts
12 years ago
Dobrica Pavlinusic 08d26596b8 use CRLog::debug instead of printf, removed unused code 12 years ago
Dobrica Pavlinusic 24d4b82f2d getSelections can return empty ldomXRangeList 12 years ago
Dobrica Pavlinusic 2103461a43 return section separate from url and fix highlight 12 years ago
Dobrica Pavlinusic f2933a32c0 added clearSelection
Conflicts:

	unireader.lua
12 years ago
Dobrica Pavlinusic bc4d2e7a49 added gotoLink
Conflicts:

	unireader.lua
12 years ago
Dobrica Pavlinusic 60edf54e2f getPageLinks implementation for crengine formats
Conflicts:

	cre.cpp
	crereader.lua
	unireader.lua
12 years ago
Tigran Aivazian 9e786e0eed Small typo that wasted millions of instructions.
Now that #define CRENGINE_DEBUG is handled correctly, all those pesky
messages from crengine are gone and so the performance of crereader
should be much better --- remember that under some circumstances
crengine generates literally THOUSANDS of debug messages per second
(e.g. when complaining about corrupt TOC nodes and there are _plenty_ of
fb2 files out there which have an invalid structure).
12 years ago
Qingping Hou 619f5a0f34 set crengine cache size in lua code
Conflicts:

	crereader.lua
12 years ago
Dobrica Pavlinusic e23cc2a1de use 64Mb for on disk DOM cache for crengine
Previously we had cache size limit of 100 bytes, so crengine would erase
all on-disk cache on each file open as described in #206
12 years ago
Dobrica Pavlinusic 04e6df1fd0 use ldomDocCache::init to cache crengine DOM
This should improve performance of crengine #206
12 years ago
Dobrica Pavlinusic 3d291f52ac disable DEBUG_CRENGINE 12 years ago
Dobrica Pavlinusic 3cd19db601 showInfoMsgWithDelay with number of results
Conflicts:

	crereader.lua
12 years ago
Dobrica Pavlinusic 09440f600c correctly return first search position and refresh screen
Conflicts:

	crereader.lua
12 years ago
Dobrica Pavlinusic dadbf000c9 coolreader search highlight
This is rough port of Android code, but seems to work

Conflicts:

	cre.cpp
	crereader.lua
12 years ago
Qingping Hou 9e6940621b add getFontFace in cre.cpp and credocument.lua
also move self.font_face to readerfont module
12 years ago
Qingping Hou 62f73c177b add getFontSize in cre.cpp 12 years ago
Qingping Hou 845aae3e37 rename getXPointer to getCurrentXPointer in cre.cpp 12 years ago
Qingping Hou b53e421a27 add getPosFromXPointer in cre.cpp 12 years ago
Qingping Hou e7d16de4e2 first demo for credocument 12 years ago
Qingping Hou 1ff8cfd299 bump crengine to cr3.0.57-1 12 years ago
Qingping Hou e282179793 fix bug in addJump and addBookmark
Pointed out by kljohann, thanks.
Now addJump and addBookmark get notes
from specified pageno/xpointer instead
of current page.

* also fixed bug in page number counting
  in cre.cpp
12 years ago
Qingping Hou 35e4ceaf57 fix page comparing in addJump 12 years ago
HW ec905a5a13 fixed various bugs in pointer handling 12 years ago
HW e4841e88c4 added line spacing setting for crereader
this patch also introduces an interface for setFontSize and setStyleSheet.
Hopefully, we can use the latter to send customized CSS to CREngine
as Lua strings. This functionality is however untested for now.
12 years ago
Qingping Hou e42530bbc0 mod: set DrawBuf to 4bpp mode in cre.cpp 12 years ago
HW ec2eda0c05 switched font handling to only work with external fonts
now you can use a environment variable, FONTDIR, to point
to a font dir. Otherwise, "./fonts" is used by default.
Subdirectories are indexed.
12 years ago
Qingping Hou cb83e47875 mod: use XPointer as absolute postion indicator inside document 12 years ago
Qingping Hou 9650a4a057 add: gamma settings in crereader 12 years ago
Qingping Hou 085d79d033 add: font menu and bold attribute toggle shortcut in crereader 12 years ago
Qingping Hou f90ae38cb5 mod: load css in crereader 12 years ago
Qingping Hou 74ffdf019e add: dirty hack for libjpeg as workaround
no segfault now, but no images displayed.
12 years ago
Qingping Hou 4633ca0832 mod: use percent as absolute location in DOCs in CREReader
The height of documents will be changed after zoom in or
zoom out, so we cannot use pos to mark positions inside
documents.
12 years ago
Qingping Hou ad750a89f8 add: font zooming in CREReader 12 years ago
Qingping Hou ad9d13a947 mod: rename TOC to Toc, adapt showMenu to CREReader 12 years ago
Qingping Hou 178e6597e2 add: TOC support 12 years ago
Qingping Hou c56516d5d1 add: data from crengine 12 years ago