<snip>
> I have a couple of questions ..
> I read that Korean and Chinese have complex scripts .. and I was
> wondering how is the input parsed and everything .. did you guys at
> Valve write your own code or did you call some windows APIs to do
> that?
>
We use a window API for character input (IME in particular) with some
VGUI2 wrappers to expose its functionality (like changing keyboard
language).

> Also, is it possible to manipulate the console? atleast after my mod
> loads?
>
Adding text to it yes, changing its layout no.

> and something that is not directly related: how does Source map the
> keyboard buttons to their corresponding unicode characters?
>
We process the WM_CHAR/WM_SYSCHAR windows message that provides unicode
characters directly.

- Alfred


> On Tue, 1 Feb 2005 16:55:46 -0700, Hasan Aljudy
> <[EMAIL PROTECTED]> wrote:
> > I know this is old :) two monthes old, but anyway.
> >
> > I've added some simple contextual shaping for arabic letters.
> > here's a screenshot (although I think nobody will understand it)
> > http://img103.exs.cx/img103/5889/sdkvehicles00023bi.jpg
> >
> > I basically reinvented the wheel and wrote my own code to do it, but
> > the thing is, I only convert the wchar_t string after it's done
> > being typed; so I didn't really add RTL support, I only re-arranged
> > the the string and changed the shape of the letters according to
> > their context.
> >
> > About this IME, I noticed there are several IME related methods in
> > the IInput interface but the actual implementation of these methods
> > seem to be somewhere we don't have access to. Tbh I don't really
> > know much about this stuff anyway, and I never heard the term IME
> > before you (Yahn) mentioned it.
> >
> > On Sat, 4 Dec 2004 09:06:56 -0800, Yahn Bernier
> > <[EMAIL PROTECTED]> wrote:
> > > I found this to be somewhat useful when researching the issue:
> > >
> > >
http://www.amazon.com/exec/obidos/tg/detail/-/0735615837/qid=1102179
> > > 643/
> > >
sr=8-2/ref=sr_8_xs_ap_i2_xgl14/103-0137991-2115829?v=glance&s=books&
> > > n=50
> > > 7846
> > >
> > > However, the vgui_controls code in the SDK should allow you to do
> > > a
> > > lot of this (adding RTL reading support to Label/TextEntry)
> > > including hooking up the RTL IME in TextEntry if you are motivated
> > > enough.  I know I've seen both Arabic and Hebrew text when playing
> > > CS:Source, so the fundamental support seems to already work,
> > > except for the reading order.
> > >
> > > Adding a new language will involve adding the various
> > > closecaption_newlanguage/vgui_newlanguage/steamui_newlanguage text
> > > files.
> > >
> > > Valve itself will probably be adding additional localizations to
> > > Source over time, since if you'd done it 9 times, adding one more
> > > isn't so hard.
> > >
> > > I'll add the IME (Input Method Editor/Keyboard Layout) help docs
> > > to
> > > the SDK at some point "soon".
> > >
> > > Yahn
> > > Valve
> > >
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Hasan
> > > Aljudy
> > >
> > > Sent: Saturday, December 04, 2004 12:46 AM
> > > To: [email protected]
> > > Subject: Re: [hlcoders] Adding other languages .. (localization)
> > >
> > > Thanks!
> > >
> > > Does anybody of any resoures on the internet about coding unicode
> > > stuff and the like?
> > >
> > > On Fri, 3 Dec 2004 21:54:32 -0800, Alfred Reynolds
> > > <[EMAIL PROTECTED]> wrote:
> > > > The Source engine fully supports the unicode character set. We
> > > > do not currently support right to left text entry. Mods can
> > > > define the fonts used to render their game, you would need to
> > > > use one that includes the
> > >
> > > > Arabic character set. You could use the vgui controls source
> > > > code as a
> > >
> > > > base to implement right to left text controls. So yes, it could
> > > > be done inside your mod (but not in the initial GameUI).
> > > >
> > > > - Alfred
> > > >
> > > >
> > > >
> > > > ----Original Message----
> > > > From: [EMAIL PROTECTED]
> > > > [mailto:[EMAIL PROTECTED] On Behalf Of
> > > > Hasan Aljudy Sent: Friday, December 03, 2004 9:44 PM To:
> > > > hlcoders Subject: [hlcoders] Adding other languages ..
> > > > (localization)
> > > >
> > > > > I really have no idea if this is possible or not, but is it
> > > > > possible
> > >
> > > > > to add support for additional languages? not programming
> > > > > languages
> > > ..
> > > > > I'm talking about localization and stuff.
> > > > >
> > > > > basically, I noticed steam doesn't quite support arabic, the
> > > > > source engine can render arabic fonts fine, the problem I
> > > > > think
> > > > > is related to encoding or something.
> > > > > I can't just type stuff in notepad and copy it over, because
> > > > > even though it looks correct in notepad, once I copy it to
> > > > > Source, it gets distorted .. I have to use the character map
> > > > > and
> > > > > copy stuff from there. an arabic letter have several forms
> > > > > depending on its position in the word .. initial, middle,
> > > > > final .. etc.
> > > > >
> > > > > my question is, is it possible to code stuff like this with
> > > > > the SDK? or is this not aailable to us?
> > > > >
> > > > > _______________________________________________
> > > > > To unsubscribe, edit your list preferences, or view the list
> > > > > archives, please visit:
> > > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > >
> > > > _______________________________________________
> > > > To unsubscribe, edit your list preferences, or view the list
> > > > archives,
> > > please visit:
> > > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > > >
> > > >
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list
> > > archives, please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list
> > > archives, please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > >
> >
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list
> archives, please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to