home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1999 February
/
VPR9902A.BIN
/
OLS
/
svseike4
/
svseike4.lzh
/
HANKN2ZE.MAC
next >
Wrap
Text File
|
1997-03-08
|
1KB
|
55 lines
// 半角カタカナを全角カタカナに変換するマクロ HANKN2ZE.MAC ver.2.00
// by JRくん(GFB03426@niftyserve.or.jp) 1997.3.8
// 当該ファイル全文を対象にします。
$b = searchbuffer;
#s = searchoption;
#SF = getininum("hidemaru.ini", "Env", "SelectFound");
if(!#SF) {
writeininum "hidemaru.ini", "Env", "SelectFound", 1;
envchanged;
}
disableinvert;
disabledraw;
#count = 0;
escape;
gofiletop;
#code = ((code >= 0xa1) && (code <= 0xdf));
if (#code) { // 先頭が半角カタカナの場合
insert " ";
gofiletop;
}
while(1){
searchdown "[。-゚]+", regular;
if(!result) break;
tozenkakukata;
#count = #count + 1;
escape;
}
if (#code) { // 先頭が半角カタカナの場合
gofiletop;
delete;
}
// INIファイルを取得
$INIdir = getinistr("HIDEMARU.INI", "Env", "MacroPath");
if ($INIdir == "") $INIdir = hidemarudir;
$INIfile = $INIdir+"\\HANKN2ZE.INI";
writeininum $INIfile, "Result", "Count", #count;
if(!#SF) {
writeininum "hidemaru.ini", "Env", "SelectFound", 0;
envchanged;
}
setsearch $b,#s;
enabledraw;
enableinvert;
endmacro;