mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
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>
This commit is contained in:
parent
b6aed003a9
commit
59dbb89372
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=144526
@ -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
|
||||
|
30
textproc/pear-Numbers_Words/Makefile
Normal file
30
textproc/pear-Numbers_Words/Makefile
Normal file
@ -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>
|
2
textproc/pear-Numbers_Words/distinfo
Normal file
2
textproc/pear-Numbers_Words/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
MD5 (PEAR/Numbers_Words-0.14.0.tgz) = b98c6d882c8419ba83e4e9992e80d947
|
||||
SIZE (PEAR/Numbers_Words-0.14.0.tgz) = 44088
|
16
textproc/pear-Numbers_Words/pkg-descr
Normal file
16
textproc/pear-Numbers_Words/pkg-descr
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user