snaekobbi / pipeline-mod-braille

ARCHIVED. Please don't make any new issues or pull requests in this repo.
0 stars 0 forks source link

Support line spacing #26

Closed bertfrees closed 8 years ago

bertfrees commented 9 years ago

Depends on:

bertfrees commented 9 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.

bertfrees commented 9 years ago

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.

bertfrees commented 8 years ago

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.

jukkae commented 8 years ago

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:

bertfrees commented 8 years ago

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.

jukkae commented 8 years ago

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).

bertfrees commented 8 years ago

Yup, that's what I was thinking too. CSS need to be extended a little for that.

joeha480 commented 8 years ago

I have updated the OBFL spec. to be a bit clearer about margins vs. row-spacing: https://github.com/joeha480/obfl/commit/fe32c15739a424c729b92625f3bff6d7a4f8885b

bertfrees commented 8 years ago

Nice. FYI I've updated the CSS spec too: https://github.com/snaekobbi/braille-css-spec/issues/18

bertfrees commented 8 years ago

@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.

jukkae commented 8 years ago

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.

bertfrees commented 8 years ago

@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.

jukkae commented 8 years ago

Ok, very good. I'll have a look at this today.

bertfrees commented 8 years ago

See also https://github.com/joeha480/dotify/issues/132

bertfrees commented 8 years ago

Merged in 9669b5d5f191d0fbeb57a2188e42620e45036a08