metanorma / mn-samples-plateau

Project PLATEAU by MLIT: Japanese Ministry of Land, Infrastructure, Transport and Tourism (国土交通省)
https://www.mlit.go.jp/plateau/
1 stars 0 forks source link

PDF: Do not insert page break after every clause #62

Closed ronaldtse closed 2 months ago

ronaldtse commented 3 months ago

Our PDF:

Screenshot 2024-07-09 at 10 23 37 PM

There is also an issue with line flow.

Original PDF:

Screenshot 2024-07-09 at 10 24 05 PM
Intelligent2013 commented 3 months ago

XSLT puts the page break after every 1st level depth clause except the second clause (if it contains only one sentence). As in the original PDF. But the clause 2 is third 1st level depth element in the sections because first element is abstract (it should be in preface). I'll update the condition - omit the page break after clause with number 2 in the title.

Intelligent2013 commented 3 months ago

There is also an issue with line flow.

The issue occurs due the character U+3000 (IDEOGRAPHIC SPACE' (U+3000)) FOP doesn't render properly it. I've tried to add hair space after U+3000 and the result looks correctly: image

Intelligent2013 commented 3 months ago

Plateau XSLT updated and will be available in metanorma-plateau repo soon.