TOPIC: Problem russian keyboard
#1945
Problem russian keyboard 2 Months ago
From version scintilla above 2.0, the coding is not switched to Russian, if return library scintilla SciLexer.dll to version 1.65 that all normally.

Editor SciTE (2.12) with Russian works.

Where in suneido to set correct options?
 
 
#1946
Re:Problem russian keyboard 2 Months ago
You can use a different scilexer.dll although if you use an old one, some features may not work correctly.

You can adjust the stdlib code in ScintillaControl or ScintillaAddonsControl (and maybe some of the addons)

I am not sure why Scite 2.12 would work, but SciLexer 2.12 does not.

Let us know what you figure out.
 
 
andrew
 
#1947
Re:Problem russian keyboard 2 Months ago
Good afternoon.

Tried in ScintillaControl insert:

.SendMessageText(SCI.STYLESETCHARACTERSET,1,1251)
.SendMessageText(SCI.SETCODEPAGE,1251)

Without results :(

Has found transition from the working version scilexer.dll to erroneous

1.74 - works
1.75 and above - does not work
 
 
Last Edit: 2010/06/23 11:29 By PowerBoy.
 
#1948
Re:Problem russian keyboard 2 Months ago
Should be just SendMessage, not SendMessageText, since the arguments are integers.

.SendMessage(SCI.SETCODEPAGE, 1251)

But the documentation says: "Do not use this message to choose between different single byte character sets: it doesn't do that."

Looking in scintilla.h SC_CHARSET_RUSSIAN is 204

.SendMessage(SCI.STYLESETCHARACTERSET, 1, 204)

But that is just for style "1". The default style is SC.DEFAULT_STYLE (32)

The Scintilla documentation is at:

http://www.scintilla.org/ScintillaDoc.html

We could look at the source code for SciTE to see what it is doing, but it is quite complicated.
 
 
andrew
 
#1949
Re:Problem russian keyboard 2 Months ago
.SendMessage(SCI.STYLESETCHARACTERSET,1,204)
.SendMessage(SCI.SETCODEPAGE,204)
.SendMessage(SCI.STYLESETCHARACTERSET,1,1251)
.SendMessage(SCI.SETCODEPAGE,1251)

Without results :(
 
 
Last Edit: 2010/06/24 09:52 By PowerBoy.
 
#1950
Re:Problem russian keyboard 2 Months ago
Thanks for support.

Problem has solved

.SendMessage(2521, 1) // 2521 = SCI_SETKEYSUNICODE