| 1 | /* ch.cpp |
| 2 | * |
| 3 | * This file is part of COLLATINUS. |
| 4 | * |
| 5 | * COLLATINUS is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * COLLATINVS is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with COLLATINUS; if not, write to the Free Software |
| 17 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 | * |
| 19 | * © Yves Ouvrard, 2009 - 2016 |
| 20 | */ |
| 21 | |
| 22 | /** |
| 23 | * \file ch.cpp |
| 24 | * \brief constantes et utilitaires de traitement |
| 25 | * des chaînes de caractères |
| 26 | * |
| 27 | */ |
| 28 | |
| 29 | #include <iostream> |
| 30 | #include <QApplication> |
| 31 | #include <QFile> |
| 32 | #include <QRegExp> |
| 33 | |
| 34 | #include "ch.h"cxx . . $ `<file>/src/ch.h`/ |
| 35 | |
| 36 | #include <QDebug> |
| 37 | |
| 38 | /** |
| 39 | * \fn Ch::allonge(QString *f) |
| 40 | * \brief modifie f pour que sa dernière voyelle |
| 41 | * devienne longue. |
| 42 | */ |
| 43 | void Chcxx . . $ Ch/::allongecxx . . $ Ch/allonge(ee39f32778c92bb9).(QStringcxx . . $ QString# *f) |
| 44 | { |
| 45 | if (f->isEmptycxx . . $ QString#isEmpty(50ce9a9e25b4a850).()) return; |
| 46 | int taille = f->sizecxx . . $ QString#size(455f465bc33b4cdf).(); |
| 47 | // Je sais que le morceau à attacher commence par une consonne. |
| 48 | if (consonnescxx . . $ Ch/consonnes..containscxx . . $ QString#contains(7cf081d1b6a1defd).(f->atcxx . . $ QString#at(13af7ae5a875439e).(taille - 1)) && |
| 49 | !QStringcxx . . $ QString#QString(85c52e162fed56f9).("\u0101e \u0101u \u0113u \u014de") |
| 50 | .containscxx . . $ QString#contains(8cce4688c16f48f3).(f->midcxx . . $ QString#mid(44b7563da18aea72).(taille - 3, 2).toLowercxx . . $ QString#toLower(30b3b70527b1c61a).())) |
| 51 | { |
| 52 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[a\u0103]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u0101\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 53 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[e\u0115]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u0113\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 54 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[i\u012d]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u012b\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 55 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[o\u014F]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u014d\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 56 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[u\u016d]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u016b\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 57 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[y\u0233]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u045e\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 58 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[A\u0102]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u0100\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 59 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[E\u0114]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u0112\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 60 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[I\u012c]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u012a\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 61 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[O\u014e]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u014c\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 62 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[U\u016c]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u016a\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 63 | f->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[Y\u0232]([" +cxx . . $ operator+(c75c3ae4eb9af1a8). consonnescxx . . $ Ch/consonnes. +cxx . . $ operator+(3d22f08efddf8107). "])$"), "\u040e\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | /** |
| 68 | * \fn Ch:atone(QString a, bool bdc) |
| 69 | * \brief supprime tous les diacritiques de la chaîne a |
| 70 | * si bdc est à true, les diacritiques des majuscules |
| 71 | * sont également supprimés. |
| 72 | */ |
| 73 | QStringcxx . . $ QString# Chcxx . . $ Ch/::atonecxx . . $ Ch/atone(afa4754008a97e3f).(QStringcxx . . $ QString# a, bool bdc) |
| 74 | { |
| 75 | // Supprimer le combining breve à la fin du mot |
| 76 | // if (a.endsWith(0x0306)) a.chop(1); |
| 77 | // minuscules |
| 78 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x0101cxx . . $ QChar#QChar(f349c77f591a7878)., 'a'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 79 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x0103cxx . . $ QChar#QChar(f349c77f591a7878)., 'a'cxx . . $ QChar#QChar(f349c77f591a7878).); // ā ă |
| 80 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x0113cxx . . $ QChar#QChar(f349c77f591a7878)., 'e'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 81 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x0115cxx . . $ QChar#QChar(f349c77f591a7878)., 'e'cxx . . $ QChar#QChar(f349c77f591a7878).); // ē ĕ |
| 82 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x012bcxx . . $ QChar#QChar(f349c77f591a7878)., 'i'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 83 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x012dcxx . . $ QChar#QChar(f349c77f591a7878)., 'i'cxx . . $ QChar#QChar(f349c77f591a7878).); // ī ĭ |
| 84 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x014dcxx . . $ QChar#QChar(f349c77f591a7878)., 'o'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 85 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x014fcxx . . $ QChar#QChar(f349c77f591a7878)., 'o'cxx . . $ QChar#QChar(f349c77f591a7878).); // ō ŏ |
| 86 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x016bcxx . . $ QChar#QChar(f349c77f591a7878)., 'u'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 87 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x016dcxx . . $ QChar#QChar(f349c77f591a7878)., 'u'cxx . . $ QChar#QChar(f349c77f591a7878).); // ū ŭ |
| 88 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x0233cxx . . $ QChar#QChar(f349c77f591a7878)., 'y'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 89 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x045ecxx . . $ QChar#QChar(f349c77f591a7878)., 'y'cxx . . $ QChar#QChar(f349c77f591a7878).); // ȳ ў |
| 90 | if (!bdc) |
| 91 | { |
| 92 | // majuscule |
| 93 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x0100cxx . . $ QChar#QChar(f349c77f591a7878)., 'A'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 94 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x0102cxx . . $ QChar#QChar(f349c77f591a7878)., 'A'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ā Ă |
| 95 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x0112cxx . . $ QChar#QChar(f349c77f591a7878)., 'E'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 96 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x0114cxx . . $ QChar#QChar(f349c77f591a7878)., 'E'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ē Ĕ |
| 97 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x012acxx . . $ QChar#QChar(f349c77f591a7878)., 'I'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 98 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x012ccxx . . $ QChar#QChar(f349c77f591a7878)., 'I'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ī Ĭ |
| 99 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x014ccxx . . $ QChar#QChar(f349c77f591a7878)., 'O'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 100 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x014ecxx . . $ QChar#QChar(f349c77f591a7878)., 'O'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ō Ŏ |
| 101 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x016acxx . . $ QChar#QChar(f349c77f591a7878)., 'U'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 102 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x016ccxx . . $ QChar#QChar(f349c77f591a7878)., 'U'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ū Ŭ |
| 103 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x0232cxx . . $ QChar#QChar(f349c77f591a7878)., 'Y'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 104 | a.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x040ecxx . . $ QChar#QChar(f349c77f591a7878)., 'Y'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ȳ Ў |
| 105 | } |
| 106 | // combining breve |
| 107 | a.removecxx . . $ QString#remove(30270fe3985671e6).(0x0306cxx . . $ QChar#QChar(f349c77f591a7878).); //ō̆ etc. |
| 108 | return acxx . . $ QString#QString(28715ad661ad3cec).; |
| 109 | } |
| 110 | |
| 111 | QStringcxx . . $ QString# Chcxx . . $ Ch/::chemincxx . . $ Ch/chemin(f7f320d754b8fd09).(QStringcxx . . $ QString# f) |
| 112 | { |
| 113 | QStringListcxx . . $ QStringList# _chemins = QStandardPathscxx . . $ QStandardPaths#::standardLocationscxx . . $ QStandardPaths#standardLocations(88c3720734e7e359).(QStandardPathscxx . . $ QStandardPaths#::AppDataLocationcxx . . $ QStandardPaths#AppDataLocation.); |
| 114 | if (f.atcxx . . $ QString#at(13af7ae5a875439e).(0) !=cxx . . $ `operator!=`(a468b2f18a3afe8). '/'cxx . . $ QChar#QChar(f349c77f591a7878).) f.prependcxx . . $ QString#prepend(3a2ffbdf8ecc25e2).('/'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 115 | QStringcxx . . $ QString# retcxx . . $ QString#QString(ced63f7c635d850d).; |
| 116 | for (int i=_chemins.countcxx . . $ QList#count(455f465bc33b4cdf).()-1;i>-1;--i) |
| 117 | { |
| 118 | ret =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). _chemins.atcxx . . $ QList#at(e2681f9bb6b2f357).(i); |
| 119 | ret.appendcxx . . $ QString#append(6a89d0b7f4d2681c).("/"+cxx . . $ operator+(c75c3ae4eb9af1a8).f); |
| 120 | if (QFilecxx . . $ QFile#::existscxx . . $ QFile#exists(e1defb592416720d).(ret)) |
| 121 | return retcxx . . $ QString#QString(28715ad661ad3cec).; |
| 122 | } |
| 123 | ret =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). qAppcxx . . $ `<external>/6022697617041041825/qapplication.h:70:9`!->applicationDirPathcxx . . $ QCoreApplication#applicationDirPath(4365c3963150523e).()+cxx . . $ operator+(fab9b4f80031f353).f; |
| 124 | return retcxx . . $ QString#QString(28715ad661ad3cec).; |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * \fn Ch::deQuant(QString *c) |
| 129 | * \brief utilisée en cas d'élision. |
| 130 | * supprime la quantité de la voyelle finale de la chaine c |
| 131 | * lorsque cette voyelle est en fin de mot ou suivie d'un "m". |
| 132 | */ |
| 133 | void Chcxx . . $ Ch/::deQuantcxx . . $ Ch/deQuant(ee39f32778c92bb9).(QStringcxx . . $ QString# *c) |
| 134 | { |
| 135 | if (c->endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).("\u0306"cxx . . $ QString#QString(85c52e162fed56f9).)) |
| 136 | c->chopcxx . . $ QString#chop(d4f767463ce0a6b3).(1); // Supprimer le combining breve à la fin du mot |
| 137 | c->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[\u0101\u0103](m?)$"cxx . . $ QString#QString(85c52e162fed56f9).), "a\\1"cxx . . $ QString#QString(85c52e162fed56f9).); // ā ă |
| 138 | c->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[\u0113\u0115](m?)$"cxx . . $ QString#QString(85c52e162fed56f9).), "e\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 139 | c->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[\u012b\u012d](m?)$"cxx . . $ QString#QString(85c52e162fed56f9).), "i\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 140 | c->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[\u014d\u014f](m?)$"cxx . . $ QString#QString(85c52e162fed56f9).), "o\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 141 | c->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[\u016b\u016d](m?)$"cxx . . $ QString#QString(85c52e162fed56f9).), "u\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 142 | c->replacecxx . . $ QString#replace(612862c8abff0ba5).(QRegExpcxx . . $ QRegExp#QRegExp(31e086911ff70bd0).("[\u0232\u0233](m?)$"cxx . . $ QString#QString(85c52e162fed56f9).), "y\\1"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * \fn QString Ch::deramise(QString r) |
| 147 | * \brief retourne une graphie non-ramiste |
| 148 | * de r, càd dont tous les j deviennent i, |
| 149 | * et tous les v deviennent u. Les V majuscules |
| 150 | * initiaux sont ignorés. |
| 151 | */ |
| 152 | QStringcxx . . $ QString# Chcxx . . $ Ch/::deramisecxx . . $ Ch/deramise(f7f320d754b8fd09).(QStringcxx . . $ QString# r) |
| 153 | { |
| 154 | r.replacecxx . . $ QString#replace(8514d9896be75a4a).('J'cxx . . $ QChar#QChar(f349c77f591a7878)., 'I'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 155 | r.replacecxx . . $ QString#replace(8514d9896be75a4a).('j'cxx . . $ QChar#QChar(f349c77f591a7878)., 'i'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 156 | r.replacecxx . . $ QString#replace(8514d9896be75a4a).('v'cxx . . $ QChar#QChar(f349c77f591a7878)., 'u'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 157 | r.replacecxx . . $ QString#replace(192e628656427d1c).("æ"cxx . . $ QString#QString(85c52e162fed56f9)., "ae"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 158 | r.replacecxx . . $ QString#replace(192e628656427d1c).("Æ"cxx . . $ QString#QString(85c52e162fed56f9)., "Ae"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 159 | r.replacecxx . . $ QString#replace(192e628656427d1c).("œ"cxx . . $ QString#QString(85c52e162fed56f9)., "oe"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 160 | r.replacecxx . . $ QString#replace(192e628656427d1c).("Œ"cxx . . $ QString#QString(85c52e162fed56f9)., "Oe"cxx . . $ QString#QString(85c52e162fed56f9).); |
| 161 | r.replacecxx . . $ QString#replace(8514d9896be75a4a).(0x1ee5cxx . . $ QChar#QChar(f349c77f591a7878)., 'u'cxx . . $ QChar#QChar(f349c77f591a7878).); // ụ le u muet de suavis, suadeo, etc... |
| 162 | if (!r.startsWithcxx . . $ QString#startsWith(7cf081d1b6a1defd).('V'cxx . . $ QChar#QChar(f349c77f591a7878).)) r.replacecxx . . $ QString#replace(8514d9896be75a4a). ('V'cxx . . $ QChar#QChar(f349c77f591a7878)., 'U'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 163 | return rcxx . . $ QString#QString(28715ad661ad3cec).; |
| 164 | } |
| 165 | |
| 166 | /** |
| 167 | * \fn Ch::elide(QString *mp) |
| 168 | * \brief met entre crochets la dernière syllabe de mp. |
| 169 | */ |
| 170 | void Chcxx . . $ Ch/::elidecxx . . $ Ch/elide(ee39f32778c92bb9).(QStringcxx . . $ QString# *mp) |
| 171 | { |
| 172 | int taille = mp->sizecxx . . $ QString#size(455f465bc33b4cdf).(); |
| 173 | if ((taille > 1) && ((mp->endsWithcxx . . $ QString#endsWith(7cf081d1b6a1defd).('m'cxx . . $ QChar#QChar(f349c77f591a7878).) || mp->endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).("\u0101e"cxx . . $ QString#QString(85c52e162fed56f9).)) || |
| 174 | mp->endsWithcxx . . $ QString#endsWith(8cce4688c16f48f3).("\u0306"cxx . . $ QString#QString(85c52e162fed56f9).)) && |
| 175 | voyellescxx . . $ Ch/voyelles..containscxx . . $ QString#contains(7cf081d1b6a1defd).(mp->atcxx . . $ QString#at(13af7ae5a875439e).(taille - 2))) |
| 176 | { |
| 177 | deQuantcxx . . $ Ch/deQuant(ee39f32778c92bb9).(mp); |
| 178 | mp->insertcxx . . $ QString#insert(306db8b68bc9cde9).(taille - 2, '['cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 179 | mp->appendcxx . . $ QString#append(3a2ffbdf8ecc25e2).(']'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 180 | } |
| 181 | else if (voyellescxx . . $ Ch/voyelles..containscxx . . $ QString#contains(7cf081d1b6a1defd).(mp->atcxx . . $ QString#at(13af7ae5a875439e).(taille - 1)) && *mp !=cxx . . $ QString#`operator!=`(7d4bdb1abc417636). "\u014d") |
| 182 | { |
| 183 | deQuantcxx . . $ Ch/deQuant(ee39f32778c92bb9).(mp); |
| 184 | mp->insertcxx . . $ QString#insert(306db8b68bc9cde9).(taille - 1, '['cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 185 | mp->appendcxx . . $ QString#append(3a2ffbdf8ecc25e2).(']'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 186 | } |
| 187 | } |
| 188 | |
| 189 | QStringcxx . . $ QString# Chcxx . . $ Ch/::jviucxx . . $ Ch/jviu(f7f320d754b8fd09).(QStringcxx . . $ QString# ch) |
| 190 | { |
| 191 | ch.replacecxx . . $ QString#replace(8514d9896be75a4a).('J'cxx . . $ QChar#QChar(f349c77f591a7878)., 'I'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 192 | ch.replacecxx . . $ QString#replace(8514d9896be75a4a).('j'cxx . . $ QChar#QChar(f349c77f591a7878)., 'i'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 193 | ch.replacecxx . . $ QString#replace(8514d9896be75a4a).('v'cxx . . $ QChar#QChar(f349c77f591a7878)., 'u'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 194 | ch.replacecxx . . $ QString#replace(8514d9896be75a4a).('V'cxx . . $ QChar#QChar(f349c77f591a7878)., 'U'cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 195 | return chcxx . . $ QString#QString(28715ad661ad3cec).; |
| 196 | } |
| 197 | |
| 198 | QStringcxx . . $ QString# Chcxx . . $ Ch/::ote_diacritiquescxx . . $ Ch/ote_diacritiques(f7f320d754b8fd09). (QStringcxx . . $ QString# k) |
| 199 | { |
| 200 | // minuscules |
| 201 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x0101cxx . . $ QChar#QChar(f349c77f591a7878)., 'a'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x0103cxx . . $ QChar#QChar(f349c77f591a7878)., 'a'cxx . . $ QChar#QChar(f349c77f591a7878).); // ā ă |
| 202 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x0113cxx . . $ QChar#QChar(f349c77f591a7878)., 'e'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x0115cxx . . $ QChar#QChar(f349c77f591a7878)., 'e'cxx . . $ QChar#QChar(f349c77f591a7878).); // ē ĕ |
| 203 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x012bcxx . . $ QChar#QChar(f349c77f591a7878)., 'i'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x012dcxx . . $ QChar#QChar(f349c77f591a7878)., 'i'cxx . . $ QChar#QChar(f349c77f591a7878).); // ī ĭ |
| 204 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x014dcxx . . $ QChar#QChar(f349c77f591a7878)., 'o'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x014fcxx . . $ QChar#QChar(f349c77f591a7878)., 'o'cxx . . $ QChar#QChar(f349c77f591a7878).); // ō ŏ |
| 205 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x016bcxx . . $ QChar#QChar(f349c77f591a7878)., 'u'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x016dcxx . . $ QChar#QChar(f349c77f591a7878)., 'u'cxx . . $ QChar#QChar(f349c77f591a7878).); // ū ŭ |
| 206 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x0233cxx . . $ QChar#QChar(f349c77f591a7878)., 'y'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x045ecxx . . $ QChar#QChar(f349c77f591a7878)., 'y'cxx . . $ QChar#QChar(f349c77f591a7878).); // ȳ ў |
| 207 | // majuscule |
| 208 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x0100cxx . . $ QChar#QChar(f349c77f591a7878)., 'A'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x0102cxx . . $ QChar#QChar(f349c77f591a7878)., 'A'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ā Ă |
| 209 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x0112cxx . . $ QChar#QChar(f349c77f591a7878)., 'E'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x0114cxx . . $ QChar#QChar(f349c77f591a7878)., 'E'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ē Ĕ |
| 210 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x012acxx . . $ QChar#QChar(f349c77f591a7878)., 'I'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x012ccxx . . $ QChar#QChar(f349c77f591a7878)., 'I'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ī Ĭ |
| 211 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x014ccxx . . $ QChar#QChar(f349c77f591a7878)., 'O'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x014ecxx . . $ QChar#QChar(f349c77f591a7878)., 'O'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ō Ŏ |
| 212 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x016acxx . . $ QChar#QChar(f349c77f591a7878)., 'U'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x016ccxx . . $ QChar#QChar(f349c77f591a7878)., 'U'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ū Ŭ |
| 213 | k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x0232cxx . . $ QChar#QChar(f349c77f591a7878)., 'Y'cxx . . $ QChar#QChar(f349c77f591a7878).); k.replacecxx . . $ QString#replace(8514d9896be75a4a). (0x040ecxx . . $ QChar#QChar(f349c77f591a7878)., 'Y'cxx . . $ QChar#QChar(f349c77f591a7878).); // Ȳ Ў |
| 214 | // combining breve |
| 215 | k.removecxx . . $ QString#remove(30270fe3985671e6). (0x0306cxx . . $ QChar#QChar(f349c77f591a7878).); |
| 216 | return kcxx . . $ QString#QString(28715ad661ad3cec).; |
| 217 | } |