summaryrefslogtreecommitdiff
path: root/windows/neo-vars/src/source/nordtast.ahk
blob: b12dc206a4721ca87459708faa164bb70577eb51 (plain)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
; -*- encoding:utf-8 -*-
; NordTast. Belegung von Ulf Bro, http://www.nordtast.org/
; (c) 2010 Matthias Wächter


CharProcNordTt() {
  global
  ; Custom Layout togglen
  isNordTast := !(isNordTast)
  if (isNordTast) {
    CharProcNordT1()
    if (zeigeModusBox)
      TrayTip,NordTast-Belegungsvariante,Die Belegungsvariante wurde aktiviert. Zum Deaktivieren`, Mod3+F12 druecken.,10,1
  } else {
    CharProcNordT0()
    if (zeigeModusBox)
      TrayTip,NordTast-Belegungsvariante,Die Belegungsvariante wurde deaktiviert.,10,1
  }
}

CharProcNordT1() {
  global
  ; Tastaturbelegungsvariante aktivieren
  ED12("010",1,"ä","Ä")
  ED12("011",1,"u","U")
  ED12("012",1,"o","O")
  ED12("013",1,"b","B")
  ED12("014",1,"p","P")
  ED12("015",1,"k","K")
  ED12("016",1,"g","G")
  ED12("017",1,"l","L")
  ED12("018",1,"m","M")
  ED12("019",1,"f","F")
  ED12("01A",1,"x","X")

  ED12("01E",1,"a","A")
  ED12("01F",1,"i","I")
  ED12("020",1,"e","E")
  ED12("021",1,"t","T")
  ED12("022",1,"c","C")
  ED12("023",1,"h","H")
  ED12("024",1,"d","D")
  ED12("025",1,"n","N")
  ED12("026",1,"r","R")
  ED12("027",1,"s","S")
  ED12("028",1,"ß","ẞ")

  ED12("02C",0,".","•")
  ED12("02D",0,",","–")
  ED12("02E",1,"ü","Ü")
  ED12("02F",1,"ö","Ö")
  ED12("030",1,"q","Q")
  ED12("031",1,"y","Y")
  ED12("032",1,"z","Z")
  ED12("033",1,"w","W")
  ED12("034",1,"v","V")
  ED12("035",1,"j","J")
}

CharProcNordT0() {
  global
  ; Tastaturbelegungsvariante deaktivieren
  ED12("010",1,"x","X")
  ED12("011",1,"v","V")
  ED12("012",1,"l","L")
  ED12("013",1,"c","C")
  ED12("014",1,"w","W")
  ED12("015",1,"k","K")
  ED12("016",1,"h","H")
  ED12("017",1,"g","G")
  ED12("018",1,"f","F")
  ED12("019",1,"q","Q")
  ED12("01A",1,"ß","ẞ")

  ED12("01E",1,"u","U")
  ED12("01F",1,"i","I")
  ED12("020",1,"a","A")
  ED12("021",1,"e","E")
  ED12("022",1,"o","O")
  ED12("023",1,"s","S")
  ED12("024",1,"n","N")
  ED12("025",1,"r","R")
  ED12("026",1,"t","T")
  ED12("027",1,"d","D")
  ED12("028",1,"y","Y")

  ED12("02C",1,"ü","Ü")
  ED12("02D",1,"ö","Ö")
  ED12("02E",1,"ä","Ä")
  ED12("02F",1,"p","P")
  ED12("030",1,"z","Z")
  ED12("031",1,"b","B")
  ED12("032",1,"m","M")
  ED12("033",0,",","–")
  ED12("034",0,".","•")
  ED12("035",1,"j","J")
}

ActivateNordTast() {
  global

  CP3F12  := "PNordTt"                   ; M3+F12: Aktiviere/Deaktiviere NordTast

  IniRead,isNordTast,%ini%,Global,isNordTast,0
  if (isNordTast)
    CharProcNordT1()
}

ActivateNordTast()