Changes In Branch rg Through [cca3887aad] Excluding Merge-Ins
This is equivalent to a diff from f2d8271145 to cca3887aad
|
2018-06-12
| ||
| 12:10 | [fr] graph tests (draft) check-in: 2f0f044a66 user: olr tags: fr, rg | |
| 11:24 | [core] text processor: communication between regex rules and graph rules + [graphspell][bug] tokenizer: set i variable to 0, if sentence is empty check-in: cca3887aad user: olr tags: core, graphspell, rg | |
| 10:46 | [misc] SublimeText syntax rules update check-in: eb14e38462 user: olr tags: misc, rg | |
|
2018-05-16
| ||
| 16:22 | [fr] pt: descente aux enfers/flambeaux check-in: b5310203be user: olr tags: trunk, fr | |
| 16:14 | [build][core] rules graph: first draft check-in: 061252f41e user: olr tags: core, build, rg | |
| 11:58 | [graphspell][bug] fix affixes occurrences calculation check-in: f2d8271145 user: olr tags: trunk, graphspell | |
|
2018-05-15
| ||
| 12:51 | [fr] test contre faux positif check-in: f8bf9c3922 user: olr tags: trunk, fr | |
Modified compile_rules.py from [1ea2b6d97a] to [8c11a24e22].
| ︙ | |||
108 109 110 111 112 113 114 | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | - + + + + + + + + + |
def createRule (s, nIdLine, sLang, bParagraph, dOptPriority):
"returns rule as list [option name, regex, bCaseInsensitive, identifier, list of actions]"
global dJSREGEXES
global nRULEWITHOUTNAME
|
| ︙ | |||
341 342 343 344 345 346 347 | 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | + - - + + |
print("# Unknown action at line " + sIdAction)
return None
def _calcRulesStats (lRules):
d = {'=':0, '~': 0, '-': 0, '>': 0}
for aRule in lRules:
if aRule[0] != "@@@@":
|
| ︙ | |||
434 435 436 437 438 439 440 | 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 | - - + + + - + - + + + + - + + + + - + + + - + + |
# removing comments, zeroing empty lines, creating definitions, storing tests, merging rule lines
print(" parsing rules...")
global dDEF
lLine = []
lRuleLine = []
lTest = []
lOpt = []
|
| ︙ | |||
540 541 542 543 544 545 546 | 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 | - - + + |
displayStats(lParagraphRules, lSentenceRules)
print("Unnamed rules: " + str(nRULEWITHOUTNAME))
d = { "callables": sPyCallables,
"callablesJS": sJSCallables,
|
Added compile_rules_graph.py version [2fdedc6cde].