mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-10 16:59:55 +00:00
temp removing 0x0B00-0x0B7F diacritics from OS X 10.11+ because of crash, see https://bugreports.qt.io/browse/QTBUG-48910 + added changelog for 0.9.7
This commit is contained in:
parent
4d230eda63
commit
4dc2b5e780
@ -696,8 +696,8 @@ void Application::checkMapVersion() {
|
||||
if (Local::oldMapVersion() < AppVersion) {
|
||||
if (Local::oldMapVersion()) {
|
||||
QString versionFeatures;
|
||||
if (cDevVersion() && Local::oldMapVersion() < 9004) {
|
||||
versionFeatures = QString::fromUtf8("\xe2\x80\x94 New design for all modal windows\n\xe2\x80\x94 Toggle notifications from tray menu\n\xe2\x80\x94 Bug fixes and other minor improvements");// .replace('@', qsl("@") + QChar(0x200D));
|
||||
if (cDevVersion() && Local::oldMapVersion() < 9007) {
|
||||
versionFeatures = QString::fromUtf8("\xe2\x80\x94 Tilde symbol display fixed\n\xe2\x80\x94 Bold and Italic text display from bots supported\n\xe2\x80\x94 Send code without text and emoji replaces using `such syntax` for inline parts and ```such syntax``` for blocks of code\n\xe2\x80\x94 Some bugfixes and improvements");// .replace('@', qsl("@") + QChar(0x200D));
|
||||
} else if (Local::oldMapVersion() < 9005) {
|
||||
versionFeatures = lang(lng_new_version_text).trimmed();
|
||||
} else {
|
||||
|
@ -535,10 +535,10 @@ _maxLength(-1),
|
||||
_inner(this),
|
||||
_oldtext(val),
|
||||
|
||||
_ctrlEnterSubmit(CtrlEnterSubmitCtrlEnter),
|
||||
_undoAvailable(false),
|
||||
_redoAvailable(false),
|
||||
_inHeightCheck(false),
|
||||
_ctrlEnterSubmit(CtrlEnterSubmitCtrlEnter),
|
||||
|
||||
_customUpDown(false),
|
||||
|
||||
|
@ -689,8 +689,11 @@ const QChar *textSkipCommand(const QChar *from, const QChar *end, bool canLink =
|
||||
inline bool chIsSpace(QChar ch, bool rich = false) {
|
||||
return ch.isSpace() || (ch < 32 && !(rich && ch == TextCommand)) || (ch == QChar::ParagraphSeparator) || (ch == QChar::LineSeparator) || (ch == QChar::ObjectReplacementCharacter) || (ch == QChar::SoftHyphen) || (ch == QChar::CarriageReturn) || (ch == QChar::Tabulation);
|
||||
}
|
||||
inline bool chIsDiac(QChar ch) { // diac and variation selectors
|
||||
return (ch.category() == QChar::Mark_NonSpacing) || (ch.unicode() == 1652);
|
||||
}
|
||||
inline bool chIsBad(QChar ch) {
|
||||
return (ch == 0) || (ch >= 8232 && ch < 8237) || (ch >= 65024 && ch < 65040 && ch != 65039) || (ch >= 127 && ch < 160 && ch != 156);
|
||||
return (ch == 0) || (ch >= 8232 && ch < 8237) || (ch >= 65024 && ch < 65040 && ch != 65039) || (ch >= 127 && ch < 160 && ch != 156) || (cPlatform() == dbipMac && ch >= 0x0B00 && ch <= 0x0B7F && chIsDiac(ch) && QSysInfo::macVersion() >= QSysInfo::MV_10_11); // tmp hack see https://bugreports.qt.io/browse/QTBUG-48910
|
||||
}
|
||||
inline bool chIsTrimmed(QChar ch, bool rich = false) {
|
||||
return (!rich || ch != TextCommand) && (chIsSpace(ch) || chIsBad(ch));
|
||||
@ -704,10 +707,6 @@ inline bool chReplacedBySpace(QChar ch) {
|
||||
return (/*code >= 0x00 && */ch <= 0x02) || (ch >= 0x07 && ch <= 0x09) || (ch >= 0x0b && ch <= 0x1f) ||
|
||||
(ch == 819) || (ch == 831) || (ch == 778) || (ch >= 8232 && ch <= 8237);
|
||||
}
|
||||
inline bool chIsDiac(QChar ch) { // diac and variation selectors
|
||||
QChar::Category c = ch.category();
|
||||
return (c == QChar::Mark_NonSpacing) || (ch.unicode() == 1652);
|
||||
}
|
||||
inline int32 chMaxDiacAfterSymbol() {
|
||||
return 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user