View Single Post
Old 11-14-2023, 02:13 PM   #21
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,367
Karma: 171313058
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by archz2 View Post
Sorry again, I am totally clueless. I type the following command in windows terminal or some terminal in calibre?


[C:\Program Files\Calibre2\calibre.exe]calibre-debug gather_chapter_notes.py html1 [html2, ...]

How do I choose the py file and how do I choose the html to clean?


Can you please share the step by step process? I have never used these kind of python files in terminal.
I would suggest learning a bit about using the Windows CLI. There are quite a few decent tutorials available.

Easiest way would be to create a directory, copy gather_chapter_notes.py and the html files into that directory. Open a command prompt and follow the instructions. In the sample command line, substitute the actual path to calibre-debug and since the path has spaces use quote around it.

Code:
[path to calibre executables]calibre-debug gather_chapter_notes.py html1 [html2, ...]
would become something like:
Code:
"C:\Program Files\Calibre2\calibre-debug.exe" gather_chapter_notes.py mynotes1.html mynotes2.html
Substitute the names of your Kindle notebook files for mynotes1.html, etc.
DNSB is offline   Reply With Quote