-
Notifications
You must be signed in to change notification settings - Fork 45
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
Convert 畳 (and other Japanese units of measurement) #642
Comments
That's a really neat idea. According to https://ja.wikipedia.org/wiki/%E7%95%B3#%E7%95%B3%E3%81%AE%E5%AF%B8%E6%B3%95%E3%81%AE%E5%AE%9F%E6%85%8B 帖 is defined to always mean 1.62 square metres whereas 畳 is at least 1.62 square metres for the purpose of real estate advertisements (the Suumo article says the same too it seems). So doing 帖 should be straight forward. For 畳 however, ideally we would handle 四畳半 etc. too. |
Non-metric measurement units are always a pain in the neck for me. I still remember last time I translated a work to Chinese and I needed to write a reference explaining 畳. Then I was confused about the region differences and at last I picked the estate advertisement version as a standard. This is also true for imperial units tho... In China many measurement handbooks have both 'US gallon' and 'UK gallon' thing. And 'UK fluid gallon'... I never figured out why there are so many variations. But I guess UK uses metric units now? Nevertheless, the actual figures of a 斤 also differ among China, Hong Kong and Taiwan. So as a Chinese I guess I should just shut up. |
You wish. :) Officially yes, practically no. |
I've landed an initial implementation of this in 7991227. I've also made it convert from square metres back to 畳. There are a few caveats though:
|
I think it looks perfect. |
...although on second thought, it seems a little excessive to convert to m² with three digits of decimal precision. Nobody knows what 0.001 m² even means, at least not in the context of room size. Rounding to 1 digit of precision is plenty. |
Good call. It currently uses 4 significant digits which is why sometimes you get a third fractional digit. I'm going to make it round to two digits of precision since it seems like the listings from SUUMO in those screenshots show two digits. |
So far, I've unfortunately not been able to enjoy this new feature on websites like this: Due to the fact that 10ten doesn't parse half-width numerals :( |
Oh, sorry, that's not due to parsing half-width numerals, it's simply that I haven't released an updated version of the add-on with this feature yet. I'm trying to gather together a bunch of major UI changes to release at once along with the name change in order to minimize disruption. Hopefully the next release will be ready next week. For what it's worth, half-width numerals should work fine: So should all the following:
|
This feature is finally available in the latest release. Thanks for your patience! |
A common measurement of size for apartments is 畳. I'm sometimes asked by my friends how big my place is in 畳. Or they'll say something is x 畳, and when I ask them to convert to squared meters, they have no idea how to do it.
One complicating factor is that 畳 has different sizes depending on the region: https://suumo.jp/yougo/a/ichijou/
Still, it could be interesting if Rikai was able to convert it to metric or imperial units, for each of the known 畳 sizes.
An overview of other units can be seen here: https://en.wikipedia.org/wiki/Japanese_units_of_measurement
The text was updated successfully, but these errors were encountered: