-
Notifications
You must be signed in to change notification settings - Fork 2
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 #26
Comments
Adding an option to do this within Dotify is in theory possible, because OBFL doesn't mention anywhere that a A very simple workaround that does not require any changes in Dotify is to simply not select duplex, and then post-process the PEF before sending it to the printer. The downside if of course that some sheet-related things will not work, like e.g. Related issue: braillespecs/obfl#23 |
Yes, OBFL mentions that. Quoted from the OBFL specification:
In other words, in duplex mode a sequence with an odd number of pages will have an additional empty page, which is counted. |
Hmm, so this means that this new Dotify option would either overwrite what is specified in the OBFL file (which is a bit risky), or we need to change the spec? The more I think about it the more I think the spec should support this. What do you think about the following proposal? We already introduced the |
The point is that the PEF format is such that when a volume has more than one section, and a section has an odd number of pages, there will be an empty page inserted. So I need a solution that guarantees that a volume will have no more than one section. |
Yes I understand. But OBFL does not say anything about what the produced PEF should look like (in fact it does not even require that the output is PEF). Dotify can choose whether it creates new |
I'm adding a few examples to clarify things (click to expand). When a
|
@bertfrees I like your concept of |
Correct |
The solution that was proposed here was added to OBFL: mtmse/obfl#26. Now we need to implement it :) |
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:
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:
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.
The text was updated successfully, but these errors were encountered: