Closed monsieuremre closed 11 months ago
Fixed literally everything, including but not limited to:
Now, with discretion, the script should handle anything and everything fixing related. That is, the manual fixing section should not be required anymore. No not merge yet, needs testing.
I tested all the individual functions and code blocks manually and they all do work perfectly. Whether or not applying all of them consecutively would cause some kind of unexpected behavior or breakage is not known, because I did not conduct any tests on the module as a whole. There might also be some side-effects that I missed that might need fixing, but for the time, there seems to be none.
I have readjusted the sequence in which we call the fixing functions to accomodate for the new functionality, and to ensure that new functions would not break. This is important because some of them have to be called before others to perform the fixes. e. g. setting the reference links needs to be done after getting rid of the <<>> stuff. There are more like this that I already handled. There might be more of these that I could not think of, these will be discovered and fixed once I test the standalone module as a whole.
Needless to say, I only addressed the manual fixes that you mentioned to me. Now I noticed there are two little ones that I missed:
This should not be hard to add too.
Now I noticed there are two little ones that I missed:
Actually, nevermind. I automated them too. Now, I believe, manual fixes should no longer be necessary. If there is anything I missed that still needs manual fixing, please mention them so that I can automate them in the script too.
Tested everything at once. There were problems, maybe unsurprisingly. They are all fixed. I also simplified the code wherever possible and split it into many modular pieces, and added comments for readibility, as well as renamed function as suggested.
Please see this document. It is generated completely and solely using the script. No manual fixes. Please take a look and report what is missing, what needs manual fixing, what is broken (if I missed anything). I will try to further develop the script to handle the fixes that you think are missing.
Multiple things are broken:
Ok. The table splitting works on most documents, not always, and never causes breakage. So leaving it as is. Sometimes manual table splitting is still needed. Reference works in any case. Ordering might sometimes need manual fixing. The amount of manual fixing is minimized to its limits so that not even half the manual fixing isrequired as before, but unfortunately eliminating it completely is not possible because there is too big of a deviation between documents and their structure.
Whatever there is, it is tested and documented and simplified. Readme is also updated. Merging.
Fix image conversion loop header
Add readme section to mention known limitations on other operating systems than windows
Add script section to convert inline images to image blocks (needs confirmation)
Add script section to explicitly remove bibliography from section numeration if that is not already the case