mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-17 15:32:48 +00:00
fix broken parsing of labels and extra keys
This commit is contained in:
parent
e1a89c811c
commit
38fde35890
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ class LocaleKeyTexts(dataStream: InputStream?) {
|
||||||
init {
|
init {
|
||||||
readStream(dataStream, false)
|
readStream(dataStream, false)
|
||||||
// set default quote moreKeys if necessary
|
// set default quote moreKeys if necessary
|
||||||
// should this also be done with punctuation moreKeys??
|
// should this also be done with punctuation moreKeys?
|
||||||
if ("\'" !in moreKeys)
|
if ("\'" !in moreKeys)
|
||||||
moreKeys["\'"] = arrayOf("‚", "‘", "’", "‹", "›")
|
moreKeys["\'"] = arrayOf("‚", "‘", "’", "‹", "›")
|
||||||
if ("\"" !in moreKeys)
|
if ("\"" !in moreKeys)
|
||||||
|
@ -44,8 +44,8 @@ class LocaleKeyTexts(dataStream: InputStream?) {
|
||||||
}
|
}
|
||||||
when (mode) {
|
when (mode) {
|
||||||
READER_MODE_MORE_KEYS -> addMoreKeys(line.splitOnWhitespace())
|
READER_MODE_MORE_KEYS -> addMoreKeys(line.splitOnWhitespace())
|
||||||
READER_MODE_EXTRA_KEYS -> if (!onlyMoreKeys) addExtraKey(line.split(colonSpaceRegex, 1))
|
READER_MODE_EXTRA_KEYS -> if (!onlyMoreKeys) addExtraKey(line.split(colonSpaceRegex, 2))
|
||||||
READER_MODE_LABELS -> if (!onlyMoreKeys) addLabel(line.split(colonSpaceRegex, 1))
|
READER_MODE_LABELS -> if (!onlyMoreKeys) addLabel(line.split(colonSpaceRegex, 2))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue