Re: [Xml-sg-cmt] Odd table breaks (odd breaks within a row)
Kesara Rathnayake <kesara@staff.ietf.org> Thu, 25 August 2022 13:02 UTC
Return-Path: <kesara@staff.ietf.org>
X-Original-To: xml-sg-cmt@ietfa.amsl.com
Delivered-To: xml-sg-cmt@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E74CEC152579 for <xml-sg-cmt@ietfa.amsl.com>; Thu, 25 Aug 2022 06:02:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.908
X-Spam-Level:
X-Spam-Status: No, score=-1.908 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id A1eVRcFZ3iCy for <xml-sg-cmt@ietfa.amsl.com>; Thu, 25 Aug 2022 06:02:18 -0700 (PDT)
Received: from ietfx.amsl.com (ietfx.amsl.com [50.223.129.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 35AE7C15258D for <xml-sg-cmt@ietf.org>; Thu, 25 Aug 2022 06:01:51 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by ietfx.amsl.com (Postfix) with ESMTP id 1A1B340A6A63; Thu, 25 Aug 2022 06:01:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
Received: from ietfx.amsl.com ([50.223.129.196]) by localhost (ietfx.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8rQmRq_KE477; Thu, 25 Aug 2022 06:01:50 -0700 (PDT)
Received: from [192.168.1.87] (122-58-124-12-vdsl.sparkbb.co.nz [122.58.124.12]) by ietfx.amsl.com (Postfix) with ESMTPSA id 8E9544029A92; Thu, 25 Aug 2022 06:01:48 -0700 (PDT)
Content-Type: multipart/mixed; boundary="------------LrLUvjZ8JRTxlUGoujmAFjS7"
Message-ID: <9be8849a-a5d8-83f2-2382-5c4c8372449e@staff.ietf.org>
Date: Fri, 26 Aug 2022 01:01:46 +1200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:104.0) Gecko/20100101 Thunderbird/104.0
Content-Language: en-NZ
From: Kesara Rathnayake <kesara@staff.ietf.org>
To: Sandy Ginoza <sginoza@amsl.com>, xml-sg-cmt@ietf.org
Cc: Jay Daley <jay@staff.ietf.org>, Jean Mahoney <jmahoney@amsl.com>
References: <5B2438DF-C64B-44C4-9CE2-1491D934793C@amsl.com> <ec14e2d1-8406-cae3-b134-9e5c908bbd0e@staff.ietf.org> <17f996af-8bb0-4c05-b269-91ac554b6ef0@staff.ietf.org>
Organization: IETF Administration LLC
In-Reply-To: <17f996af-8bb0-4c05-b269-91ac554b6ef0@staff.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/xml-sg-cmt/NiZ8Asa25EXvwe0xio64ExluG9A>
Subject: Re: [Xml-sg-cmt] Odd table breaks (odd breaks within a row)
X-BeenThere: xml-sg-cmt@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Working list for the xml and style guide change management team <xml-sg-cmt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/xml-sg-cmt>, <mailto:xml-sg-cmt-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/xml-sg-cmt/>
List-Post: <mailto:xml-sg-cmt@ietf.org>
List-Help: <mailto:xml-sg-cmt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/xml-sg-cmt>, <mailto:xml-sg-cmt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 25 Aug 2022 13:02:23 -0000
Current behaviour on xml2rfc is correct because, according to CSS specification, default values for `orphans` and `widows` attributes are 2 lines [1, 2]. `orphans` and `widows` values determined the number of lines that must be shown on the bottom and top of a page. One of the suggestions from WeasyPrint developers is to set these values to 1 [3]. I have attached the rendered PDFs with these values set to 1. I think this creates more issues. For example, see "Table 14" in RFC9053. Cheers, Kesara [1] https://developer.mozilla.org/en-US/docs/Web/CSS/orphans [2] https://developer.mozilla.org/en-US/docs/Web/CSS/widows [3] https://github.com/Kozea/WeasyPrint/issues/1712#issuecomment-1227147155 On 25/08/22 4:54 pm, Kesara Rathnayake wrote: > Hi Sandy, > > I have a CSS fix by explicitly avoiding making any page breaks inside > rows [1]. > > I have attached two PDF renderings that I generated for RFC9053 & RFC9054. > > Note on RFC9053, Table 10's first row doesn't break anymore, so this > avoids the original issue on Table 16. > > Change is apparent on RFC9054. > > Cheers, > Kesara > > [1] https://github.com/ietf-tools/xml2rfc/pull/879/files > > On 25/08/22 2:47 pm, Kesara Rathnayake wrote: >> Hi Sandy, >> >> This is an issue on WeasyPrint. >> I've already created a bug report [1]. >> I'll investigate if there's anything that can be done on xml2rfc to >> avoid this issue. >> >> [1] https://github.com/Kozea/WeasyPrint/issues/1712 >> >> Cheers, >> Kesara >> >> On 25/08/22 9:31 am, Sandy Ginoza wrote: >>> Hi all, >>> >>> While prepping 2 docs for pub, we noticed a couple of odd table >>> breaks in RFCs-to-be 9053 and 9054. Some info within a row appears >>> on one page, and some info in the same row appears on the next page. >>> Please see: >>> >>> https://www.rfc-editor.org/authors/rfc9053.pdf >>> Table 16 on pages 26-27 >>> >>> https://www.rfc-editor.org/authors/rfc9054.pdf >>> Table 2 on pages 6 and 7 >>> >>> Is this something that can be fixed? Is there some workaround here? >>> I imagine we’ll see this with some frequency. >>> >>> FYI: These are Jim Schaad’s last documents (afaik). There is *some* >>> urgency to get these docs published in that they have been stuck in >>> AUTH48 for over a year and were released for pub last week at the >>> urging/override of the AD. They have been delaying publication of >>> another cluster for some time. >>> >>> Thanks! >>> Sandy >> > > -- Kesara Rathnayake Senior Software Development Engineer - IETF LLC kesara@staff.ietf.org
- [Xml-sg-cmt] Odd table breaks (odd breaks within … Sandy Ginoza
- Re: [Xml-sg-cmt] Odd table breaks (odd breaks wit… Kesara Rathnayake
- Re: [Xml-sg-cmt] Odd table breaks (odd breaks wit… Kesara Rathnayake
- Re: [Xml-sg-cmt] Odd table breaks (odd breaks wit… Kesara Rathnayake
- Re: [Xml-sg-cmt] Odd table breaks (odd breaks wit… Jean Mahoney
- Re: [Xml-sg-cmt] Odd table breaks (odd breaks wit… Sandy Ginoza