Updated README
This commit is contained in:
parent
83eb861680
commit
cfab840bb0
158
README.org
158
README.org
@ -48,38 +48,42 @@
|
|||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
As you can see, backreferences have their syntax modified from ~\1~ to ~$1~
|
||||||
|
for instance, and look-ahead and look-behind expressions must be incorporated
|
||||||
|
into the expression.
|
||||||
|
|
||||||
And here is the JSON generated by this project (beautified, the original is on
|
And here is the JSON generated by this project (beautified, the original is on
|
||||||
one line only without unnecessary whitespace):
|
one line only without unnecessary whitespace):
|
||||||
#+BEGIN_SRC json
|
#+BEGIN_SRC json
|
||||||
{
|
{
|
||||||
"version": "1",
|
"version": "1",
|
||||||
"categories": {
|
"categories": {
|
||||||
"B": "ou",
|
|
||||||
"C": "ptcqbdgmnlrhs",
|
|
||||||
"F": "ie",
|
|
||||||
"Z": "bgd",
|
|
||||||
"L": "āēīōū",
|
|
||||||
"S": "ptc",
|
"S": "ptc",
|
||||||
"V": "aeiou"
|
"L": "āēīōū",
|
||||||
|
"V": "aeiou",
|
||||||
|
"Z": "bgd",
|
||||||
|
"F": "ie",
|
||||||
|
"C": "ptcqbdgmnlrhs",
|
||||||
|
"B": "ou"
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": [
|
||||||
"(?P<b>%B)ct": "$but",
|
["[sm]$", ""],
|
||||||
"(?P<b>%V)t(?P<a>%V)": "$bd$a",
|
["i(%V)", "j$1"],
|
||||||
"u$": "o",
|
["%L", "%V"],
|
||||||
"(?P<b>%V)c(?P<a>%V)": "$bg$a",
|
["(%Vr)e$", "$1"],
|
||||||
"(?P<b>%V)v(?P<a>%V)": "$b$a",
|
["(%V)v(%V)", "${1}$2"],
|
||||||
"gn": "nh",
|
["u$", "o"],
|
||||||
"ii": "i",
|
["gn", "nh"],
|
||||||
"(?P<f>%F)ct": "$fit",
|
["(%V)p(%V)", "${1}b$2"],
|
||||||
"i(?P<v>%V)": "j$v",
|
["(%V)t(%V)", "${1}d$2"],
|
||||||
"(?P<b>%V)p(?P<a>%V)": "$vb$a",
|
["(%V)c(%V)", "${1}g$2"],
|
||||||
"(?P<v>%Vr)e$": "$v",
|
["(%F)ct", "${1}it"],
|
||||||
"lj": "lh",
|
["(%B)ct", "${1}ut"],
|
||||||
"[sm]$": "",
|
["(%V)pt", "${1}t"],
|
||||||
"%L": "%V",
|
["ii", "i"],
|
||||||
"(?P<v>%V)pt": "$vt",
|
["(%C)er(%V)", "${1}r$2"],
|
||||||
"(?P<c>%C)er(?P<v>%V)": "$cr$v"
|
["lj", "lh"]
|
||||||
}
|
]
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
@ -88,30 +92,94 @@
|
|||||||
---
|
---
|
||||||
version: "1"
|
version: "1"
|
||||||
categories:
|
categories:
|
||||||
Z: bgd
|
|
||||||
S: ptc
|
|
||||||
V: aeiou
|
|
||||||
F: ie
|
|
||||||
L: āēīōū
|
|
||||||
B: ou
|
B: ou
|
||||||
|
S: ptc
|
||||||
|
L: āēīōū
|
||||||
|
Z: bgd
|
||||||
C: ptcqbdgmnlrhs
|
C: ptcqbdgmnlrhs
|
||||||
|
F: ie
|
||||||
|
V: aeiou
|
||||||
rules:
|
rules:
|
||||||
"%L": "%V"
|
- - "[sm]$"
|
||||||
(?P<b>%V)v(?P<a>%V): $b$a
|
- ""
|
||||||
u$: o
|
- - i(%V)
|
||||||
"[sm]$": ""
|
- j$1
|
||||||
gn: nh
|
- - "%L"
|
||||||
(?P<f>%F)ct: $fit
|
- "%V"
|
||||||
(?P<b>%V)p(?P<a>%V): $vb$a
|
- - (%Vr)e$
|
||||||
ii: i
|
- $1
|
||||||
(?P<c>%C)er(?P<v>%V): $cr$v
|
- - (%V)v(%V)
|
||||||
lj: lh
|
- "${1}$2"
|
||||||
(?P<v>%Vr)e$: $v
|
- - u$
|
||||||
(?P<b>%V)c(?P<a>%V): $bg$a
|
- o
|
||||||
(?P<b>%B)ct: $but
|
- - gn
|
||||||
i(?P<v>%V): j$v
|
- nh
|
||||||
(?P<b>%V)t(?P<a>%V): $bd$a
|
- - (%V)p(%V)
|
||||||
(?P<v>%V)pt: $vt
|
- "${1}b$2"
|
||||||
|
- - (%V)t(%V)
|
||||||
|
- "${1}d$2"
|
||||||
|
- - (%V)c(%V)
|
||||||
|
- "${1}g$2"
|
||||||
|
- - (%F)ct
|
||||||
|
- "${1}it"
|
||||||
|
- - (%B)ct
|
||||||
|
- "${1}ut"
|
||||||
|
- - (%V)pt
|
||||||
|
- "${1}t"
|
||||||
|
- - ii
|
||||||
|
- i
|
||||||
|
- - (%C)er(%V)
|
||||||
|
- "${1}r$2"
|
||||||
|
- - lj
|
||||||
|
- lh
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Although most of the rules are not between double quotes, it is preferable to
|
||||||
|
write them as follows in order to avoid any issues with LangEvolveRs:
|
||||||
|
#+BEGIN_SRC yaml
|
||||||
|
---
|
||||||
|
version: "1"
|
||||||
|
categories:
|
||||||
|
B: ou
|
||||||
|
S: ptc
|
||||||
|
L: āēīōū
|
||||||
|
Z: bgd
|
||||||
|
C: ptcqbdgmnlrhs
|
||||||
|
F: ie
|
||||||
|
V: aeiou
|
||||||
|
rules:
|
||||||
|
- - "[sm]$"
|
||||||
|
- ""
|
||||||
|
- - "i(%V)"
|
||||||
|
- "j$1"
|
||||||
|
- - "%L"
|
||||||
|
- "%V"
|
||||||
|
- - "(%Vr)e$"
|
||||||
|
- "$1"
|
||||||
|
- - "(%V)v(%V)"
|
||||||
|
- "${1}$2"
|
||||||
|
- - "u$"
|
||||||
|
- "o"
|
||||||
|
- - "gn"
|
||||||
|
- "nh"
|
||||||
|
- - "(%V)p(%V)"
|
||||||
|
- "${1}b$2"
|
||||||
|
- - "(%V)t(%V)"
|
||||||
|
- "${1}d$2"
|
||||||
|
- - "(%V)c(%V)"
|
||||||
|
- "${1}g$2"
|
||||||
|
- - "(%F)ct"
|
||||||
|
- "${1}it"
|
||||||
|
- - "(%B)ct"
|
||||||
|
- "${1}ut"
|
||||||
|
- - "(%V)pt"
|
||||||
|
- "${1}t"
|
||||||
|
- - "ii"
|
||||||
|
- "i"
|
||||||
|
- - "(%C)er(%V)"
|
||||||
|
- "${1}r$2"
|
||||||
|
- - "lj"
|
||||||
|
- "lh"
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
You can find more information on how to use regular expressions with this
|
You can find more information on how to use regular expressions with this
|
||||||
|
Loading…
Reference in New Issue
Block a user