1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "https://billposer.org/Software/Downloads/uni2ascii-${version}.tar.gz";
9 hash = "sha256-7tjYOpwdLb0NfKTFJRmYg9cxfWiLQhtXjQmKJ7b/cFY=";
14 url = "https://github.com/Homebrew/formula-patches/raw/bb92449ad6b3878b4d6f472237152df28080df86/uni2ascii/uni2ascii-4.20.patch";
15 hash = "sha256-JQpSntoTbQ7fnmO5Km/pX071360/lOb9jYdxOK2oV/g=";
20 license = lib.licenses.gpl3;
21 homepage = "http://billposer.org/Software/uni2ascii.html";
22 description = "Converts between UTF-8 and many 7-bit ASCII equivalents and back";
25 This package provides conversion in both directions between UTF-8
26 Unicode and more than thirty 7-bit ASCII equivalents, including
27 RFC 2396 URI format and RFC 2045 Quoted Printable format, the
28 representations used in HTML, SGML, XML, OOXML, the Unicode
29 standard, Rich Text Format, POSIX portable charmaps, POSIX locale
30 specifications, and Apache log files, and the escapes used for
31 including Unicode in Ada, C, Common Lisp, Java, Pascal, Perl,
32 Postscript, Python, Scheme, and Tcl.
34 Such ASCII equivalents are useful when including Unicode text in
35 program source, when debugging, and when entering text into web
36 programs that can handle the Unicode character set but are not
37 8-bit safe. For example, MovableType, the blog software, truncates
38 posts as soon as it encounters a byte with the high bit
39 set. However, if Unicode is entered in the form of HTML numeric
40 character entities, Movable Type will not garble the post.
42 It also provides ways of converting non-ASCII characters to
43 similar ASCII characters, e.g. by stripping diacritics.
46 platforms = lib.platforms.all;