2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2010-09-28 09:48:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-04 04:39:34 +00:00
|
|
|
name = "uni2ascii-4.18";
|
2010-09-28 09:48:15 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://billposer.org/Software/Downloads/${name}.tar.gz";
|
2013-12-04 04:39:34 +00:00
|
|
|
sha256 = "03lklnzr6ngs4wqiqa7rifd246f441gfvardbsaa5l6fn9pbn94y";
|
2010-09-28 09:48:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.gpl3;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://billposer.org/Software/uni2ascii.html";
|
2010-09-28 09:48:15 +00:00
|
|
|
description = "Converts between UTF-8 and many 7-bit ASCII equivalents and back";
|
|
|
|
|
2021-01-15 09:19:50 +00:00
|
|
|
longDescription = ''
|
2010-09-28 09:48:15 +00:00
|
|
|
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.
|
|
|
|
'';
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = with lib.maintainers; [ goibhniu ];
|
|
|
|
platforms = lib.platforms.linux;
|
2010-09-28 09:48:15 +00:00
|
|
|
};
|
|
|
|
}
|