Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-09-2018, 10:08 AM   #1
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,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Pinyin implementation

I just noticed that when enabled in the language learning options:

Click image for larger version

Name:	screenshot_2018_06_09T09_12_12-0400.png
Views:	542
Size:	70.1 KB
ID:	164394

Books in chinese language (such as the Kindle User's Guide Chinese Edition in these screenshots) will (unsurprisingly) display pinyin above chinese characters:

Click image for larger version

Name:	screenshot_2018_06_09T09_11_22-0400.png
Views:	587
Size:	96.4 KB
ID:	164393

And have an active pinyin level menu:

Click image for larger version

Name:	screenshot_2018_06_09T09_11_08-0400.png
Views:	463
Size:	95.2 KB
ID:	164392

The feature doesn't seem to be implemented in a way similar to wordwise. I couldn't find an equivalent of the mnt_us/system/kll/kll.en.en.klld wordwise data base with accompanying mnt_us/bookASIN.sdr/LanguageLayer.en.ASIN.kll in the sdr directory for the book.

By curiosity, has anybody researched how/where pinyin is implemented?
PoP is offline   Reply With Quote
Old 06-09-2018, 11:20 AM   #2
PromethiumL
Member
PromethiumL knows the difference between 'who' and 'whom'PromethiumL knows the difference between 'who' and 'whom'PromethiumL knows the difference between 'who' and 'whom'PromethiumL knows the difference between 'who' and 'whom'PromethiumL knows the difference between 'who' and 'whom'PromethiumL knows the difference between 'who' and 'whom'PromethiumL knows the difference between 'who' and 'whom'PromethiumL knows the difference between 'who' and 'whom'PromethiumL knows the difference between 'who' and 'whom'PromethiumL knows the difference between 'who' and 'whom'PromethiumL knows the difference between 'who' and 'whom'
 
Posts: 22
Karma: 10000
Join Date: Mar 2018
Location: HK
Device: KOA2
Post I recursively grepped some files and get some info.

Here is the file found on my KOA2:
Code:
[/var/local/java/prefs] cat language_layer.preferences
#User preferences for LanguageLayer Preferences
#Mon Jun 04 09:40:17 GMT+08:00 2018
pinyin.ftuxShown=true
pinyin.difficulty=1
pinyin.sliderFtuxShown=true
targetLang=zh
dictTimestampcn-kll.zh.pn=1521941647210
pinyin.isVisible=false
dictTimestampcn-kll.en.zh=1528076417459
dictTimestampcn-kll.en.en=1524226765524
dictVersioncn-kll.zh.pn=3.0
dictVersioncn-kll.en.zh=2.0
isEnabled=true
dictVersioncn-kll.en.en=3.0
pinyin.isEnabled=true
As you can see, this file tells kindle where the dict locates, so it can look up the characters in the dict.

I'm still looking for other implementation.
PromethiumL is offline   Reply With Quote
Advert
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,002
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:	287
Size:	30.8 KB
ID:	164395

chinesedict table: pinyin translations along with their difficulty level

Click image for larger version

Name:	chinesedict.png
Views:	288
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
Old 09-15-2018, 03:02 AM   #4
tangerino
Junior Member
tangerino began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2018
Device: Kindle Paperwhite 5th gen
The "Language Learning" section on my Kindle doesn't have a Pinyin option, only Word Wise and Vocabulary Builder. My Kindle Paperwhite 1st gen is updated to 5.6.1.1. Synced again just to be sure it's on the latest version. "Update your kindle" is greyed out.

Any ideas why it wouldn't be there? Is this an option only available on 2nd gen Paperwhites or later (though I don't see why any Kindle couldn't do it).
tangerino is offline   Reply With Quote
Old 09-15-2018, 09:22 PM   #5
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,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Have you opened a book in the zh language? On my PW3 v5.8.11 *that* caused the pinyin file to be downloaded.
PoP is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Format a Chinese eBook with pinyin verydeepwater ePub 4 01-02-2015 03:55 AM
Search chinese font with pinyin and french accents fxp33 General Discussions 6 09-29-2013 05:37 AM
Philosophy Anonymous- Zhou yi 周易 chinese pinyin english. Version 1. May 2013 fxp33 ePub Books 0 05-09-2013 07:39 PM
Dropbox implementation? briefer666 Kindle Developer's Corner 7 06-07-2012 03:17 AM
Trying to Find: PINYIN Bible cancelx General Discussions 16 03-26-2010 08:55 AM


All times are GMT -4. The time now is 12:25 AM.


MobileRead.com is a privately owned, operated and funded community.