Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single-section volumes #8

Open
PaulRambags opened this issue Apr 9, 2021 · 0 comments
Open

Single-section volumes #8

PaulRambags opened this issue Apr 9, 2021 · 0 comments

Comments

@PaulRambags
Copy link
Contributor

PaulRambags commented Apr 9, 2021

As Dedicon, I would like to have an option to indicate that each volume of the generated PEF will have exactly one section, so that there won't be empty white pages between sections in a duplex pagination.

In the current implementation, a volume can have several sections. The PEF specification is such that in duplex mode a section always starts on a recto page. For instance, if the PEF has this structure:

<pef>
  <head>...</head>
  <body>
    <volume duplex="true">
      <section>
        <page>...</page>
      </section>
      <section>
        <page>...</page>
      </section>
    </volume>
  </body>
</pef>

then there will be an empty page inserted in between the two <page>s when this PEF is printed. Also if both sections use the same page number counter, Dotify will assign page numbers 1 and 3, respectively.

As Dedicon I would like to be able to remove those empty pages between sections, such that the above example becomes:

<pef>
  <head>...</head>
  <body>
    <volume duplex="true">
      <section>
        <page>...</page>
        <page>...</page>
      </section>
    </volume>
  </body>
</pef>

The page numbers should be corrected as well.

Implementation detail:
A volume consists of a pre-content, a body, and a post-content, which are section lists. The pre-content and the post-content can be empty, the body will always have at least one section. Each section has section properties and these may differ per section. The implementation should generate a single section for every volume with the section properties of the first body section.

Remark:
Currently a volume consists of a list of sheets and a sheet has two pages in duplex mode or one page in simplex mode. If you would eliminate the sheet level from the implementation, so that a volume is simply a list of pages (instead of a list of sheets), you might arrive at the desired situation. However, eliminating the sheet level will be very complex and it is questionable whether it is possible at all.

See also https://github.com/mtmse/dotify.formatter.impl/issues/6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant