Commit Graph

1040 Commits (c96fc292f995f8d974de8d343316b940c38370bc)
 

Author SHA1 Message Date
Qingping Hou c96fc292f9 adapt inputevent.lua to new emu input implementaion 12 years ago
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.
12 years ago
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.
12 years ago
Qingping Hou df5ccc9530 add createInputEvent helper function 12 years ago
Qingping Hou 0b08992591 update djvulibre target dependence for LIBDIR 12 years ago
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).
12 years ago
Tigran Aivazian 87d0b94d9b Mkdir clipboard at build, not runtime
Conflicts:

	filechooser.lua
12 years ago
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.
12 years ago
Qingping Hou e2abd32606 gitignore cleanup 12 years ago
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.
12 years ago
Qingping Hou 6f6cb3c1a9 build: create libs-emu dir if not found 12 years ago
Tigran Aivazian d4642a5df1 Build djvulibre as a shared library 12 years ago
chrox 0b2f89d830 add screen rotation in koptconfig
Conflicts:

	koptconfig.lua
	koptreader.lua
12 years ago
chrox 2c3b4fa968 add auto straighten option for scanned pages
Conflicts:

	koptconfig.lua
	koptreader.lua
12 years ago
chrox 148dc48556 add column detection in koptconfig
Conflicts:

	koptconfig.lua
	koptreader.lua
12 years ago
chrox 06f3c382ac add font size option in koptconfig dialog
Conflicts:

	koptconfig.lua
	koptreader.lua
12 years ago
chrox 8424011286 cleanup: dst_justify is assigned according to both justification and
full_just
12 years ago
chrox ddb46eeb41 merge justification and full justification to one option
Conflicts:

	koptconfig.lua
	koptreader.lua
12 years ago
Qingping Hou 75b1e716fe rm koptconfig.lua for new ui branch 12 years ago
chrox 5294d178a0 add justification option in koptconfig dialog
Conflicts:

	koptconfig.lua
	koptreader.lua
12 years ago
chrox 72aeb42441 default dst_mar in k2pdfopt should be 0.06 12 years ago
chrox ad4deb26be add page margin and text wrap and contrast option in koptconfig
Conflicts:

	koptconfig.lua
	koptreader.lua
12 years ago
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
12 years ago
Tigran Aivazian 5c0201d3e3 Makefile: extr depends on MUPDFLIBS/THIRDPARTYLIBS 12 years ago
Tigran Aivazian c0cd31be6d Adjust the error message as well. 12 years ago
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.
12 years ago
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...
12 years ago
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.
12 years ago
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).
12 years ago
chrox a86e2ece23 bugfix: dpi should be multiplied by shrink_factor not zoom
Conflicts:

	koptreader.lua
12 years ago
Tigran Aivazian 52e7bb867e Use tabs not spaces for indenting. 12 years ago
Tigran Aivazian 543e7cc98e Make the pdfattach utility more robust
1. Handle filenames with spaces
2. Check if pdflatex and attachfile packages are installed before trying
to use them.
3. Use a more intuitive interface "pdfattach -o file.pdf file1.djvu
[file2.djvu]..." instead of forcing the user to specify "-i" option for
every input file.
12 years ago
chrox ae950ccf32 feedback zoom value used by page reflow
So that when zoom value exceed the upper limit of reflowable page size
user will notice that zoom value cannot be increased.
Conflicts:

	koptreader.lua
12 years ago
Tigran Aivazian 622e2959b3 Utility for attaching files inside PDF
This utility creates a PDF file containing specified files embedded into
it as attachments. The attachments can be extracted from the PDF file by
using extr utility.
I placed this in a separate "utils" directory to signify that this is
NOT intended to run on a Kindle (it requires pdfLaTeX to generate the
PDF file) but only on the desktop Linux workstation.
12 years ago
Tigran Aivazian d90b01dbfd Handle absolute attachment pathnames
We must use only the basename part of the embedded attachment filename,
because the directories used in the path on the machine where the
attachments were created may not even exist on the machine where they
are extracted.
12 years ago
Tigran Aivazian ff23916940 Correct the comment.
The global variable "doc" is actually shared by ALL functions, so the
old comment was incorrect.
12 years ago
Tigran Aivazian fc20c0af26 Support for extracting attachments from PDF file
This commit adds Alt-S command which invokes the external utility "extr"
passing it the full pathname of the open PDF file and the current page
number. The utility extracts all attachments on this page (if there are
any) and saves them in the same directory as the PDF file. The file
names given to attachments are decoded from within the PDF file itself,
i.e. they are the same as the original file names of the files embedded
in the PDF.

Conflicts:

	pdfreader.lua
12 years ago
Qingping Hou 75f2c2774f fix getopt module clearance in reader.lua 12 years ago
Tigran Aivazian fe43ec7976 Fix the leftover from the old name jpg.h 12 years ago
Tigran Aivazian 503c9b077d Initial commit of picviewer.
Conflicts:

	Makefile
	extentions.lua
	pic.c
	reader.lua
12 years ago
Qingping Hou 2b185961e8 remove getopt lua module in reader.lua 12 years ago
Qingping Hou f70dc54864 update getXPointer method definition 12 years ago
Tigran Aivazian db3796cd24 Remove alt_getopt.lua module altogether.
Conflicts:

	Makefile
	frontend/alt_getopt.lua
12 years ago
Tigran Aivazian 7f4be723a0 LuaJIT: make distclean -> make clean
Two reasons for this change:

1. The latest LuaJIT has no "distclean" target
2. The "distclean" is MUCH slower
12 years ago
chrox 7fb6f16552 add page size limit in reading pdf/djvu files 12 years ago
chrox 9e8a92862c add koptreader.lua file in customupdate
Conflicts:

	Makefile
12 years ago
chrox 441d061664 add DJVU reflow
Conflicts:

	djvu.c
	koptreader.lua
	reader.lua
12 years ago
chrox 503a76db9a Cleanup: pass globalzoom to reflow in dc
Conflicts:

	pdfreader.lua
12 years ago
chrox f0c7896bc8 add zoom in/out in reflow mode && PGBCK/PGFWD now work as expect
Conflicts:

	pdfreader.lua
12 years ago
Tigran Aivazian da88ca7a09 Get rid of unused variable in getCacheSize() 12 years ago