Commit Graph

877 Commits (35701e6ec0a685d0b3f598cfc7665f23fb4c44be)
 

Author SHA1 Message Date
Tigran Aivazian 35701e6ec0 Create static directories at build, not runtime.
Instead of calling lfs.mkdir() to create "./history" and "./screenshots"
at runtime it is easier to create them at package build time.
I hesitated whether to add "./clipboard" to this list but decided
against it as we can perhaps change current directory and then
all the code manipulating clipboard would break, so I left it as is.

Conflicts:

	filechooser.lua
	screen.lua
	settings.lua
12 years ago
Tigran Aivazian cae259e0cb Cleanup of djvu.c
1. Use the proper <string.h> header.
2. Typo fixes and whitespace changes.
3. Comment out debug printf() about cache size.
4. Remove obsolete comment(s).

Conflicts:

	djvu.c
12 years ago
Tigran Aivazian 50a76c09a0 Optimize building djvulibre.
1. Don't build xmltools in the emulator
2. Remove duplicate --disable-desktopfiles
3. Don't build LFS support. The largest DjVu file I have ever published
was a highres facsimile edition of the London Walton Polyglot (1657)
which was a "mere" 1GB in size and I don't think anyone produced
anything bigger. Besides, storing DjVu files >2GB in size (even if
they existed, which I doubt) on a Kindle with only 3GB total storage
space is _exceedingly_ unlikely.
12 years ago
Dobrica Pavlinusic cf5dca718b include git rev in distribution zip 12 years ago
Tigran Aivazian 34d5205894 Disk free space reporting:
1. Enhance FileInfo:FileSize() to handle gigabytes and rename it to FileInfo:FormatSize() as it is not just for file sizes.
2. Add "Free space" field to file info because it is useful to see it when deciding whether to remove this file or not.

Conflicts:

	fileinfo.lua
12 years ago
Qingping Hou 61bc799de4 update README.md 12 years ago
Qingping Hou eb79e1c95c handle file with no extension in filechooser 12 years ago
Dobrica Pavlinusic 83d910b7d3 use README.md in distribution zip
Conflicts:

	Makefile
12 years ago
Qingping Hou 68eeeaa0d2 delete README.TXT 12 years ago
Qingping Hou 825de1ea4f remove leading tab in command in README 12 years ago
Qingping Hou 6ad8afebbb rename README.TXT to README.md
for better rendering in Github
12 years ago
Qingping Hou cc78a43b92 update readme 12 years ago
Qingping Hou e6a8f5558c move -l argument to the end of GCC call 12 years ago
Tigran Aivazian 97f59ed07c 1. It is customary to call DjVu context by the name of the program.
2. When changing DjVu page rendering mode there is no need to clear DjVu cache, only our own tile cache.

Conflicts:

	djvureader.lua
12 years ago
Qingping Hou dfff1906fd return only one value in ReaderToc:cleanUpTocTitle(title) 12 years ago
Qingping Hou 25af917170 call cre.initCache() in CreDocument:engineInit() 12 years ago
Qingping Hou 619f5a0f34 set crengine cache size in lua code
Conflicts:

	crereader.lua
12 years ago
Dobrica Pavlinusic e23cc2a1de use 64Mb for on disk DOM cache for crengine
Previously we had cache size limit of 100 bytes, so crengine would erase
all on-disk cache on each file open as described in #206
12 years ago
Dobrica Pavlinusic 04e6df1fd0 use ldomDocCache::init to cache crengine DOM
This should improve performance of crengine #206
12 years ago
Tigran Aivazian 3278ef5a29 Correct the comment (the existing text was referring to a different file). 12 years ago
Tigran Aivazian bbbd64d96e Comment out the setting of dithering bits because djvulibre ignores anything less than 8 bits anyway. 12 years ago
Tigran Aivazian b761418236 Small optimization in djvu.c:drawPage() --- there is no need to create and destroy
djvu pixel format on each redraw of the page as this can be done once on open and close
of the document. Also, set dither bits to 4 to help djvulibre choose the most
optimal dithering algorithm for the Kindle. Also, make coding style of "if(" -> "if ("
consistent (both instances were used, but "if (" was more frequent).

Conflicts:

	djvu.c
12 years ago
Tigran Aivazian 7f6d3097a2 Remove the local variable render_mode from drawPage() (although it would be optimized away by gcc anyway). 12 years ago
Tigran Aivazian 0d23340738 Move render_mode support out of unireader.lua into djvureader.lua as it is djvu-specific.
Also added support for all other rendering modes handled by djvulibre.
Also made the message print a human-readable description of the mode rather than just the number.

Conflicts:

	djvureader.lua
	unireader.lua
12 years ago
Dobrica Pavlinusic 3d291f52ac disable DEBUG_CRENGINE 12 years ago
Dobrica Pavlinusic 3cd19db601 showInfoMsgWithDelay with number of results
Conflicts:

	crereader.lua
12 years ago
Dobrica Pavlinusic 09440f600c correctly return first search position and refresh screen
Conflicts:

	crereader.lua
12 years ago
Dobrica Pavlinusic dadbf000c9 coolreader search highlight
This is rough port of Android code, but seems to work

Conflicts:

	cre.cpp
	crereader.lua
12 years ago
Dobrica Pavlinusic cc52ee0a09 Revert "Set up to compile with arm-kindle-linux-x-tools-glibc2.5-gcc4.2.4.tar.gz toolchain."
This reverts commit 2650faa000
as described in #229
12 years ago
Tigran Aivazian 144f5c637a DjVu enhancements:
a) add support for switching the rendering mode between B&W (default, 1) and COLOUR (0) values.
b) handle the gamma values correctly.

Conflicts:

	unireader.lua
12 years ago
Tigran Aivazian bcb85d7c07 Fix the Makefile to use freetype-2.4.10 and kpvcrlib/CMakeLists.txt to do the same and also zlib 1.2.5->1.2.7 and libjpeg 8d->9. 12 years ago
Tigran Aivazian a52aee2f9a Set up to compile with arm-kindle-linux-x-tools-glibc2.5-gcc4.2.4.tar.gz toolchain. 12 years ago
Dobrica Pavlinušić a10cac03e3 Merge pull request #224 from houqp/new_ui_code
some small fixes and cherry-picks for new_ui_code
12 years ago
Qingping Hou 98c752f50d Merge branch 'new_ui_code' of github.com:houqp/kindlepdfviewer into new_ui_code
for push
12 years ago
Qingping Hou c1ccff70ad minor adjustment for Makefile and document.lua 12 years ago
Dobrica Pavlinusic 77fece8ad9 fix lua include path 12 years ago
Kefu Chai e39bbd7077 fixes for mac
* per http://luajit.org/install.html, otherwise LuaJIT always fails
  to get desired memory chunk from mmap(2)
* kill a warning of clang
12 years ago
Kefu Chai 8ce1aef0af remove dependency on <linux/input.h>
* and kill a warning
12 years ago
Qingping Hou ae780a543b check mupdf's thirdparty libs' version 12 years ago
Qingping Hou 10e723896b fix wrong warnning message in Makefile 12 years ago
Qingping Hou 59e81a0345 fix typo in makefile 12 years ago
NuPogodi 8566cfff1e added cr3.css for files without one 12 years ago
Qingping Hou 2e145dbf27 update README, for emulator example 12 years ago
Dobrica Pavlinušić f9bd1625fd Merge pull request #213 from houqp/new_ui_code
setting feature part2
12 years ago
Qingping Hou 3fb28b08fd Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into new_ui_code 12 years ago
Qingping Hou ac385783ed remove menu item shortcut for k4 12 years ago
Qingping Hou 1c216b6458 add last read page/percent setting support 12 years ago
Qingping Hou 59592e862e read font settings on readsettings event 12 years ago
Qingping Hou 0e122b12bf read settings after readerui widgets initialization 12 years ago
Dobrica Pavlinušić bcd50a44ad Merge pull request #211 from houqp/new_ui_code
add document setting support
12 years ago