Commit Graph

13 Commits

Author SHA1 Message Date
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
2a3e3f87b5
Fix pugixml target. 2021-05-29 21:37: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
fc0aa02bc9
Use threads if more than one input file is searched.
Use 75% of the available threads (rounded up).

Closes: #4
2021-05-26 17:50:52 +02:00
d3c3062cc0
Add Termcolor dependency and bundle it in dist/. 2021-05-25 10:55:44 +02:00
4644c2afd4
Support CMake 3.12.
All checks were successful
continuous-integration/drone/push Build is passing
Ubuntu 20.04 has 3.16, so requiring 3.17 is a bit mean.
2021-05-25 07:38:07 +02:00
1979956f03
Add basic search functionality and context output. 2021-05-24 15:35:49 +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
4e8c6e7489
Add exception for zip processing.
Some checks failed
continuous-integration/drone/push Build is failing
- New dependency: libfmt.
- Translate error messages.
2021-05-21 03:25:42 +02:00
222f802015
Basic zip file support.
All checks were successful
continuous-integration/drone/push Build is passing
Dumping the TOC works.
2021-05-21 01:56:37 +02:00
bfb59da98d
std::filesystem compatibility for older GCC.
All checks were successful
continuous-integration/drone/push Build is passing
The header was in experimental a while ago and the implementation was a
separate library.
2021-05-20 10:37:45 +02:00
94c25552a1
Add translation support, german translation. 2021-05-20 07:09:21 +02:00
678b506a8c
Initial commit.
- Add skeleton
- Add command-line parsing
2021-05-20 04:34:06 +02:00