Can not use Russian on workspace

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Can not use Russian on workspace

Pavel Perikov-2
Probably doesn't worth any priority at all, but....

I can't use Russian in workspaces. Particulary in method source. Compiler
deletes some parts of rtf (regenerates?). So no Russian comments, no Russian
strings. It hurts....
Just before method is accepted, rtf was like:

'{\rtf1\ansi\deff0\deftab240{\fonttbl{\f0\fnil\fcharset0 Times New
Roman;}{\f1\fnil\fcharset204{\*\fname Times New Roman;}Times New Roman
CYR;}}

{\colortbl ;\red0\green0\blue255;\red0\green128\blue0;}

\viewkind4\uc1\pard\tx500\tx1000\tx1500\tx2000\tx2500\tx3000\tx3500\tx4000\c
f1\lang2057\b\f0\fs20 Finish:\cf0\b0 pBSTR

\par \cf2\i "\lang1049\f1\''d0\''f3\''f1\''f1\''ea\''e8\''e9\lang1033\f0
"\cf0\lang2057\i0

\par \tab pBSTR\cf1 value:\cf0 greeting\cf1 asBSTR\cf0

\par }

'



After accepting, it seems to lack the {\fonttbl.. } part:
'{\rtf1\ansi\deff0\deftab240{\fonttbl{\f0\fnil\fcharset0 Times New Roman;}}

{\colortbl ;\red0\green0\blue255;\red0\green128\blue0;}

\viewkind4\uc1\pard\tx500\tx1000\tx1500\tx2000\tx2500\tx3000\tx3500\tx4000\c
f1\lang2057\b\f0\fs20 Finish:\cf0\b0 pBSTR

\par \cf2\i "\''d0\''f3\''f1\''f1\''ea\''e8\''e9"\cf0\i0

\par \tab pBSTR\cf1 value:\cf0 greeting\cf1 asBSTR\cf0

\par }

'



 I've played with
Compiler>>syntaxColors:, putting the fonttbl in prologue. This helped
somehow, but I'm not sure :) Accepting seem to work in some cases, but not
evaluating.

Pavel.


Reply | Threaded
Open this post in threaded view
|

Re: Can not use Russian on workspace

Blair McGlashan
Pavel

You wrote in message news:[hidden email]...
> Probably doesn't worth any priority at all, but....
>
> I can't use Russian in workspaces. Particulary in method source. Compiler
> deletes some parts of rtf (regenerates?). So no Russian comments, no
Russian
> strings. It hurts....
>...

Sorry about that. Comprehensive international languages support is not
something Dolphin claims to, or does, provide at the current time.

The parser will only accept ASCII characters for variable names, etc, but it
would be something if one could use ones native character set in comments
etc. I think one might be able to arrange this by editing the table the
compiler uses for RTF strings that it inserts into the syntax coloured text
(see Compiler class>>defaultSyntaxColours), but I have no idea whether this
will work and what effect it will have on existing method comments.

> ...
>  I've played with
> Compiler>>syntaxColors:, putting the fonttbl in prologue. This helped
> somehow, but I'm not sure :) Accepting seem to work in some cases, but not
> evaluating.

Ah, I see you've already tried that. The RTF parser is quite sensitive to
having spaces in the correct places, so be careful. Also when evaluating
stuff in an existing workspace, you might find that the font table that is
already defined is interfering. When you accept a method, the entire RTF
contents are replaced, when evaluating just the selection is replaced.

Regards

Blair