Skip to content
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

Fix typos in tests for mruby-string-utf8 #2084

Merged
merged 1 commit into from
Apr 20, 2014
Merged

Conversation

suzukaze
Copy link
Contributor

Before:

"こんにちわ"

Afater:

"こんにちは"

@bovi
Copy link
Member

bovi commented Apr 19, 2014

A little bit off-topic but what is the difference between わ and は. And how does it come that it was so often mistaken with each other. Just curious :-)

@suzukaze
Copy link
Contributor Author

I didn't notice this mistake until mattn pointed out it in twitter.

@tsahara
Copy link
Member

tsahara commented Apr 20, 2014

In Japanese, every Hiragana character (e.g. る, び, い, は) is basically pronounced independently of the context. わ and は are different characters so they are pronounced and written differently in general.

But a few exceptional rules exist. When は is a grammatical particle placed just after a subject word, it is pronounced as わ but must be written as は. This expcetional rule is one cause of the mistake.

Another cause comes from the word こんにちは. こんにちは is an ideomatic expression in Japanese used as a very (most?) common greeting messsage today. Noone knows what is the exact meaning of the word こんにちは, but it is believed that こんにちは was a shortened form of longer sentences like こんにちは良い天気ですね ("It is a nice day, isn't it?") which are not used in recent years. In the sentence こんにちは良い天気ですね, "こんにち" ("today" in English) is a subject word, so は should be pronounced as わ. It is obivious. No native Japanese speakers have a mistake. But in the shorter form こんにちは, it is no longer a complete sentence and は does not look like a grammatical particle.

I think these two are the reasons why we make such mistakes.

@bovi
Copy link
Member

bovi commented Apr 20, 2014

wow thank u so much for the explanation!

matz added a commit that referenced this pull request Apr 20, 2014
Fix typos in tests for mruby-string-utf8
@matz matz merged commit 45de5bc into mruby:master Apr 20, 2014
@suzukaze suzukaze deleted the fix-typo branch June 23, 2014 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants