Re: [rfc-i] Unicode in xml2rfc v3

Carsten Bormann <cabo@tzi.org> Wed, 02 December 2020 06:57 UTC

Return-Path: <rfc-interest-bounces@rfc-editor.org>
X-Original-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Delivered-To: ietfarch-rfc-interest-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D2F173A10E0; Tue, 1 Dec 2020 22:57:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.651
X-Spam-Level:
X-Spam-Status: No, score=-2.651 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 XWzdQ_cvoUML; Tue, 1 Dec 2020 22:57:34 -0800 (PST)
Received: from rfc-editor.org (rfc-editor.org [4.31.198.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D8C6C3A0B0A; Tue, 1 Dec 2020 22:57:33 -0800 (PST)
Received: from rfcpa.amsl.com (localhost [IPv6:::1]) by rfc-editor.org (Postfix) with ESMTP id F37E3F40758; Tue, 1 Dec 2020 22:57:30 -0800 (PST)
X-Original-To: rfc-interest@rfc-editor.org
Delivered-To: rfc-interest@rfc-editor.org
Received: from localhost (localhost [127.0.0.1]) by rfc-editor.org (Postfix) with ESMTP id 19BBBF40758 for <rfc-interest@rfc-editor.org>; Tue, 1 Dec 2020 22:57:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at rfc-editor.org
Received: from rfc-editor.org ([127.0.0.1]) by localhost (rfcpa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QmSA0Y1HkD3P for <rfc-interest@rfc-editor.org>; Tue, 1 Dec 2020 22:57:25 -0800 (PST)
Received: from gabriel-vm-2.zfn.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) by rfc-editor.org (Postfix) with ESMTPS id B6A6AF40727 for <rfc-interest@rfc-editor.org>; Tue, 1 Dec 2020 22:57:24 -0800 (PST)
Received: from [192.168.217.118] (p548dca87.dip0.t-ipconnect.de [84.141.202.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4Cm8sw0zMvzyXP; Wed, 2 Dec 2020 07:57:24 +0100 (CET)
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <44D623BB-9F0C-41F9-92E3-A39B0FAB8164@eggert.org>
Date: Wed, 02 Dec 2020 07:57:23 +0100
X-Mao-Original-Outgoing-Id: 628585043.570201-4cc56d8dd6365d75b5b0647f6c14a67f
Message-Id: <C1E69941-33B2-41D4-84A1-3B621F67E292@tzi.org>
References: <F2E370D6-BCA9-4902-836E-8C5BADFE5209@eggert.org> <4cff4b9c-6464-659d-8b27-32396b59182c@levkowetz.com> <EC333D0C-D024-416B-9CAA-880D3E90368F@eggert.org> <115988ED-68A9-4E99-BB2E-55E0B5B0E96A@tzi.org> <44D623BB-9F0C-41F9-92E3-A39B0FAB8164@eggert.org>
To: Lars Eggert <lars@eggert.org>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Subject: Re: [rfc-i] Unicode in xml2rfc v3
X-BeenThere: rfc-interest@rfc-editor.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the RFC series and RFC Editor functions." <rfc-interest.rfc-editor.org>
List-Unsubscribe: <https://www.rfc-editor.org/mailman/options/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=unsubscribe>
List-Archive: <http://www.rfc-editor.org/pipermail/rfc-interest/>
List-Post: <mailto:rfc-interest@rfc-editor.org>
List-Help: <mailto:rfc-interest-request@rfc-editor.org?subject=help>
List-Subscribe: <https://www.rfc-editor.org/mailman/listinfo/rfc-interest>, <mailto:rfc-interest-request@rfc-editor.org?subject=subscribe>
Cc: rfc-interest@rfc-editor.org, Henrik Levkowetz <henrik@levkowetz.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
Errors-To: rfc-interest-bounces@rfc-editor.org
Sender: rfc-interest <rfc-interest-bounces@rfc-editor.org>


> On 2020-12-02, at 07:35, Lars Eggert <lars@eggert.org> wrote:
> 
> Hi,
> 
> On 2020-12-1, at 21:02, Carsten Bormann <cabo@tzi.org> wrote:
>> Well, with the current toolset, you can.
>> https://mailarchive.ietf.org/arch/msg/xml2rfc/48tS5guJqVpjGUkvPeD7K2aViis/
> 
> thanks! Could I maybe ask that we start an FAQ or HOWTO for kramdown-rfc2629 to capture some of these not-so-obvious tricks and tips? Or add a canonical example Markdown document that uses them all?

I’m long overdue with starting an I-D about kramdown-rfc2629.
This particular trick has been recently invented though/

> Also, using the {{{α}}} trick doesn't seem to work in a list. This source:
> 
> - set {{{α}}}<sub>aimd</sub> to 1 once W<sub>est</sub> reaches W_max (#2)
> 
> gets converted to:
> 
> <li>set <contact fullname="α"/><sub>aimd</sub> to 1 once W<sub>est</sub> reaches W_max (#2)</li>
> 
> and throws this error:
> 
> draft-eggert-tcpm-rfc8312bis.xml(2402): Error: Element li has extra content: contact, at /rfc/back/section[2]/section[1]/ul/li[6]/contact

Hmm, that is an xml2rfc bug.

<contact/> has only been added to <section/> (block-level) and <t/>, not to <li/>, which has its own copy of the content model of <t/>.  There are a few more elements like <name/>, <blockquote/>, <dt/>, <dd/>, <xref/>, <cref/>, <tt/>, <strong/>, <em/>, <sub/>, <sup/>, <preamble/>, <postamble/>, <th/>, <td/>, <annotation/>, <refcontent/> that need this fix.

> Is there another workaround?

Put the content of <li/> into a <t/>.  Unfortunately, that appears to be removed in the v2-to-v3 converter inside xml2rfc, so that would need to be fixed (or the previous fix applied).

Grüße, Carsten

_______________________________________________
rfc-interest mailing list
rfc-interest@rfc-editor.org
https://www.rfc-editor.org/mailman/listinfo/rfc-interest