blob: 2135910af7f6f0c82497bec71357bc9c70021168 [file] [log] [blame]
Akron78f67142022-04-09 14:10:44 +02001! General rules that require certain language specific definitions
2
3! A solution to the "(author): problem" may be to add ) at the end of any
4! string as a possible ending
5define Years ["(" Digit+ (".") ")"] | ["[" Digit+ (".") "]"];
6
7! 20:00 Uhr, 00:12:25,34
8define Times [ ( [%0|1|2|3|4|5] ) Digit [ ":" [%0|1|2|3|4|5] Digit ]^{1,2} ( "," [ Digit ]^{1,3} ) ];
9
10! Emoticons
11source all/emoticons.xfst
12
13! XML sources
14source all/xml.xfst
15
16! XML entities
17source all/entities.xfst
18
Akrona2f952f2026-02-04 09:51:51 +010019! Wikipedia templates
20source all/wiki.xfst
21
Akron6dcb6ce2022-04-09 16:09:51 +020022! Arrows
23define Arrows [Alldash ">" | "<" Alldash];
24
Akron78f67142022-04-09 14:10:44 +020025! Technical protocols
26source all/protocols.xfst
27
28! Also supports
29! 19.4.2015, 19/4/2015 etc.
30define DigitPunct ["_"|"-"|"."|","|Slash];
31define Num Digit+ [DigitPunct Digit+]* (Char+);
32
33! ordinals
34define Ord Digit ( Digit (Digit) ) %.;
35
36! TODO:
37! floating point, serial, model numbers, ip addresses, etc.
38! every other segment must have at least one digit
39
40! Omission words like "fu**ing!"
41define Omission Char+ Asterisk Asterisk+ Char*;
42
43! acronyms: U.S.A., I.B.M., etc.
44! use a post-filter to remove dots
45define AcronymDep Letter %. Letter %. [Letter %.]+;
46
47
48! TODO: Name words with ' and `
49
50! Support ASCII elements, like
51! +---------------+
52! <---->, -->, <--
53! +---------------+
54! <---> | Worker Node N |
55! +---------------+
56! |============= Core =============|
57