Skip to content

Commit

Permalink
fix bug where adding circumflex to upper case letter deletes letter
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymarch committed Jun 22, 2022
1 parent 0cf5c21 commit b383c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/py/hopliteaccent.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def updateDiacritics(letterIndex, diacriticBits, accentToAdd, toggleOff):
def isLegalDiacriticForLetter(letterCode, accentToAdd):
#match these strings to the arguments in the accelerators
if accentToAdd == kCIRCUMFLEX:
if letterCode != ALPHA and letterCode != ETA and letterCode != IOTA and letterCode != UPSILON and letterCode != OMEGA and letterCode != ALPHA_CAP and letterCode != ETA_CAP and letterCode != IOTA_CAP and letterCode != UPSILON_CAP and letterCode != OMEGA_CAP:
if letterCode != ALPHA and letterCode != ETA and letterCode != IOTA and letterCode != UPSILON and letterCode != OMEGA:# and letterCode != ALPHA_CAP and letterCode != ETA_CAP and letterCode != IOTA_CAP and letterCode != UPSILON_CAP and letterCode != OMEGA_CAP:
return False
elif accentToAdd == kMACRON:
if letterCode != ALPHA and letterCode != IOTA and letterCode != UPSILON and letterCode != ALPHA_CAP and letterCode != IOTA_CAP and letterCode != UPSILON_CAP:
Expand Down

0 comments on commit b383c0f

Please sign in to comment.