manoj marathayil:

> Here i am attaching the .cpp file. My default language is English, i
changed
> this to malayalam and started typing, it is displaying ??????
..only.But in
> notepad it is showing malayalam fonts correctly.

   It looks like Malayalam does not work with ANSI functions,
requiring everything to be done in Unicode. Scintilla tries to use
ANSI calls to remain compatible with Windows 9x. To input Malayalam,
you will have to change the Scintilla source code. First register the
window class as wide. In win32/ScintillaWin.cxx ScintillaWin::Register
find the piece of code that calls RegisterClassExW, disable the #if
that doesn't let this run and remove the RegisterClassEx call. In the
handling of WM_CHAR, find the commented out code and remove the
comments and drop the AddCharBytes call. In your message loop, use the
wide calls GetMessageW, TranslateAcceleratorW and DispatchMessageW.

   Neil

If I want to support asian fonts to input and display in Scintilla in English OS,
is there any difference between the following behavior?
1. Set codepage with utf-8, compile with Unicode mode as you mentioned;
2. Set codepage with asian codepage (CJK), compile with non-unicode mode.

_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to