Re: [xml2rfc-dev] RFC 7991 issue #39: Schema Issue, RFC 7991, New Section 2.20.4, "indent" Attribute

Henrik Levkowetz <henrik@levkowetz.com> Sun, 07 October 2018 14:14 UTC

Return-Path: <henrik@levkowetz.com>
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 03460130DF0 for <xml2rfc-dev@ietfa.amsl.com>; Sun, 7 Oct 2018 07:14:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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 yn5d_oubKxzV for <xml2rfc-dev@ietfa.amsl.com>; Sun, 7 Oct 2018 07:14:26 -0700 (PDT)
Received: from zinfandel.tools.ietf.org (zinfandel.tools.ietf.org [IPv6:2001:1890:126c::1:2a]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1BD57130DE1 for <xml2rfc-dev@ietf.org>; Sun, 7 Oct 2018 07:14:26 -0700 (PDT)
Received: from h-37-140.a357.priv.bahnhof.se ([94.254.37.140]:57040 helo=tannat.localdomain) by zinfandel.tools.ietf.org with esmtpsa (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from <henrik@levkowetz.com>) id 1g99pA-0005Uz-Qd for xml2rfc-dev@ietf.org; Sun, 07 Oct 2018 07:14:25 -0700
To: xml2rfc-dev@ietf.org
References: <E1g6wUz-0002Cp-91@durif.tools.ietf.org> <d1acab8a-6807-5840-50e4-b96d698849dc@gmx.de> <a69fe5d2-8f76-be02-0f9d-c0e926c0b2d2@levkowetz.com>
From: Henrik Levkowetz <henrik@levkowetz.com>
Message-ID: <d70281e8-fb0a-fbe8-62f6-7498d95eaf3d@levkowetz.com>
Date: Sun, 07 Oct 2018 16:14:07 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <a69fe5d2-8f76-be02-0f9d-c0e926c0b2d2@levkowetz.com>
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="kQUH68tnw5STX3PSjt05G58JMoeQAh956"
X-SA-Exim-Connect-IP: 94.254.37.140
X-SA-Exim-Rcpt-To: xml2rfc-dev@ietf.org
X-SA-Exim-Mail-From: henrik@levkowetz.com
X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000)
X-SA-Exim-Scanned: Yes (on zinfandel.tools.ietf.org)
X-Clacks-Overhead: GNU Terry Pratchett
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml2rfc-dev/6lHilSwLGHP9QKfitLRoi-ZlPVc>
Subject: Re: [xml2rfc-dev] RFC 7991 issue #39: Schema Issue, RFC 7991, New Section 2.20.4, "indent" Attribute
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: Sun, 07 Oct 2018 14:14:28 -0000

I propose closing this ticket with the following resolution:

Add an attribute "indent" to <dl>, signifying the character indentation
in monospace rendering, and the indentation measured in en-space [1] units
in other renderings.

If there are no objections to the resolution by EOB Monday, I'll close the
ticket.  

With respect to document text, I propose the following new text under
Section 2.20. <dl>:

---
2.20.4.  "indent" Attribute

   Indicates the indentation to be used for the second and following
   lines of item rendering (the first line starts with the term, and
   is not indented).  The indentation is to be interpreted as characters
   for monospace renderings, and en-space units when using proportional
   fonts.  One en-space is assumed to be the length of 0.5 em-space in
   CSS units.

---

[1] https://en.wikipedia.org/wiki/En_(typography)


Best regards,

	Henrik


On 2018-10-01 14:39, Henrik Levkowetz wrote:
> Hi Julian,
> 
> On 2018-10-01 14:09, Julian Reschke wrote:
>> On 10/1/2018 1:36 PM, henrik@levkowetz.com wrote:
>>> This captures an issue noted during implementation, also described in
>>> https://tools.ietf.org/html/draft-levkowetz-xml2rfc-v3-implementation#section-3.1.4
>>> 
>>> ---
>>> New Section 2.20.4, "indent" Attribute
>>> 
>>>     The deprecation of the "hangIndent" attribute on <list> leaves no
>>>     opportunity to control the size of the hanging indent.  In some
>>>     definition lists, it is desirable to have a wide indentation, in order
>>>     to clearly show the terms, in other cases it is more important to allow
>>>     for a larger text volume than the width of the terms would allow.
>>> 
>>>     Recommendation:  Add an "indent" attribute on <dl> to control the size
>>>                      of the hanging indent.
>>> 
>>>     Implementation:  The current version of xml2rfc does not support the
>>>                      attribute, but has all the underlying functions needed
>>>                      to apply such an attribute.  Internally, an indentation
>>>                      is calculated based on length of the <dt> text and the
>>>                      settings of some of the other attributes.
>>> ---
>>> ...
>> 
>> I agree that this would be useful - however we'll need to define it in a 
>> way that works well with non-monospaced fonts.
> 
> Agreed.
> 
> What about specifying indentation as a number that would indicate characters
> in monospaced output, and en-space otherwise?