Re: TeX's \nonfrenchspacing with CSS?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jukka K. Korpela

    Re: TeX's \nonfrenchspacing with CSS?

    Scripsit Ben C:
    A neater way of doing it might be to surround each sentence with <span
    class="sentence ">...</span>.
    >
    Then use
    >
    .sentence { padding-right: 0.25em }
    .sentence:after { content: "." }
    >
    Or not bother with the :after (which is unsupported in IE probably,
    and a bit silly here anyway) and just type the .s in.
    It would in a sense be more logical to use markup for a sentence rather
    than a punctuation mark, but on the practical side, which of them would
    you more probably want to style? (Apart from the extra spacing discussed
    here; it can be added in either case.) Well, maybe there's no
    difference.

    But it would indeed be a bit silly to omit punctuation from the content
    and rely on CSS for adding it - even if we don't consider the lack of
    support. In particular, speech browsers would read the text
    continuously, with no breaks or change of tone at sentence breaks, since
    they would see no sentence breaks.

    Things would be different if HTML had <sentencemark up from the
    beginning, with due browser support even when CSS is off. But that
    happened in a parallel universe only.

    --
    Jukka K. Korpela ("Yucca")


Working...