Casting `<u>` and other elements with no equivalents
Editoria doesn't support <u>
or underlining. When underlining appears in Word data, XSweet will produce either or both of (element) <u>
or (CSS) text-decoration: underline
. What to do with this?
Probably the latter will mostly wash out with the rest of the CSS from the source data. But what about arbitrary <u>
?
Several options come to mind (there may be others):
- Have a catch-all rule for things like
<u>
or other 'unmapped' elements, such as to produce<span class="docx-u">
, which can be found and changed to something better - Decide that
<u>
should amount to<i>
(old-fashioned 'typescript' convention - typed underlining used to mean "please italicize") or maybe even<em>
😉 - Hybrid approach, produce
<em class="docx-u">
Note that this would be the rule by default. Presumably if/where mappings could be customized or configured (#3 (closed)), special cases of <u>
could be handled as well.