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