Thread: Tutorial Pinyin implementation
View Single Post
Old 06-09-2018, 01:39 PM   #3
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
That was helpful, thank you @PromethiumL.

I have inspected the sql dababase located in mnt_us/system/kll/CC-CEDICT.kll.zh.pn.klld

It has 2 tables:

metadata table: pinyin definition language

Click image for larger version

Name:	metadata.png
Views:	337
Size:	30.8 KB
ID:	164395

chinesedict table: pinyin translations along with their difficulty level

Click image for larger version

Name:	chinesedict.png
Views:	339
Size:	50.7 KB
ID:	164396

My guess is that when the option is selected, the framework upon rendering a zh book, searches the sql database to display the pinyin of all the terms it encounters.

The CC-CEDICT.kll.zh.pn.klld was probably automatically downloaded from amazon when I opened a chinese book. It was not present in the kindle when I purchased it.

[EDIT] To verify, I deleted CC-CEDICT.kll.zh.pn.klld and re-opened the zh User Guide, the pinyin klld automagically downloaded. As a bonus, it is now at version 4.

In the end, the process is somewhat similar to wordwise, just with a different and simpler database.

Last edited by PoP; 06-11-2018 at 02:41 PM. Reason: vfy automatic download
PoP is offline   Reply With Quote