View Single Post
Old 03-24-2022, 04:29 PM   #77
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,884
Karma: 6120478
Join Date: Nov 2009
Device: many
I checked out how we internally handle ReplaceAll in Misc/SearchOperations.cpp and for each file we handle the replacements in reverse order so that all match objects are calculated just once. That means using python replacement functions would need changes if we wanted to use them for renumbering things as that would require a new routine that works in spine order from top to bottom in each file, unlike our current C++ approach which is done for better efficiency and speed.

I still think renumbering is better done by Doitsu's excellent plugin anyway.

Last edited by KevinH; 03-24-2022 at 05:11 PM. Reason: specify a good renumbering plugin!
KevinH is offline   Reply With Quote