You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a major one: Actually the HTML "<p>" seems to match the RTF "/par", but it doesn't very well. A very much better match is the HTML "<div>":
As the RTF /par it is a vertically sequential block element by nature which optionally can be forced to be arranged side-by-side, just like Word paragraphs are arranged when they form a "table" (which in the very beginning with Word for DOS 4.0 / 5.0 it simply was).
As the RTF /par it is highly customizable by CSS, and nearly every "paragraph formatting" can be applied to it -- but not to HTML "<p>".
There are some RTF "paragraph formattings" which simply cannot be transformed to HTML, like horizontal tabulator positions. This cannot be overcome by using DIV of course. But first-line indentation (as an example) would be possible with CSS. This in turn would enable simple bulleted lists.
Also, when introducing "real paragraph formatting" with HTML, the "HTML writer" must be refactored heavily. I think that it is not that simple as with formatting characters. But it may be worthwhile the experiment. Especially when it comes to "detecting RTF structures which should be transformed into special HTML structures" (like bulleted lists transformed into "<ul>" elements containing mutiple "<li>") much more sophistication is required I think.
The text was updated successfully, but these errors were encountered:
This is a major one: Actually the HTML "<p>" seems to match the RTF "/par", but it doesn't very well. A very much better match is the HTML "<div>":
As the RTF /par it is a vertically sequential block element by nature which optionally can be forced to be arranged side-by-side, just like Word paragraphs are arranged when they form a "table" (which in the very beginning with Word for DOS 4.0 / 5.0 it simply was).
As the RTF /par it is highly customizable by CSS, and nearly every "paragraph formatting" can be applied to it -- but not to HTML "<p>".
There are some RTF "paragraph formattings" which simply cannot be transformed to HTML, like horizontal tabulator positions. This cannot be overcome by using DIV of course. But first-line indentation (as an example) would be possible with CSS. This in turn would enable simple bulleted lists.
Also, when introducing "real paragraph formatting" with HTML, the "HTML writer" must be refactored heavily. I think that it is not that simple as with formatting characters. But it may be worthwhile the experiment. Especially when it comes to "detecting RTF structures which should be transformed into special HTML structures" (like bulleted lists transformed into "<ul>" elements containing mutiple "<li>") much more sophistication is required I think.
The text was updated successfully, but these errors were encountered: