chinese-words-separator / chinese-words-separator.github.io

5 stars 1 forks source link

chinese word separator #25

Closed Nati130 closed 8 months ago

Nati130 commented 8 months ago

I would like to have the option of reading only they pinyin without the chinese characters and to have the same function like word separator and the translation when I hover on a word. That would be great!

chinese-words-separator commented 8 months ago

Before:

image

After:

image

To convert hanzi to pinyin temporarily on a site:

image

To convert hanzi to pinyin permanently on all sites:

image

Caveat, when hanzi is converted to pinyin, only the sentence dictionary is working. You cannot use word dictionary on pinyin-converted page. Word dictionary functionality (in fact, all the functionalities of Chinese words separator) fundamentally works on page's hanzi content. Word dictionary scan Chinese word (hanzi) from the page even when there is no custom tag that holds the original content (hanzi). Hence, it is difficult (if not impossible) for word dictionary to scan the matching vocabulary for a given pinyin, shì can either mean 是, 事, or 市. Sentence dictionary can "scan" the original Chinese word (hanzi) even when the page is converted to pinyin, as sentence dictionary does not look at the content of the page directly, it look for information in CWS's custom tags. When sentence dictionary is activated, the page's original content are wrapped in custom container tags, those container tags contains the original content (hanzi), hence sentence dictionary can work even when the page's hanzis are converted to pinyin, word dictionary cannot

Expect many functionalities not to work when you exclusively use pinyin-converted page

Converting hanzi to pinyin is available on 8.24.84.1890, currently in Pending review in Chrome web store