Closed bertfrees closed 8 years ago
@jukkae Maybe this is a good starting point for you to get familiar with the whole system? Explore what needs to be done in the various parts (CSS, OBFL, PEF, liblouis, dotify, pipeline-mod-braille; I list them all but not all will need work of course) to support line spacing and make an overview here.
I don't think there is a single straightforward solution for this problem. It very much depends on the granularity with which we want to configure line spacing.
Something I don't find in the requirements but that I know we talked about is that when alternating lines on odd and even pages (4.4:75), the headers and footers might still have to overlap.
So @jukkae will investigate what needs to happen in the specification (https://github.com/snaekobbi/braille-css-spec/issues/18) and in the various components of the system to support line spacing. Then we'll discuss it together before putting the plan into practice.
OBFL currently supports what we want to do with line-height satisfactorily, at least when we take into account a couple of peculiarities with margins.
Suggestions for specification:
Possible implementation:
Great!
I will take care of updating the CSS specification. @jukkae Do you want to give a shot at implementing line-height in mod-braille? The modules that need changes are braille-css (separate project now), css-utils and dotify-formatter.
We'll also need to update the CSS spec + implementation for giving an offset to verso-pages, but we can look at that afterwards.
Sure, I'll have a look at the implementation. Regarding verso pages, we can probably do something similar to what Joel did at MTM (extending verso page headers upwards by one row).
Yup, that's what I was thinking too. CSS need to be extended a little for that.
I have updated the OBFL spec. to be a bit clearer about margins vs. row-spacing: https://github.com/joeha480/obfl/commit/fe32c15739a424c729b92625f3bff6d7a4f8885b
Nice. FYI I've updated the CSS spec too: https://github.com/snaekobbi/braille-css-spec/issues/18
@jukkae I looked at your last few commits. I'm unsure whether we need to support line-height
inside @page
. We never said we were going to do this (see specification). Setting double line spacing document-wide can also be accomplished with:
* {
line-height: 2;
}
I know that in plain CSS line-height
is probably also allowed in @page
, and that in OBFL row-spacing
is allowed on layout-master
, but I'm don't know if the behavior is identical (w.r.t. cascading etc.), so we need to be careful. You can implement this if you want, just make sure the behavior is correct according to CSS. I'll then update the braille CSS spec too.
Hum, now that I think of it, it might not make much sense after all. Will check tomorrow what's the best course of action.
@jukkae: I've merged the double-line-spacing branch (a0875e1e7b27dc1ebf1b461f8ad77d16752129cf) and added commits 31a1b7f62896be04fd1997264986029cbea5a3a2 and f17e6372df9b6cd138b7696b74e881b1f53b8ca7 which add support for @page:left
and @page:right
in css-utils the way we have agreed on IRC. Now all that is left is to support @page:left
and @page:right
in dotify-formatter.
Ok, very good. I'll have a look at this today.
Merged in 9669b5d5f191d0fbeb57a2188e42620e45036a08
Depends on: