I have been writing an editor which allows you to type ancient Greek text as well as German (or English
); the application can open and save RTF files and that works quite well (in MacOS I use some declares to speed up RTF loading and saving, after adding some German special characters to be converted correctly).
It still bothered me that Xojo does not parse paragraph alignments, so that I had to write a workaround: While saving an RTF file, the application checks each paragraph and when its alignment is centered or right, it adds a tag at the first position of the paragraph; when opening a file it reads and removes the tags and aligns the paragraphs accodingly.
This workaround does pretty well in my editor, but it has one great drawback: When you open an RTF file with another editor than mine, a centered paragraph (e.g.) will read “\qc One paragraph.” instead of “One paragraph”. Then I thought about inserting an invisible character instead of "\qc " like the invisible separator Unicode 2063 , but the RTF parser does not seem to recognize it.
So my question is: Is there an invisible character I can use in Xojo which will be recognized while parsing RTF data?
Any suggestions will be gladly welcomed, because although my workaround does work (as I have mentioned) the application still feels “incomplete” to me as long as I have not found a way that is not recognizable as the mere workaround that it is at the moment