Frans de Jonge
c8c4df2f31
[fix] util.isEmptyDir() crashes on non-existent dir
...
lfs.dir will crash rather than return nil if directory doesn't exist
Proper fix for 9f5e446701
which is nothing but a workaround. However, I do think creating more of those data dirs automatically is more user-friendly because otherwise Android users will have to look it up or guess.
2017-08-17 11:18:28 +02:00
Frans de Jonge
16f8f7226e
[chore] util: deprecated string.gfind to string.gmatch
2017-08-14 22:39:38 +02:00
poire-z
17656778b1
Book information: refactored and additional features
...
- Factored out duplicate code from filemanager.lua and filemanagerhistory.lua
to new filemanagerbookinfo.lua (and other common code to filemanagerutil.lua).
- Uses sidecar files' new doc_props and doc_pages settings, or fallback to
old 'stats' settings, or to opening document.
- Shows filename, filetype and directory.
- Shows description (Hold to see whole truncated text), keywords, and
cover image (tap to extract image from document and display it if available).
- Book information now available from reader menu, to display info about
the currently opened book.
- Convert possibly HTML description to plain text via added
util.htmlToPlainTextIfHtml() (for simple HTML conversion).
2017-07-14 16:46:38 +02:00
Frans de Jonge
ea9fa95a54
util.lua: fix lfs require in isEmptyDir()
...
Pointed out by @poire-z ed7937f65d (commitcomment-21956632)
2017-04-29 08:57:50 +02:00
Frans de Jonge
ed7937f65d
ReaderDictionary: add info message about installing dictionaries
...
Fixes #2816 .
2017-04-27 01:29:24 -07:00
Hzj_jie
999898fa69
Merge various information into systemstat ( #2764 )
...
* Merge various information to systemstat
2017-04-14 21:12:28 +02:00
Frans de Jonge
e9df73f6dc
Developer documentation improvements
...
* Fixed up all of util and added when absent
* Updated widget examples to new coding style
2017-04-04 08:01:15 -07:00
Robert
a3c4254809
Added util.fixUtf8 ( #2704 )
...
* Remove invalid UTF-8 chars from OPDS
* add unit tests
2017-04-02 16:17:49 +02:00
Robert
dccbf4cf96
Fix crash when downloading books with unknown characters in title ( #2628 )
2017-03-15 00:59:42 -07:00
Frans de Jonge
47a40eb414
util: add some LDoc descriptions
2017-02-25 17:52:46 -08:00
Hzj_jie
726b15ad01
More sorting orders in file manager ( #2535 )
2017-02-11 18:55:31 -08:00
Frans de Jonge
bec5f46245
Merge pull request #2524 from Hzj-jie/master2
...
Add characters in menu items to indicate sub menus
2017-02-08 10:43:40 +01:00
Hzj_jie
65e2d6630f
Use small triangle
2017-02-07 20:38:34 -08:00
Hzj_jie
18117584c0
Resolve review comments
2017-02-03 20:26:47 -08:00
Hzj_jie
f91ad679d9
swithItemTable -> switchItemTable
2017-02-01 06:26:06 -08:00
Hzj_jie
529d1b3d33
evernote: ReadHistory integration and text file output ( #2498 )
2017-01-21 01:32:42 -08:00
Robert
7bfbc9f06a
Sanitize filename for vfat, fix #2433 ( #2464 )
2017-01-09 16:05:15 -08:00
poire-z
359c1ae265
textboxwidget: enhanced CJK text wrapping
...
(changes only in util.isSplitable(), but used by textboxwidget)
Implemented line breaking rules from :
https://en.wikipedia.org/wiki/Line_breaking_rules_in_East_Asian_languages
2016-12-16 22:38:10 -08:00
poire-z
a8dd8c6f30
textboxwidget: even better text wrapping
...
util.isSplitable() accepts now also the previous char to help
decide if a space can be used to split a line.
TextBoxWidget:_splitCharWidthList() : simplified logic
2016-12-14 11:39:46 -08:00
Frans de Jonge
ba7377065e
Doc: miscellaneous improvements.
2016-12-13 14:40:16 -08:00
poire-z
5040bfe4c5
textboxwidget and scrolltextwidget enhancements ( #2393 )
...
util: made isSplitable() accept an optional next_char
for wiser decision
textboxwidget: speed up rendering, enhanced text wrapping,
allow selection of multiple words with Hold.
scrolltextwidget: allow scrolling with Tap.
Details in #2393
2016-12-11 14:32:02 -08:00
Hzj_jie
9efc723388
PR #2356 breaks CJK character splitting
2016-11-25 16:46:56 -08:00
robert00s
fc5ba9b862
Fix hyphenation words with unicode character in texboxwidget ( #2356 )
2016-11-19 12:26:53 -08:00
chrox
71bf9efc7c
split accient greek words with spacing character
...
This should fix #1705 .
2016-06-28 23:50:25 +08:00
Qingping Hou
301925e34a
textboxwidget(fix): handle onHoldWord event
2016-06-05 00:37:54 -07:00
union2find
a7f24b6eaf
fix function util.splitToChars in frontend/util.lua
2016-05-22 23:59:28 +08:00
union2find
f8943efdbf
fix indent sytle
2016-05-15 17:18:38 +08:00
union2find
3d89b27e59
remove debug output
2016-05-15 14:56:58 +08:00
union2find
d6fcc9adf9
add cursor functionality
2016-04-21 22:13:10 +08:00
Alex Pletnev
fbf98ed920
#1710 FR: Add support of statistics plugin for pdf
2016-02-12 16:55:02 +02:00
Qingping Hou
e2096ed8d9
doc: add documentation build infrastructure
2016-02-04 10:24:53 -08:00
Qingping Hou
5cca28fabc
feat(util): add array.Append helper
2016-01-31 14:58:05 -08:00
Qingping Hou
e19f73bdba
style(util): rename tablelength to tableSize
2016-01-31 14:58:05 -08:00
Qingping Hou
2dc5eb8586
minor: no need to override function arg with local
2016-01-03 01:08:26 -08:00
Qingping Hou
4759def09c
chore: fix static-check errors
2016-01-02 23:45:23 -08:00
Alex Pletnev
ce4e32e01c
#1723 Add time to read into the status bar
...
Add new statuses:
TB - book time to read
TC - chapter time to read
Fix backward compatible in statistics plugin
2015-11-27 17:13:01 +02:00
chrox
932df2a2f9
Refactor out string.gsplit to util.gsplit
2015-04-22 14:27:33 +08:00
chrox
07586cea71
strip punctuations around word before searching
...
This should fix #1337 .
2015-02-01 17:40:45 +08:00