Commit Graph

264 Commits

Author SHA1 Message Date
80e2e9d05d
Re-add -DBOOST_LOG_DYN_LINK
All checks were successful
continuous-integration/drone/push Build is passing
It seems we still need it. The combination of Boost 1.65.1 and CMake 3.12
does not work otherwise. Not sure whose fault it is.
2021-05-31 21:20:41 +02:00
c30a8b40be
Older Boost version need log_setup in addition to log.
Some checks failed
continuous-integration/drone/push Build is failing
1.75.0 works without it, 1.74.0 not.
Removed -DBOOST_LOG_DYN_LINK again.
2021-05-31 20:57:36 +02:00
1d02c3bd6d
Add workaround for old CMake←→Boost combinations.
Some checks failed
continuous-integration/drone/push Build is failing
2021-05-31 20:15:54 +02:00
f184a19832
Add log file location to man page. 2021-05-31 19:45:01 +02:00
1d70b16596
Add libboost-log-dev dependency to CI and readme.
Some checks failed
continuous-integration/drone/push Build is failing
2021-05-31 19:42:14 +02:00
77d013c12a
Change config file path.
Some checks reported errors
continuous-integration/drone/push Build was killed
Existing old config file is copied over.
2021-05-31 19:37:11 +02:00
b966be3021
Log suppressed errors to log file. 2021-05-31 19:27:36 +02:00
7a68ec6191
Add note about the log file to bug report info. 2021-05-31 19:27:13 +02:00
18f8600174
Change log file directory. 2021-05-31 19:26:19 +02:00
11572d5b29
Use logger for warnings end errors. 2021-05-31 19:12:07 +02:00
ac5b31f2d5
Add logger. 2021-05-31 18:50:41 +02:00
cf583c6d7f
Don't compile sources twice.
Not sure why it would compile them twice if they are set to PUBLIC, but okay. 🤷
2021-05-31 17:24:08 +02:00
78ada56226
Make input files required.
It will be difficult to parse EPUB files from stdin and the usefulness is
questionable.
2021-05-31 15:31:41 +02:00
11a8989370
CMake: Make GLOB work with new files (most of the time).
All checks were successful
continuous-integration/drone/push Build is passing
Caveats: <https://cmake.org/cmake/help/latest/command/file.html#filesystem>
2021-05-31 11:06:29 +02:00
ea2fbc8dd7
Update build instructions. 2021-05-31 10:57:42 +02:00
76ed0c9dbf
Un-escape named and numbered entities in documents before searching.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-30 23:32:35 +02:00
8a9be5d45b
Add helpers::unescape_html() &amp; tests. 2021-05-30 23:32:30 +02:00
7f31d897cf
Add/move tests for helpers. 2021-05-30 22:25:37 +02:00
7ddfe32e30
Move is_whitespace() and urldecode() to helpers. 2021-05-30 21:52:52 +02:00
af9563e669
Typo. 2021-05-30 21:45:33 +02:00
94564fa914
Strip whitespace from headlines. 2021-05-30 21:16:24 +02:00
da22a54a8a
Update german translation.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-30 19:05:58 +02:00
22cae4c3cd
Output metadata italic, chapters underlined. 2021-05-30 19:03:59 +02:00
fe23fcf04b
Rename prefix to metadata in print_matches(). 2021-05-30 18:09:31 +02:00
03138c1dbf
Remove unnecessary include. 2021-05-30 18:07:13 +02:00
e7633fe134
Rename prefix to before and suffix to after.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-30 14:47:18 +02:00
6255d665af
Replace tabs with a space in search::cleanup(). 2021-05-30 14:37:05 +02:00
4eb210710b
CI: Don't install catch for package generation. 2021-05-30 14:00:56 +02:00
82193d529c
Fix tests.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-30 13:48:11 +02:00
d7ad180721
Use iterators in search::context() and don't return extra whitespace
Should be easier to understand now.
2021-05-30 13:45:56 +02:00
ded11af5fb
Add tests for EPUB files. 2021-05-29 23:58:59 +02:00
c1613a8f52
Add test for zip::urldecode(). 2021-05-29 23:01:13 +02:00
59ceaa7cdc
Add another test for search::headline(). 2021-05-29 23:00:40 +02:00
790e60a055
Fix end-of-headline detection. 2021-05-29 23:00:16 +02:00
0accd77a2c
Version bump 0.4.0. 2021-05-29 22:13:58 +02:00
160ff20387
Revert "Fix pugixml target."
All checks were successful
continuous-integration/drone/push Build is passing
pugixml 1.8.1 (the version in Ubuntu bionic) does not have that target.

This reverts commit 2a3e3f87b5.
2021-05-29 22:10:21 +02:00
6f934470c7
Add type to drone config.
Some checks failed
continuous-integration/drone/push Build is failing
2021-05-29 21:54:47 +02:00
c1d2e8fa21
Clean up .editorconfig. 2021-05-29 21:44:36 +02:00
2a3e3f87b5
Fix pugixml target. 2021-05-29 21:37:40 +02:00
92d1b66c76
CI: Workaround for pugixml on bionic. 2021-05-29 21:32:36 +02:00
e7756c8f87
Drop minimum pugixml version.
Some checks failed
continuous-integration/drone/push Build is failing
The package in Ubuntu bionic doesn't provide a version.
2021-05-29 19:23:41 +02:00
df55ed9dba
CI: Add pugixml_DIR
Some checks failed
continuous-integration/drone/push Build is failing
For some reason the package installs the CMake config file into
/usr/share/libpugixml-dev.
2021-05-29 19:06:25 +02:00
37e868b3f2
Remove <style> and <script> snippets.
Closes: #8
2021-05-29 18:52:03 +02:00
737d0a10b6
Update german translation.
Some checks failed
continuous-integration/drone/push Build is failing
2021-05-29 18:43:14 +02:00
2d65961688
Output XML errors. 2021-05-29 18:42:29 +02:00
ba5716c585
Skip in-epub file if it is not found, except it's the container.
We skipped the whole EPUB before.
2021-05-29 18:20:23 +02:00
5bd1030ad8
Try opf: variants of XML tags if normal variants are not found. 2021-05-29 18:09:44 +02:00
03b367ee98
Don't print same file path twice in error message.
zip::exception always has  the filename in the message.
2021-05-29 17:37:41 +02:00
00e3edb9f2
Only search files in spine, in the right order.
The spine lists all content documents in their linear reading order. So we're
finally getting our results in the right order! 🎉

Since we skip the images and fonts, which usually make up the most bytes in an
EPUB file, the performance increase is immense. I measured 60-70% in a very
short test.

Closes: #1
2021-05-29 17:34:43 +02:00
c94d9de0db
Reformat error messages.
One line per error message.
2021-05-29 12:53:14 +02:00