[xml2rfc-dev] <contact> element in <t>

"Martin Thomson" <mt@lowentropy.net> Wed, 11 December 2019 01:13 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 EBC74120086 for <xml2rfc-dev@ietfa.amsl.com>; Tue, 10 Dec 2019 17:13:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 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, URIBL_BLOCKED=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=u8dv+6fG; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=pdVhYKPh
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 pr1aTiQTagzd for <xml2rfc-dev@ietfa.amsl.com>; Tue, 10 Dec 2019 17:13:41 -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 B4442120059 for <xml2rfc-dev@ietf.org>; Tue, 10 Dec 2019 17:13:41 -0800 (PST)
Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 186F4C88; Tue, 10 Dec 2019 20:13:41 -0500 (EST)
Received: from imap2 ([10.202.2.52]) by compute1.internal (MEProxy); Tue, 10 Dec 2019 20:13:41 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lowentropy.net; h=mime-version:message-id:date:from:to:subject:content-type :content-transfer-encoding; s=fm1; bh=69PYkTOXy09WIAgHKZyVLYwm1g YgBGCZDTUSa/qwaQo=; b=u8dv+6fGp7Fn8gILWqD6aFmNd/5ZGyfRuUZMXjfpuO eIFGG9AZdXmUGj6HUK5WU8K+AzEAik1ZqP+v8jDVuUAySDqBLnp6K/490cu/TyiE 0VIaA3q11b/03sGwlCLmOoqWBPfc4/x7htTjbo5omlrUVFk4QqP+Kh0PPpfaJ9Kd 2i0aJptXq0ZKwsDsAosGWs3/K+K8FEy37ZFkEONh8haIwOhUlPbRMv3QsXQOYUkh LGl3uXD8FWzvuadp9BvZilSDwmyYjx4Pwfyn2wFTf1vnT9addHPRqOSAglY20lVN sXBBMpzqXbU2tXpZ42OInaDIJ2m0ilr/O3yv2PIJD64Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=69PYkT OXy09WIAgHKZyVLYwm1gYgBGCZDTUSa/qwaQo=; b=pdVhYKPhh6W2RWKp85yoZH D7p77P5KWa8SoMfc4ZLSBAI+M2k3loLQLYw0YZAZ4NWJ6JqmCE+oR/TnSNkgQ/yd mtxWTdfUs3vNNXzqpc7b4NGlwKNi9oPfk/3SqjqN9BcMo9Vzh9XTaC+D8KBQ/RGx TvIUqJoeYQ2r+0YxUL9UvuQMMaEWQwS5u0xoQXaVz6ZwiEfkUCp2ggjLQVp3LbjO aBMPxNtxEEi0a7xElocLqMFTzRP5J2x2k1e2gd+408Ssd2ELoSDsVfu8cJc7lzZY UennDvVlGmHIWlnfJAkbfLj0N4fdTm36dvZSAE45sBp5E3SZTEqfyS6mWlsXBFgg ==
X-ME-Sender: <xms:xELwXTIBoBGu0WvjgxNhU_OBDCNl3qcdh1MEXcy0gezbdHnm-HLxlQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelgedgvdehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkfffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfofgrrhht ihhnucfvhhhomhhsohhnfdcuoehmtheslhhofigvnhhtrhhophihrdhnvghtqeenucffoh hmrghinhepmhgrrhhtihhnrdhlohgtrghlnecurfgrrhgrmhepmhgrihhlfhhrohhmpehm theslhhofigvnhhtrhhophihrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd
X-ME-Proxy: <xmx:xELwXZZyGbcJ0gZQ0eg24LJ3RS9dkpzRoU9MzYcQvNdSCQR-z7MYFg> <xmx:xELwXd9pVHTnNlRBiFPzqRa0KnLB6mnob5jrSk5GjQD9d8tYxj5L6A> <xmx:xELwXSbcUumE6VUA_iwQvXp6iLn2N44bbFdVg1_7ccFByv1ONPrMMw> <xmx:xELwXe4urSuqGnqJ4Sd6JbehCqlOqPgo7oKM-35yaXb6JOUcrDRCrg>
Received: by mailuser.nyi.internal (Postfix, from userid 501) id 30E99E00A2; Tue, 10 Dec 2019 20:13:40 -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: <041d01b9-8364-4d84-a7af-28ac58dd14d7@www.fastmail.com>
Date: Wed, 11 Dec 2019 12:13:20 +1100
From: Martin Thomson <mt@lowentropy.net>
To: xml2rfc-dev@ietf.org, Henrik Levkowetz <henrik@levkowetz.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc-dev/gWhtarCgzflwPyPaag5i0p0dJHc>
Subject: [xml2rfc-dev] <contact> element in <t>
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: Wed, 11 Dec 2019 01:13:43 -0000

Hi Henrik,

I just tested this new element out in xml2rfc 2.37.0.  I think that there are some bugs to work out.

I have the following input (in reduced form):

<t>The following people helped:
... (ascii names) ...,
<contact fullname="Mirja Kühlewind"/>,
...
<contact asciiFullname="Kazuho Oku" fullname="?"/>,
...
</t>

I don't have Kazuho's real name just yet, so I just added "?" for the moment.

What I have observed is that the output includes many additional line breaks.  If I get this right, this is producing a new paragraph break for the name included in <contact>.  That's not expected.

It also appears to remove the "?" I'm using as a placeholder in this example.  I can put some Unicode in fullname (for instance, "øøø" works fine), but the Japanese text I copied from somewhere failed.

fullname="投稿者" causes xml2rfc to choke:

  File "/home/martin/bin/xml2rfc", line 11, in <module>
    load_entry_point('xml2rfc==2.37.0', 'console_scripts', 'xml2rfc')()
  File "/home/martin/.local/lib/python3.8/site-packages/xml2rfc/run.py", line 590, in main
    writer.write(filename)
  File "/home/martin/.local/lib/python3.8/site-packages/xml2rfc/writers/text.py", line 274, in write
    lines = self.paginate(lines)
  File "/home/martin/.local/lib/python3.8/site-packages/xml2rfc/writers/text.py", line 412, in paginate
    paginated[i].elem.page = page
AttributeError: 'lxml.etree._Element' object has no attribute 'page'

I thought that that specific error might be due to placement, but moving the text around didn't help.

Cheers,
Martin