-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zh-tw translation of units #310
Comments
@NSoiffer
Please give me some example documents showing how to add 'intent=":unit"'
to the to mark "m", "km", etc.
I need that to check my translations.
Thanks
…On Thu, Nov 14, 2024 at 6:57 AM NSoiffer ***@***.***> wrote:
@hjy1210 <https://github.com/hjy1210>
I've added the ability to speak units to MathCAT. This mainly works if the
author adds 'intent=":unit"' to the to mark "m", "km", etc., as a unit. The
translation work that needs to be done is in
Rules/Languages/zh/tw/definitions.yaml.
The following lists were added and need translation:
-
SIPrefixes
-
SIUnits -- these are all the SI units that take prefixes
-
UnitsWithoutPrefixes -- these are other "accepted" units and some
variants on them
-
EnglishUnits -- if English units are used in your language, then
translate these otherwise delete the contents but leave the name. For
example
-
EnglishUnits: {}
-
PluralForms -- MathCAT automatically adds "s" for English plurals.
I've removed that for the Chinese version because a few test examples in
Google translate seem to use the same character for singular and plural .
Hopefully that is correct. In English, some words have irregular plural
forms (foot -> feet). Change this list to include any irregular plural
units. Make it empty if there are none.
In English, fractions with units don't use the word over, they use "per"
as in "meters per second". Does Chinese have that special case?
Let me know if you have any questions. Please make a PR when you have done
the translation.
—
Reply to this email directly, view it on GitHub
<#310>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZGXVLSZ2TLL4NQNMXIV2D2APKM5AVCNFSM6AAAAABRXSUW76VHI2DSMVQWIX3LMV43ASLTON2WKOZSGY2TOMBVGM2DIMA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Try copying After that, if you run the tests ( There are a lot of tests. You might want to only do a few of them if it is too much work. Or you can do a PR for what you've done and I'll copy over the results. Having done it many times, I've gotten faster at it. You would then need to correct anything that is wrong in the test results and then correct Note: I have modified the unit rule in Let me know if you have any questions. |
I encounter some problem.
When I test
Look the above line Details in my branch What is the problem? What I am missing? Looks like some link is missing. PS, my environment:
|
The warnings you can ignore. I was at cargo version 1.81 and I suspect you are at 1.82. I just updated to the latest (1.83) and there are many more warnings. I've fixed them and committed some, but some are in files that I have some other work that I'm not finished with. Your problem is because I updated the rule for "unit" in SharedRules/general.yaml. I can't push to your repo, so here's what you need to change it to:
You are also missing some translations. You should take a look at Let me know if you find other problems. |
My steps:
|
I make a PR #321, the system say All checks are failed.
I never touch the file I wonder what is the problem? |
@hjy1210
I've added the ability to speak units to MathCAT. This mainly works if the author adds 'intent=":unit"' to the to mark "m", "km", etc., as a unit. The translation work that needs to be done is in
Rules/Languages/zh/tw/definitions.yaml
.The following lists were added and need translation:
SIPrefixes
SIUnits -- these are all the SI units that take prefixes
UnitsWithoutPrefixes -- these are other "accepted" units and some variants on them
EnglishUnits -- if English units are used in your language, then translate these otherwise delete the contents but leave the name. For example
EnglishUnits: {}
PluralForms -- MathCAT automatically adds "s" for English plurals. I've removed that for the Chinese version because a few test examples in Google translate seem to use the same character for singular and plural . Hopefully that is correct. In English, some words have irregular plural forms (foot -> feet). Change this list to include any irregular plural units. Make it empty if there are none.
In English, fractions with units don't use the word over, they use "per" as in "meters per second". Does Chinese have that special case?
Let me know if you have any questions. Please make a PR when you have done the translation.
The text was updated successfully, but these errors were encountered: