4D-JUG
Would you like to react to this message? Create an account in a few clicks or log in to continue.

【プラグイン】ひらがな/カタカナ・半角/全角

2 posters

Go down

【プラグイン】ひらがな/カタカナ・半角/全角 Empty 【プラグイン】ひらがな/カタカナ・半角/全角

投稿 by miyako 2020-06-01, 8:42 pm

公開しました:

https://github.com/miyako/4d-plugin-kana

ICU版はサイズがあるのと,いろいろ出来すぎて難解なので・・・

miyako

投稿数 : 483
登録日 : 2016/07/05

トップに戻る Go down

【プラグイン】ひらがな/カタカナ・半角/全角 Empty Re: 【プラグイン】ひらがな/カタカナ・半角/全角

投稿 by hosaka 2020-06-02, 9:12 am

ふりがなのカナ変換はこちらを使ってと言う事ですね。

これでしたら、この様な対応方法もあります。私はこちらで回避してみました。
Code:
C_TEXT($1;$input_t)
C_LONGINT($pos_l;$length_l)
C_BOOLEAN($match_b)
$input_t:=$1
Repeat
 $match_b:=Match regex("[ぁ-ゖ]";$input_t;1;$pos_l;$length_l)
 If ($match_b)
 $input_t[[$pos_l]]:=Char(Character code($input_t[[$pos_l]])+0x0060)
 End if
Until ($match_b=False)
$0:=$input_t
hosaka
hosaka

投稿数 : 241
登録日 : 2016/07/04
所在地 : 大阪

トップに戻る Go down

トップに戻る

- Similar topics

 
Permissions in this forum:
返信投稿: 不可