johnfactotum / quick-lookup

Simple GTK dictionary application powered by Wiktionary
GNU General Public License v3.0
94 stars 8 forks source link

Make able to search for japanese words by romaji writing #14

Closed Kohoshi12 closed 3 years ago

Kohoshi12 commented 3 years ago

Any japanese dictionary program like Sumatora allow the user to search for words using romaji. If you don't know what's romaji, it's just the common alphabet used by many languages. This probably very possible because of kana which many times shows the pronunciation of a japanese kanji.

johnfactotum commented 3 years ago

It is possible to look up words with romaji. For example, see this screenshot:

image

But it obviously depends on Wiktionary's data, so you need to lookup, for example, "aizō" for "あいぞう", instead of "aizo" or "aizou", because that's how Wiktionary is at the moment.

Kohoshi12 commented 3 years ago

On Wikitionary the search for words in romaji is better to search to specific words than the program. Some words are just not easy to search using romaji on the program, because there's no search suggestion on the program.

Captura de tela de 2020-12-07 19-57-09

Captura de tela de 2020-12-07 19-58-10

Kohoshi12 commented 3 years ago

If you search for a word like nihongo, the result is the same word in kana, にほんご, but the text of the word does not lead to the kanji word, 日本語, on the program. But the same search on Wikitionary leads from the kana word to the kanji word and then the meaning of the word, not just the writing in kana and kanji.

johnfactotum commented 3 years ago

Some words are just not easy to search using romaji on the program, because there's no search suggestion on the program.

See #7.

If you search for a word like nihongo, the result is the same word in kana, にほんご, but the text of the word does not lead to the kanji word, 日本語, on the program.

In this particular example, the Wiktionary API doesn't provide a definition for "にほんご": https://en.wiktionary.org/api/rest_v1/page/definition/にほんご. And this seems to be due to the API not supporting the {{ja-see}} template.