[Nix-dev] Patch to add uni2ascii (Converts between UTF-8 and many 7-bit ASCII equivalents and back)
Evgeny Egorochkin
phreedom.stdin at gmail.com
Tue Sep 28 11:49:03 CEST 2010
Committed.
В сообщении от Пятница 24 сентября 2010 17:36:29 автор Cillian de Róiste
написал:
> Hi,
>
> Here's a patch for a command line tool called uni2ascii.
>
> Thanks,
> goibhniu
>
> Index: tools/text/uni2ascii/default.nix
> ===================================================================
> --- tools/text/uni2ascii/default.nix (revision 0)
> +++ tools/text/uni2ascii/default.nix (revision 0)
> @@ -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 at gmail.com" ];
> + };
> +}
> Index: os-specific/linux/ati-drivers/default.nix
> ===================================================================
> --- os-specific/linux/ati-drivers/default.nix (revision 23906)
> +++ os-specific/linux/ati-drivers/default.nix (working copy)
> @@ -29,9 +29,9 @@
> src =
> assert stdenv.system == "x86_64-linux";
> fetchurl {
> - url =
> https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driv
> er-installer-10-4-x86.x86_64.run; - sha256 =
> "1rlqbfv729lray1c72ga4528kj7v4a5nmdznbgx7izwaxip2a45z"; - };
> +url =
> https://a248.e.akamai.net/f/674/9206/0/www2.ati.com/drivers/linux/ati-driv
> er-installer-10-8-x86.x86_64.run; +sha256 =
> "0y7bw85ib57976jb6l2r3ma8rfww2yscx3m9l3wc4c2p3rgcpxrd";
> +};
>
> buildInputs = [xlibs.libXext xlibs.libX11
> xlibs.libXrandr which imake makeWrapper
> Index: top-level/all-packages.nix
> ===================================================================
> --- top-level/all-packages.nix (revision 23906)
> +++ top-level/all-packages.nix (working copy)
> @@ -617,6 +617,8 @@
>
> unix2dos = callPackage ../tools/text/unix2dos { };
>
> + uni2ascii = callPackage ../tools/text/uni2ascii { };
> +
> gawk = callPackage ../tools/text/gawk { };
>
> gdmap = callPackage ../tools/system/gdmap {
--
Evgeny
More information about the nix-dev
mailing list