⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qscriptengine.cpp

📁 qt-x11-opensource-src-4.1.4.tar.gz源码
💻 CPP
📖 第 1 页 / 共 5 页
字号:
        if (item->glyphs[i].attributes.mark)            item->glyphs[i].advance = QFixedPoint();    qt_heuristicPosition(item);    return true;}#endif// ------------------------------------------------------------------------------------------------------------------//// Continuation of middle eastern languages//// ------------------------------------------------------------------------------------------------------------------#if defined(Q_WS_X11) || defined(Q_WS_QWS)// #### stil missing: identify invalid character combinationsstatic bool syriac_shape(QShaperItem *item){    Q_ASSERT(item->script == QUnicodeTables::Syriac);#ifndef QT_NO_OPENTYPE    QOpenType *openType = item->font->openType();    if (openType && openType->supportsScript(QUnicodeTables::Syriac)) {        bool ot_ok;        if (arabicSyriacOpenTypeShape(openType, item, &ot_ok))            return true;        if (ot_ok)            return false;            // fall through to the non OT code    }#endif    return basic_shape(item);}static bool thaana_shape(QShaperItem *item){    Q_ASSERT(item->script == QUnicodeTables::Thaana);#ifndef QT_NO_OPENTYPE    QOpenType *openType = item->font->openType();    if (openType && openType->supportsScript(item->script)) {        openType->selectScript(QUnicodeTables::Thaana);        const int availableGlyphs = item->num_glyphs;        if (!item->font->stringToCMap(item->string->unicode()+item->from, item->length, item->glyphs, &item->num_glyphs, QFlag(item->flags)))            return false;        heuristicSetGlyphAttributes(item);        openType->shape(item);        return openType->positionAndAdd(item, availableGlyphs);    }#endif    return basic_shape(item);}#endif// --------------------------------------------------------------------------------------------------------------------------------------------//// Indic languages//// --------------------------------------------------------------------------------------------------------------------------------------------enum Form {    Invalid = 0x0,    UnknownForm = Invalid,    Consonant,    Nukta,    Halant,    Matra,    VowelMark,    StressMark,    IndependentVowel,    LengthMark,    Control,    Other};static const unsigned char indicForms[0xe00-0x900] = {    // Devangari    Invalid, VowelMark, VowelMark, VowelMark,    Invalid, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, UnknownForm, UnknownForm,    Nukta, Other, Matra, Matra,    Matra, Matra, Matra, Matra,    Matra, Matra, Matra, Matra,    Matra, Matra, Matra, Matra,    Matra, Halant, UnknownForm, UnknownForm,    Other, StressMark, StressMark, StressMark,    StressMark, UnknownForm, UnknownForm, UnknownForm,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    IndependentVowel, IndependentVowel, VowelMark, VowelMark,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    // Bengali    Invalid, VowelMark, VowelMark, VowelMark,    Invalid, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, Invalid, Invalid, IndependentVowel,    IndependentVowel, Invalid, Invalid, IndependentVowel,    IndependentVowel, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Invalid,    Invalid, Invalid, Consonant, Consonant,    Consonant, Consonant, UnknownForm, UnknownForm,    Nukta, Other, Matra, Matra,    Matra, Matra, Matra, Matra,    Matra, Invalid, Invalid, Matra,    Matra, Invalid, Invalid, Matra,    Matra, Halant, UnknownForm, UnknownForm,    Invalid, Invalid, Invalid, Invalid,    Invalid, Invalid, Invalid, VowelMark,    Invalid, Invalid, Invalid, Invalid,    Consonant, Consonant, Invalid, Consonant,    IndependentVowel, IndependentVowel, VowelMark, VowelMark,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    // Gurmukhi    Invalid, Invalid, VowelMark, Invalid,    Invalid, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, IndependentVowel, IndependentVowel, Invalid,    Invalid, Invalid, Invalid, IndependentVowel,    IndependentVowel, Invalid, Invalid, IndependentVowel,    IndependentVowel, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Consonant,    Invalid, Consonant, Consonant, Invalid,    Consonant, Consonant, UnknownForm, UnknownForm,    Nukta, Other, Matra, Matra,    Matra, Matra, Matra, Invalid,    Invalid, Invalid, Invalid, Matra,    Matra, Invalid, Invalid, Matra,    Matra, Halant, UnknownForm, UnknownForm,    Invalid, Invalid, Invalid, Invalid,    Invalid, UnknownForm, UnknownForm, UnknownForm,    Invalid, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Invalid,    Other, Other, Invalid, Invalid,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    StressMark, StressMark, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    // Gujarati    Invalid, VowelMark, VowelMark, VowelMark,    Invalid, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, IndependentVowel, IndependentVowel, IndependentVowel,    Invalid, IndependentVowel, Invalid, IndependentVowel,    IndependentVowel, IndependentVowel, Invalid, IndependentVowel,    IndependentVowel, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Consonant,    Invalid, Consonant, Consonant, Consonant,    Consonant, Consonant, UnknownForm, UnknownForm,    Nukta, Other, Matra, Matra,    Matra, Matra, Matra, Matra,    Matra, Matra, Invalid, Matra,    Matra, Matra, Invalid, Matra,    Matra, Halant, UnknownForm, UnknownForm,    Other, UnknownForm, UnknownForm, UnknownForm,    UnknownForm, UnknownForm, UnknownForm, UnknownForm,    UnknownForm, UnknownForm, UnknownForm, UnknownForm,    UnknownForm, UnknownForm, UnknownForm, UnknownForm,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    // Oriya    Invalid, VowelMark, VowelMark, VowelMark,    Invalid, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, Invalid, Invalid, IndependentVowel,    IndependentVowel, Invalid, Invalid, IndependentVowel,    IndependentVowel, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Consonant,    Invalid, Invalid, Consonant, Consonant,    Consonant, Consonant, UnknownForm, UnknownForm,    Nukta, Other, Matra, Matra,    Matra, Matra, Matra, Matra,    Invalid, Invalid, Invalid, Matra,    Matra, Invalid, Invalid, Matra,    Matra, Halant, UnknownForm, UnknownForm,    Other, Invalid, Invalid, Invalid,    Invalid, UnknownForm, LengthMark, LengthMark,    Invalid, Invalid, Invalid, Invalid,    Consonant, Consonant, Invalid, Consonant,    IndependentVowel, IndependentVowel, Invalid, Invalid,    Invalid, Invalid, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    //Tamil    Invalid, Invalid, VowelMark, Other,    Invalid, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, IndependentVowel, IndependentVowel, Invalid,    Invalid, Invalid, IndependentVowel, IndependentVowel,    IndependentVowel, Invalid, IndependentVowel, IndependentVowel,    IndependentVowel, Consonant, Invalid, Invalid,    Invalid, Consonant, Consonant, Invalid,    Consonant, Invalid, Consonant, Consonant,    Invalid, Invalid, Invalid, Consonant,    Consonant, Invalid, Invalid, Invalid,    Consonant, Consonant, Consonant, Invalid,    Invalid, Invalid, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Invalid, Consonant,    Consonant, Consonant, UnknownForm, UnknownForm,    Invalid, Invalid, Matra, Matra,    Matra, Matra, Matra, Invalid,    Invalid, Invalid, Matra, Matra,    Matra, Invalid, Matra, Matra,    Matra, Halant, Invalid, Invalid,    Invalid, Invalid, Invalid, Invalid,    Invalid, Invalid, Invalid, LengthMark,    Invalid, Invalid, Invalid, Invalid,    Invalid, Invalid, Invalid, Invalid,    Invalid, Invalid, Invalid, Invalid,    Invalid, Invalid, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    // Telugu    Invalid, VowelMark, VowelMark, VowelMark,    Invalid, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, Invalid, IndependentVowel, IndependentVowel,    IndependentVowel, Invalid, IndependentVowel, IndependentVowel,    IndependentVowel, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Invalid, Consonant, Consonant, Consonant,    Consonant, Consonant, UnknownForm, UnknownForm,    Invalid, Invalid, Matra, Matra,    Matra, Matra, Matra, Matra,    Matra, Invalid, Matra, Matra,    Matra, Invalid, Matra, Matra,    Matra, Halant, Invalid, Invalid,    Invalid, Invalid, Invalid, Invalid,    Invalid, LengthMark, Matra, Invalid,    Invalid, Invalid, Invalid, Invalid,    Invalid, Invalid, Invalid, Invalid,    IndependentVowel, IndependentVowel, Invalid, Invalid,    Invalid, Invalid, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    Other, Other, Other, Other,    // Kannada    Invalid, Invalid, VowelMark, VowelMark,    Invalid, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, IndependentVowel, IndependentVowel, IndependentVowel,    IndependentVowel, Invalid, IndependentVowel, IndependentVowel,    IndependentVowel, Invalid, IndependentVowel, IndependentVowel,    IndependentVowel, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Invalid, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Consonant, Consonant, Consonant, Consonant,    Invalid, Consonant, Consonant, Consonant,    Consonant, Consonant, UnknownForm, Unk

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -