Commit Graph

13 Commits

Author SHA1 Message Date
tastytea 82193d529c
Fix tests.
continuous-integration/drone/push Build is passing Details
2021-05-30 13:48:11 +02:00
tastytea ded11af5fb
Add tests for EPUB files. 2021-05-29 23:58:59 +02:00
tastytea c1613a8f52
Add test for zip::urldecode(). 2021-05-29 23:01:13 +02:00
tastytea 59ceaa7cdc
Add another test for search::headline(). 2021-05-29 23:00:40 +02:00
tastytea 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
tastytea e64591f204
Rework option parsing, change --no-filename.
continuous-integration/drone/push Build is failing Details
Options are now better accessible, --no-filename accepts the values filesystem,
in-epub or all.
2021-05-27 17:20:00 +02:00
tastytea 9c307ab0fd
Add test for HTML tags in titles. 2021-05-26 08:53:48 +02:00
tastytea 72e2482028
Add test for search helpers.
- search::cleanup_text()
- search::headline()
- search::page
2021-05-24 21:38:44 +02:00
tastytea 36f27ad744
Add tests for search::search(). 2021-05-24 21:38:39 +02:00
tastytea 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
tastytea 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
tastytea 6c040fa951
Add first test.
continuous-integration/drone/push Build is failing Details
- 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
tastytea 678b506a8c
Initial commit.
- Add skeleton
- Add command-line parsing
2021-05-20 04:34:06 +02:00