chrox
1d887f4fe1
book reading statistics for djvu documents
8 years ago
Qingping Hou
c22a3747d8
fix all the tests
9 years ago
Qingping Hou
f48d9bd6d9
fix(readerfooter): marker ticks initialization
9 years ago
Qingping Hou
59c17ef420
minor: more luacheck fixes
9 years ago
chrox
a60544b1ad
Koreader Ubuntu-touch port
...
Currently only tested on Ubuntu-touch emulator with framework
ubuntu-sdk-14.10 for armhf.
The ubuntu-touch port is binary compatible with the Kobo port
major changes in this PR are:
1. rename the emulator device to sdl device since both the emulator
and the ubuntu-touch target use libsdl to handle input/output.
2. ubuntu-touch app has no write access to the installation dir so
all write-outs should be in a seperate dir definded in `datastorage`.
9 years ago
Huang Xin
d393fbb180
Merge pull request #1628 from apletnev/#1581
...
Add Statistic plugin (#1581 Amount of hours spent on a book)
9 years ago
Alexander Pletnev
52d821df00
Add Statistic plugin ( #1581 Amount of hours spent on a book)
9 years ago
frankyifei
23c963ed15
replace Droidsansfallback with NotoSansCJK-Regular
9 years ago
NiLuJe
3fdd90cf3b
Fix a few Droid font paths
10 years ago
Qingping Hou
186673587e
chore: fix some of the luacheck errors
10 years ago
chrox
077517be0b
add FONTDIR env variable
...
to support custom font directory for EPUB documents
Now Koreader could find fonts in the "fonts" directory in the USB root
directory of kindle, Kobo and PocketBook devices, thus no need to copy
fonts to "koreader/fonts" directory.
10 years ago
chrox
fe885be563
refactoring readerbookmark to show both bookmarks and highlights
...
in the bookmark menu
and use binary search of the sorted bookmarks table whenever is
possible.
10 years ago
chrox
b80dd1f966
add fulltext search for PDF documents
10 years ago
Andrey Golovizin
99eecde875
Use setStringProperty method to set hyphenation dictionary.
10 years ago
Tigran Aivazian
e5e50ed0f9
Fix 1169 by registering .txt.zip/.html.zip/.htm.zip formats
10 years ago
chrox
8f5691d586
fix #968 by check the nullity of text range
10 years ago
chrox
bd0975896d
add fulltext search for EPUB documents
10 years ago
Huang Xin
a300f1e981
Merge pull request #1076 from hwhw/hal
...
Hardware abstraction: refactoring
10 years ago
Andrey Golovizin
e66dbdda29
Add support for .fb2.zip files.
10 years ago
Hans-Werner Hilse
3066c86e38
Refactoring hardware abstraction
...
This is a major overhaul of the hardware abstraction layer.
A few notes:
General platform distinction happens in
frontend/device.lua
which will delegate everything else to
frontend/device/<platform_name>/device.lua
which should extend
frontend/device/generic/device.lua
Screen handling is implemented in
frontend/device/screen.lua
which includes the *functionality* to support device specifics.
Actually setting up the device specific functionality, however,
is done in the device specific setup code in the relevant
device.lua file.
The same goes for input handling.
10 years ago
chrox
c2726a8f62
save two blitbuffer memory allocations for crengine on each page turn
...
One for drawbuffer at CreDocument:drawCurrentView and another for
resizing of drawBuf at cre.drawCurrentPage.
10 years ago
chrox
2ff12af50c
protected call of mupdf.renderImage
10 years ago
chrox
2050c0aa66
fix renderImage invocation
10 years ago
Hans-Werner Hilse
e0868826ad
use new FFI based mupdf API
...
This will use the new API where the Lua/C interface was used before
and also drop usage of mupdfimg wrapper which is now implemented
within the mupdf interface
10 years ago
chrox
b422eb90cc
refactoring readerrolling
...
and fix lossing progress when switching screen mode
10 years ago
chrox
7142492e42
fix #959
10 years ago
chrox
2f2d9f1bf7
issue error directly when doc is malformated
...
This should popup a message saying "No reader engine for this file"
instead of a crash when document file is malformated.
This should fix #868 .
10 years ago
chrox
132adf8e1b
register opened document in documentregistry
...
so that when calling getCoverPageImage in screensaver mode
the document won't be opened again. This should avoid a lot of
problem such as messing up style and options described in #863 .
10 years ago
chrox
fd9e3d57f3
fix performance issue of screensaver on Kobo
...
now loadDocument will not render the document and getCoverPageImage will
be much faster.
10 years ago
chrox
7ce5c9c052
fix Droid Sans Fallback not registered to crengine
10 years ago
chrox
7048ca971b
add getCoverPageImage api for CreDocument
10 years ago
chrox
507b989747
use pdfreader instead of crereader to handle zip files
...
Generally zip files are zipped pictures which should be
better handled in pdfreader.
10 years ago
chrox
b7c7287bab
remove more global variables
10 years ago
chrox
38c75f8359
fix the first file in a zip is a directory will raise error in zipContentExt
10 years ago
chrox
a7fb8811f3
add floating punctuation toggler for EPUBs
10 years ago
WS64
c1ecf23c2c
Update credocument.lua
10 years ago
NiLuJe
5ebed6655b
Use Noto instead of Droid, where appropriate.
10 years ago
chrox
bcd2c8e8f8
display 2 pages side-by-side in landscape for larger screen
10 years ago
chrox
9fc048ecfc
considering visible page count in readerrolling
...
This should fix #660 .
10 years ago
chrox
6cdfd322f1
update buildin font names
10 years ago
chrox
fd1bb86514
fix cannot get word box in last page of a chapter
10 years ago
chrox
53165e3c2a
fix init hyphenation dictionaries
10 years ago
chrox
241d67e0ec
revert zip file handler to crereader
...
It seems that fb2.zip is a conventional format for fb2 with compression
which cannot be handled properly by mupdf.
This should fix #642 .
10 years ago
chrox
803e4e8600
font weight option should be persistent between launchings
...
This should fix #620 .
10 years ago
chrox
5aa8eb52da
add missing Blitbuffer since it's removed from global space
10 years ago
chrox
6fba40cc77
use mupdf to handle zipped image files
11 years ago
chrox
3b1e05bb7f
switch to setIntProperty api for setting page margins
11 years ago
chrox
6bf1a9d033
use setStringProperty method to set font face
...
This should fix #569 .
11 years ago
chrox
30e6b3529b
hide Nimbus fonts in font selecting dialog
11 years ago
chrox
775e5ea3b4
serialize the most recently used blitbuffer/koptcontext
...
to speedup koreader startup for PDF/DJVU documents
especially when reflowing
11 years ago
Qingping Hou
4b357c1466
move reader code into frontend/apps/reader
...
it makes more sense to completely separate the UI framework and
application code
also move frontend/ui/configurable.lua to frontend/configurable.lua
11 years ago
chrox
92219a1f1e
cleanup: expand tab to 4 spaces
11 years ago
chrox
560444c168
add fallback_font option in G_reader_settings
11 years ago
chrox
9f507e6447
add 'full/mini' options for progress bar of crereader
11 years ago
chrox
bfff863861
fix cannot highlight hyphenated words in crereader
11 years ago
chrox
9e3e070522
check link on the fly when tapping
11 years ago
chrox
e947f83548
fix dogear not shown properly in crereader
11 years ago
chrox
637904a711
add text highlight for credocument
...
Three highlight drawers "lighten", "underscore" and "invert" are
available in reader menu.
This should implement #176 .
11 years ago
chrox
3275413366
add missing registry for fb2 document
11 years ago
chrox
1329f10fa5
add goto link function for CreDocument
11 years ago
chrox
a6e885e77d
show battery icon in crereader page header
11 years ago
chrox
865815b42b
set visible page count when loading document
11 years ago
chrox
23982b185e
add debug information in credocument api
11 years ago
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.
11 years ago
chrox
14e94f39a4
explicitly call free method of Blitbuffer
11 years ago
chrox
62e12ddfba
import document module on-demand
11 years ago
chrox
3b9eaafadd
add dictionary lookup in crereader
11 years ago
HW
09cd5c4104
Make DEBUG a require()d local
11 years ago
HW
748a443cd5
Merge remote-tracking branch 'upstream/master'
...
resolved conflicts with refactored structure
11 years ago
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).
11 years ago
HW
ef111b99c6
Refactored to use strictly locals
11 years ago
Qingping Hou
10bf048d77
move configurable to Document class
...
since every document type is depend on it now
11 years ago
chrox
c86bb46ef7
add gotoLocation for credocument
11 years ago
chrox
506dbed865
save cre3.ini on closing each credocument
...
and page margin settings will be restored before rendering.
This patch should fix #299 .
11 years ago
chrox
32ffacdf77
adjust font sizes in credocument according to screen dpi
...
and font sizes list is moved to defaults.lua
11 years ago
Qingping Hou
a8a589c27b
only set two pages mode for crengine in kindle dxg
11 years ago
chrox
94526fa26d
add page margin options in CREOptions
11 years ago
Qingping Hou
1783b16d69
credoc fix: load metadata info after document is rendered
12 years ago
chrox
22b650d0c7
move kopt/cre options into ui/data directory & wrap strings in config options
12 years ago
Qingping Hou
09e1c0af06
add gettext to document modules
12 years ago
Qingping Hou
c5ff50abdf
remove trailing spaces
12 years ago
chrox
87eec1b539
save/restore view mode and embedded css mode
12 years ago
chrox
df7f7714e4
remove default options in KoptOptions and CreOptions
12 years ago
Qingping Hou
ae6c4bd03a
Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into rotate
...
Conflicts:
frontend/ui/reader/readerconfig.lua
12 years ago
Qingping Hou
f91c913530
set default_arg for screen_mode option on runtime
12 years ago
Qingping Hou
0dba667937
rename setScreenViewMode to setScreenMode
12 years ago
chrox
a1aa41136c
add manual page crop for pdf/djvu documents
12 years ago
Qingping Hou
2d9534e092
add screen rotate to readerconfig
12 years ago
Qingping Hou
6d8ebb4126
adapt credocument to new changes in cre.cpp
12 years ago
Qingping Hou
65910b2017
add default_css to credocument
12 years ago
Qingping Hou
6c4da43dbf
add setStyleSheet method to credocument
12 years ago
Qingping Hou
93d3aea905
pass filename properly for zipped fb2 in CreDocument:init()
12 years ago
Qingping Hou
874890aaec
save and restore gamma_index for crengine
12 years ago
Qingping Hou
02ea5f1fbf
read header font from config
12 years ago
Qingping Hou
687aabc173
adapt ui to loadDocument before setFont
12 years ago
Qingping Hou
59a424203b
add font gamma to readerconfig
12 years ago
Qingping Hou
5ce4f24c37
move CreOptions to credocument.lua
12 years ago
Qingping Hou
2fa919e1b6
add CreDocument:toggleFontBolder
12 years ago
Qingping Hou
ac1cf212d1
add setViewMode to CreDocument
12 years ago
Qingping Hou
fdc05b066c
add readerconfig to document supported by crengine
...
* now font size can be changed by readerconfig
12 years ago
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...
12 years ago
Qingping Hou
5ab98420bd
use predefined variable instead of magic number for view_mode
12 years ago
Qingping Hou
efa37c97ab
bug fix in readerfont
...
After set font in ReaderFont:onReadSettings, we have to send UpdatePos
event in order to set m_is_rendered(member of LVDocView) to true.
Otherwise position inside document will be reset to 0 on first view
render, this makes the first page of document is always displayed on
document open.
So far, I don't know why this call will alter the value of m_is_rendered.
It just works...
12 years ago
Qingping Hou
5d1c98e90a
add setFontSize to credocument.lua
12 years ago
Qingping Hou
1675d8667b
add cre view mode support in frontend
12 years ago
Qingping Hou
e3617676a1
fix deprecated debug call in credocument.lua
12 years ago
Tigran Aivazian
d551e7fb63
Cleanup crereader fonts initialization.
...
Don't try to register the two fonts Dingbats.cff and StandardSymL.cff
with crengine because it will reject them anyway. But we cannot simply
remove these two fonts because they are used internally by mupdf to
emulate "builtin" fonts which are mandated by Adobe PDF specification to
be present in every valid implementation.
12 years ago
Qingping Hou
25af917170
call cre.initCache() in CreDocument:engineInit()
12 years ago
Qingping Hou
bad329811d
add line space control feature for credocument
12 years ago
Qingping Hou
b3cdbeee19
add font size control feature for credocument
...
also rename getFont to getFontFace
12 years ago
Qingping Hou
acaf8d660e
font menu for readerui
12 years ago
Qingping Hou
77761554d9
add CreDocument:engineInit() method
12 years ago
Qingping Hou
2b39ba8b83
register all the supported formats for crengine
12 years ago
HW
ce5614ef6f
cleanup, also removal of G_* constants
...
a bit of cleanup, switched width/height combo over to use
Geom() objects, moved framebuffer handling to Screen object,
callback syntax sanitizing, lots of small changes
12 years ago
Qingping Hou
e7d16de4e2
first demo for credocument
13 years ago