aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2005-10-08 03:58:32 +0800
committerpav <pav@FreeBSD.org>2005-10-08 03:58:32 +0800
commitb7695a52c60eb8149acf8c5bf771cf8cfd8b1b02 (patch)
treeb0d375bab29058efc7aa4436d0dfb837a8128994 /textproc
parentec99e54532f782c8a1ac7e858a7a9a5640ebf50a (diff)
downloadfreebsd-ports-gnome-b7695a52c60eb8149acf8c5bf771cf8cfd8b1b02.tar.gz
freebsd-ports-gnome-b7695a52c60eb8149acf8c5bf771cf8cfd8b1b02.tar.zst
freebsd-ports-gnome-b7695a52c60eb8149acf8c5bf771cf8cfd8b1b02.zip
With Numbers_Words class you can convert numbers written in arabic digits to
words in several languages. You can convert an integer between -infinity and infinity. If your system does not support such long numbers you can call Numbers_Words::toWords() with just a string. PR: ports/86893 Submitted by: Piotr Rybicki <meritus@innervision.pl>
Diffstat (limited to 'textproc')
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/pear-Numbers_Words/Makefile30
-rw-r--r--textproc/pear-Numbers_Words/distinfo2
-rw-r--r--textproc/pear-Numbers_Words/pkg-descr16
4 files changed, 49 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile
index 09d802f0fda1..e895c8c47ab3 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -532,6 +532,7 @@
SUBDIR += pardiff
SUBDIR += pdftohtml
SUBDIR += pear-Numbers_Roman
+ SUBDIR += pear-Numbers_Words
SUBDIR += pear-Spreadsheet_Excel_Writer
SUBDIR += pear-XML_Beautifier
SUBDIR += pear-XML_HTMLSax
diff --git a/textproc/pear-Numbers_Words/Makefile b/textproc/pear-Numbers_Words/Makefile
new file mode 100644
index 000000000000..1adfc01b483b
--- /dev/null
+++ b/textproc/pear-Numbers_Words/Makefile
@@ -0,0 +1,30 @@
+# Ports collection makefile for: pear-Numbers_Words
+# Date created: 05 October 2005
+# Whom: Piotr Rybicki (<meritus@innervision.pl>)
+#
+# $FreeBSD$
+#
+
+PORTNAME= Numbers_Words
+PORTVERSION= 0.14.0
+CATEGORIES= textproc pear
+
+MAINTAINER= meritus@innervision.pl
+COMMENT= PEAR package provides methods for spelling numerals in words
+
+BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+FILES= Words.php Words/lang.bg.php Words/lang.cs.php \
+ Words/lang.de.php Words/lang.dk.php Words/lang.ee.php \
+ Words/lang.en_100.php Words/lang.en_GB.php \
+ Words/lang.en_US.php Words/lang.es.php Words/lang.es_AR.php \
+ Words/lang.fr.php Words/lang.fr_BE.php Words/lang.he.php \
+ Words/lang.hu_HU.php Words/lang.id.php Words/lang.it_IT.php \
+ Words/lang.lt.php Words/lang.pl.php Words/lang.pt_BR.php \
+ Words/lang.ru.php Words/lang.sv.php
+TESTS= test-numbers-words.php clitest.php
+
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
+.include <bsd.port.post.mk>
diff --git a/textproc/pear-Numbers_Words/distinfo b/textproc/pear-Numbers_Words/distinfo
new file mode 100644
index 000000000000..1f8ec030b204
--- /dev/null
+++ b/textproc/pear-Numbers_Words/distinfo
@@ -0,0 +1,2 @@
+MD5 (PEAR/Numbers_Words-0.14.0.tgz) = b98c6d882c8419ba83e4e9992e80d947
+SIZE (PEAR/Numbers_Words-0.14.0.tgz) = 44088
diff --git a/textproc/pear-Numbers_Words/pkg-descr b/textproc/pear-Numbers_Words/pkg-descr
new file mode 100644
index 000000000000..556428fe8f25
--- /dev/null
+++ b/textproc/pear-Numbers_Words/pkg-descr
@@ -0,0 +1,16 @@
+With Numbers_Words class you can convert numbers written in arabic digits to
+words in several languages. You can convert an integer between -infinity and
+infinity. If your system does not support such long numbers you can
+call Numbers_Words::toWords() with just a string.
+
+With the Numbers_Words::toCurrency($num, $locale, 'USD') method you can convert
+a number (decimal and fraction part) to words with currency name.
+
+The following languages are supported: bg (Bulgarian), cs (Czech), de (German),
+dk (Danish), ee (Estonian), en_100 (Donald Knuth system, English),
+en_GB (British English), en_US (American English), es (Spanish Castellano),
+es_AR (Argentinian Spanish), fr (French), fr_BE (French Belgium), he (Hebrew),
+hu_HU (Hungarian), id (Indonesian), it_IT (Italian), lt (Lithuanian),
+pl (Polish), pt_BR (Brazilian Portuguese), ru (Russian), sv (Swedish).
+
+WWW: http://pear.php.net/package/Numbers_Words