-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
added more test cases for 渺、埃、尘 (塵)、沙、纤(纖)、微 #442
Conversation
…d for 塵 - need code change for compiler
…failed for 纤 - need code change for compiler to support simplified Chinese
The test/build will fail as the current compiler does not support simplied Chinese characters 纤 and 尘. If we support simplified Chinese, we may change the code for compiler (their traditional Chinese character versions work as expected). - to fix this we may have to change the main source code - TDD (test driven development) |
Hi @kaiyuan01, |
…ort simplified Chinese
I agree that at the beginning we may only support traditional Chinese, but to reach out to the max (that's the only reason we'll do that IMHO), we may consider adding simplified Chinese support over the long run, gradually, - so I made the change to src/hanzi2num.js and now the test cases pass for both 纤 and 尘. |
Hi @kaiyuan01, I totally understand and acknowledge that 異體字 are integral parts of the Chinese language, and I'm fully aware of their usage throughout history in books, in carvings, in calligraphy, etc. However, we do not intend to support them, not because that I have any prejudice (or that I'm too lazy), it is simply about having one standard and sticking to it. Just like the fact that in English, many phrases has similar meanings to Even if we are going to support character variations in the end (nope), we will do it in one-shot to avoid any confusion, instead of starting the process gradually. If you really need Simplified characters badly, please check out #440 , you can now add macros to map any characters to the standard ones. I'm deeply sorry for not being clear enough in the first place, having you done all this work. Meanwhile, there are a lot of other things you could contribute to. For example, check out |
Understood. You may re-open it as the other test cases are still valid. - I added other additional test cases as well |
Tested successfully locally, not sure why the snapshot did not pass. - maybe it error'ed out from other changes not included in this PR? |
@kaiyuan01 , I think you're right, the new errors are due to another stdlib I added just a while ago that involves the DOM which apparently the tests don't have access to. |
added more test cases for 渺、埃、尘 (塵)、沙、纤(纖)、微
only test cases for 纤 and 尘 failed. If we support simplified Chinese, we may change the code for compiler (their traditional Chinese character versions work as expected)