slowsmile,
I am not asking for my or some arbitrary standard reformating of html. If one wants to reformat, there is Sigil itself as you mention. Such a command I do not use. I format my EPUBs to my liking, making easier for me to see hierarchy and various element types as I edit, make corrections, etc. I do not use Sigil's command unless needed and easier than reformatting some commercial EPUB, such as in the case of some publishers that add intra-element line breaks in the case of line breaks at some line length as is done with programming code. I prefer no reformatting at all unless requested and done by the user. I think you use BeautifulSoup? I imagine such a mature library should be able to manipulate code while leaving it as is, just removing IDs. To repeat to be clear, no reformatting at all, just removal of IDs. If such is the case, perhaps that should even be default, as you are aware if one wishes to reformat, they can simply use Sigil. If BS is not capable of such, maybe it is more suitable to request the library to be able to do such.
Your plugin is invaluable. So often, at least somewhat regularly, I have some self-made EPUB or commercial with thousands of IDs for references, footnotes, hyperlinks, etc. After ensuring that they are all properly linked, I like removing unused IDs. Does it make some difference on modern hardware? If there are 10,000+ IDs and many can be removed? Who knows. I feel good knowing performance and RAM usage is as best as can be, even if marginal. Yet maybe it does make a difference. So I use your plugin. The ability to not reformat would be a most welcome addition.
Last edited by democrite; 07-10-2020 at 03:39 AM.
|