Uh oh!
There was an error while loading. Please reload this page.
Post check individual XML files for know issues - #241
Conversation
philip
commented
Apr 12, 2025
Thinking aloud, add the ability to run |
alfsb
commented
Apr 12, 2025
This would be possible, sure. But I'm wary of situation of one translator makes a one line change in one file, and upon running |
philip
commented
Apr 12, 2025
Agreed it wouldn't be automatic and would be part of a different operation. Whether that be |
alfsb
commented
Apr 14, 2025
Pushed a new |
philip
commented
Apr 16, 2025
Nice @alfsb, LGTM! Tested The minor issues (barely worth mentioning but the QA tester in me can't help it!) are (a) seeing no output (usage info) when passing in |
alfsb
commented
Apr 16, 2025
These are valid good points, and I found some of them while developing. But in the end I plan to remove the |
alfsb
commented
Apr 17, 2025
Plan to merge this next week, and then waiting a week or so before opening issues on translations about new warnings that configure are generating (XInclude and broken). |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
alfsb
commented
Apr 22, 2025
Merged. I will wait a few days/weeks before opening issues, instructing languages to refer this PR in how to address the new warnings. |
This is a PR that increments warnings in almost all translations, so I ask for comments for a longer time, before commiting.
With this PR, when a
configure.phpfails on the first XML loading, it will runscripts/broken.php, to help debug issues that are present in one individual file.This PR also will run
scripts/broken.phpas the last step of a successfulconfigure.phprun, to report "invisible" issues that may be accumulating, even if the language manual builds and validates.The warnings are:
Error: Opening and ending tag mismatch:: Yes, there are XML files that are just plain broken, in some repositories.Error: Start tag expected, '<' not found: These are mostly files namedentities.foo.bar.xml. They are auto generated, and should not exist in translations. Remove these files.XML file with BOM. Several tools may misbehave.: Files with BOM exercise different code paths inside libxml, to the point of generating unrelated warnings.Error: Input is not proper UTF-8, indicate encoding !: Files not encoded as UTF-8.Namespace prefix xlink for href on link is not defined: Mostly harmless, but fixing this issues helps running libxml with more strict options. Also individual XML files become more "correct" with proper name spaced prefixes.Error: Extra content at the end of the document / Hint: Dir is marked with .xmlfragmentdir on doc-en? If not, check entity references.This warning has two false positives in the manual, that can be disabled by touching and committing an.xmlfragmentdirfile on the directory. This directory will soon be moved/erased after "XML Entities" project advances, so it may be worth it to disable this warning in the meantime.XML file contains \r. Several tools may misbehave.: The most common issue. Only shows when running on Linux and similar OSes. All languages in manual converged to a\nonly EOL, at git repository level. Several userland tools only care for\nand will severely misbehave when dealing with text files that contain\r. Simply runningdos2unixon these files fixes the issue.I would like to hear comments for all points if possible, but more importantly on the last point, the
\rone, as it is by far the most frequent one, as it will generate pages of warnings in some translations, if/when this PR is merged.