2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
Commit Graph

1063 Commits

Author SHA1 Message Date
Qingping Hou
d4e5b4cb06 add readerpaging and readermenu touch support 2012-11-11 15:25:49 +08:00
Qingping Hou
04942f9d94 Merge branch 'ges-detect' of github.com:houqp/kindlepdfviewer into ges-detect
Conflicts:
	frontend/ui/menu.lua
2012-11-11 14:32:36 +08:00
Qingping Hou
5e2537210f remove comments in menu.lua 2012-11-11 14:30:35 +08:00
Qingping Hou
032a71cbc4 bug fix in single tap detection 2012-11-11 14:30:35 +08:00
Qingping Hou
3486ae7e09 first demo of gesture parsing 2012-11-11 14:30:35 +08:00
Qingping Hou
36a4ead630 update document.lua according to API change in cre.cpp 2012-11-11 14:29:56 +08:00
Qingping Hou
d8568520c0 bug fix in single tap detection 2012-11-11 14:19:07 +08:00
Qingping Hou
7514a5686a first demo of gesture parsing 2012-11-11 01:02:05 -05:00
Qingping Hou
818043752f refine single tap touch input simulation in input.c 2012-11-11 13:58:00 +08:00
{Qingping,Dave} Hou
8784d20816 Merge pull request #534 from houqp/new_ui_code
rewrite emu mode input handling
2012-11-05 14:08:50 -08:00
Qingping Hou
ba60e641a9 add emu_event to clean target 2012-11-05 13:36:50 -05:00
Qingping Hou
e000bde0be remove old comment in inputevent init 2012-11-05 10:50:15 -05:00
Qingping Hou
03595f8701 use os.remove instead of calling "rm" in os.execute 2012-11-05 10:27:21 -05:00
Qingping Hou
ad089c4930 delete unused macro in input.c 2012-11-04 13:43:27 +08:00
Qingping Hou
02d48dee3d use only one process for emu input event emulation
Seems that SDL is not thread-safe, so forking leads to some
strange bugs. Thus I switch back to one process implementaion.
2012-11-04 13:25:04 +08:00
Qingping Hou
9fca67b6cb add back type casting when sending event to lua stack 2012-11-04 11:24:29 +08:00
Qingping Hou
c90e2ae797 delete dulplicate code 2012-11-04 11:20:28 +08:00
Qingping Hou
c96fc292f9 adapt inputevent.lua to new emu input implementaion 2012-11-04 11:19:31 +08:00
Qingping Hou
3be08ec515 use fifofile for emu event piping
Using fifofile to pipe event makes it possible for other programs to
feed KPV input events. One use case for this might be automated testing.
2012-11-04 11:18:42 +08:00
Qingping Hou
f2bd4666fc rewrite input module for emulator
In order to use mouse to simulate touch input, we have to
generate multiple events on single SDL mouse click event.
It is every hard to achieve this in original implementaion
so I used pipe to fake a input dev as slider_watcher did.
2012-11-04 10:38:17 +08:00
Dobrica Pavlinušić
43a6781a9c Merge pull request #526 from houqp/new_ui_code
merge latest changes from master branch
2012-11-03 14:38:23 -07:00
Qingping Hou
df5ccc9530 add createInputEvent helper function 2012-11-04 02:42:56 +08:00
Qingping Hou
0b08992591 update djvulibre target dependence for LIBDIR 2012-11-02 16:18:16 -04:00
Tigran Aivazian
6580291e3a Link against libraries in libs and libs-emu
Instead of linking against the location inside the original build tree
we should link against the copy in a single place. This makes the build
code cleaner and more compact even now and will do even more so when we
build more libraries as shared (which is what I am going to attempt
next).
2012-11-02 16:15:47 -04:00
Tigran Aivazian
87d0b94d9b Mkdir clipboard at build, not runtime
Conflicts:

	filechooser.lua
2012-11-02 16:07:08 -04:00
Tigran Aivazian
2bd8dd3389 build: mkdir libs if does not exist
Since we are doing this for emulator we might as well do this for normal
build too.
2012-11-01 09:28:59 -04:00
Dobrica Pavlinušić
581be526df Merge pull request #517 from houqp/new_ui_code
merge latest changes from master branch
2012-11-01 02:10:43 -07:00
Qingping Hou
e2abd32606 gitignore cleanup 2012-10-31 23:01:36 -04:00
Qingping Hou
625de9b260 update pic.c from latest code
after lots of cherry-pick I found that for some strange reason,
pic.c is not updated and I cannot find out which commit I missed.
So I simply copied the latest pic.c from the master branch here.
2012-10-31 22:54:36 -04:00
Qingping Hou
6f6cb3c1a9 build: create libs-emu dir if not found 2012-10-31 22:54:19 -04:00
Tigran Aivazian
d4642a5df1 Build djvulibre as a shared library 2012-10-31 22:39:58 -04:00
chrox
0b2f89d830 add screen rotation in koptconfig
Conflicts:

	koptconfig.lua
	koptreader.lua
2012-10-31 22:37:15 -04:00
chrox
2c3b4fa968 add auto straighten option for scanned pages
Conflicts:

	koptconfig.lua
	koptreader.lua
2012-10-31 22:36:29 -04:00
chrox
148dc48556 add column detection in koptconfig
Conflicts:

	koptconfig.lua
	koptreader.lua
2012-10-31 22:36:13 -04:00
chrox
06f3c382ac add font size option in koptconfig dialog
Conflicts:

	koptconfig.lua
	koptreader.lua
2012-10-31 22:35:44 -04:00
chrox
8424011286 cleanup: dst_justify is assigned according to both justification and
full_just
2012-10-31 22:35:05 -04:00
chrox
ddb46eeb41 merge justification and full justification to one option
Conflicts:

	koptconfig.lua
	koptreader.lua
2012-10-31 22:34:55 -04:00
Qingping Hou
75b1e716fe rm koptconfig.lua for new ui branch 2012-10-31 22:34:19 -04:00
chrox
5294d178a0 add justification option in koptconfig dialog
Conflicts:

	koptconfig.lua
	koptreader.lua
2012-10-31 22:34:12 -04:00
chrox
72aeb42441 default dst_mar in k2pdfopt should be 0.06 2012-10-31 22:33:25 -04:00
chrox
ad4deb26be add page margin and text wrap and contrast option in koptconfig
Conflicts:

	koptconfig.lua
	koptreader.lua
2012-10-31 22:32:45 -04:00
chrox
ce0b3acd6b add config dialog for koptreader
For now only line spaceing and word spaceing are configurable with
'F'/'Aa' commands. And device size are passed to k2pdfopt in place of
the hard-coded default width and height(via @dpavlin).
Conflicts:

	koptreader.lua
2012-10-31 22:29:48 -04:00
Tigran Aivazian
5c0201d3e3 Makefile: extr depends on MUPDFLIBS/THIRDPARTYLIBS 2012-10-31 22:29:31 -04:00
Tigran Aivazian
c0cd31be6d Adjust the error message as well. 2012-10-31 22:29:23 -04:00
Tigran Aivazian
8245017078 Cleanups to extr.c and pdfattach
1. In extr.c the error message should use the correct full pathname, not
the base filename.
2. In pdfattach the check for existence of input files should be
replaced with the check for read access to them.
2012-10-31 22:29:10 -04:00
Tigran Aivazian
9348b5c553 Escape ampersand & in the filename also.
I am amazed what stupid filenames some people come up with, instead of
abiding by old good [a-zA-Z0-9] character set and 8.3 filename length...
2012-10-31 22:29:02 -04:00
Tigran Aivazian
ed76aa78f4 More enhancements to pdfattach
1. Emit the list of attached files first and then emit each individual
attachment one per page.
2. Use hyperlinks in the list of attached files so one can jump directly
to the file which he wants to extract.
2012-10-31 22:27:56 -04:00
Tigran Aivazian
6d02aaaa7b Enhance pdfattach script
1. Set the page size to 9x12cm as appropriate for Kindle 3
2. Together with each attachment print its base filename and file size
in bytes.
3. Print the total size of all attachments (so one can estimate whether
it is safe to extract the attachments or not).
2012-10-31 22:27:47 -04:00
chrox
a86e2ece23 bugfix: dpi should be multiplied by shrink_factor not zoom
Conflicts:

	koptreader.lua
2012-10-31 22:27:34 -04:00
Tigran Aivazian
52e7bb867e Use tabs not spaces for indenting. 2012-10-31 22:21:25 -04:00