Commit Graph

24 Commits

Author SHA1 Message Date
84ef5d1bf3
Move book processing into own file.
Some checks failed
continuous-integration/drone/push Build is failing
2021-08-17 13:05:14 +02:00
f8270369b6
Make whitespace-reduction a bit more efficient.
All checks were successful
continuous-integration/drone/push Build is passing
We now use 2 passes instead of 3.
2021-06-08 17:30:29 +02:00
be4d8aecd0
Mixed up types. 2021-06-07 00:44:42 +02:00
1c8279f96f
Add test that asks for more context than is available.
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-07 00:05:33 +02:00
5e89a71e00
Update tests for search::headline() and search::page(). 2021-06-06 22:11:45 +02:00
bc34a3a515
Make ctest work from build directory. 2021-06-03 15:56:08 +02:00
7b4b9edfe5
Rename file names in search::matches to make it more clear. 2021-06-01 19:15:00 +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
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
af9563e669
Typo. 2021-05-30 21:45:33 +02:00
82193d529c
Fix tests.
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-30 13:48:11 +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
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
e64591f204
Rework option parsing, change --no-filename.
Some checks failed
continuous-integration/drone/push Build is failing
Options are now better accessible, --no-filename accepts the values filesystem,
in-epub or all.
2021-05-27 17:20:00 +02:00
9c307ab0fd
Add test for HTML tags in titles. 2021-05-26 08:53:48 +02:00
72e2482028
Add test for search helpers.
- search::cleanup_text()
- search::headline()
- search::page
2021-05-24 21:38:44 +02:00
36f27ad744
Add tests for search::search(). 2021-05-24 21:38:39 +02:00
e773d4b78a
Implement zip::read_file() – Read file in archive; add test.
Also added zip::open_file() and zip::close_file() to deduplicate code.
2021-05-23 08:56:58 +02:00
28c6c80def
Set C locale, treat EPUB file names as UTF-8.
EPUB file names MUST be UTF-8. ASCII is a subset of UTF-8.
2021-05-23 06:32:56 +02:00
6c040fa951
Add first test.
Some checks failed
continuous-integration/drone/push Build is failing
- Compile everything in src/ except main.cpp into a static library
- Link the static library into tests
- Add test for zip::list()
2021-05-21 09:27:31 +02:00
678b506a8c
Initial commit.
- Add skeleton
- Add command-line parsing
2021-05-20 04:34:06 +02:00