Quote:
Originally Posted by j.p.s
You're welcome.
Impossible with the scripts as is. They might work if there is no overlap between notes and highlights, maybe by tweaking the location assigned to any note associated with a highlight.
|
I see. From what I've seen while playing with this is that HLs and Notes always overlap and are matched i.e. every note is essentially a highlight as well. If range for a highlight is A - B, then the note matched with it is always C - B, where C > A.
Quote:
Originally Posted by j.p.s
The reason the notes and higlights files need to be sorted is that the insertion method is very simple and also minimizes memory requirements and code complexity. The scripts could run on a home computer from the 80's with less than 1 MB RAM for a book many megabytes in size. notes_insert.pl simply copies assembled_text.dat from the current position to just nefore the start of the next note or highlight, writes some formatting, a label, then any text to be inserted, some more formatting, then repeat for then next note or highlight.
|
I see, got it!
Quote:
Originally Posted by j.p.s
They could be rewritten to do what you want by buildig a table of locations and shift sizes and use that to do the copying and inserting. That would be way too tedious and time comsuming for me to consider. For someone else, it might be a piece of cake to bang out or a challenge worth taking on.
|
Understood, thanks immeasureably for what you have done with this nonetheless, this is way more than I would have ever expected to be able to achieve. Personally, I have no knowledge about Perl, so I would have hard time reverse engineering your scripts and modifying them to achieve this goal. Not to mention the lack of free time. Maybe someday.
Quote:
Originally Posted by j.p.s
The reason the thread title ends in "info" instead of "tool" and is in the Kindle Formats forum instead of the Kindle forum is that it's purpose is to provide information for others to pick up and take further without having to work out how to process azw3r files.
|
Understood again, that's brilliant.
Thanks for all your work and help!
Best regards!