[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#842738: ITP: python-webencodings -- Python implementation of the WHATWG Encoding standard



Package: wnpp
Severity: wishlist
Owner: Barry Warsaw <barry@debian.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

* Package name    : python-webencodings
  Version         : 0.5
  Upstream Author : Simon Sapin
* URL             : https://github.com/gsnedders/python-webencodings
* License         : BSD
  Programming Lang: Python
  Description     : Python implementation of the WHATWG Encoding standard

In order to be compatible with legacy web content when interpreting
something like Content-Type: text/html; charset=latin1, tools need to
use a particular set of aliases for encoding labels as well as some
overriding rules. For example, US-ASCII and iso-8859-1 on the web are
actually aliases for windows-1252, and an UTF-8 or UTF-16 BOM takes
precedence over any other encoding declaration. The Encoding standard
defines all such details so that implementations do not have to
reverse-engineer each other.

This module has encoding labels and BOM detection, but the actual
implementation for encoders and decoders is Python’s.

This package is a new dependency for html5lib, which in turn is a
dependency for python-pip, so it will need to be rewheeled.

I intend to package this as part of the DPMT.

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCAAGBQJYF6icAAoJEBJutWOnSwa/HggP/2V7UXMmQJg7l7cMeDH4rnOV
8cAGsYB2bAw+U8ShyI4Q27S+NfNm9Xa57voi0lv1pA1/SUn3Ragl6+NWr0XYrhBN
2oSm2myN5GWUZSCyAWAxletAIwPsYJXuuaiDBs1aMgALpd28YxROO1OY/KRyQNCJ
HRYMHi3vhA24+xTJucZGTC31p0USHMfnwnCmtfWRnNuiqunL/IHaImJKv18NuZC3
CtTMdIhtPiZZI0LpHjxoU/ONG/4x5BKHo6tOOJ3NWc8ulDAOGCyjymsywdeSZOy5
X8CQWxixVh48Xgo4OwKeexQDh0bCQtQCyqZbv2M762yFkAntpdmeaaV2CoKEAmVJ
9FVN07Oe7cdt7pUUA7Twpp45yAypOHDaOoEWSX29/Quourkr5FFGMyYd99QtJ/VA
FnTweeX7v/EzbkgSEfnEDMlXEAD3Zm/3esZNczcL902H/JSSNh/00S5XFXHgEuRi
X4ptEEMr/3fZ7Jet3LeMcZo6it5hwHSDTkmcmAXNSGfRCSvha8hgage277aP6UYe
oBMd4qEvXd+QJw2WWtXxbZkNoYWFZopoVdoS1Fzr7LlDGgPuDNEL6qEFbAnV9UK+
l/qOOtubM2rYXwBssOxYrREDXRaKAD+qQ+ZH/y4zaA2RvH/aItS2J5SBvky/9aw7
90G6hJnX54DpzDEW/YTj
=2T5D
-----END PGP SIGNATURE-----


Reply to: