--reparse parameter to correct page numbering in .svg file
Being the existence of two multiple ways to avoid rewriting the whole layer's numbering list (Writing with zeros after the number or using decimals), use an argument like that to create a new file with "-reparsed" appended that has the layer's prefixes corrected regarding the page number. This way, p0050, p3, p5.7 becomes p1, p3, p2.
@datalot-369 Thanx for the suggestion! Let me check that I understand your request: You want to generate a whatever-reparsed.svg Inkscape .svg file from the original, with the page numbers cleaned up? That is, ink2pdf would re-prefix the layer names with simple integer page numbers p1, p2, p3...?
If we make the option accept the output file name, like this,
ink2pdf input-file.svg --renumber-to output-file.svg
would that be ok?
(Hmmm, I'd have to give some thought to how background prefixes are handled...)
Yes. That's a perfect understanding of my feature request.
Regarding background prefixes... They also would be rewritten to match the corresponding pages.