tastytea
f8270369b6
Make whitespace-reduction a bit more efficient.
...
continuous-integration/drone/push Build is passing
Details
We now use 2 passes instead of 3.
2021-06-08 17:30:29 +02:00
tastytea
be4d8aecd0
Mixed up types.
2021-06-07 00:44:42 +02:00
tastytea
1c8279f96f
Add test that asks for more context than is available.
continuous-integration/drone/push Build is passing
Details
2021-06-07 00:05:33 +02:00
tastytea
5e89a71e00
Update tests for search::headline() and search::page().
2021-06-06 22:11:45 +02:00
tastytea
bc34a3a515
Make ctest work from build directory.
2021-06-03 15:56:08 +02:00
tastytea
7b4b9edfe5
Rename file names in search::matches to make it more clear.
2021-06-01 19:15:00 +02:00
tastytea
11a8989370
CMake: Make GLOB work with new files (most of the time).
...
continuous-integration/drone/push Build is passing
Details
Caveats: <https://cmake.org/cmake/help/latest/command/file.html#filesystem >
2021-05-31 11:06:29 +02:00
tastytea
8a9be5d45b
Add helpers::unescape_html() & tests.
2021-05-30 23:32:30 +02:00
tastytea
7f31d897cf
Add/move tests for helpers.
2021-05-30 22:25:37 +02:00
tastytea
af9563e669
Typo.
2021-05-30 21:45:33 +02:00
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