-
Notifications
You must be signed in to change notification settings - Fork 0
/
Latin.ahk
91 lines (75 loc) · 2.03 KB
/
Latin.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
;; Helpful scripts for writing fancy-looking latin. :)
;; Default values
EnableAE := 1
EnableOE := 0
EnableLongS := 1
Gui, +ToolWindow +AlwaysOnTop -Resize -MaximizeBox -MinimizeBox
Gui, Font, s10 q5
Gui, Add, Checkbox, gSave vEnableAE , Enable ae → æ
Gui, Add, Checkbox, gSave vEnableOE , Enable oe → œ
Gui, Add, Checkbox, gSave vEnableLongS, Enable alt+s → ſ
Gui, Add, Button , gDone wp, Done
GuiControl,, EnableAE , %EnableAE%
GuiControl,, EnableOE , %EnableOE%
GuiControl,, EnableLongS, %EnableLongS%
Done:
Gui, Submit
Save:
Gui, Submit, NoHide
;; Show the GUI
!z::
Gui, Show
return
#If EnableAE
:*?c:Ae::Æ
:*?c:ae::æ
#If EnableOE
:*?c:Oe::Œ
:*?c:oe::œ
#If EnableLongS
!s::
Send, ſ
return
#If
;; Aa
!a::
Send, ā
return
!+a::
Send, Ā
return
;; Ee
!e::
Send, ē
return
!+e::
Send, Ē
return
;; Ii
!i::
Send, ī
return
!+i::
Send, Ī
return
;; Oo
!o::
Send, ō
return
!+o::
Send, Ō
return
;; Uu
!u::
Send, ū
return
!+u::
Send, Ū
return
;; Yy
!y::
Send, ȳ
return
!+y::
Send, Ȳ
return