Overview
Comment: | [core] better capitalization function |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | core | rg |
Files: | files | file ages | folders |
SHA3-256: |
0b3f9d14dc3806e7cd2f971206c449a5 |
User & Date: | olr on 2018-07-17 11:38:39 |
Other Links: | branch diff | manifest | tags |
Context
2018-07-17
| ||
11:40 | [fr][core] date verification: switch back to previous behavior check-in: b0e46a6636 user: olr tags: fr, core, rg | |
11:38 | [core] better capitalization function check-in: 0b3f9d14dc user: olr tags: core, rg | |
06:42 | [graphspell] tokenizer: remove hyphen in number detection (always considered as a separate sign) check-in: 6950f5898f user: olr tags: graphspell, rg | |
Changes
Modified gc_core/py/lang_core/gc_engine.py from [e5bcf3ef2a] to [08553979b3].
︙ | ︙ | |||
803 804 805 806 807 808 809 | sSugg = globals()[sSugg[1:]](self.lToken, nTokenOffset) lSugg = sSugg.split("|") if sSugg else [] elif sSugg == "_": lSugg = [] else: lSugg = self._expand(sSugg, nTokenOffset).split("|") if bUppercase and lSugg and self.lToken[iFirstToken]["sValue"][0:1].isupper(): | | | 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 | sSugg = globals()[sSugg[1:]](self.lToken, nTokenOffset) lSugg = sSugg.split("|") if sSugg else [] elif sSugg == "_": lSugg = [] else: lSugg = self._expand(sSugg, nTokenOffset).split("|") if bUppercase and lSugg and self.lToken[iFirstToken]["sValue"][0:1].isupper(): lSugg = list(map(lambda s: s[0:1].upper()+s[1:], lSugg)) # Message sMessage = globals()[sMsg[1:]](self.lToken, nTokenOffset) if sMsg[0:1] == "=" else self._expand(sMsg, nTokenOffset) if bShowRuleId: sMessage += " " + sLineId + " # " + sRuleId # if _bWriterError: xErr = SingleProofreadingError() # uno.createUnoStruct( "com.sun.star.linguistic2.SingleProofreadingError" ) |
︙ | ︙ |