summaryrefslogtreecommitdiff
path: root/next-lib/src/common/TextX.gf
blob: a5ddebc549a734b44feb14665ab8fe13ea3e8ddc (plain)
1
2
3
4
5
6
7
8
9
10
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} ;

}