GithubHelp home page GithubHelp logo

caps's People

Contributors

mapozyan avatar thiagoeec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

caps's Issues

I want to know what's the metter of this

Calibre Power Search Plugin (1, 7, 0)
Traceback (most recent call last):
File "calibre_plugins.caps.main", line 233, in on_search
File "calibre_plugins.caps.main", line 249, in manage_lru
File "site-packages\calibre\utils\config.py", line 430, in setitem
File "site-packages\calibre\utils\config.py", line 372, in commit
File "site-packages\calibre\utils\config.py", line 414, in to_raw
File "json_init
.py", line 251, in dumps
File "json\encoder.py", line 209, in encode
File "json\encoder.py", line 434, in _iterencode
File "json\encoder.py", line 408, in _iterencode_dict
File "json\encoder.py", line 442, in _iterencode
File "site-packages\calibre\utils\config.py", line 393, in to_json
TypeError: PyQt5.QtCore.QByteArray('\x01\xd9\xd0\xcb\x00\x02\x00\x00\x00\x00\x01\xf1\x00\x00\x009\x00\x00\x03\xfc\x00\x00\x02i\x00\x00\x01\xf9\x00\x00\x00W\x00\x00\x03\xf4\x00\x00\x02a\x00\x00\x00\x00\x00\x00\x00\x00\x05V') is not JSON serializable

Search shows results count but unable to navigate

The search results just shows the count, unable to navigate to the search results

The keyword is not getting displayed inside the contents of the book

Will it just says the keyword exist in a book or we can able to navigate the search results and keyword will get highlighted on opening the book.

Options would be great

  1. search results count and books found to be listed
  2. on clicking the book, the keyword should get automatically highlighted in all the occurences of the book
  3. easy navigation with previous and next would be easier to walk through the search results

Indexing freezes on a particular book

Hello. Thank you for your wonderful plugin! I have one issue when indexing a particular .epub book. The indexing process freezes and cancelling it doesn't work. I end up having to force quit and restarting Calibre. Any suggestions on what I can do? Is there a way to flag a particular .epub so it doesn't get indexed? Thank you.

Unhandled exception: TypeError:setMaximum(self, int): argument 1 has unexpected type 'float'

I was able get the elastic search working.
When I try to index. I get this error.
Any ideas to solve this issue.
I am using fedora 35


calibre, version 5.33.2
ERROR: Unhandled exception: TypeError:setMaximum(self, int): argument 1 has unexpected type 'float'

calibre 5.33.2 embedded-python: False is64bit: True
Linux-5.17.11-200.fc35.x86_64-x86_64-with-glibc2.34 Linux ('64bit', 'ELF')
('Linux', '5.17.11-200.fc35.x86_64', '#1 SMP PREEMPT Wed May 25 14:56:43 UTC 2022')
Python 3.10.4
Interface language: None
Successfully initialized third party plugins: Calibre Power Search Plugin (2, 1, 2)
Traceback (most recent call last):
File "calibre_plugins.caps.main", line 676, in on_reindex
self._reindex()
File "calibre_plugins.caps.main", line 420, in _reindex
self.progress_bar.setMaximum(len(self.update_list) + len(self.delete_list) / 20)
TypeError: setMaximum(self, int): argument 1 has unexpected type 'float'

Several enhancement requests

Cross-posted from the Power Search thread on MobileRead, in case it was missed there:

  1. An option to set the path for ElasticSearch, so that if it isn't running it can launch it instead of just throwing an error about being unable to contact the service.
  2. Being able to search only the currently viewed (or selected, if that's more doable) books. This could be added as a dropdown menu.
  3. On the topic of the menus, the icon is extremely low-contrast in dark mode (I only just realized there's a magnifying glass). An alternate icon for dark mode would be nice.
  4. Add the two indexing options as dropdown menu I was hoping that I could incorporate re-indexing into one of my action chains (not entirely sure it'll work, but it's worth a try).

Thank you!

on MacOS, Calibre Power Search Plugin should use the Vision Framework to index text in image formats like CBZ

.CBZ format documents are just a zip of numbered image files, .jpg or .png. It is often used for graphic novels. Graphic novels are also encoded as .epubs, also a zip format, where the .html files are trivial, just pointing to .jpg or .png files in the .epub's directory tree When running on macOS, you can weak-dynamic link to Apple supplied Vision framework, which when given an image returns an array of structs: each struct has the vertices of a rectangle and a string that is the OCR'ed text in that rectangle.

This proposed enhancement request would allow searching for text even if that text only occurs within images.

https://gist.github.com/RhetTbull/1c34fc07c95733642cffcd1ac587fc4c is an example of accessing the vision framework from Python

question

any way to get past the 10000 limit?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.