Open dbitouze opened 8 years ago
Yes, I agree the point, that would allow to make it easier to have roman ordinals like « François Ier », so the other issue #21 that you opened on this would be easy to fulfill.
I need some more thinking about that… Anyway I would like first to be finished with issue #18 first.
Currently,
\ordinalnum{⟨number⟩}
prints⟨number⟩
followed by its suffix which depends on the underlying language.It could be helpful for
fmtcount
to provide a public (or private) macro, say\ordinalnumsuffix{⟨number⟩}
, that prints only the suffix of\ordinalnum{⟨number⟩}
. For instance in English:\ordinalnumsuffix{1}
would print "st",\ordinalnumsuffix{2}
would print "nd",\ordinalnumsuffix{3}
would print "rd",\ordinalnumsuffix{4}
would print "th",\ordinalnumsuffix{20}
would print "th",\ordinalnumsuffix{21}
would print "st",\ordinalnumsuffix{22}
would print "nd",\ordinalnumsuffix{23}
would print "rd",\ordinalnumsuffix{24}
would print "th",Hence one can use for other tasks all the
fmtcount
's machinery concerning the grammar structure and different abbreviations of the different languages.