diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-21 20:07:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-21 21:36:49 +0100 |
commit | 5488ff0be8ec4625822428781298ffb76ea84041 (patch) | |
tree | eaa2afe1b982dd326ad5dc4e8c2bb0fc8626f4c9 /include/vcl | |
parent | 91795dfd726c76db03e5bc731608e7bff8eabacb (diff) |
mnemonics in words with Eszett misplaced
because the text is normalized with toUpper and uppercase
ß is SS and using the insertion index of the normalized
string in the original string is out by one
if we normalize with toLower then according to
icu/source/data/unidata/SpecialCasing.txt
then as long as the language is not Lithuanian
its always one to one
so just normalize to lower case with blank locale
Change-Id: I0ad1c7e2ad0216b7c27ec62105f9a25672ade8a8
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/mnemonic.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/vcl/mnemonic.hxx b/include/vcl/mnemonic.hxx index 26e4e5e15458..f531ab66d348 100644 --- a/include/vcl/mnemonic.hxx +++ b/include/vcl/mnemonic.hxx @@ -31,14 +31,14 @@ #define MNEMONIC_RANGE_1_START 0x30 #define MNEMONIC_RANGE_1_END 0x39 // Latin A-Z -#define MNEMONIC_RANGE_2_START 0x41 -#define MNEMONIC_RANGE_2_END 0x5A +#define MNEMONIC_RANGE_2_START 0x61 +#define MNEMONIC_RANGE_2_END 0x7A // Cyrillic -#define MNEMONIC_RANGE_3_START 0x0410 -#define MNEMONIC_RANGE_3_END 0x042F +#define MNEMONIC_RANGE_3_START 0x0430 +#define MNEMONIC_RANGE_3_END 0x044F // Greek -#define MNEMONIC_RANGE_4_START 0x0391 -#define MNEMONIC_RANGE_4_END 0x03AB +#define MNEMONIC_RANGE_4_START 0x03B1 +#define MNEMONIC_RANGE_4_END 0x03CB #define MNEMONIC_RANGES 4 #define MAX_MNEMONICS ((MNEMONIC_RANGE_1_END-MNEMONIC_RANGE_1_START+1)+\ (MNEMONIC_RANGE_2_END-MNEMONIC_RANGE_2_START+1)+\ |