Automatically populate the Hiragana reading based on the Japanese Kanji input in the form/table

system
Tera Contributor

workspace      "When a user enters Japanese Kanji in a field (e.g., 'u_jp'), automatically convert and display the corresponding Hiragana in another field (e.g., 'u_jp1')."

8 REPLIES 8

YaswanthKurre
Giga Guru

Hi @system ,

 

Create a onChange Client Script on u_jp and call a script include for api call to kanji to hiragana library  and populate it in u_jp1.

 

Mark this as helpful and correct if this answers your question.

 

Thanks,

Yaswanth

The method using Client Script + UI Script works on the U16 classic UI screen, but not in Workspace. So I want to know if there's a way to implement it in Workspace.

Hi @system ,

 

You should use client script + script include ( GlideAjax call) this should work in both ui16 and workspace.

Thanks,

Yaswanth

 

Hi,

I understand the example using a dictionary like:

 

javascript
コピーする編集する
var dict = { "山田": "やまだ", "太郎": "たろう" };
 

However, I can't possibly include all Japanese kanji manually.
Is there any other way to convert kanji to hiragana dynamically on the server side (e.g. via Script Include)?
Maybe using an external API?

Thanks!Is it possible without an external API?