Date: Sun, 4 Mar 2018 09:10:41 +0000 (UTC) From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r463559 - in head/converters: . py-webencodings Message-ID: <201803040910.w249Afb7014694@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yuri Date: Sun Mar 4 09:10:41 2018 New Revision: 463559 URL: https://svnweb.freebsd.org/changeset/ports/463559 Log: New port: converters/py-webencodings: Character encoding aliases for legacy web content PR: 226316 Submitted by: Marcin Cieślak <saper@saper.info> Approved by: tcberner (mentor, implicit) Added: head/converters/py-webencodings/ head/converters/py-webencodings/Makefile (contents, props changed) head/converters/py-webencodings/distinfo (contents, props changed) head/converters/py-webencodings/pkg-descr (contents, props changed) Modified: head/converters/Makefile Modified: head/converters/Makefile ============================================================================== --- head/converters/Makefile Sun Mar 4 09:03:05 2018 (r463558) +++ head/converters/Makefile Sun Mar 4 09:10:41 2018 (r463559) @@ -159,6 +159,7 @@ SUBDIR += py-iconv SUBDIR += py-rencode SUBDIR += py-unidecode + SUBDIR += py-webencodings SUBDIR += py-zfec SUBDIR += rcctools SUBDIR += recode Added: head/converters/py-webencodings/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/converters/py-webencodings/Makefile Sun Mar 4 09:10:41 2018 (r463559) @@ -0,0 +1,18 @@ +# $FreeBSD$ + +PORTNAME= webencodings +DISTVERSION= 0.5.1 +CATEGORIES= converters www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= saper@saper.info +COMMENT= Character encoding aliases for legacy web content + +LICENSE= BSD3CLAUSE + +USES= python +USE_PYTHON= distutils autoplist +NO_ARCH= yes + +.include <bsd.port.mk> Added: head/converters/py-webencodings/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/converters/py-webencodings/distinfo Sun Mar 4 09:10:41 2018 (r463559) @@ -0,0 +1,3 @@ +TIMESTAMP = 1520037325 +SHA256 (webencodings-0.5.1.tar.gz) = b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923 +SIZE (webencodings-0.5.1.tar.gz) = 9721 Added: head/converters/py-webencodings/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/converters/py-webencodings/pkg-descr Sun Mar 4 09:10:41 2018 (r463559) @@ -0,0 +1,16 @@ +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. + +WWW: https://github.com/SimonSapin/python-webencodings
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803040910.w249Afb7014694>