Overview
Comment: | merge trunk |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | multid |
Files: | files | file ages | folders |
SHA3-256: |
1ab530ddfac19eb0c9aecd0dda291615 |
User & Date: | olr on 2018-02-25 15:39:48 |
Other Links: | branch diff | manifest | tags |
Context
2018-02-25
| ||
21:55 | [lo] update: lexicon editor check-in: 89b74dbf1b user: olr tags: lo, multid | |
15:39 | merge trunk check-in: 1ab530ddfa user: olr tags: multid | |
08:54 | [fr][bug] ocr: problème de casse pour la suggestion <Il/il> check-in: f9c4613c61 user: olr tags: trunk, fr | |
08:47 | [lo] lexicon editor check-in: 5a1baacbbb user: olr tags: new_feature, lo, multid | |
Changes
Modified gc_lang/fr/oxt/Lexicographer/Enumerator.py from [753041f6b5] to [8bc3897863].
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | - + - |
|
︙ | |||
52 53 54 55 56 57 58 59 60 61 62 63 64 65 | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | + | self.ctx = ctx self.xSvMgr = self.ctx.ServiceManager self.xDesktop = self.xSvMgr.createInstanceWithContext("com.sun.star.frame.Desktop", self.ctx) self.xDocument = self.xDesktop.getCurrentComponent() self.xContainer = None self.xDialog = None self.oSpellChecker = None self.oTokenizer = None def _addWidget (self, name, wtype, x, y, w, h, **kwargs): xWidget = self.xDialog.createInstance('com.sun.star.awt.UnoControl%sModel' % wtype) xWidget.Name = name xWidget.PositionX = x xWidget.PositionY = y xWidget.Width = w |
︙ | |||
116 117 118 119 120 121 122 | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | - - - - - - + + + + + + - + - + | nY2 = nY1 + 225 nWidth = self.xDialog.Width - 20 nHeight = 10 # List self._addWidget("list_section", 'FixedLine', nX, nY1, nWidth, nHeight, Label = self.dUI.get("list_section", "#err"), FontDescriptor = xFDTitle) |
︙ | |||
179 180 181 182 183 184 185 | 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 | - + - + - + - - - + | elif xActionEvent.ActionCommand == "CountByLemma": self.count(self.dUI.get("lemmas", "#err"), bByLemma=True) self.xTag.Enabled = False elif xActionEvent.ActionCommand == "UnknownWords": self.count(self.dUI.get("unknown_words", "#err"), bOnlyUnknownWords=True) self.xTag.Enabled = True elif xActionEvent.ActionCommand == "Tag": |
︙ | |||
258 259 260 261 262 263 264 | 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 | - + + + - - - - - + - - - - - + - - + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + | i += 1 nTotOccur += w self.xProgressBar.ProgressValue = self.xProgressBar.ProgressValueMax self.xNumWord.Label = str(i) self.xTotWord.Label = nTotOccur @_waitPointer |
Modified gc_lang/fr/oxt/Lexicographer/enum_strings.py from [fd05286777] to [4648cd7ebd].
1 2 3 4 5 6 7 8 9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | - + | def getUI (sLang): if sLang in dStrings: return dStrings[sLang] return dStrings["fr"] dStrings = { "fr": { "title": "Grammalecte · Recenseur de mots", |
︙ | |||
25 26 27 28 29 30 31 | 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | - + - + | "accentuation": "Accentuation", "noaccentuation": "Aucun", "tag_button": "Taguer", "close_button": "Fermer", }, "en": { |
︙ |
Modified gc_lang/fr/rules.grx from [29eda24584] to [4b78e905cb].
︙ | |||
2305 2306 2307 2308 2309 2310 2311 | 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 | - - + + | <<- \0.endswith("s") ->> Ils|ils # Erreur de numérisation ? <<- __else__ ->> Il|il # Erreur de numérisation ? TEST: __ocr__ {{Us}} arrive demain. # il / i1 / if / 11 |
︙ |
Modified graphspell-js/spellchecker.js from [7b8a526c88] to [a4e4ee731d].
︙ | |||
66 67 68 69 70 71 72 73 74 75 76 77 78 79 | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | + + + + + + + | loadTokenizer () { if (typeof(tokenizer) !== 'undefined') { this.oTokenizer = new tokenizer.Tokenizer(this.sLangCode); } else { this.oTokenizer = new Tokenizer(this.sLangCode); } } getTokenizer () { if (!this.oTokenizer) { this.loadTokenizer(); } return this.oTokenizer; } setMainDictionary (dictionary) { // returns true if the dictionary is loaded this.oMainDic = this._loadDictionary(dictionary); return Boolean(this.oMainDic); } |
︙ |
Modified graphspell/spellchecker.py from [dbd02131cc] to [4787045da6].
︙ | |||
44 45 46 47 48 49 50 51 52 53 54 55 56 57 | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | + + + + + | print("Error: <" + sfDictionary + "> not loaded.") traceback.print_exc() return None def loadTokenizer (self): self.oTokenizer = tokenizer.Tokenizer(self.sLangCode) def getTokenizer (self): if not self.oTokenizer: self.loadTokenizer() return self.oTokenizer def setMainDictionary (self, sfDictionary): "returns True if the dictionary is loaded" self.oMainDic = self._loadDictionary(sfDictionary) return bool(self.oMainDic) def setExtendedDictionary (self, sfDictionary): "returns True if the dictionary is loaded" |
︙ |