Ren Jeffrey:
> Is current "charset" feature only valid for "keyword", or entire document?>
> And I think I needn't the multiple charset feature in one document.> I need
> only the charset-specify ability for whole document.
Charset feature is available for each style over the entiredocument. If, for
example, you were Icelandic and writing a programfor use by Russian people, you
could specify that identfiers use theISO8859-1 character set but strings be in
KOI-8:
Alþjóðasamstarf = "Русский Текст"
> How about the following solution?> This will avoid the extra permance impact
> and 8bit string impact.> But it will be very helpful for 16bit strings,
> including but not-limited> asian fonts.>> if(IsNT() || nCodePage==0){>
> ::ExtTextOut(hdc, rc.left, ybase, ETO_OPAQUE, &rcw, s,>
> Platform::Minimum(len, maxLenText), NULL);> } else {> // Support asian
> string display in 9x English> wchar_t tbuf[MAX_US_LEN];> int
> wStrSize=MultiByteToWideChar(nCodePage, 0, s, -1, NULL, 0);>
> MultiByteToWideChar(nCodePage, 0, s, -1, tbuf, wStrSize);>>
> ::ExtTextOutW(hdc, rc.left, ybase, ETO_OPAQUE, &rcw, tbuf,> wStrSize,
> NULL);> }
There are three functions (DrawTextNoClip, DrawTextClipped,
andDrawTextTransparent) that are quite similar and each will have to havethis
change so it'd be better to extract this logic into anotherfunction. If you
don't do this, I'll try to before committing.
Another issue is that there are various problems with the
differentplatforms. Very long text is often badly displayed or disappears.
Iexpect there are more problems when displaying Unicode strings onWindows 9x
then there are for ANSI strings.
> Yes, I have updated 98SE English to IE6 SP1 first with CJK display and> input
> support.> I have tested other editors too.> Both Win32pad (base richedit) and
> EmEditor can display the CJK file> correctly.> As I think, this feature is
> important for Scintilla.
I'm not so sure: Windows 9x is a minority platform with adecreasing user
base. The set of Latin character set Windows 9x usersthat wish to edit CJK text
would be quite limited. I could imagineuses in a cost-constrained market such
as education.
> No, I tried DBCSCharLength() but seems not to work.
Try writing a test program that checks the result of passing all256
potential lead byte values into IsDBCSLeadByteEx along with yourcode page.
Neil
_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest