Re: [xml2rfc-dev] New xml2rfc release: v2.37.1

"Martin Thomson" <mt@lowentropy.net> Fri, 13 December 2019 00:25 UTC

Return-Path: <mt@lowentropy.net>
X-Original-To: xml2rfc-dev@ietfa.amsl.com
Delivered-To: xml2rfc-dev@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D9D371200B3 for <xml2rfc-dev@ietfa.amsl.com>; Thu, 12 Dec 2019 16:25:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level:
X-Spam-Status: No, score=-2.701 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=lowentropy.net header.b=Lu/eqo+2; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=pQJ71eRD
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tzWyjmVQEKrk for <xml2rfc-dev@ietfa.amsl.com>; Thu, 12 Dec 2019 16:25:40 -0800 (PST)
Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 31FC6120071 for <xml2rfc-dev@ietf.org>; Thu, 12 Dec 2019 16:25:40 -0800 (PST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 84C96730 for <xml2rfc-dev@ietf.org>; Thu, 12 Dec 2019 19:25:39 -0500 (EST)
Received: from imap2 ([10.202.2.52]) by compute1.internal (MEProxy); Thu, 12 Dec 2019 19:25:39 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=sNvauDth9YcCEKGlbFs2kJtiwHIX0qY cnyWfXWvZsFc=; b=Lu/eqo+2Pt5sCHsHHHwXAN559TPUZfMXJF15xkuuLDkxdDN jCUrtKp+aXNDm2rthgEQI2kPZu2JzdaFa2hvtfssqhuOkYjhp4Ymw/6seuwp0sYp sV1NvdWusIdfFoEb8QRLgisgCylwkuPRLWYKsureQ8wm/9kzAwLrdRcuF5hXZ6iI RB9noQly8FU25idurq+wR1oNJfulS4YzBk0w5jWicNygCGwdjPl/g3MV6Hu72yXL JYT9REK620B93uAegjWtAps9salnJRMGt+WYwkqdZCI2W/JMyOvqIv0bmjjGheU4 obFy2TLy0T7yZPJyiA+2+9l4l50T/exUzPoJsVA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=sNvauD th9YcCEKGlbFs2kJtiwHIX0qYcnyWfXWvZsFc=; b=pQJ71eRDnm3treldjF27TA 90UUjudrmVm8GJG8+cIzAF6tmfs9sbQtA8ZJH/3gqajPAJT5RLWmquZuaLJrLDDk cNwovXwZZGTT3e+WwYoERi5meVr160r6ruyHnq4E9hAZc0+alLnA4FFAwQfOn0Gt WTMsZNJGr8StSrOPJrx8S6f1G2C4sOEF9n0lD3VIXVTYwnFBHxJrxQX/aDtH/3SB L6Q4X3HNkcKGVbKmW0q1pEJXA+F+wHWdOnh+6ypu2k3eKcoYf2kgQCPiMf8gCILU 2A2/FhlYT2WQzPnuHcfCBBOQoJhhnxdzhmlrQUx+6dNfSui00J+spw5Y123mlRkw ==
X-ME-Sender: <xms:gtryXeY67JMmvxjmrlCH0Ypc58EteZ1frKu2NJmO1EapNvt8xLSRHA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelkedgvddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderredtnecuhfhrohhmpedfofgrrhhtihhnucfvhhhomhhsohhnfdcuoehmtheslhho figvnhhtrhhophihrdhnvghtqeenucffohhmrghinhepihgvthhfrdhorhhgnecurfgrrh grmhepmhgrihhlfhhrohhmpehmtheslhhofigvnhhtrhhophihrdhnvghtnecuvehluhhs thgvrhfuihiivgeptd
X-ME-Proxy: <xmx:gtryXVqtrJlQD5pfMgpPSPd2CQvvqBsrvNteTTqHamh6cdSASBbQ-A> <xmx:gtryXT-Y5y4qg8Mm2Nhq51A7SDjdw5nUaKEnlZtsH0NgSA-pZjK_Lg> <xmx:gtryXU92dxbdsByQrp6BpUXBgqiwCIO6L1WRN9dvPg2ALMc3Bx77ZQ> <xmx:g9ryXbycsOZyU3BHYPgHpe_qNQ5RqZhQUoK_STHHbJzzMvL3K6AAQw>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id B0F64E00A2; Thu, 12 Dec 2019 19:25:38 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
User-Agent: Cyrus-JMAP/3.1.7-679-g1f7ccac-fmstable-20191210v1
Mime-Version: 1.0
Message-Id: <a0199b25-65ae-4aa2-aec2-c227516fa6d4@www.fastmail.com>
In-Reply-To: <E1ifORf-0005KZ-EH@durif.tools.ietf.org>
References: <E1ifORf-0005KZ-EH@durif.tools.ietf.org>
Date: Fri, 13 Dec 2019 11:25:20 +1100
From: Martin Thomson <mt@lowentropy.net>
To: xml2rfc-dev@ietf.org
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc-dev/aB7AhQGRBueXR4fOQOm9_XK5vfA>
Subject: Re: [xml2rfc-dev] New xml2rfc release: v2.37.1
X-BeenThere: xml2rfc-dev@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion about particulars of xml2rfc V3 design, development and code." <xml2rfc-dev.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml2rfc-dev>, <mailto:xml2rfc-dev-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml2rfc-dev/>
List-Post: <mailto:xml2rfc-dev@ietf.org>
List-Help: <mailto:xml2rfc-dev-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml2rfc-dev>, <mailto:xml2rfc-dev-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Dec 2019 00:25:42 -0000

Hi Henrik,

One small fix is required for downcode_punctuation():

diff --git a/xml2rfc/util/unicode.py b/xml2rfc/util/unicode.py
index 51ffbb5..6f59e6e 100644
--- a/xml2rfc/util/unicode.py
+++ b/xml2rfc/util/unicode.py
@@ -218,21 +218,21 @@ unicode_quote_replacements = {
     u'\u201e': '"',
     u'\u2032': "'",
 }

 punctuation = {
     u'\u2026': '...',
 }
 punctuation.update(unicode_space_replacements)
 punctuation.update(unicode_dash_replacements)
 punctuation.update(unicode_quote_replacements)
-punctuation_re = re.compile(r'[%s]'%''.join(list(punctuation.keys())))
+punctuation_re = re.compile(r'([%s])'%''.join(list(punctuation.keys())))

 unicode_replacements = {
     # Unicode code points corresponding to (x)html entities, also in
     # rfc2629-xhtml.ent
     u'\x09': ' ',
     u'\xa0': ' ',
     u'\xa1': '!',
     u'\xa2': '[cents]',
     u'\xa3': 'GBP',
     u'\xa4': '[currency units]',

Aside from that, this meets my immediate needs.

On Fri, Dec 13, 2019, at 00:23, Henrik Levkowetz wrote:
> 
> Hi,
> 
> This is an automatic notification about a new xml2rfc release, 
> v2.37.1, generated when running the mkrelease script.
> 
> Release notes:
> 
> xml2rfc (2.37.1) ietf; urgency=medium
> 
>   * Fixed a bug in the text formatter pagination code where it incorrectly 
>     tried to annotate Comment and PI nodes with page number information.
> 
>   * Updated the v2v3 converter to do essentially what it did before v2.37
>     with respect to unicode downcoding, but with more explicit calls.
> 
>   * Added a base writer method to downcode reference punctuation.
> 
>   * Moved the list of (tag, attr) combinations that permit unicode values 
>     into util.unicode.  Rewrote docwncode_punctuation() to only touch 
>     punctuation.
> 
>   * Restored lost trailing text after <contact> in <t> context for text 
>     output.
> 
>  -- Henrik Levkowetz <henrik@levkowetz.com>  12 Dec 2019 12:42:15 +0000
> 
> The preferred way to install xml2rfc is by doing 'pip install xml2rfc',
> and 'pip install --upgrade xml2rfc' to upgrade.  If there are system-
> installed python modules which pip will not upgrade, you may have to
> use 'pip install --upgrade --no-deps xml2rfc' and install dependencies
> manually.
> 
> The new version is also available through SVN checkout, with
>   'svn checkout http://svn.tools.ietf.org/svn/tools/xml2rfc/tags/cli/2.37.1'
> 
> Regards,
> 
> 	Henrik
> 	(via the mkrelease script)
> 
> _______________________________________________
> xml2rfc-dev mailing list
> xml2rfc-dev@ietf.org
> https://www.ietf.org/mailman/listinfo/xml2rfc-dev
>