View Single Post
Old 11-27-2020, 09:35 AM   #12
EbookMakers
Enthusiast
EbookMakers began at the beginning.
 
Posts: 26
Karma: 38
Join Date: Nov 2019
Location: Paris, France
Device: none
The regex alone is interesting since its count allows to know immediately if the epub is concerned or not. Unless we created them ourselves, we don't necessarily know a lot about our epubs.

It is correct that it is not necessary to use a regex-function to merge note files, this was also written from the #1 message.

This is just a small, unpretentious exercise that first shows a use of 'merge' and 'apply_container_update_to_gui'.

It uses 'replace.call_after_last_match = True' and shows that the content of the 'return' triumphs over changes in the text by this last call when one would expect the opposite. It gives 2 ways to overcome this constraint.

It also shows some data manipulation in the persistent dic 'data'.
EbookMakers is offline   Reply With Quote