Add few tweaks into the Rules/Languages/hu/definitions.yaml file, Added missing definitions.rs test file the test/Languages/hu directory, and added SimpleSpeak test directory the mroot and menclose tests - #646
Conversation
|
If I remove the // mark the empty-set test, I don't no why, but after the üres halmaz part Mathcat put an unneed x letter. The wanted output only the üres halmaz (empty set text), because is an empty set is an empty set. :-):-) Last, have an interesting crash in the definition root test related, with my knowledge is not enough to diagnose why happens if I remove the // mark the following test part: failures: ---- Languages::hu::definitions::functions_and_inverses_tests stdout ---- caused by: replacing inside 'with'
]
else:["*[2]"]]
...due to matching the MathML caused by: During replacement, no matching element found |
|
Note: I not fetch and rebase to the upstream main branch to my feature hu branch, I not want risking merge conflicts. This is equals with the june merged result. In unicode.yaml file related the audit result is looking following, after latest translation merge: This is good, because Neil merge the a, A, b-z and B-z type rules with the relevant a-z and A-Z type rules in hungarian unicode.yaml file. @NSoiffer, we need doing anything with following audit part, the english or hungarian unicode.yaml file related? These characters are containing too the hungarian unicode-full.yaml file. Attila |
|
@hammera , about the files definitions.yaml and definitons.rs: There have been a lot of updates to the definitons.yaml file to better support the intent attribute. The definitons.rs file is very new, and I think it is only for English at the moment. I haven't looked at the updates for Norwegian yet. So, I think there is no rush to get all the tests in definitons.rs to run. Just make sure all the other tests files work :) I will look at the files for Norwegian, but right now I don't have the time. |
|
@MartheGjelstad, Of course: When there was a big change in the English definitions.yaml file before, maybe before the end of June, since the audit tool does not check the translation differences between English and the target language based on the definitions.yaml file, I had to compare the Hungarian file based on the English diff patch to detect what change missing into the hungarian file with english file contains (for example a new definition rule). :-):-) Regardless of the fact that this test was probably added recently for the English language, it helped me a lot in showing me the points where I still need to improve the localization of the definitions.yaml file. Attila |
Signed-off-by: Attila Hammer <hammera@pickup.hu>
Signed-off-by: Attila Hammer <hammera@pickup.hu>
…yaml and SimpleSpeak_rules.yaml Signed-off-by: Attila Hammer <hammera@pickup.hu>
Signed-off-by: Attila Hammer <hammera@pickup.hu>
|
Don't surprise, because I see merged may 2 state upstream main branch commits into the hu upstream branch, I do a rebase and force-push only my fork hu branch. |
|
About the file definitions.yaml and the audit tool: It's being worked on. See issue: #617 |
|
I've merged in your PR. As for the "en" version, that apparently wasn't included in the tests (not part of |
|
I had someone add all the intents in the MathML spec to definitions.yaml, but I forgot to tell him that there was a limitation on what that file can do. Things like integrals with the "from" ... "to" syntax don't fit any of the "fixity" properties (prefix, infix, ...) and so need rules and can't be in definitions.yaml. I'll work on getting that cleaned up in the English version over the next day or two. |
|
Neil, thanks the PR merge and all other answers. I see, happened lot of new change, and want dropping a small PR to the unicode-full.yaml file related, I attaching the diff patch with compatible the latest main branch state: If you commit simple this diff patch after the main branch is merged to the hu branch, me full good, my purpose this audit syncing land to the latest main branch after this PR merged to the main branch. :-):-) |
Hi @NSoiffer and @MartheGjelstad,
In this week I detected when we generated in april the hungarian first test suite directory, this directory doesn't contains final some newest tests into from the english directory.
Affected english file is the definition.rs file, I already localized these test, and doed few tweaks the hungarian definitions.yaml file with me showed this definitions.rs test.
So, this original test suite file is fantastic too, showed me few failures with I corrected the hungarian definitions.yaml file.
I added into the hungarian SimpleSpeak directory the menclose and mroot.rs files, so I extended the hungarian test case entries (not matter if have more tests the hungarian language, because hungarian language is more complex with english language).
I have got few questions with some definition tests related:
Factory level, the english language empty-set and set-difference tests into the vector part is commented out with a // mark, and the english language with the empty-set related definition is commented out a # part.
Why have this?
If I remove the // markup the following code, basic purpose I think following tests are need generate following hungarian language output, similar with english default commented out translated messages.
Original english tests:
The interesting part is the set difference test, and the empty-set test.
Hungarian language need very similar output this tests, I show affected code:
The problem is following the affected hungarian definition tests if I remove // mark these affected hungarian set-difference and empty-test code lines, I see following failures:
Why cutted out the y part from the test part?
The empty-set definition into the hungarian definitions.yaml file contains following modified line, similar with english line:
The set-difference related definition I tried following form, because this definition is worked an another complex set difference test with an another code block the rust test file:
The another affected set difference test is following, with need the különbséghalmaz form (this test passed right with this showed definition):
English set-difference definitions is following in Rules/Languages/en/definitions.yaml file:
Attila