summaryrefslogtreecommitdiff
path: root/textproc/p5-Text-Unidecode
diff options
context:
space:
mode:
authortonnerre <tonnerre@pkgsrc.org>2009-02-24 11:59:08 +0000
committertonnerre <tonnerre@pkgsrc.org>2009-02-24 11:59:08 +0000
commit2f25d140a8a0bf027f6d59781914e7ce921c8ea9 (patch)
treed8603160fa1c4ef6fcbf5e1c7c6c233c830094c9 /textproc/p5-Text-Unidecode
parent4a4996c76ac21fd899f418adc95c187263754618 (diff)
downloadpkgsrc-2f25d140a8a0bf027f6d59781914e7ce921c8ea9.tar.gz
Initial import of Text::Unidecode version 0.04.
It often happens that you have non-Roman text data in Unicode, but you can't display it -- usually because you're trying to show it to a user via an application that doesn't support Unicode, or because the fonts you need aren't accessible. You could represent the Unicode characters as "???????" or "\15BA\15A0\1610...", but that's nearly useless to the user who actually wants to read what the text says. What Text::Unidecode provides is a function, unidecode(...) that takes Unicode data and tries to represent it in US-ASCII characters (i.e., the universally displayable characters between 0x00 and 0x7F). The representation is almost always an attempt at transliteration -- i.e., conveying, in Roman letters, the pronunciation expressed by the text in some other writing system.
Diffstat (limited to 'textproc/p5-Text-Unidecode')
-rw-r--r--textproc/p5-Text-Unidecode/DESCR12
-rw-r--r--textproc/p5-Text-Unidecode/Makefile18
-rw-r--r--textproc/p5-Text-Unidecode/distinfo5
3 files changed, 35 insertions, 0 deletions
diff --git a/textproc/p5-Text-Unidecode/DESCR b/textproc/p5-Text-Unidecode/DESCR
new file mode 100644
index 00000000000..140c921c545
--- /dev/null
+++ b/textproc/p5-Text-Unidecode/DESCR
@@ -0,0 +1,12 @@
+It often happens that you have non-Roman text data in Unicode, but you can't
+display it -- usually because you're trying to show it to a user via an
+application that doesn't support Unicode, or because the fonts you need aren't
+accessible. You could represent the Unicode characters as "???????" or
+"\15BA\15A0\1610...", but that's nearly useless to the user who actually wants
+to read what the text says.
+
+What Text::Unidecode provides is a function, unidecode(...) that takes Unicode
+data and tries to represent it in US-ASCII characters (i.e., the universally
+displayable characters between 0x00 and 0x7F). The representation is almost
+always an attempt at transliteration -- i.e., conveying, in Roman letters, the
+pronunciation expressed by the text in some other writing system.
diff --git a/textproc/p5-Text-Unidecode/Makefile b/textproc/p5-Text-Unidecode/Makefile
new file mode 100644
index 00000000000..09b222b8caa
--- /dev/null
+++ b/textproc/p5-Text-Unidecode/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/02/24 12:00:22 tonnerre Exp $
+#
+
+DISTNAME= Text-Unidecode-0.04
+PKGNAME= p5-${DISTNAME}
+CATEGORIES= textproc perl5
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Text/}
+
+MAINTAINER= tonnerre@NetBSD.org
+HOMEPAGE= http://search.cpan.org/dist/Text-Unidecode/
+COMMENT= Perl5 module that transliterates Unicode to US-ASCII
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+PERL5_PACKLIST= auto/Text/Unidecode/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/p5-Text-Unidecode/distinfo b/textproc/p5-Text-Unidecode/distinfo
new file mode 100644
index 00000000000..9c54afc466b
--- /dev/null
+++ b/textproc/p5-Text-Unidecode/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/02/24 12:00:40 tonnerre Exp $
+
+SHA1 (Text-Unidecode-0.04.tar.gz) = baf3e2f90011e25fb10cb4d47ade53cc3977b3af
+RMD160 (Text-Unidecode-0.04.tar.gz) = 4a56c5b7494894c516e01f98ec7af1c7193a7d5b
+Size (Text-Unidecode-0.04.tar.gz) = 103091 bytes