From 64b449826c9aa1710e05ade8ac82b6ef23a788a8 Mon Sep 17 00:00:00 2001 From: "virk.shafqat" Date: Thu, 19 May 2011 15:57:12 +0000 Subject: [PATCH] refinementsTextUrd-11-05-19 --- src/urdu/TextUrd.gf | 11 +++++++++++ src/urdu/src/TextUrd.gf | 11 +++++++++++ src/urdu/translit.gfs | 1 + 3 files changed, 23 insertions(+) create mode 100644 src/urdu/TextUrd.gf create mode 100644 src/urdu/src/TextUrd.gf diff --git a/src/urdu/TextUrd.gf b/src/urdu/TextUrd.gf new file mode 100644 index 000000000..13b1396a1 --- /dev/null +++ b/src/urdu/TextUrd.gf @@ -0,0 +1,11 @@ +concrete TextUrd of Text = CommonX - [Temp,TTAnt,Tense,TPres,TPast,TFut,TCond] ** { + +-- This works for the special punctuation marks of Urdu but still browser does not display them well so left balnk. + + 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} ; + +} diff --git a/src/urdu/src/TextUrd.gf b/src/urdu/src/TextUrd.gf new file mode 100644 index 000000000..6358e93cd --- /dev/null +++ b/src/urdu/src/TextUrd.gf @@ -0,0 +1,11 @@ +concrete TextUrd of Text = CommonX - [Temp,TTAnt,Tense,TPres,TPast,TFut,TCond] ** { + +-- This works for the special punctuation marks of Urdu. + + 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} ; + +} diff --git a/src/urdu/translit.gfs b/src/urdu/translit.gfs index 65b70e13f..be95fb96f 100644 --- a/src/urdu/translit.gfs +++ b/src/urdu/translit.gfs @@ -9,5 +9,6 @@ rf -file=src/LexiconUrd.gf | ps -env=quotes -to_urdu | wf -file=LexiconUrd.gf rf -file=src/MorphoUrd.gf | ps -env=quotes -to_urdu | wf -file=MorphoUrd.gf rf -file=src/StructuralUrd.gf | ps -env=quotes -to_urdu | wf -file=StructuralUrd.gf rf -file=src/NumeralUrd.gf | ps -env=quotes -to_urdu | wf -file=NumeralUrd.gf +rf -file=src/TextUrd.gf | ps -env=quotes -to_urdu | wf -file=TextUrd.gf