Added substitute flag in dictionary compression...for later
This commit is contained in:
parent
16b5193216
commit
3fb66f888c
@ -245,7 +245,7 @@ void TransmitTextEdit::on_textContentsChanged(int /*pos*/, int rem, int add){
|
|||||||
QString normalized = text.normalized(QString::NormalizationForm_KD);
|
QString normalized = text.normalized(QString::NormalizationForm_KD);
|
||||||
QString result;
|
QString result;
|
||||||
std::copy_if(normalized.begin(), normalized.end(), std::back_inserter(result), [](QChar& c) {
|
std::copy_if(normalized.begin(), normalized.end(), std::back_inserter(result), [](QChar& c) {
|
||||||
return c.toLatin1() != 0 && (c == 10 || (c > 31 && c < 128));
|
return c.toLatin1() != 0 && (c == 10 || c == 0x1A || (c > 31 && c < 128));
|
||||||
});
|
});
|
||||||
|
|
||||||
if(result != text){
|
if(result != text){
|
||||||
|
4
jsc.h
4
jsc.h
@ -40,8 +40,8 @@ public:
|
|||||||
static const Tuple map[262144];
|
static const Tuple map[262144];
|
||||||
static const Tuple list[262144];
|
static const Tuple list[262144];
|
||||||
|
|
||||||
static const quint32 prefixSize = 70;
|
static const quint32 prefixSize = 71;
|
||||||
static const Tuple prefix[70];
|
static const Tuple prefix[71];
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // JSC_H
|
#endif // JSC_H
|
||||||
|
@ -145937,7 +145937,7 @@ const Tuple JSC::list[262144] = {
|
|||||||
{"JSTR", 4, 190085},
|
{"JSTR", 4, 190085},
|
||||||
{"JSTOR", 5, 75164},
|
{"JSTOR", 5, 75164},
|
||||||
{"JSTL", 4, 132651},
|
{"JSTL", 4, 132651},
|
||||||
{"JSQSO", 5, 72},
|
{"\x1A", 1, 72}, // FYI: This used to be JSQSO in JS8 2.0
|
||||||
{"JSQCALL", 7, 73},
|
{"JSQCALL", 7, 73},
|
||||||
{"JSPWIKI", 7, 154802},
|
{"JSPWIKI", 7, 154802},
|
||||||
{"JSPS", 4, 113215},
|
{"JSPS", 4, 113215},
|
||||||
@ -262167,7 +262167,7 @@ const Tuple JSC::list[262144] = {
|
|||||||
{"!", 1, 28},
|
{"!", 1, 28},
|
||||||
};
|
};
|
||||||
|
|
||||||
const Tuple JSC::prefix[70] = {
|
const Tuple JSC::prefix[71] = {
|
||||||
{"!", 1, 262143},
|
{"!", 1, 262143},
|
||||||
{"\"", 1, 262142},
|
{"\"", 1, 262142},
|
||||||
{"#", 1, 262141},
|
{"#", 1, 262141},
|
||||||
@ -262211,6 +262211,7 @@ const Tuple JSC::prefix[70] = {
|
|||||||
{"G", 10672, 168185},
|
{"G", 10672, 168185},
|
||||||
{"H", 9060, 159125},
|
{"H", 9060, 159125},
|
||||||
{"I", 9503, 149622},
|
{"I", 9503, 149622},
|
||||||
|
{"\x1A", 1, 145916},
|
||||||
{"J", 4262, 145360},
|
{"J", 4262, 145360},
|
||||||
{"K", 7986, 137374},
|
{"K", 7986, 137374},
|
||||||
{"L", 12241, 125133},
|
{"L", 12241, 125133},
|
||||||
|
@ -93,7 +93,7 @@ const Tuple JSC::map[262144] = {
|
|||||||
{"\n", 1, 69}, // FYI: this used to be "\" in JS8 1.0
|
{"\n", 1, 69}, // FYI: this used to be "\" in JS8 1.0
|
||||||
{"JS8", 3, 70},
|
{"JS8", 3, 70},
|
||||||
{"JS8CALL", 7, 71},
|
{"JS8CALL", 7, 71},
|
||||||
{"JSQSO", 5, 72},
|
{"\x1A", 1, 72}, // FYI: this used to be JSQSO in JS8 1.0, it is now a substitute flag
|
||||||
{"JSQCALL", 7, 73},
|
{"JSQCALL", 7, 73},
|
||||||
{"JORDAN", 6, 74},
|
{"JORDAN", 6, 74},
|
||||||
{"KN4CRD", 6, 75},
|
{"KN4CRD", 6, 75},
|
||||||
|
Loading…
Reference in New Issue
Block a user