Show
Ignore:
Timestamp:
09/02/08 01:04:37 (5 years ago)
Author:
martin_r
Message:

Compose.ahk als zentralen Ort für (neue) Cokos geschaffen.
Weitere Vorbereitungen zur Aufnahme weiterer Cokos.
›©‹ jetzt auch wieder mit großem ›o‹.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • windows/autohotkey/Source/Methods-Other.ahk

    r833 r838  
    7676      send {bs} 
    7777    send % val 
    78     isSecondCompKey = 0 
    7978    return 1 
    8079  } 
     
    8887        send {bs} 
    8988      send % val1 
    90       isSecondCompKey = 0 
    9189      return 1 
    9290    } else if (Ebene = 2) and (val2 != "") { 
     
    105103    if !DeadCompose 
    106104      send {bs} 
     105    isFurtherCompkey = 0 
    107106    SendUnicodeChar(val) 
    108     isSecondCompKey = 0 
    109107    return 1 
    110108  } 
     
    118116      if !DeadCompose 
    119117        send {bs} 
     118      isFurtherCompkey = 0 
    120119      SendUnicodeChar(val1) 
    121       isSecondCompKey = 0 
    122       return 1 
    123     } else if (Ebene = 2) and (val2 != "") { 
    124       PriorCompKey = 
    125       if !DeadCompose 
    126         send {bs} 
     120      return 1 
     121    } else if (Ebene = 2) and (val2 != "") { 
     122      PriorCompKey = 
     123      if !DeadCompose 
     124        send {bs} 
     125      isFurtherCompkey = 0 
    127126      SendUnicodeChar(val2) 
    128       isSecondCompKey = 0 
    129127      return 1 
    130128    } 
     
    138136    if !DeadCompose 
    139137      send {bs}{bs} 
     138    isFurtherCompkey = 0 
    140139    SendUnicodeChar(val) 
    141     isSecondCompKey = 0 
    142140    return 1 
    143141  } 
     
    151149      if !DeadCompose 
    152150        send {bs}{bs} 
     151      isFurtherCompkey = 0 
    153152      SendUnicodeChar(val1) 
    154       isSecondCompKey = 0 
    155153      return 1 
    156154    } else if (Ebene = 2) and (val2 != "") { 
     
    158156      if !DeadCompose 
    159157        send {bs}{bs} 
     158      isFurtherCompkey = 0 
    160159      SendUnicodeChar(val2) 
    161       isSecondCompKey = 0 
    162160      return 1 
    163161    } 
     
    167165OutputChar(val) { 
    168166  global 
    169   if !((CheckComp(val) or PriorCompKey) and DeadCompose) 
     167  if !(CheckComp(val) and DeadCompose) 
    170168    send % "{blind}" . val 
    171169} 
     
    176174    c := val1 
    177175  else c := val2 
    178   if !((CheckComp(c) or PriorCompKey) and DeadCompose) 
     176  if !(CheckComp(c) and DeadCompose) 
    179177    if GetKeyState("Shift","P") and isMod2Locked 
    180178      send % "{blind}{Shift Up}" . c . "{Shift Down}" 
     
    184182CheckComp(d) { 
    185183  global 
     184  if isFurtherCompkey { 
     185    PriorCompKey := CompKey := PriorCompKey . "_" . d 
     186    CheckCompose() 
     187    CompKey = 
     188    isFurtherCompkey := 0 
     189    return 1 
     190  } 
     191  else 
     192  if PriorCompKey { 
     193    PriorCompKey := CompKey := PriorCompKey . "_" . d 
     194    CheckCompose() 
     195    isFurtherCompKey := 1 
     196    return 1 
     197  } 
     198  else 
    186199  if (PriorDeadKey = "comp") { 
    187200    CompKey := d 
    188201    return 1 
    189   } else if isSecondCompKey { 
    190     isSecondCompKey = 0 
    191     CompKey = 
    192     PriorCompKey = 
    193     ;goto neo_%lastHook% 
    194   } else if PriorCompKey { 
    195     CompKey := PriorCompKey . "_" . d 
    196     isSecondCompKey = 1 
    197     return 1 
    198   } 
    199 } 
     202  } 
     203}