This commit is contained in:
pls.153 2022-11-25 10:04:51 +01:00
parent 8257356efc
commit ac9d2ebf07
2 changed files with 7 additions and 2 deletions

View file

@ -130,8 +130,9 @@ http://192.168.1.x:1701/all.zip
iOS note (smart quotes) iOS note (smart quotes)
----------------------- -----------------------
Smart quotation marks can only be disabled globally for the whole app, putting Smart punctuation (especially annoying with quotes in an app like this one) can
this in the iOS section of `app.pro`: only be disabled globally for the whole app, by putting this in the iOS section
of `app.pro`:
``` ```
DEFINES += DISABLE_SMART_QUOTES DEFINES += DISABLE_SMART_QUOTES
``` ```

View file

@ -34,6 +34,10 @@ public:
bool changed = true; bool changed = true;
const int code = s.at(0).unicode(); const int code = s.at(0).unicode();
switch (code) { switch (code) {
// undo automatic double hyphen substitution
case 8212:
s = "--";
break;
// replace iOS smart quotation marks with standard ones // replace iOS smart quotation marks with standard ones
// (English, French, German, ...) // (English, French, German, ...)
case 8216: case 8216: