News for hackers. Stuff that matters.
Re:The `hanging-punctuation property` in CSS by globular-toast on Tuesday November 28, 2023 @02:29AM (#38443327)
I agree. On my e-reader I can choose to enable hanging punctuation. Why should a web developer be able to or be expected to make that choice for me?
Re:The `hanging-punctuation property` in CSS by lwhi on Tuesday November 28, 2023 @03:04AM (#38443485)
A web developer shouldn't, but a designer should.

Otherwise, why bother with design?

Re:The `hanging-punctuation property` in CSS by marginalia_nu on Tuesday November 28, 2023 @08:53AM (#38445673)
How would you distinguish between web design and development?
Re:The `hanging-punctuation property` in CSS by lwhi on Tuesday November 28, 2023 @12:35PM (#38448380)
How it's built vs what it looks like.
Re:The `hanging-punctuation property` in CSS by marginalia_nu on Tuesday November 28, 2023 @01:34PM (#38449353)
That's arguably a very limited view of design. Design is far more than aesthetics.
Re:The `hanging-punctuation property` in CSS by lwhi on Tuesday November 28, 2023 @01:50PM (#38449598)
Design is visual engineering .. development is software engineering.

Both essentially involve solving problems.

Re:The `hanging-punctuation property` in CSS by marginalia_nu on Tuesday November 28, 2023 @02:05PM (#38449833)
I don't think this agrees with how the term is used. I've never heard of anyone being said to design a painting or a sculpture. Meanwhile, engineers are said to design things that aren't visible, such as algorithms or a circuits.
Re:The `hanging-punctuation property` in CSS by lwhi on Tuesday November 28, 2023 @03:39PM (#38450967)
We're talking about web design.

If we consider art .. sculpture and painting do require planning, preparatory sketches or a maquette. Design thinking allows us to build and solve.

Re:The `hanging-punctuation property` in CSS by marginalia_nu on Tuesday November 28, 2023 @03:42PM (#38451012)
I don't see any obvious reason why design should come to mean pure aesthetics in this particular domain, and even if we do, what word is left to mean actual design work in the traditional sense of the word?
Re:The `hanging-punctuation property` in CSS by lwhi on Wednesday November 29, 2023 @07:38AM (#38458638)
It doesn't mean pure aesthetics .. the way something looks affects it's affordance.
Re:The `hanging-punctuation property` in CSS by Sharlin on Tuesday November 28, 2023 @03:39AM (#38443665)
Why should the typesetter of a dead-tree book be able or be expected to make that choice for me?
Re:The `hanging-punctuation property` in CSS by neoberg on Tuesday November 28, 2023 @04:21AM (#38443955)
Because it's impossible while it's not in the digital medium?
Re:The `hanging-punctuation property` in CSS by charcircuit on Tuesday November 28, 2023 @03:05AM (#38443488)
For the same reason a web page can choose what font to use even of your ereader has a feature to change fonts.
Re:The `hanging-punctuation property` in CSS by tannhaeuser on Tuesday November 28, 2023 @04:42AM (#38444096)
Don't tell the CSS zealots, but mainstream eBook readers (for the XHTML-based EPUB) basically throw the CSS away and reflow everything anyway based on a generic prose style with a heavily optimized serif and user preferences for font size. Most importantly, they're applying proper hyphenation and justification, as expected by book readers and unsupported by CSS for a much better reading experience compared to browsers. The extent of this might not be readily apparent in English language publications (with relatively short words and long phrases), but in German almost every other line has hyphenated words at the end (and I'm guessing in other languages with long composed words such as Finnish or Hungarian as well). EPUB uses extra tags for eg. spreading (responsive layout) anyway.

Reading EPUB 3 specs is almost comical when compared with the feature set of real world EPUB publications and reader software: CSS trickery (such as pointless SVG wrappers around raster images), yet not using floated elements even for the few cases where it's a good fit (initials, flowed images), using Unicode quotations and mdash/ndash, not using CSS paged media for pagination and line numbering, EPUB 3 reference examples crashing reader software, Amazon and Apple using proprietary EPUB extensions for these reasons anyway (and having good technical reason to) while not contributing to W3C, Inc's spec., ...

The last useful EPUB spec version appears to be 3.0. from 2014 before IDPF merged into W3C, Inc. Later versions reference the "HTML living standard" and CSS snapshots (with CSS-everything that no reader software is going to support, ever). To bring old reference examples into compliance with 3.3/epubcheck, the only thing the WG bothered to do was to put secondary headings into <p> elements where they used <h2> in <hgroup> to match the changed spec (removal of the so-called HTML outlining algorithm). Great so this makes the reference examples nominally conformant, but leaves the installed base of eBooks out there without backward compatibility (and e-readers are far from evergreen browsers). Not that it matters anyway: calibre's conversion manpage strongly recommends and defaults to EPUB 2 anyway, supporting EPUB 3 only since 2019. In a way, EPUB 3.3 with its generic forward compat reads like the last spec its authors intend to publish, before the major organizational and funding changes at W3C, Inc in 2023.

I'm seriously beginning to wonder if PDF is the better format for reading and archival after all as 7+ inch reading devices become the norm (or don't they?)

Re:The `hanging-punctuation property` in CSS by chrismorgan on Tuesday November 28, 2023 @04:57AM (#38444169)
> as […] unsupported by CSS

Actually, slap `hyphens: auto` onto the CSS (since its default value is `manual`), and whatever your ebook reader does for things like hyphenation and justification is almost certainly spec-compliant, because all of that stuff is explicitly UA-defined these days.