Skip to content

Commit c7a73b3

Browse files
committed
Formatting
1 parent 3fafa85 commit c7a73b3

File tree

2 files changed

+45
-46
lines changed

2 files changed

+45
-46
lines changed

hotstring/eng_to_kor.ahk

Lines changed: 45 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ menu, tray, add
88
menu, tray, add,Exit
99
menu, tray, add
1010
Menu, MySubmenu, add,Ctrl+BackSpace!!
11-
Menu, MySubmenu, add,ÇŃżľşŻČŻ_mbRYU
11+
Menu, MySubmenu, add,�ѿ���ȯ_mbRYU
1212
Menu, tray, add,About, :MySubmenu
1313
gosub loadvar
1414
return
1515

1616
Ctrl+BackSpace!!:
1717
return
1818

19-
ÇŃżľşŻČŻ_mbRYU:
19+
�ѿ���ȯ_mbRYU:
2020
return
2121

2222
About:
@@ -44,23 +44,23 @@ StringLen,length,SourceText
4444
lang:=
4545
loop,%length%
4646
{
47-
StringMid,chchr,SourceText,%A_Index%,1
48-
chasc:=asc(chchr)
49-
if (65<=chasc) and (chasc<=90)
50-
{
51-
lang=english
52-
break
53-
}
54-
if (97<=chasc) and (chasc<=122)
55-
{
56-
lang=english
57-
break
58-
}
59-
if (129<=chasc) and (chasc<=200)
60-
{
61-
lang=korean
62-
break
63-
}
47+
StringMid,chchr,SourceText,%A_Index%,1
48+
chasc:=asc(chchr)
49+
if (65<=chasc) and (chasc<=90)
50+
{
51+
lang=english
52+
break
53+
}
54+
if (97<=chasc) and (chasc<=122)
55+
{
56+
lang=english
57+
break
58+
}
59+
if (129<=chasc) and (chasc<=200)
60+
{
61+
lang=korean
62+
break
63+
}
6464
}
6565

6666
if lang=korean
@@ -79,39 +79,38 @@ send,^v
7979
return
8080

8181
eng:
82-
Send {vk15scF2}
83-
Loop, Parse,SourceText
84-
sendraw,%A_LoopField%
82+
Send {vk15scF2}
83+
Loop, Parse,SourceText
84+
sendraw,%A_LoopField%
8585
return
8686

8787
kor:
88+
count:=1
89+
Send {vk15scF2}
90+
po1:
8891

89-
count:=1
90-
Send {vk15scF2}
91-
po1:
92+
StringMid,check,SourceText,%count%,1
93+
checkasc:=asc(check)
9294

93-
StringMid,check,SourceText,%count%,1
94-
checkasc:=asc(check)
95-
96-
if (129<=checkasc) and (checkasc<=200)
97-
{
98-
StringMid,front,SourceText,%count%,1
99-
envadd,count,1
100-
StringMid,end,SourceText,%count%,1
101-
envadd,count,1
102-
frontasc:=asc(front)
103-
endasc:=asc(end)
104-
chrsend:=v%frontasc%_%endasc%
105-
send,%chrsend%
106-
}
107-
else
108-
{
109-
envadd,count,1
110-
sendraw,%check%
111-
}
95+
if (129<=checkasc) and (checkasc<=200)
96+
{
97+
StringMid,front,SourceText,%count%,1
98+
envadd,count,1
99+
StringMid,end,SourceText,%count%,1
100+
envadd,count,1
101+
frontasc:=asc(front)
102+
endasc:=asc(end)
103+
chrsend:=v%frontasc%_%endasc%
104+
send,%chrsend%
105+
}
106+
else
107+
{
108+
envadd,count,1
109+
sendraw,%check%
110+
}
112111

113-
if count<=%length%
114-
goto po1
112+
if count<=%length%
113+
goto po1
115114

116115
return
117116

hotstring/symbol_hotstring.ahk

336 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)