Qingping Hou
07d6f66565
fix screen rotation mode restore for native system
12 years ago
Qingping Hou
379d6216a0
read reader settings in reader.lua
12 years ago
Qingping Hou
bb450c81d4
read arguemtns in reader.lua
12 years ago
HW
5025be971d
separated dialog.lua into source files for each individual function
13 years ago
HW
1e9fdd818f
a new base file for the reader in new_ui_code branch
13 years ago
HW
9e531fc2db
file reorganisation
...
all lua frontend files are now in the frontend/ directory.
all old code is cleaned up.
13 years ago
Qingping Hou
a89c88f40f
add zip format support
13 years ago
Qingping Hou
dbb49505f1
add doc format support
...
Though I don't like doc at all.
13 years ago
Dobrica Pavlinusic
18f0cf8043
added mobi to CREReader #131
13 years ago
Qingping Hou
b03d589ae9
add preLoadSettings methods for cache_document_size setting
...
cache_document_size should be configurable for
every docuemnt and it must be loaded before
document open, so I added the preLoadSettings method
13 years ago
Qingping Hou
c4bd2a1046
add debug argument to reader.lua
...
Without -d argument, all the debug message will
be suppressed.
13 years ago
Qingping Hou
3306346dba
use debug to print debug info
13 years ago
Qingping Hou
1b2d0b71b0
fallback to stop framework approach on screensaver fix
13 years ago
Qingping Hou
fa414af1eb
handle obselete jumpstack settings
...
* remove jumpstack settings if found
* add DocSettings:delSetting method
* rename DocSettings:savesetting to
DocSettings:savesetting.
13 years ago
Qingping Hou
84fe9f49a4
rewrite jump stack and add bookmark feature
...
* jump stack is rewritten as jump history
* add bookmark feature
13 years ago
Dobrica Pavlinusic
065d68c3a5
use refresh_mode
13 years ago
Qingping Hou
5e867d38ef
show infomessage on document open
13 years ago
HW
676e4268ff
display document open error message
13 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.
13 years ago
HW
a824204039
fixed missed case for device/emu recognition
13 years ago
HW
caefddb99c
Merge branch 'master' of github.com:hwhw/kindlepdfviewer
...
Conflicts:
crereader.lua
13 years ago
HW
877ecdfb71
switched slider handling to a fork()ed process
13 years ago
Qingping Hou
ecd56a3745
mod: prefix global variables width and height with G_
13 years ago
Qingping Hou
1f9efe0d9c
Merge branch 'master' into epub
...
Conflicts:
Makefile
unireader.lua
13 years ago
Qingping Hou
9d11916bbd
mod: resume framework in kpdf.sh
13 years ago
Qingping Hou
c41e3e75a3
add: demo for fixing #85 , #86
13 years ago
Qingping Hou
1593c56803
mod: add html support in crereader
13 years ago
Qingping Hou
37dfc84d5a
fix: move commands initilization from global init to local
...
If we call addAllCommands in initGlobalSettings, all
the readers will share the same commands and we cannot
adjust commands for a specific reader. I thus moved this
method call to Unireader:init() method.
13 years ago
Qingping Hou
8a2b86e203
mod: factor last reading page saving and resotring
13 years ago
Qingping Hou
b09110a38d
Merge branch 'djvu-highlight' into epub
13 years ago
Qingping Hou
4821f10dda
half done demo for crengine
13 years ago
Qingping Hou
46f171df3b
Merge branch 'master' of github.com:hwhw/kindlepdfviewer into djvu-highlight
...
Conflicts:
unireader.lua
13 years ago
traycold
bfcad367bb
using font module for getting fonts (commit f95231d789
)
...
renamed function names using camelCase (issue #62 )
13 years ago
traycold
fd6c6dbe60
Merge remote branch 'hwhw/master'
...
* hwhw/master:
Password input, handling for broken documents
factored pages count out, better error and password handling
factored pages counter out of document struct
13 years ago
Qingping Hou
f4ea1cdb62
Merge branch 'master' of github.com:hwhw/kindlepdfviewer into djvu-highlight
...
Conflicts:
blitbuffer.c
unireader.lua
13 years ago
HW
7e3e38be62
Password input, handling for broken documents
13 years ago
traycold
c2fe6f9bee
Merge remote branch 'hwhw/master'
...
* hwhw/master:
make muPDF cache size configurable from Lua
add XPS and CBZ support (muPDF provides this)
fixed bug for odd rendering widths
refactored muPDF integration to use strictly the fitz.h API
forgot Makefile change when factoring out drawcontext
13 years ago
HW
48463d4739
add XPS and CBZ support (muPDF provides this)
13 years ago
Qingping Hou
7bbc5b5ed2
highlight with cursor demo
13 years ago
traycold
943b511b7c
complete implementation of issue #55
...
created a help page
13 years ago
Qingping Hou
f95231d789
add: status bar in reading menu & font.lua
...
* Since fontchooser is replaced by selectmenu, it
is no longer needed. So I rewrite it into font.lua
module which can cache faces that shared among all
UIs.
* add progressBar method in graphics.lua to draw
reading progress.
* add reading progress information in reading menu.
It is just a demo. Should be clean up in next release
when the real reading menu is out. :)
13 years ago
Qingping Hou
319826c385
mod: screen rotation implemented by ioctl
...
Now you get a instance rotate :) With only one bug.
I have to restore to previous rotation state of the
native system after exists. Because the native system
does poll the new rotation state that changed by ioctl.
Currently, I don't know how to force the native system
to detect the changes.
13 years ago
Qingping Hou
d2aaf15dce
add: screen.lua
...
* move rotation mode to global variable, now check rotation
with Screen.cur_rotation_mode
* move screenRotate to screen module so other UIs can use it.
13 years ago
Qingping Hou
3dbf9877bc
add: 90 degree rotation support
...
demo for issue #51
13 years ago
Qingping Hou
f79ae48de8
add: UniReader:initGlobalSettings()
...
Use this method to read settings that may shared
among all readers. For instance, pan_overlap_vertical
13 years ago
Dobrica Pavlinusic
0e48785e0e
fix #36 : enable file path back
13 years ago
traycold
eba1c2d5ef
Merge remote-tracking branch 'hwhw/master' into djvu
13 years ago
HW
917dc33985
put some missing bits into place to fix #34
13 years ago
Qingping Hou
ab2cd3ec8c
mod: save jump_stack after exit
13 years ago
Qingping Hou
b318ca08e3
mod: merge djvu branch with master
13 years ago
traycold
04184a5950
improved filechooser; enable "single file" mode of kindlepdfviewer
...
with this mode it's possible to start kindlepdfviewer opening last
viewed file, bypassing filechooser
13 years ago
HW
4f46f9fa7a
proper exit when pressing HOME, store settings etc
13 years ago
Qingping Hou
e4e0eb45ee
mod: adapt pdfreader and djvureader to unireader
13 years ago
Qingping Hou
2f9a44bfc6
code clean up for first demo
13 years ago
Qingping Hou
516e32bc46
mod: call different reader in reader.lua
...
call PDFReader or DJVUReader according to filetype
13 years ago
Qingping Hou
e258371134
mod: add closePage and demo for filechooser
13 years ago
Qingping Hou
4a1a5233c0
Merge branch 'master' into djvu
...
Conflicts:
reader.lua
13 years ago
Qingping Hou
1713e2ab0b
fix: refresh screen more elegantly after reader exit
13 years ago
Qingping Hou
c4d0cd26ae
half done djvu support
13 years ago
Qingping Hou
dc3ea10fd9
initial commit for djvu
13 years ago
HW
e1a916d48c
Merge pull request #16 from dpavlin/master
...
Open Kindle 3 volume via /dev/input/event2 so gamma change works
13 years ago
Qingping Hou
0366e8b8c2
mod: use settings module to save font configuration
13 years ago
Qingping Hou
f26adf97f0
trigger KEY_HOME after exit to refresh screen
13 years ago
Dobrica Pavlinusic
70dd8c8b07
open /dev/input/event2 to route volume keys to gamma on auto-detected Kindle 3
13 years ago
Dobrica Pavlinusic
287aa58731
document --device emu option
13 years ago
Dobrica Pavlinusic
1a2f51cafb
auto-detect Kindle 3 based on /dev/input/event2
...
This is somewhat important, because if we are started without
explicit -d k3 all key mappings are wrong, and user can't exit
13 years ago
HW
1af5ce3d04
reordered freeing of resources, error handling for doc open
13 years ago
HW
c47512a01d
slight refactoring of filechooser so it remembers state
13 years ago
HW
c869ee0a95
added file chooser
13 years ago
HW
affc3b231a
major overhaul of the code structure, more OO like
13 years ago
HW
1cc44feb6f
factored out settings into own class
...
also started using OO paradigm
13 years ago
HW
f739baff5f
moved blitting over to blitbuffer API
...
the framebuffer "object" now has a "member" that exposes the blitbuffer
API for the framebuffer pixmap. This allows to reuse blitting & Co for
blitbuffer-to-blitbuffer operations
13 years ago
HW
ff38118a89
added exemplary storing of last read page
13 years ago
Dobrica Pavlinusic
31a487e746
fix direction of up/down pan
13 years ago
Dobrica Pavlinusic
04087c072f
added altmode for smaller pans and zooms
13 years ago
Dobrica Pavlinusic
95952f7b11
enable panning over zoomed page
...
This works only in ZOOM_BY_VALUE mode invoked by Shift+Page< or Shift+Page>
Panning is modal: in normal mode, you move using fiveway but
when you press fiveway you switch to move-by-screen mode
(which is useful after you centered first column of article
and you just want to move around)
At any time you can press fiveway with shift to move in even smaller
increments
13 years ago
Dobrica Pavlinusic
bdda25f284
move gamma controlls to volume or F11/F12 in emu
...
Idea is to fee 5way presses for pan/zoom operations in future
13 years ago
HW
e54ce6a358
changed gamma handling: now we multiply.
13 years ago
HW
a6541596ce
added multiple zoom variants
...
also, added key codes from launchpad sources.
thus, a few constants change their names.
These are the current keys:
PGFWD = next page
PGBCK = previous page
SHIFT+PGFWD = zoom in
SHIFT+PGBCK = zoom out
A = fit to page
S = fit to page width
D = fit to page height
SHIFT+A = fit to page content
SHIFT+S = fit to page content width
SHIFT+D = fit to page content height
SHIFT+FW_UP = Gamma + 0.2
SHIFT+FW_DOWN = Gamma - 0.2
13 years ago
HW
d96666f4b1
new cache organization in preparation for more complex tile data
...
in order to use the tile cache for variable zoomed tiles, we need more
flexibility. thus, now cache tiles are hashed (well, in fact it's a
concatenation) of their metadata.
also, we close pages right after opening them - there was no re-use
before and now we have opening and closing at one place. this should
also make it easier for the garbage collector.
13 years ago
HW
a07ea2f8b8
factored out key config and tilecache
13 years ago
Dobrica Pavlinusic
0d9de55944
modify_gamma now use cache correctly
...
This exposed small bug in checkcache which checked just page no
which didn't get invalidated when closing page, so we now check if page
is also not nil
13 years ago
Dobrica Pavlinusic
1d7dc7ffee
naive modify_gamma implementation
13 years ago
Dobrica Pavlinusic
0bff614525
device emu for emulated /tmp/input
13 years ago
Dobrica Pavlinusic
f56c122e49
make long-form --goto page work
13 years ago
HW
32b85d2035
reader.lua changes to reflect new emulator
13 years ago
Dobrica Pavlinusic
716d81a28b
add missing d (device) option
13 years ago
Dobrica Pavlinusic
83cfaad621
added --goto page comamnd-line argument
13 years ago
HW
d10b73d81a
fixed non-initialization bug for dc->gamma
13 years ago
HW
ade5c4892d
better argument parsing and option for gamma correction
...
included MIT-licensed alt_getopt implementation:
http://files.luaforge.net/releases/alt-getopt/alt-getopt/alt-getopt-0.7.0
created example use of gamma correction.
reader.lua now has usage notes for its invocation syntax.
13 years ago
HW
0c24e3c7e0
initial project, basic reader working
13 years ago