summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/numending
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/numending
Initial commit
Diffstat (limited to 'macros/latex/contrib/numending')
-rw-r--r--macros/latex/contrib/numending/README9
-rw-r--r--macros/latex/contrib/numending/numending.pdfbin0 -> 183481 bytes
-rw-r--r--macros/latex/contrib/numending/numending.sty6
3 files changed, 15 insertions, 0 deletions
diff --git a/macros/latex/contrib/numending/README b/macros/latex/contrib/numending/README
new file mode 100644
index 0000000000..da3d994a53
--- /dev/null
+++ b/macros/latex/contrib/numending/README
@@ -0,0 +1,9 @@
+Description
+===========This package is intended for the formation of morphological endings of any units for the East Slavic group of languages (Russian, Ukrainian, Belarusian).
+
+
+Copyright
+=====================
+
+Copyright (C) 2015 by Dariya Kirillova, Kirillova_dariya@mail.ru
+
diff --git a/macros/latex/contrib/numending/numending.pdf b/macros/latex/contrib/numending/numending.pdf
new file mode 100644
index 0000000000..7e037a750e
--- /dev/null
+++ b/macros/latex/contrib/numending/numending.pdf
Binary files differ
diff --git a/macros/latex/contrib/numending/numending.sty b/macros/latex/contrib/numending/numending.sty
new file mode 100644
index 0000000000..6de5808f03
--- /dev/null
+++ b/macros/latex/contrib/numending/numending.sty
@@ -0,0 +1,6 @@
+\ProvidesPackage{numending}
+\def\numending#1#2#3#4{\ifnum#1>100
+\numending{\numexpr#1-100\relax}{#2}{#3}{#4}\else \ifnum#1 < 21
+\ifnum#1> 4 #4\else\ifnum#1=1 #2 \else#3\fi\fi\else \ifnum#1 < 31
+\numending{\numexpr#1-20\relax}{#2}{#3}{#4}\else
+\numending{\numexpr#1-10\relax}{#2}{#3}{#4}\fi\fi\fi} \ No newline at end of file