summaryrefslogtreecommitdiff
path: root/language/hebrew/makor/omega/otp/makor2/m2start.otp
diff options
context:
space:
mode:
Diffstat (limited to 'language/hebrew/makor/omega/otp/makor2/m2start.otp')
-rw-r--r--language/hebrew/makor/omega/otp/makor2/m2start.otp36
1 files changed, 36 insertions, 0 deletions
diff --git a/language/hebrew/makor/omega/otp/makor2/m2start.otp b/language/hebrew/makor/omega/otp/makor2/m2start.otp
new file mode 100644
index 0000000000..b387d5a7ef
--- /dev/null
+++ b/language/hebrew/makor/omega/otp/makor2/m2start.otp
@@ -0,0 +1,36 @@
+%% This OTP simply places word-start and word-end markers.
+
+input:
+ 1;
+output:
+ 1;
+
+aliases:
+ SPACE = 32
+ ;
+ W_SPACE = (0-32) % white space
+ ;
+ LATIN_ALPHABET = (65-90|94|97-122)
+ ;
+ NON_LATIN = ^(65-90|94|97-122)
+ ;
+
+expressions:
+ {LATIN_ALPHABET}{W_SPACE} => \1 255 % word ending
+ <= \2
+ ;
+ {LATIN_ALPHABET}{NON_LATIN} => \1 255
+ <= \2
+ ;
+ {LATIN_ALPHABET} end: => \1 255
+ ;
+ {W_SPACE}{LATIN_ALPHABET} => \1 254 % word beginning
+ <= \2
+ ;
+ {NON_LATIN}{LATIN_ALPHABET} => \1 254
+ <= \2
+ ;
+ beg: {LATIN_ALPHABET} => 254
+ <= \1
+ ;
+