For those interested in this topic, you might want to checked paged.js https://pagedjs.org/documentation/ It's an polyfil for the unimplemented CSS paged specification, which is exactly that is needed for laying out pages. https://www.w3.org/TR/css-page-3/
Laying Out a Print Book with CSS
41–50 of 121 posts
Re: Laying Out a Print Book with CSS
#42This article completely misses the point. Proper typesetting is about achieving a consistent appearance starting from ligatures and kerning, then word spacing and hyphenation, up to entire paragraphs and pages. Each character has to be typeset considering what character came before, how many words are in the same line and other lines in the same paragraph. The choice of font is also questionable, but not the main iss…
> Proper typesetting is about achieving a consistent appearance starting from ligatures and kerning, then word spacing and hyphenation, up to entire paragraphs and pages. I looked into CSS hyphenation because I was curious about controlling hyphenation in ebooks. CSS hyphenation appears to be based around the principle that you manually insert HTML entities representing potential hyphen locations into every word, whi…
In CSS, automatic hyphenation must be explicitly turned on, see [3].
In TeX and in CSS, hyphenation points can be marked explicitly: in TeX with the \- macro and in CSS with the ­ or U+00AD character. In TeX you can also override the automatic division with \hyphenation{}.
The splitting algorithm in CSS is worse than the one in TeX, because it has to work in real time and because (good) splitting patterns are often missing.
[1]: https://www.tug.org/docs/liang/
[2]: https://www.fi.muni.cz/usr/sojka/papers/euro01.pdf
[3]: https://developer.mozilla.org/en-US/docs/Web/CSS/hyphens
Re: Laying Out a Print Book with CSS
#43This article completely misses the point. Proper typesetting is about achieving a consistent appearance starting from ligatures and kerning, then word spacing and hyphenation, up to entire paragraphs and pages. Each character has to be typeset considering what character came before, how many words are in the same line and other lines in the same paragraph. The choice of font is also questionable, but not the main iss…
Re: Laying Out a Print Book with CSS
#44Re: Laying Out a Print Book with CSS
#45One serious problem is that CSS do not support CMYK colors.
Might be a joke, humor can be difficult to convey in forum post form, And I am that stereotypical sort who often does not get humor. But I will bite. It is a printed book... there is no color in the process.
Re: Laying Out a Print Book with CSS
#46Re: Laying Out a Print Book with CSS
#47-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-ligatures: contextual common-ligatures;
Give them a try and let me know if they help :-)
Re: Laying Out a Print Book with CSS
#48Re: Laying Out a Print Book with CSS
#49Earlier quoted context omitted.
yeah, it seems a bit weird to be marketing your techno thriller book with a post about css. I mean I guess there is some overlap between the two subjects, as there is likely be overlap between anything in a world with complicated people.
It. Is. Marketing. The very first sentence is just a link to Amazon to buy the thing.
Re: Laying Out a Print Book with CSS
#50Earlier quoted context omitted.
It. Is. Marketing. The very first sentence is just a link to Amazon to buy the thing.
Yup. Well written enough for me to forget that part. Just enjoyed the post .
I would guess a handful at most.
And I am not saying that to criticise the author. Marketing is genuinely difficult. Hell I even did a marketing campaign with paid ads on Reddit to get more people to use one of my pieces of open source, free of charge, pieces of software and even with a bunch of ad impressions and clicks I can still count the amount of new stars on just a few hands