« 2026年1月 | トップページ | 2026年7月 »

2026年2月 8日 (日)

文字別レイヤ移動

整数/実数/文字別で指定レイヤに移動する外部変形。
"横文字" のみの対応です。
指定レイヤは、BEGIN文を修正してください。

※実数と文字列の判別式を変更しました。2026/2/9

@REM 文字別レイヤ移動
@echo off
REM #jww
REM #cd
REM #h3 文字のみ選択
REM #hc 範囲選択してください
REM #e
jgawk 'BEGIN{ly1="lya";ly2="lyb";ly3="lyc"}/hq/{print "hd";next}/^^ch/{chr=substr($6,2);if(int(chr)==chr){print ly1}else if(chr*1==0){print ly2}else{print ly3}}{print}' jwc_temp.txt>temp.txt
copy temp.txt jwc_temp.txt
del temp.txt
goto end
範囲選択→確定 基点(free)
:end

| | コメント (3)

« 2026年1月 | トップページ | 2026年7月 »