diff options
author | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2009-04-15 14:23:32 +0000 |
---|---|---|
committer | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2009-04-15 14:23:32 +0000 |
commit | 8e51b75b976feab3ef4579d5f6075083e1bd5dcc (patch) | |
tree | 179d90e3da9e862c9654a2a9daebc02f2c78faa7 /windows/neo-vars/src/source/compose-gen.ahk | |
parent | cc4903debd3116b1561ae7623909cadbe46e1ca1 (diff) |
Compose-Konvertierung im SMP-Bereich (Unicode-Codepoints > UFFFF) korrigiert.
git-svn-id: https://svn.neo-layout.org@1791 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows/neo-vars/src/source/compose-gen.ahk')
-rw-r--r-- | windows/neo-vars/src/source/compose-gen.ahk | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/windows/neo-vars/src/source/compose-gen.ahk b/windows/neo-vars/src/source/compose-gen.ahk index 873724d..4942d2f 100644 --- a/windows/neo-vars/src/source/compose-gen.ahk +++ b/windows/neo-vars/src/source/compose-gen.ahk @@ -1805,7 +1805,7 @@ SetFormat, Integer, hex } else {
result .= "U" . SubStr("000000" . SubStr((((char & 0x1F) << 6) + (char2 & 0x3F)),3),-5)
}
- } else if (char < 0xF8) {
+ } else if (char < 0xF0) {
char2 := asc(SubStr(str,1,1))
char3 := asc(SubStr(str,2,1))
str := SubStr(str,3)
@@ -1815,10 +1815,10 @@ SetFormat, Integer, hex } else {
result .= "U" . SubStr("000000" . SubStr((((char & 0x0F) << 12) + ((char2 & 0x3F) << 6) + (char3 & 0x3F)),3),-5)
}
- } else if (char < 0xFC) {
+ } else if (char < 0xF8) {
char2 := asc(SubStr(str,1,1))
char3 := asc(SubStr(str,2,1))
- char3 := asc(SubStr(str,3,1))
+ char4 := asc(SubStr(str,3,1))
str := SubStr(str,4)
if ( (char2 < 0x80) or (char2 > 0xBF)
or (char3 < 0x80) or (char3 > 0xBF)
|