summaryrefslogtreecommitdiff
path: root/deprecated/old-lib/resource/common/TextX.gf
diff options
context:
space:
mode:
authoraarne <aarne@chalmers.se>2009-12-09 09:47:16 +0000
committeraarne <aarne@chalmers.se>2009-12-09 09:47:16 +0000
commitc8ceed08efcc0bdc1fcbd89bce643d9f52f0991b (patch)
tree5f0b314341c129eba1bc67b8b887fb8a4486fad8 /deprecated/old-lib/resource/common/TextX.gf
parent101df06f6c8380328d4266adadac3ab6d1bac0b3 (diff)
moving a few things to deprecated
Diffstat (limited to 'deprecated/old-lib/resource/common/TextX.gf')
-rw-r--r--deprecated/old-lib/resource/common/TextX.gf11
1 files changed, 11 insertions, 0 deletions
diff --git a/deprecated/old-lib/resource/common/TextX.gf b/deprecated/old-lib/resource/common/TextX.gf
new file mode 100644
index 000000000..a5ddebc54
--- /dev/null
+++ b/deprecated/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} ;
+
+}