Express the most recently applied formatting inline on formatting track changes
The formatting track changes @bharathydasan has been working on with #164 (closed) express the styling information in CSS style syntax, rather than using inline tags. At some point in the pipeline, the styling from the CSS should be expressed inline, for two reasons.
First and most importantly, it's what Wax expects to see, per the target format provided by @christos:
<track-change-format status="add-formating"
oldtype="[]"
addedtype="[{" username ":"demo ","type ":"strong "}]"
user-id="1"
username="demo">
<strong>test</strong>
</track-change-format>
Additionally, by duplicating the CSS styling from formatting track changes as inline tags, HTML in the browser would display the inline formatting even if it ignored the track change tags altogether.
That it's what Wax expects is the more important point. If we set aside the second point, this could also plausibly live in the Editoria Typescript portion of the pipeline, but I think this really belongs as one of the final steps targeting HTML (maybe before the final-rinse.xsl
step?).
@bharathydasan and @wendell have started a discussion on #164 (closed) (specifically here), which we can carry forward on this issue.
I'd propose that we all agree on the target format explicitly before building anything. My suggestion would be to use exactly the target format for Wax, perhpas differing only on the exact tags used if there's a good reason (e.g. we might use <b>
for the HTML and <strong>
for Wax).