Hevea lacks the \discretionary macro which means words that need
it (on the LaTeX side) get butchered in the HTML output. This P/R
implements just as much of
\discretionary{pre-break}{post-break}{no-break}
that the special cases \discretionary{}{}{} (empty discretionary) and
\discretionary{-}{}{} (simple hyphenation point) are covered and all
others simply expand to no-break.
Mapping of the empty discretionary to "word-break opportunity":
Some browser interpret the zero-width space character, some the HTML5
tag wbr, and presumable others do not understand either. So, we have
introduced an extra level of indirection called \word@break@opportunity,
which can be redefined by the user to get the desired translation of
\discretionary{}{}{}. The default is wbr.
Hevea lacks the
\discretionary
macro which means words that need it (on the LaTeX side) get butchered in the HTML output. This P/R implements just as much ofthat the special cases
\discretionary{}{}{}
(empty discretionary) and\discretionary{-}{}{}
(simple hyphenation point) are covered and all others simply expand tono-break
.Mapping of the empty discretionary to "word-break opportunity": Some browser interpret the zero-width space character, some the HTML5 tag
wbr
, and presumable others do not understand either. So, we have introduced an extra level of indirection called\word@break@opportunity
, which can be redefined by the user to get the desired translation of\discretionary{}{}{}
. The default iswbr
.TeX macro
\-
directly maps to the soft hyphen.