Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ctrl + F search returns, "No matches found". #384

Open
wolfv6 opened this issue May 10, 2023 · 2 comments
Open

Ctrl + F search returns, "No matches found". #384

wolfv6 opened this issue May 10, 2023 · 2 comments

Comments

@wolfv6
Copy link

wolfv6 commented May 10, 2023

Ctrl + F search results always returns, "No matches found".
For example, searching for "money" in the epub book "Kiss Your Money Hello!" finds "No matches found for 'money' in Kiss Your Money Hello!"

I am running Bookworm 1.1.2 on Fedora 38.
I installed Bookworm from GNOME Software.

I started Bookworm in debug mode from the terminal:

$ com.github.babluboy.bookworm —debug
...
[WARNING 22:47:21.671581] bookworm.vala:681: EBook not found at provided location:—debug

Then I clicked on the book, and it displayed the book's text as usual.
Then I search "money" and the terminal displays 20 warnings of:

[WARNING 22:49:28.397240] utils.vala:95: Execution of sync command [/usr/share/com.github.babluboy.bookworm/scripts/tasks/com.github.babluboy.bookworm.search.sh "/home/wolfv/.local/share/com.github.babluboy.bookworm/books/Kiss_Your_Money_Hello20230424.epub/OEBPS/Dedication.xhtml" "money"]: exited with non zero error code[256]. Error message:/usr/share/com.github.babluboy.bookworm/scripts/tasks/com.github.babluboy.bookworm.search.sh: line 8: html2text: command not found

This issue seems to be related to #260

@babluboy
Copy link
Owner

babluboy commented Nov 29, 2023

Thanks for raising this issue - not sure why html2text is not installed - its required for the search. Could you please try installing html2text on your machine and try again. Installation instructions for Ubuntu are here: https://installati.one/install-html2text-ubuntu-20-04, hopefully this package is available for Fedora

@wolfv6
Copy link
Author

wolfv6 commented Nov 29, 2023

I installed html2text.
Book worm still says "No matches found for 'money' in Kiss Your Money Hello!".

The error message in debug mode is different:
[WARNING 03:54:47.336191] utils.vala:95: Execution of sync command [/usr/share/com.github.babluboy.bookworm/scripts/tasks/com.github.babluboy.bookworm.search.sh "/home/wolfv/.local/share/com.github.babluboy.bookworm/books/Kiss_Your_Money_Hello20230424.epub/OEBPS/yyjz6VWbUjKuDFv9.xhtml" "money"]: exited with non zero error code[256]. Error message:usage: html2text [-h] [--default-image-alt DEFAULT_IMAGE_ALT] [--pad-tables] [--no-wrap-links] [--wrap-list-items] [--ignore-emphasis] [--reference-links] [--ignore-links] [--protect-links] [--ignore-images] [--images-as-html] [--images-to-alt] [--images-with-size] [-g] [-d] [-e] [-b BODY_WIDTH] [-i LIST_INDENT] [-s] [--escape-all] [--bypass-tables] [--ignore-tables] [--single-line-break] [--unicode-snob] [--no-automatic-links] [--no-skip-internal-links] [--links-after-para] [--mark-code] [--decode-errors DECODE_ERRORS] [--open-quote OPEN_QUOTE] [--close-quote CLOSE_QUOTE] [--version] [filename] [encoding]html2text: error: unrecognized arguments: -utf8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants