Dobrica Pavlinusic
5e1a6b3101
use DEBUG_CRENGINE from enviroment if available
...
This allows to specify DEBUG_CRENGINE=1 while compiling without editing
source code
2012-10-13 20:53:02 +02:00
Dobrica Pavlinusic
7b6ab1a486
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
2012-10-13 19:33:23 +02:00
Dobrica Pavlinusic
08f2c2e2f2
use CRLog::debug instead of printf, removed unused code
2012-10-13 19:29:33 +02:00
Dobrica Pavlinusic
17bf58b062
getSelections can return empty ldomXRangeList
2012-10-13 13:47:15 +02:00
Dobrica Pavlinusic
bbb5ec00a5
return section separate from url and fix highlight
2012-10-11 19:29:10 +02:00
Dobrica Pavlinusic
1d4dc8f280
added clearSelection
2012-10-11 19:29:03 +02:00
Dobrica Pavlinusic
99cf95c96f
added gotoLink
2012-10-11 19:28:43 +02:00
Dobrica Pavlinusic
60e01c8636
getPageLinks implementation for crengine formats
2012-10-11 19:27:31 +02:00
Tigran Aivazian
8f68227c3c
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).
2012-10-04 08:26:08 +01:00
Qingping Hou
1eb7162796
set crengine cache size in lua code
2012-09-10 21:45:05 +08:00
Dobrica Pavlinusic
880374f5db
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
2012-09-10 13:42:47 +02:00
Dobrica Pavlinusic
3fe518979c
use ldomDocCache::init to cache crengine DOM
...
This should improve performance of crengine #206
2012-09-09 12:58:04 +02:00
Dobrica Pavlinusic
989016ece5
disable DEBUG_CRENGINE
2012-08-28 23:15:34 +02:00
Dobrica Pavlinusic
bc0a911e7e
showInfoMsgWithDelay with number of results
2012-08-28 22:14:57 +02:00
Dobrica Pavlinusic
7d10a636e7
correctly return first search position and refresh screen
2012-08-28 21:56:46 +02:00
Dobrica Pavlinusic
adf0b42e5b
coolreader search highlight
...
This is rough port of Android code, but seems to work
2012-08-28 20:56:05 +02:00
Qingping Hou
d04370464b
add getPosFromXPointer in cre.cpp
2012-06-06 16:20:13 +08:00
Qingping Hou
c2cb95f8e8
remove patch in cre.cpp since it is accepted by upstream
2012-05-01 16:25:04 +08:00
Qingping Hou
1ff8cfd299
bump crengine to cr3.0.57-1
2012-04-24 10:07:41 +08:00
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
2012-04-19 09:58:34 +08:00
Qingping Hou
35e4ceaf57
fix page comparing in addJump
2012-04-19 00:04:41 +08:00
HW
ec905a5a13
fixed various bugs in pointer handling
2012-04-16 22:51:13 +02:00
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.
2012-04-14 00:38:18 +02:00
Qingping Hou
e42530bbc0
mod: set DrawBuf to 4bpp mode in cre.cpp
2012-04-11 17:06:37 +08:00
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.
2012-04-09 19:04:26 +02:00
Qingping Hou
cb83e47875
mod: use XPointer as absolute postion indicator inside document
2012-04-07 22:55:56 +08:00
Qingping Hou
9650a4a057
add: gamma settings in crereader
2012-04-06 19:30:10 +08:00
Qingping Hou
085d79d033
add: font menu and bold attribute toggle shortcut in crereader
2012-04-06 18:05:54 +08:00
Qingping Hou
f90ae38cb5
mod: load css in crereader
2012-04-04 17:25:18 +08:00
Qingping Hou
74ffdf019e
add: dirty hack for libjpeg as workaround
...
no segfault now, but no images displayed.
2012-04-04 02:57:02 +08:00
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.
2012-03-31 20:22:22 +08:00
Qingping Hou
ad750a89f8
add: font zooming in CREReader
2012-03-30 12:31:09 +08:00
Qingping Hou
ad9d13a947
mod: rename TOC to Toc, adapt showMenu to CREReader
2012-03-29 18:17:32 +08:00
Qingping Hou
178e6597e2
add: TOC support
2012-03-29 17:49:59 +08:00
Qingping Hou
c56516d5d1
add: data from crengine
2012-03-29 00:16:00 +08:00