2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

1693 Commits

Author SHA1 Message Date
chrox
0a427cc02f -fomit-frame-pointer is enabled at level -O, -O2, -O3 2012-11-10 09:06:22 +08:00
chrox
5c93a3a271 no need to mark source page 2012-11-10 09:04:58 +08:00
chrox
7a75742bab add libk2pdfopt.so.1 in customupdate 2012-11-10 01:58:51 +08:00
chrox
84aec5067b adjust gamma in k2pdfopt 2012-11-10 01:39:40 +08:00
chrox
4248194e14 use -O3 option in k2pdfopt compilation
Koptreader will gain 20% performance boost.
2012-11-10 01:36:39 +08:00
chrox
f157b604c1 bugfix: no need to use crop boxes 2012-11-09 23:52:43 +08:00
chrox
9cb906f031 update libk2pdfopt 2012-11-09 23:26:18 +08:00
chrox
d0878f00a9 build libk2pdfopt as a shared library 2012-11-09 23:25:01 +08:00
chrox
cd9b6cc770 some UI tweaks and default changes 2012-11-09 17:21:34 +08:00
chrox
505f59fc87 Pulled update to libk2pdfopt 2012-11-09 13:08:14 +08:00
chrox
73f796a13c feature: add bbox support in koptreader
Reflow can be configured to use bbox which could remove
side comments and defects in the margin and get much better reflowed
page in some documents. Currently the bbox is only set in PDFReader or
DJVUReader reader. But eventually there will be bbox setting routines in
KOPTReader.
Thirdparty should be cleaned and refetched and remake to get
this feature in operation.
2012-11-09 11:04:01 +08:00
kai771
3293acd3a3 Implements page mode as a toggle 2012-11-09 00:58:40 +01:00
{Qingping,Dave} Hou
0b7fb32280 Merge pull request #554 from chrox/libk2pdfopt
move k2pdfopt source to submodules
2012-11-08 11:19:17 -08:00
chrox
e9217caa9c include k2pdfopt header in pdf.c and djvu.c and koptcontext.h 2012-11-07 20:29:51 +08:00
chrox
0d5249e75c move k2pdfopt source to a submodule libk2pdfopt
Currently libk2pdfopt is staticly linked to kpdfview.
2012-11-07 19:03:32 +08:00
Tigran Aivazian
7ba5d4a2bb Merge pull request #553 from chrox/kopt-association
bugfix: redefine reader association policy
2012-11-07 00:57:56 -08:00
chrox
2126166233 bugfix: reader chooser dialog is shown properly
When there are reader preferences table but preference for the file type
of which the file is to be opened is not available, reader chooser
should show up.
I changed `last_reader` and `default_reader` to `reader_association` and
`reader_preferences` respectively for clearness.
2012-11-07 16:52:06 +08:00
chrox
af13491b6c bugfix: redefine reader association policy
Users can still use default reader for specific type. The "Remember
this file" option will add exception to the predefined reader
preference. And exception for a document can be made with the "Alt+C"
command after opening the doc. This patch fixed the bug reported on
issue #480 by @dracodoc.
2012-11-07 14:13:47 +08:00
{Qingping,Dave} Hou
2a43323ecd Merge pull request #551 from chrox/kopt-config
bugfix: automatic preview of new configuration is disabled
2012-11-06 07:09:18 -08:00
chrox
ab407c896c bugfix: automatic preview of new configuration is disabled
Configuration for koptreader doesn't take effect unless FW_PRESS
is pressed or Aa dialog is closed.
2012-11-06 22:38:16 +08:00
{Qingping,Dave} Hou
1bbd353d95 Merge pull request #549 from tigran123/batop
Make battery logging optional, disabled by default
2012-11-05 14:12:38 -08:00
{Qingping,Dave} Hou
befad6bb1e Merge pull request #548 from tigran123/batopt
Allow anyone to set event notifications.
2012-11-05 14:09:41 -08:00
Tigran Aivazian
27817d66d8 Cleanup: ReturnKey and InQuotes are not methods
The functions ReturnKey() and InQuotes() are generic utility functions
and there is no reason whatsoever for them to be object methods of
FileChooser object (and in fact they are used elsewhere). We should
clearly delineate the common utility functions from object's methods
so that eventually the former could be moved to other source modules
while the latter stay close to their object's definitions.
2012-11-05 20:10:52 +00:00
Tigran Aivazian
dae7b95753 Set the message timeout for battery logging to nil.
This was set to 1 second during the testing and I forgot to reset it to
nil for the commit.
2012-11-05 20:04:15 +00:00
Tigran Aivazian
15aee5f4f2 Make battery logging optional, disabled by default
The key that toggles the battery logging is ALT+KEY_DOT and it works
both in the readers and filechooser.
2012-11-05 20:02:06 +00:00
Tigran Aivazian
4bc095122c Unrestrict other TTS functions too. 2012-11-05 19:21:05 +00:00
Tigran Aivazian
60d667db63 Allow anyone to set event notifications.
1. Choosing the level of event notifications shouldn't be restricted.
2. It should sit on key E standing for "configure Event notifications"
rather than the very lengthy "change the way to Inform about events".
2012-11-05 19:13:34 +00:00
Tigran Aivazian
8c43d8226f Merge pull request #544 from chrox/koptcontext
update K2pdfopt to the latest version 1.60
2012-11-05 10:45:50 -08:00
{Qingping,Dave} Hou
fd095706c4 Merge pull request #545 from tigran123/battery-log
Battery log
2012-11-05 09:52:20 -08:00
Tigran Aivazian
47fd12f3d2 Merge branch 'master' into battery-log
Conflicts:
	Makefile
2012-11-05 16:09:01 +00:00
{Qingping,Dave} Hou
1d277d3009 Merge pull request #541 from tigran123/luajit
Get rid of LD_LIBRARY_PATH, LUALIBCOMPAT and package defaults.lua
2012-11-05 08:01:24 -08:00
chrox
65bd523d4c use koptcontext to keep dozons of parameters for k2pdfopt 2012-11-05 23:56:56 +08:00
Tigran Aivazian
bade79138d No need to cat crash.log on crash.
One cannot start kpdf.sh from a terminal anyway (try it and you will see
that keyboard handling doesn't work), so there is no need to cat the
content of crash.log (to a non-existent terminal) if reader.lua fails.
2012-11-05 11:39:58 +00:00
Tigran Aivazian
69d58ae6f5 Add battery level logging. 2012-11-05 11:38:33 +00:00
Tigran Aivazian
1ca3bf3592 Package defaults.lua and symlink libluajit-5.1.so
1. The file defaults.lua needs to be mentioned in LUA_FILES in order to
be packaged by "make customupdate".
2. The problem with the linker not finding libluajit-5.1.so.2 can be
fixed without specifying the shared library in the list of objects (and
static libraries), simply by making a symbolic link. No need to copy a
duplicate.
2012-11-05 09:30:40 +00:00
Tigran Aivazian
3a1e65a570 No need to set LD_LIBRARY_PATH
As we use -Wl,-rpath=$(LIBDIR)/ the RPATH is hardcoded in the kpdfview
binary and so there is no need to help the linker find our libraries.
2012-11-05 09:29:32 +00:00
Tigran Aivazian
3ca9d510e5 Merge pull request #533 from hwhw/hwhw-master
LuaJIT update (+shared library), MuPDF update
2012-11-04 11:13:24 -08:00
Tigran Aivazian
4afe0bc3be Merge pull request #537 from kai771/separate_config
separates configurable options from the code
2012-11-04 11:12:11 -08:00
kai771
84aa00bbe4 adds DBACKGROUND_COLOR to defaults 2012-11-04 17:22:28 +01:00
kai771
255aa6c761 fixes suggested by tigran123 2012-11-04 15:51:00 +01:00
kai771
57ce4b201f separates configurable options from the code 2012-11-04 14:19:21 +01:00
HW
618c218969 Fixed initialization/update of mupdf's submodules, build "release" version of build helpers 2012-11-04 12:45:24 +01:00
{Qingping,Dave} Hou
7a627836bb Merge pull request #532 from tigran123/cleanup
cleanup: one-line call to :inform() for ON/OFF
2012-11-03 22:43:45 -07:00
HW
ec26c4cec1 work around luajit library name confusion 2012-11-04 00:21:17 +01:00
HW
a04823528b moved luajit-2.0 and mupdf to latest version - now really 2012-11-04 00:15:43 +01:00
HW
613ccb1955 Merge remote-tracking branch 'origin/master' into hwhw-master 2012-11-03 23:51:14 +01:00
HW
5c1090866f disabled patching of libjpeg, restructured everything for mupdf subrepos 2012-11-03 23:49:18 +01:00
Tigran Aivazian
e8840e6059 cleanup: one-line call to :inform() for ON/OFF 2012-11-03 19:52:22 +00:00
Tigran Aivazian
aeb6248424 Merge pull request #515 from kai771/rtl_mode
implements rtl_mode
2012-11-03 12:46:58 -07:00
chrox
0e042c0ff1 change default value of render quality option 2012-11-04 03:42:52 +08:00