moderated Re: #bug Italics and other rich text formatting don't transfer to or from text files #bug


Glenn Glazer
 

On 04/18/2021 10:02, Duane wrote:
On Sun, Apr 18, 2021 at 10:52 AM, Kamaloo wrote:
Rich text shouldn't be a problem, should it?
There are differences between rtf and html.  The site can use html (some functions disabled for safety) or markdown.

Duane

This is correct. While RTF and HTML are both markup languages, the syntax and functionality of RTF (a TeX based language) and bears more similarity to PDF (and PostScript before it) than to HTML or XML.

There are several really big differences between the two groups of languages, the RTF/PDF and the HTML/XML:

* The former are proprietary languages (MS/Adobe respectively), the latter are free and open standards.
* The former are focused primarily on creating files to be displayed with a viewer, whereas the latter are primarily about internet communication.
* The former have a large number of functions for drawing shapes and pictures in the output, this is hard in HTML and impossible in XML (without actually including a binary in the document).
* Conversely, if you want imbed an existing image into the document, the latter support many more image formats than the former.

To the main point of the conversation, if RTF were to be supported, Mark would have to find or write an RTF parser which is different than an HTML parser and then integrate that parser into existing code. That's a lot of work for a format that is fading into obsolescence. Even MS doesn't use it for help files anymore, which was RTF's original purpose.

Best,

Glenn

--
#calcare
PG&E Delenda Est

Join main@beta.groups.io to automatically receive all group messages.