From a77454913966b3aca1ca21a08082738d7950f70e Mon Sep 17 00:00:00 2001 From: Evgeny Egorochkin Date: Tue, 28 Sep 2010 09:48:15 +0000 Subject: [PATCH] =?UTF-8?q?uni2ascii:=20packaged=20Patch=20by=20Cillian=20?= =?UTF-8?q?de=20R=C3=B3iste?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/nixpkgs/trunk/; revision=23984 --- pkgs/tools/text/uni2ascii/default.nix | 38 +++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 40 insertions(+) create mode 100644 pkgs/tools/text/uni2ascii/default.nix diff --git a/pkgs/tools/text/uni2ascii/default.nix b/pkgs/tools/text/uni2ascii/default.nix new file mode 100644 index 000000000000..b4573118a49f --- /dev/null +++ b/pkgs/tools/text/uni2ascii/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "uni2ascii-4.15"; + src = fetchurl { + url = "http://billposer.org/Software/Downloads/${name}.tar.gz"; + sha256 = "0vlwsqrzmdsb2mx0hbhmw1dvzy56jk8779hphnj6yxijryva6g2v"; + }; + + meta = { + license = "GPLv3"; + homepage = http://billposer.org/Software/uni2ascii.html; + description = "Converts between UTF-8 and many 7-bit ASCII equivalents and back"; + + longDescription = '' + This package provides conversion in both directions between UTF-8 + Unicode and more than thirty 7-bit ASCII equivalents, including + RFC 2396 URI format and RFC 2045 Quoted Printable format, the + representations used in HTML, SGML, XML, OOXML, the Unicode + standard, Rich Text Format, POSIX portable charmaps, POSIX locale + specifications, and Apache log files, and the escapes used for + including Unicode in Ada, C, Common Lisp, Java, Pascal, Perl, + Postscript, Python, Scheme, and Tcl. + + Such ASCII equivalents are useful when including Unicode text in + program source, when debugging, and when entering text into web + programs that can handle the Unicode character set but are not + 8-bit safe. For example, MovableType, the blog software, truncates + posts as soon as it encounters a byte with the high bit + set. However, if Unicode is entered in the form of HTML numeric + character entities, Movable Type will not garble the post. + + It also provides ways of converting non-ASCII characters to + similar ASCII characters, e.g. by stripping diacritics. + ''; + maintainers = [ "cillian.deroiste@gmail.com" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b49d999cbf2..84e49e8d1b7b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -617,6 +617,8 @@ let unix2dos = callPackage ../tools/text/unix2dos { }; + uni2ascii = callPackage ../tools/text/uni2ascii { }; + gawk = callPackage ../tools/text/gawk { }; gdmap = callPackage ../tools/system/gdmap {