summaryrefslogtreecommitdiff
path: root/old-lib/resource/common/TextX.gf
diff options
context:
space:
mode:
Diffstat (limited to 'old-lib/resource/common/TextX.gf')
-rw-r--r--old-lib/resource/common/TextX.gf11
1 files changed, 11 insertions, 0 deletions
diff --git a/old-lib/resource/common/TextX.gf b/old-lib/resource/common/TextX.gf
new file mode 100644
index 000000000..a5ddebc54
--- /dev/null
+++ b/old-lib/resource/common/TextX.gf
@@ -0,0 +1,11 @@
+concrete TextX of Text = CommonX ** {
+
+-- This will work for almost all languages except Spanish.
+
+ lin
+ TEmpty = {s = []} ;
+ TFullStop x xs = {s = x.s ++ "." ++ xs.s} ;
+ TQuestMark x xs = {s = x.s ++ "?" ++ xs.s} ;
+ TExclMark x xs = {s = x.s ++ "!" ++ xs.s} ;
+
+}