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
d30709edb0
add djvu render mode options in readermenu
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
b912200951
don't share info field in document
...
We may have multiple documents opened simultaneously, such as in
screensaver mode the current document is opened twice, it's better
to keep seperate info table for each document.
This should fix #858 . When a credocument is opened for screensaver to
get the cover page, the total pages info is set to 1(strangely enough),
before this fix this total pages is shared with the reading document
so the progress bar will get a progress percentage well beyond 100% and
rendering the progress bar out of the boundering box as shown in #858 .
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
0bc3eadcae
refactoring: use Document API getCoverPageImage to get cover image
10 years ago
chrox
092522b89d
promote user to save PDF document after highlighting
...
This is a wordaround for #791 .
10 years ago
chrox
7ce5c9c052
fix Droid Sans Fallback not registered to crengine
10 years ago
Qingping Hou
99f6298b28
Merge pull request #829 from chrox/master
...
markup annotation quadpoints should be defined in counterclockwise
10 years ago
chrox
7048ca971b
add getCoverPageImage api for CreDocument
10 years ago
chrox
0c29b041fe
markup annotation quadpoints should be defined in counterclockwise
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
chrox
120f18737e
add advanced option forced_ocr to force ocring text
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
Qingping Hou
7ac5b419b5
refactor(doc): use ffi binding in picdocument
10 years ago
Paulo Matias
f04951e5dc
Consider as corrupt a null-area bbox
...
Fixes crash with empty page_states
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
f507fd3709
various Android fix
...
now the android build has nearly the same features as the
Kindle/Kobo build. It's time for Android nightly build?
10 years ago
chrox
6fba40cc77
use mupdf to handle zipped image files
11 years ago
chrox
a8b7b2cdbd
add base document init method to create new configurable for each document
...
this should fix configurables pollution when opening multiple documents
at the same time, e.g. when clipping page images in Evernote plugin.
11 years ago
chrox
17741e292b
serialize cache when closing ReaderUI other than closing document
11 years ago
chrox
55734f6aaa
export highlighted rect in scanned page to Evernote
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
e1527611c5
show a box indicator when tapping on a link
...
only for PDF/DJVU docs for now since there is no easy way
to get link box from crengine
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
chrox
c6c4cbcab1
add dewatermark option for pdf/djvu documents
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
0eee130f5a
clipping page bbox
11 years ago
chrox
9f507e6447
add 'full/mini' options for progress bar of crereader
11 years ago
chrox
b42b4ed204
save highlight to pdf document
11 years ago
chrox
22c437c393
fix init koptcontext with all zero bbox
11 years ago
chrox
8abd8a8a1f
loading KoptInterface only in pdf and djvu reader
...
This will save 4MB RAM in crereader which otherwise will load
liblept.so.3 and libk2pdfopt.so.2 automatically for nothing.
11 years ago
chrox
bfff863861
fix cannot highlight hyphenated words in crereader
11 years ago
Paulo Matias
c55d5e025e
Avoid crash on backends which don't define getLinkFromPosition
11 years ago
chrox
d24d5e413e
add following page link in reflowed page
11 years ago
chrox
9e3e070522
check link on the fly when tapping
11 years ago
Paulo Matias
dacd3d2acb
Fix crash trying to select text in an empty page
11 years ago
chrox
e947f83548
fix dogear not shown properly in crereader
11 years ago
chrox
ce3b58538c
fix no getPageLinks method in djvudocument
11 years ago
chrox
34e28d28e6
page links for crereader and pdfreader
...
Swipe right will return to previous page or position.
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
eaa9535133
move logMemoryUsage from koptinterface to document
11 years ago
chrox
14e94f39a4
explicitly call free method of Blitbuffer
11 years ago
chrox
8e4516b824
add regional zoom mode in pdf/djvu page
...
In regional zoom mode double tap will zoom to the tapped
region(paragraph or column, etc., detected optically via libk2pdfopt).
As the first demo, this feature is only turned on in flipping mode by
tapping the top-left corner of the screen. Eventually we may incorporate
this feature in "free" zoom mode.
11 years ago
chrox
62e12ddfba
import document module on-demand
11 years ago
chrox
f7387822aa
handle xps files in pdfdocument backend
11 years ago
chrox
3b9eaafadd
add dictionary lookup in crereader
11 years ago
chrox
7247a9e3a2
add writing direction option when reflowing
...
This probably will fix #195 .
11 years ago
chrox
2fd66e1fa3
typo fix
11 years ago
chrox
84ad0f2307
fix null export highlight in reflowed mode
11 years ago
chrox
71cb2d3f93
fix looking up wrong word in reflowed page
...
that has a text layer underneath.
For multi-column page reflowing usually fits individual column to
page width and no finner word boxes are available to map reflowed
word box onto native word box. Now the relative position of a reflowed
word center is calculated as portion of the width and height of a larger
block it belongs. This relative position is also considered in
reflow-to-native position transform so that dictionary lookup now works
on multi-column pages in reflowing mode.
This should fix #376 .
11 years ago
chrox
5bf56cbf4c
check position nullity in getTextFromBoxes
11 years ago
chrox
2590cc7ca5
highlight text from scratch instead of reusing rectmaps in reflowing mode
11 years ago
chrox
184a6f5d21
highlight word from scratch instead of reusing rectmaps in reflowing mode
...
Totally revert the OCR in reflowed page to build 545.
And this should fix #309 .
11 years ago
chrox
90d55cbde4
set auto detect word gap in reflowing by default
11 years ago
chrox
4cfdce6105
fix several local calls of Math.round
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
bc91b932d1
style cleanup in document.lua
11 years ago
Qingping Hou
a59723c053
add pic document type
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
chrox
9f42289226
use pixels from reflowed page when doing OCR in reflowing mode
...
I hope it will get back OCR accuracy as in build 545.
11 years ago
chrox
2cd5a083ae
fix getAutoBBox failed bug
...
If getAutoBBox is fed with a blank page the returned bbox will be
much smaller than the native page dimensions. The problem is that
in zoom to 'content*' mode document renderer will try to render
the whole page at a zoom level that can cover the screen with the
bbox region of the page. That's if the blank page size is 3000*4000
and the returned autobbox is 300*400, the screen size is 600*800,
then the page will be rendered in 3000*(600/300)*4000*(800/400)
which is so large that the cache manager will not accept.
This patch just check if the returned autobbox is considerablely
much smaller than the native page dimensions. If so it will return
the manual bbox.
This patch should fix #293 . And it's tested with the case provided
by @Markismus in #291 .
11 years ago
chrox
1ee6d5a9c5
add DEBUGBT function to traceback certain location
11 years ago
chrox
39da1251ec
free blitbuffer as soon as tile is kicked out from cache
...
other than waiting for the lazy garbage collector of lua
11 years ago
chrox
4660a3532b
synchronize hightlights in non-/reflowing modes
...
and there is no need to OCR word if we can extract text from
original page in reflowing mode thanks to the rect maps between
normal page and reflowed page.
11 years ago
chrox
ffd31613a5
estimate cache size of koptcontext
...
This should fix #285 .
11 years ago
chrox
f2cf10a015
refactoring koptcontext creation function
11 years ago
Qingping Hou
a8a589c27b
only set two pages mode for crengine in kindle dxg
11 years ago
chrox
aefb58f5bf
bugfix: fix invalid auto page cropping
11 years ago