Google AJAX Language API with Chinese

Does anyone know if there is support for Chinese pinyin? I get the results here with the correct Chinese pinyin (see the link "Show Latinization").

Thank.

+3
source share
3 answers

I don’t know if the AJAX Language API supports pinyin conversion, but if they don’t, it’s actually not so difficult to make a convergent conversion on yours. (The inverse transformation, from pinyin to hanzi (characters) is much more complicated because pinyin is very similar.)

, Unihan.zip, Unihan. , , - Unihan_Readings.txt. , , , . , , .

:

U+597D  kCantonese      hou2 hou3
U+597D  kDefinition     good, excellent, fine; well
U+597D  kHangulU+597D  kHanyuPinlu     hao3(6060) hao1(142) hao4(115)
U+597D  kHanyuPinyin    21028.010:hǎo,hào
U+597D  kJapaneseKun    KONOMU SUKU YOI
U+597D  kJapaneseOn     KOU
U+597D  kKorean         HO
U+597D  kMandarin       HAO3 HAO4
U+597D  kTang           *xɑ̀u *xɑ̌u
U+597D  kVietnamese     háo
U+597D  kXHC1983        0445.030:hǎo 0448.030:hào

( "U + 597D" ) , - , - . khanyuPinyin kMandarin. - , . (hǎo == HAO3, hào == HAO4, )

, (, , ) . . , , , , . ( , khanyuPinyin kMandarin - , .)

+2

API, Pinyin, . .

+1

Google translate includes "show / hide romanization", which is BETTER than UNIHAN for two reasons. Firstly, famous words are logically grouped together appropriately (at least he is trying to do this). Secondly, Chinese characters have more than one possible pronunciation. There is no trivial problem to figure out which pinyin transliteration is correct. This is what the translation mechanism does.

0
source

Source: https://habr.com/ru/post/1727798/


All Articles