diff options
Diffstat (limited to 'Master/texmf-dist/doc/context/sources/general/manuals/languages/languages-numbering.tex')
-rw-r--r-- | Master/texmf-dist/doc/context/sources/general/manuals/languages/languages-numbering.tex | 44 |
1 files changed, 28 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/context/sources/general/manuals/languages/languages-numbering.tex b/Master/texmf-dist/doc/context/sources/general/manuals/languages/languages-numbering.tex index 510f5103486..3464826df6b 100644 --- a/Master/texmf-dist/doc/context/sources/general/manuals/languages/languages-numbering.tex +++ b/Master/texmf-dist/doc/context/sources/general/manuals/languages/languages-numbering.tex @@ -1,9 +1,9 @@ % language=uk -\environment languages-environment - \startcomponent languages-numbering +\environment languages-environment + \startchapter[title=Numbering][color=darkgreen] \startsection[title=Introduction] @@ -19,13 +19,13 @@ how English, Spanish and Slovenian numbers: \blank \startpacked \startcolor[maincolor] -\noindentation\dontleavehmode +\dontleavehmode {\ttbf\mainlanguage[en]\dorecurse{28} {\hbox to 1.5em{\convertnumber{alphabetic}{#1}\hss}}}\par -\noindentation\dontleavehmode +\dontleavehmode {\ttbf\mainlanguage[es]\dorecurse{28} {\hbox to 1.5em{\convertnumber{alphabetic}{#1}\hss}}}\par -\noindentation\dontleavehmode +\dontleavehmode {\ttbf\mainlanguage[sl]\dorecurse{28} {\hbox to 1.5em{\convertnumber{alphabetic}{#1}\hss}}}\par \stopcolor @@ -153,7 +153,7 @@ application: \typebuffer -\noindentation What renders as: +What renders as: \startlines[color=maincolor] \getbuffer @@ -170,7 +170,7 @@ a label text depending on the valu ebeing non|-|zero. \typebuffer -\noindentation This gives: +This gives: \startlines[color=maincolor] \getbuffer @@ -190,7 +190,7 @@ So, \typebuffer -\noindentation Gives: +Gives: \startlines[color=maincolor] \getbuffer @@ -200,17 +200,17 @@ There are also some non language related converters that we mention here for completeness: \blank -\noindentation\type {set 0}: \startcolor[maincolor]\dorecurse{20}{\convertnumber{set 0}{#1} }\stopcolor\par -\noindentation\type {set 1}: \startcolor[maincolor]\dorecurse{20}{\convertnumber{set 1}{#1} }\stopcolor\par -\noindentation\type {set 2}: \startcolor[maincolor]\dorecurse{20}{\convertnumber{set 2}{#1} }\stopcolor\par -\noindentation\type {set 3}: \startcolor[maincolor]\dorecurse{20}{\convertnumber{set 3}{#1} }\stopcolor\par +\type {set 0}: \startcolor[maincolor]\dorecurse{20}{\convertnumber{set 0}{#1} }\stopcolor\par +\type {set 1}: \startcolor[maincolor]\dorecurse{20}{\convertnumber{set 1}{#1} }\stopcolor\par +\type {set 2}: \startcolor[maincolor]\dorecurse{20}{\convertnumber{set 2}{#1} }\stopcolor\par +\type {set 3}: \startcolor[maincolor]\dorecurse{20}{\convertnumber{set 3}{#1} }\stopcolor\par \blank When a set overruns we start again at the first element. -\noindentation The ordinal converter produces output like \color [maincolor] -{\convertnumber {ordinal}{123}} and \color [maincolor] {\convertnumber -{ordinal}{654}}. The corresponding string renderer is \type {\highordinalstr}. +The ordinal converter produces output like \color [maincolor] {\convertnumber +{ordinal}{123}} and \color [maincolor] {\convertnumber {ordinal}{654}}. The +corresponding string renderer is \type {\highordinalstr}. % quite limited currently op not documented here: % @@ -250,7 +250,7 @@ specific date with \type {\date}, for instance: \getbuffer \stoplines -\noindentation Possible elements of the specification are: +Possible elements of the specification are: \starttabulate \FL @@ -284,6 +284,18 @@ specific date with \type {\date}, for instance: \LL \stoptabulate +There are also some converters built in (more can be added), for instance: + +\startbuffer +The current {\em gregorian} date \currentdate [month, day, {, }, year] is +in {\em jalali} \currentdate [jalali:to, month, day, {, }, year] but we +can also as a specific one, so {\em jalali} \date [y=1395, m=4, d=18] +[month, day, {, }, year] is {\em gregorian} \date [y=1395, m=4, d=18] +[jalali:from, month, day, {, }, year]. +\stopbuffer + +\typebuffer \startnarrower \getbuffer \stopnarrower + \stopsection % \startsection[title=Counters] |