Hi,

REALbasic 2007r2 Standard for Windows
Windows XP SPII
Fujitsu-Siemens Pentium IV 2.8GHz / 512MB
[This is not an add since I strongly dislike that machine]

Warning:
I do not use my usual set of test files, so this report is not very usefull!

Pro:
Saving RTFData under Windows does not suffer of the Bold, Italic, Underline 
troubles the Mac OS X version have.
Also, the Blue color (\red0\green0\blue255;) that disapears under Mac OS X 
works fine under XP SPII.

Cons:
BUT, the { and } characters bug is here too! THEY ARE NOT ESCAPED in the source 
(saved as { or } instead of \{ or \}).
The non ASCII characters were saved as unicode (\u224, \u231,  \u249, etc.) The 
EditField default encoding us UTF-8, so...

In the text I used (in fact I copy the code I used to save the RTFData), I 
place two quotes ("") followed by some characters whose value is beyond the 
ASCII Table range (specifically: é,è,à, the currency character, the Euro 
character "€" and the @ character). None of these characters appears in WordPad.
After a simple check in the rtf source code, I found that the quote character 
is not escaped (it appears as '""' instead of '\"\"' - the single quotes 
appears here as a characters separators).
Nota: Windows XP does not escape the quote character, but write it as follows:
\fl "" two quotes\par    THAT IS THE ORIGINAL WRITTEN LINE!
The rtf segment definition is:

{\rtfl\ansi\ansicpg1252\deff0\deflang1036

the non ASCII characters are coded as: '\'e9 eacute\par
and REALbasic RTFData wrote: \u233  eacute\par


I just checked what result I could get from the Windows built-in "save as rtf" 
feature: the text appears fine (using my REALbasic generated program).


It tooks me a while until I found a way - under XP - to get the rtf data source 
(I used Netscape!), but it was nice to read it. [1]

And for the good tongue (la bonne bouche!):

Do not put some rtf code in your styled text document ;)
[No crash, but nothing appears in WordPad!]

BTW: until this line in this mail, I do not used REALbasic to read the 
generated rtf file, but WorldPad.

I just tested the Open RTFData ON A REALbasic generated file and it does not 
works too on Windows XP. [To do that, I used an old project, not a function 
added on the first project I used previously for the tests.

FOR THE RECORD: Ctrl-Shift-Drag on a BevelButton duplicates it (I have troubles 
using that under Mac OS X)... :(

Back with the first project where I made the save as rtf tests previously.

One for RS, one for me: I just made an error: I placed the Import code in the 
Export button, so when I clicked into the Import button, I choosed to save an 
empty EditField and get an OutOfBoundsException...
[I had no reason to try to save an empty EditField :)]

OK: the simple code to load a rtf file generated by REALbasic does not works 
(the file was empty!) Error + Error = Errors!

Another try and... the 722 bytes rtf file cannot be loaded! The hard disk led 
is flashing, but the main window was not refreshed and closing the window leads 
in "This program does not answer..." (free translation). OK, call this a crash 
and bye bye...

I'd better stop that and change the music (From Sting to ? What is available ? 
The Rolling Stones! OK...) and go to "L’auberge du lion d’or".

Emile

-- 
[1]: Netscape does not wanted to open the Windows created rtf file (?), I had 
to find another program to open it and decided to use my own one... I have to 
qualify it as a bug in my own program, but I am happy to have it: I was able to 
open the rtf file as source code (not rendered!)...

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to