From d45f700b1d4e5b74fe927d5247b61b2ccf84fc8a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 30 Sep 2017 23:09:21 +0000 Subject: numspell (30sep17) git-svn-id: svn://tug.org/texlive/trunk@45441 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/numspell/README | 7 +-- Master/texmf-dist/doc/latex/numspell/numspell.pdf | Bin 220502 -> 222065 bytes Master/texmf-dist/doc/latex/numspell/numspell.tex | 57 +++++++++++++++------- 3 files changed, 44 insertions(+), 20 deletions(-) (limited to 'Master/texmf-dist/doc') diff --git a/Master/texmf-dist/doc/latex/numspell/README b/Master/texmf-dist/doc/latex/numspell/README index 36738e13361..9afd9185e2f 100644 --- a/Master/texmf-dist/doc/latex/numspell/README +++ b/Master/texmf-dist/doc/latex/numspell/README @@ -2,8 +2,8 @@ numspell.sty package Copyright 2017- by Tibor Tomacs -Package for spelling cardinal and ordinal numbers. -Supported languages are English, German, French and Hungarian. +This package supports the spelling of cardinal and ordinal numbers. +Supported languages are English, French, German, Hungarian and Italian. This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 @@ -22,7 +22,8 @@ This work consists of the files README (this file) numspell.sty (main package file) numspell-english.sty (English package for numspell) -numspell-german.sty (German package for numspell) numspell-french.sty (French package for numspell) +numspell-german.sty (German package for numspell) numspell-magyar.sty (Hungarian package for numspell) +numspell-italian.sty (Italian package for numspell) numspell.tex and the derived file numspell.pdf (documentation). \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/numspell/numspell.pdf b/Master/texmf-dist/doc/latex/numspell/numspell.pdf index 74ad6ce060e..60ea99893fc 100644 Binary files a/Master/texmf-dist/doc/latex/numspell/numspell.pdf and b/Master/texmf-dist/doc/latex/numspell/numspell.pdf differ diff --git a/Master/texmf-dist/doc/latex/numspell/numspell.tex b/Master/texmf-dist/doc/latex/numspell/numspell.tex index 6c8467b8213..5c8186fe483 100644 --- a/Master/texmf-dist/doc/latex/numspell/numspell.tex +++ b/Master/texmf-dist/doc/latex/numspell/numspell.tex @@ -21,7 +21,7 @@ \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{numspell} -\usepackage[magyar,ngerman,french,english]{babel} +\usepackage[magyar,italian,ngerman,french,english]{babel} \usepackage{listings,xcolor,amsmath,upquote} \usepackage[group-separator={,}]{siunitx} \flushbottom @@ -52,7 +52,7 @@ keepspaces]} \begin{document} -\title{The {\bfseries\sffamily numspell} package\\{\large v1.1 (2017/09/20)}} +\title{The {\bfseries\sffamily numspell} package\\{\large v1.2 (2017/09/30)}} \author{Tibor Tómács\\{\normalsize\url{tomacs.tibor@uni-eszterhazy.hu}}} \date{} \maketitle @@ -60,7 +60,7 @@ keepspaces]} \section{Introduction} The aim of the \texttt{numspell} package is to spell the cardinal and ordinal numbers from 0 to $10^{67}-1$ (i.e.~maximum 66 digits). -Currently, the supported languages are English, German, French and Hungarian. +Currently, the supported languages are English, French, German, Hungarian and Italian. The spelling will happen in the current language. The \texttt{numspell} package requires the services of the following packages: \texttt{xstring}, \texttt{etoolbox}, \texttt{pdftexcmds}. @@ -388,13 +388,28 @@ For example \thenumspellMyNum} \end{description} +\section{Commands for Italian language} +The following commands only work, if \texttt{italian} language is active. +\begin{description} +\selectlanguage{italian} +\item\commandinline|\numspellitmasculine| (default)\\ +The ordinal numbers will be printed in masculine form. For example\\ +\verb|\ordnumspell{1}| $\to$ \ordnumspell{1} + +\item\commandinline|\numspellitfeminine|\\ +The ordinal numbers will be printed in feminine form. For example\\ +\verb|\numspellitfeminine\ordnumspell{1};|\\ +\verb|\numspellitmasculine\ordnumspell{1}|\\[2mm] +{\numspellitfeminine\ordnumspell{1}}; {\numspellitmasculine\ordnumspell{1}} +\end{description} + \section{Examples} \subsection*{Example \stepcounter{subsection}\arabic{subsection}} \begin{examplelst} \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} -\usepackage[magyar,ngerman,french,english]{babel} +\usepackage[magyar,italian,ngerman,french,english]{babel} \usepackage{numspell} \usepackage[group-separator={,}]{siunitx} \begin{document} @@ -402,49 +417,57 @@ For example \def\mynum{123456789} \noindent -In British English the spelling of \num{\mynum} is -\emph{``\numspell{\mynum}''}. - -\smallskip\noindent In American English the spelling of \num{\mynum} is {\numspellUS\emph{``\numspell{\mynum}''}}. \smallskip\noindent -In German the spelling of \num{\mynum} is -{\selectlanguage{ngerman}\emph{``\numspell{\mynum}''}}. +In British English the spelling of \num{\mynum} is +\emph{``\numspell{\mynum}''}. \smallskip\noindent In French the spelling of \num{\mynum} is {\selectlanguage{french}\emph{``\numspell{\mynum}''}}. +\smallskip\noindent +In German the spelling of \num{\mynum} is +{\selectlanguage{ngerman}\emph{``\numspell{\mynum}''}}. + \smallskip\noindent In Hungarian the spelling of \num{\mynum} is {\selectlanguage{magyar}\emph{`'\numspell{\mynum}''}}. +\smallskip\noindent +In Italian the spelling of \num{\mynum} is +{\selectlanguage{italian}\emph{``\numspell{\mynum}''}}. + \end{document} \end{examplelst} \def\mynum{123456789} \noindent -In British English the spelling of \num{\mynum} is \emph{``\numspell{\mynum}''}. - -\smallskip\noindent In American English the spelling of \num{\mynum} is {\numspellUS\emph{``\numspell{\mynum}''}}. \smallskip\noindent -In German the spelling of \num{\mynum} is -{\selectlanguage{ngerman}\emph{``\numspell{\mynum}''}}. +In British English the spelling of \num{\mynum} is \emph{``\numspell{\mynum}''}. \smallskip\noindent In French the spelling of \num{\mynum} is {\selectlanguage{french}\emph{``\numspell{\mynum}''}}. +\smallskip\noindent +In German the spelling of \num{\mynum} is +{\selectlanguage{ngerman}\emph{``\numspell{\mynum}''}}. + \smallskip\noindent In Hungarian the spelling of \num{\mynum} is {\selectlanguage{magyar}\emph{`'\numspell{\mynum}''}}. +\smallskip\noindent +In Italian the spelling of \num{\mynum} is +{\selectlanguage{italian}\emph{``\numspell{\mynum}''}}. + \bigskip \subsection*{Example \stepcounter{subsection}\arabic{subsection}} \begin{examplelst} @@ -472,7 +495,7 @@ In Hungarian the spelling of \num{\mynum} is \begin{document} The -\@whilenum\value{mycount}<31 +\@whilenum\value{mycount}<51 \do{\ordnumspell{\themycount}\stepcounter{mycount},\ }\dots \end{document} @@ -481,7 +504,7 @@ The \makeatletter \newcounter{mycount} The -\@whilenum\value{mycount}<31 +\@whilenum\value{mycount}<51 \do{\ordnumspell{\themycount}\stepcounter{mycount},\ }\dots \makeatother -- cgit v1.2.3