RTF Status (both Microsoft and in Xojo) ?

After my error earlier, Iget an eye on RTFand Xojo 2019r1.1.

Of course, I loaded rtf files created with TextEdit (Apple, rtf) to find l’image is translated to l\\u146 image (limage), some vowels with diacriticals disappears (<é> encoded as <\u233 >), etc.

So, I checked within wikipedia (english), but RTF does not seems to be deprecated from Microsoft, but not updated since 2008 (that is 11 years ago) :frowning:

For Xojo, this bug exists since… ages, and making a TextArea doing something is nearly impossible.
http://documentation.xojo.com/resources/deprecations.html does not say a word (!) about RTF.

My question is double: what is the RTF status in both Microsoft AND Xojo. In short, deprecated by Microsoft and no more supported by Xojo (will never be updated no bug removal will be done) is an answer.

In short: “do not waste your time with that feature”.

Or ?

the entire RTF spec was NEVER supported by Xojo
it was a custom subset of RTF that made it possible to use styled text in Xojo, save that to a file and reload that
no more

IF you want more complete support of RTF you probably need to use FTC

You may be able to use declares on macOS to expose more of the underlying native text control which may permit better RTF support

But still this is a text encoding issue and not just needing more access to the underlying RTF features isn’t it? It looks like your rtf file is appropriately escaping those codes, but that Xojo isn’t reading them back in or creating them properly?

How are you loading the RTF files? If you properly define the encoding to UTF8 and then assign them to the text field does that make it work? If not, then I think a feedback report is appropriate since Xojo has worked so hard to support text encoding throughout the rest of the framework. It really shouldn’t be that big a deal to parse those out properly and to generate them properly.

rtf is purely ascii - its NOT a text encoding
but it encodes thing much like html does so the rtf readers have to implement whatever decoding or they just do nothing with it which appears as incorrect text

You can try our RTFDataMBS and WinRTFDataMBS functions in MBS Xojo Plugins.
They offer native RTF features for both Mac and Windows.

Or you can look at Formatted Text Control as it allows hyperlinks, images and allows a page view.

Wouldn‘t that be RTFD?

Some background info: https://eclecticlight.co/2019/07/30/rich-text-documents-rtf-and-rtfd/

[quote=448168:@Markus Winter]Wouldn‘t that be RTFD?

Some background info: https://eclecticlight.co/2019/07/30/rich-text-documents-rtf-and-rtfd/[/quote]
RTFD is a RTF extension created by Apple. You don’t need to create RTFD files. The RTF Format supports all features Bob described.

rtf support embedded images (but I will not tell you about the file size…)

LibreOffice file (the one I tried with accentuated vowels) is not even displayed ! The TextArea is blank (hold nothing).

To not have troubles with Xojo’s RTF I/O (mainly Inputs), the best thing to do is to create a Xojo RTF Editor and save the file from there.

But who want to waste hours if the format is dead ?
Thus the question: What is the RTF Status ?.

Or I may ask differently: what is used to open / save text with styles (size, fonts, styles) nowadays ?
(beside custom one)

RTF is ubiquitous. Even though the last format specification is very old, all today’s office applications offer an RTF export. Why? Because the RTF format can be opened cross-platform without any extra Office software. Like the TXT format, it has became a standard for the operating system. Word, LibreOffice, Apple Pages, Nisus Writer, Mellel, Bean and Co. - all read and write RTF files, whereby Microsoft Word of course offers the most comprehensive RTF support.

You ask what formats are used today? The answer is DOCX and ODT. DOCX is the Microsoft format and ODT is used by Libre/OpenOffice etc… It is a zip folder with various XML, text and optional media files (images). Both formats support all RTF properties.

If you are using RTF files, make sure that pretty much any user of any operating system can open the file, unlike DOCX and ODT.

Hi Martin,

RTF (maybe excepted in Microsoft applications ?) are not the default file type, but an Import / Export feature.

I never saw an ODT file (anywhere), but I saw DOCX files (probably, most files I saw were xls)…

I may stop creating software as this start to be boring for a single, lonesome cowboy developer or stay with the RTF skeleton application I already have… :frowning:

BTW: did you read [quote=448979:@Emile Schwarz] file (the one I tried with accentuated vowels) is not even displayed ! The TextArea is blank (hold nothing).[/quote] ?
(tested with LibreOffice

At last, yes, I know Xojo have so many works in his plate and so few time… :frowning:

dead end reached.

The RTF standard is NOT deprecated and much far away to be dead. Most of the time you will use RTF 1.0 from 1987 and 1.5 from 1997 to include 16-bit Unicode and PNG or JPEG

The later updates to the standad where just to add compatibility with new features of WORD. So, the only “downside” for not being updated anymore is that new features in word 2010 or later cant be saved in a RTF file.

So, in Microsoft and the rest of the world, the 3 decades old format is still in use and it is not going anywhere in the near future.

As for Xojo, well, if they havent provide support in those 3 decades…

You can use a workaround to load RTF in windows: https://forum.xojo.com/57561-why-is-rtf-support-so-awful-and-some-work-arounds