Grammalecte  Check-in [2f5d63f1a3]

Overview
Comment:[build] useless code
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: 2f5d63f1a3624b27ec986011d527599e4c4a8fc6b973a177c0c2b2804a174682
User & Date: olr on 2018-09-16 07:28:17
Other Links: branch diff | manifest | tags
Context
2018-09-16
19:26
[build] parameter names harmonisation check-in: 616c280e2d user: olr tags: build, rg
07:28
[build] useless code check-in: 2f5d63f1a3 user: olr tags: build, rg
2018-09-14
09:50
[fr] rebuild dictionary for JS check-in: e3c499aad8 user: olr tags: fr, rg
Changes

Modified compile_rules.py from [2aa727e4cf] to [3dbf42c3e0].

    55     55       s = re.sub(r"word\(\s*1\b", 'nextword1(s, m.end()', s)                                  # word(1)
    56     56       s = re.sub(r"word\(\s*-1\b", 'prevword1(s, m.start()', s)                               # word(-1)
    57     57       s = re.sub(r"word\(\s*(\d)", 'nextword(s, m.end(), \\1', s)                             # word(n)
    58     58       s = re.sub(r"word\(\s*-(\d)", 'prevword(s, m.start(), \\1', s)                          # word(-n)
    59     59       s = re.sub(r"before\(\s*", 'look(s[:m.start()], ', s)                                   # before(s)
    60     60       s = re.sub(r"after\(\s*", 'look(s[m.end():], ', s)                                      # after(s)
    61     61       s = re.sub(r"textarea\(\s*", 'look(s, ', s)                                             # textarea(s)
    62         -    s = re.sub(r"before_chk1\(\s*", 'look_chk1(dTokenPos, s[:m.start()], 0, ', s)           # before_chk1(s)
    63         -    s = re.sub(r"after_chk1\(\s*", 'look_chk1(dTokenPos, s[m.end():], m.end(), ', s)        # after_chk1(s)
    64         -    s = re.sub(r"textarea_chk1\(\s*", 'look_chk1(dTokenPos, s, 0, ', s)                     # textarea_chk1(s)
    65     62       s = re.sub(r"/0", 'sx[m.start():m.end()]', s)                                           # /0
    66     63       s = re.sub(r"before0\(\s*", 'look(sx[:m.start()], ', s)                                 # before0(s)
    67     64       s = re.sub(r"after0\(\s*", 'look(sx[m.end():], ', s)                                    # after0(s)
    68     65       s = re.sub(r"textarea0\(\s*", 'look(sx, ', s)                                           # textarea0(s)
    69         -    s = re.sub(r"before0_chk1\(\s*", 'look_chk1(dTokenPos, sx[:m.start()], 0, ', s)         # before0_chk1(s)
    70         -    s = re.sub(r"after0_chk1\(\s*", 'look_chk1(dTokenPos, sx[m.end():], m.end(), ', s)      # after0_chk1(s)
    71         -    s = re.sub(r"textarea0_chk1\(\s*", 'look_chk1(dTokenPos, sx, 0, ', s)                   # textarea0_chk1(s)
    72         -    s = re.sub(r"isEndOfNG\(\s*\)", 'isEndOfNG(dTokenPos, s[m.end():], m.end())', s)        # isEndOfNG(s)
    73         -    s = re.sub(r"isNextNotCOD\(\s*\)", 'isNextNotCOD(dTokenPos, s[m.end():], m.end())', s)  # isNextNotCOD(s)
    74         -    s = re.sub(r"isNextVerb\(\s*\)", 'isNextVerb(dTokenPos, s[m.end():], m.end())', s)      # isNextVerb(s)
    75     66       s = re.sub(r"\bspell *[(]", '_oSpellChecker.isValid(', s)
    76     67       s = re.sub(r"[\\](\d+)", 'm.group(\\1)', s)
    77     68       return s
    78     69   
    79     70   
    80     71   def uppercase (s, sLang):
    81     72       "(flag i is not enough): converts regex to uppercase regex: 'foo' becomes '[Ff][Oo][Oo]', but 'Bar' becomes 'B[Aa][Rr]'."