View Single Post
Old 09-11-2022, 12:50 AM   #43
lizzie1170
Member
lizzie1170 began at the beginning.
 
lizzie1170's Avatar
 
Posts: 12
Karma: 10
Join Date: Jul 2022
Device: none
Quote:
Originally Posted by capink View Post
Another semi-automatic solution for you to get around this error:
  • Choose all the books you want, and use calibre gui to convert to text.
  • Modify the Action Chain code to use the text file created by calibre conversion. (I can help with that if you don't know to do it)
  • Delete all the converted text files using calibre's "remove format" option.

Edit: You can make a chain of all the above steps. Make sure to check the option to wait for ongoing jobs in the "Calibre Actions" settings dialog.

Edit2: Chain attached below.

Edit3: For anyone else who wants to test this, you must make a dictionary of tags and corresponding regular expressions in the format illustrated below (This is the format chosen by OP in his original code).
I am very happy, because the code executed perfectly. Thank you very much for the dedication this must be the best in text search, it is a dream come true.

I got excited and loaded over 1000 books in one task and my computer restarted so I only run the code on groups of 50 books. Do you think that an EVENT can be created with which the code can be executed automatically, even one by one?
Attached Thumbnails
Click image for larger version

Name:	ft_ig1.PNG
Views:	63
Size:	29.7 KB
ID:	196431   Click image for larger version

Name:	ft_ig2.PNG
Views:	63
Size:	48.3 KB
ID:	196432   Click image for larger version

Name:	ft_ig3.PNG
Views:	60
Size:	2.1 KB
ID:	196433  
lizzie1170 is offline   Reply With Quote