RTF Status (both Microsoft and in Xojo) ?

  1. 4 months ago

    Emile S

    Jul 31 Europe (France, Strasbourg)

    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 (l<invisible code>image), 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) :(

    For Xojo, this bug exists since… ages, and making a TextArea doing something is nearly impossible.
    http://docs.xojo.com/Resources:Deprecations 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 ?

  2. Norman P

    Jul 31 Pre-Release Testers, Xojo Pro under THE bus

    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

  3. James S

    Jul 31 Pre-Release Testers, Xojo Pro

    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.

  4. Norman P

    Jul 31 Pre-Release Testers, Xojo Pro under THE bus
    Edited 4 months ago

    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

  5. Christian S

    Jul 31 Pre-Release Testers, Xojo Pro, XDC Speakers, Third Party Store Germany

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

  6. Bob K

    Jul 31 Pre-Release Testers, Xojo Pro, Third Party Store Kansas City

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

  7. Markus W

    Jul 31 #JeSuisHuman New Zealand, Auc...

    @Bob K 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/

  8. Martin T

    Jul 31 Pre-Release Testers Germany

    @Markus W Wouldn‘t that be RTFD?

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

    RTFD is a RTF extension created by Apple. You don’t need to create RTFD files. The RTF Format supports all features Bob described.

  9. Emile S

    Aug 5 Europe (France, Strasbourg)

    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)

  10. Martin T

    Aug 5 Pre-Release Testers Germany
    Edited 4 months ago

    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.

  11. Emile S

    Aug 5 Europe (France, Strasbourg)

    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… :(

    BTW: did you read

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

    ?
    (tested with LibreOffice 6.2.5.2).

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

    dead end reached.

or Sign Up to reply!