-
Notifications
You must be signed in to change notification settings - Fork 0
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
Make manual volume breaking work properly #33
Comments
Apparently Joel is going to work on this |
I have implemented this, and it is staged right now. dotify.formatter.impl:2.7.0 |
Thanks @joeha480! Looks good so far. I checked that the TOC issue is fixed. I also tested with more than one manual break point, and also with a combination of manual and automatic volume breaking ( Mischa will do some further testing now. |
With my test, manual volume breaking only works without TOC. In combination with TOC the transformation fails. |
Hi Mischa, Christian needs to deploy this first. Sorry for the confusion! |
Never mind. |
@mixa72 We're wondering which behavior you would prefer. I'll explain with an example. Let's say there are 120 sheets, and the maximum number of sheets per volume is set to 50. Normally (if there are no other constraints) the system would split the book into 3 volumes of 40 sheets (40, 40, 40). Now if you insert a manual break point at sheet 90:
|
Very good question. I think both ways of volume splitting are completely plausible and legitimate, but I'd prefer 45, 45, 30. (In my opinion the "full" division into volumes on the basis of 40 sheets per volume should no longer be relevant once you've inserted a manual break point). |
OK. 45, 45, 30 is what the current implementation will do, actually. |
Touché! Great. |
Moved upstream: daisy/pipeline-mod-braille@05a27df...9aaa1b0 |
See example, line 701: brl|volume[brl|grade='#{$contraction-grade}'] {
display:block;
volume-break-before:always;
page-break-after: always;
} It appears to have no effect though. |
Blank pages fixed in sbsdev/pipeline@85e10c4 |
Mischa reported another bug with blank pages. See the private email with the DNA.xml test book. I have fixed it in sbsdev/pipeline@5e56065. |
Manual volume breaking is a feature that Joel has implemented right before he left on vacation and there hasn't been time to debug it properly.
E.g. it currently doesn't work in combination with table of contents: brailleapps/dotify#212. Also, Joel has mentioned the current implementation might not work when there are a lot of manual break points. I think Mischa even had problems with just a couple of break points.
I can have a look at this myself but should ideally discuss this with Joel. We can already start with creating some unit tests.
+1
from:The text was updated successfully, but these errors were encountered: