On 25/01/2026 15:29, [email protected] wrote:
Op 25-01-2026 om 15:41 schreef Egmont Koblinger:
"simply"? It sounds anything but simple to me.
[...]
your only anchors are the "-a", "-b" and "--color" words in this example,
which you presumably locate using some heuristics (needs to begin with a
dash? or needs to begin after no more than a certain amount of leading
spaces? does it stop at the first '=' or '[' sign?), and then there are
exceptions to these rules (like the output of `[ --help` contains many
options not beginning with a slash)...
You apparently haven't looked at the script. Claude did a fine job
creating the heuristics for catching all options -- it even included
the `dd` options that don't start with a dash _and_ excluded the two
"-M " cases that aren't an option.
I don't have too much trust that it can properly split _all_ of them
without producing a single faulty translation.
Okay. Here is the result of the first version of the split.py script
run on the latest coreutils.hu.po (from 2018):
https://translationproject.org/latest/coreutils/HU.po
Compare with the lowercase version to see the changes. Let us know
if you spot any splitting mistake.
The dd word=word cases aren't matched up correctly.
I've just removed them from my split.py for now.
cheers,
Padraig