Fun fact: EPUBs, the global standard for digital books, is based on just HTML, CSS, and JS https://www.w3.org/publishing/epub3/epub-contentdocs.html
Laying Out a Print Book with CSS
51–60 of 121 posts
Re: Laying Out a Print Book with CSS
#52A better phrase would be: Free software is "free" as long as you value your free time, more then you value your time at work.
Re: Laying Out a Print Book with CSS
#53As a former freelance book compositor, I can say there are typically many more details that go into laying out a book. To take this layout up a notch, I would want to create a baseline grid (set the line heights and paragraph margins to align text of different sizes). I would also want to control widows and orphans, which is built into CSS.
Re: Laying Out a Print Book with CSS
#54Earlier quoted context omitted.
> 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…
It’s crazy, and that’s why hyphenation doesn’t really work that way. Both TeX and web browsers use Liang’s algorithm to split words. [1] It uses so-called patterns, which are short substrings of words in which numbers indicate how to divide the word. For example, the pattern “s1h” indicates that in the word “fishing”, a divider can be inserted between “s” and “h”. Patterns compete and can override each other, and the…
Surely that's only the case for real-time renderers like web browsers.
If you're creating a layout engine for printed media that uses CSS as the way for authors/setters to specify style, couldn't it implement a better, slower splitting algorithm? Using an internal (or pluggable?) dictionary of hyphenations?
Re: Laying Out a Print Book with CSS
#55that's where I gave up.
Re: Laying Out a Print Book with CSS
#56Interesting read, I find asciidoctor pdf and its theming guide extremely good to obtain nice results for books and articles, customizing it with CSS, fonts and more
Then someone recommended AsciiDoc and AsciiDoctor. It was a much better experience compared to Markdown. Sure, not for pixel perfect tweaking. Still enough parameters to play with. Easy to create PDFs and EPUBs.
Re: Laying Out a Print Book with CSS
#57Re: Laying Out a Print Book with CSS
#58If the objective was not spend on design software, why not use latex?
Because conTeXt exists and is really much better at that sort of thing, having full native support for things like color, figures that GO WHERE YOU PUT (glares at latex floats). It can all kinda of fancy sidebars, infoboxes, all that InDesigny sort of stuff. You can tell it was built from the ground up for books, and not scholarly publications. In that respect it’s actually closer to plain TeX. It doesn’t try to be o…
I agree that ConTeXt would be a better fit than LaTeX.
Re: Laying Out a Print Book with CSS
#59Earlier quoted context omitted.
Yeah. I was going to echo this sentiment but it looks like you pre emptively followed me. The article has the air of a hack done just for the fun of it because the author can. This was popular once upon a time but these days, it's mostly stuff written to promote certain things or as marketing copy.
This is marketing, don’t kid yourself.