ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Persian digits in math formulas
@ 2013-08-15 14:22 Mingranina Gingranina
  2013-08-15 15:39 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Mingranina Gingranina @ 2013-08-15 14:22 UTC (permalink / raw)
  To: ntg-context

Dear All,
 Hello,

 I am trying to use Persian digits in math formulas. My document reads:

\font\4 = {name:dejavusans} at 10pt

\font\5 = {name:dejavusans} at 7pt

\font\6 = {name:dejavusans} at 5pt

\textfont4=\4 \scriptfont4=\5 \scriptscriptfont4=\6

\Umathcode`3="1"4`۳

\definefontfeature [persian] [arabic]

\mainlanguage[pe]

\starttext

  \definedfont[dejavusans*persian]

  \setupalign[r2l]

    این یک آزمایش است.

  3+2=5

  $3+2=5$

    \setupalign[l2r]

    This is a test.

  3+2=5

  $3+2=5$

\stoptext

 However in the output the replaced digit "3" disappears.
 Any help is gratefully appreciated.

 Thanks,
 Mingranina
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-08-17 16:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-15 14:22 Persian digits in math formulas Mingranina Gingranina
2013-08-15 15:39 ` Hans Hagen
2013-08-15 17:30   ` Mingranina Gingranina
2013-08-15 17:42     ` Marco Patzer
2013-08-15 17:43     ` Wolfgang Schuster
2013-08-15 20:50     ` Hans Hagen
2013-08-17  7:57       ` Mingranina Gingranina
2013-08-17 12:38         ` Wolfgang Schuster
2013-08-17 16:35           ` Mingranina Gingranina
2013-08-15 22:03     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).