|
Korean Job Discussion Forums "The Internet's Meeting Place for ESL/EFL Teachers from Around the World!"
|
View previous topic :: View next topic |
Author |
Message |
dulouz
Joined: 04 Feb 2003 Location: Uranus
|
Posted: Wed Feb 08, 2006 9:34 am Post subject: Localization Guru |
|
|
This thing is supposed to give the the ability to use different languages in VB.
http://www.beta-sigma.com/products/locguru/
I want to see labels/text boxes in different languages
Ever use it? |
|
Back to top |
|
 |
dulouz
Joined: 04 Feb 2003 Location: Uranus
|
Posted: Wed Feb 08, 2006 10:00 am Post subject: |
|
|
I don't think I need this, its used for porting code. Its too much. I just want Hangumal to show on the screen. |
|
Back to top |
|
 |
Bulsajo

Joined: 16 Jan 2003
|
Posted: Wed Feb 08, 2006 1:32 pm Post subject: |
|
|
dulouz wrote: |
I just want Hangumal to show on the screen. |
You want 'Korean speaking' to show up in the screen?!?
Tell this company you want a Korean version:
http://www.nuance.com/naturallyspeaking/
If you want Korean characters to show up on the screen, well then-
in what application?
Internet browser?
Word Processor?
Or some other appplication?
And what o/s are you running?
If the answer is "yes" to the first 2 questions and you have Win2000/XP as your o/s, then try searching the FAQ, there is a 99.9% chance that what you seek is there.
Hint: IME, encoding, region/language settings.
If the answers are "no" then you'll need to provide more info. |
|
Back to top |
|
 |
dulouz
Joined: 04 Feb 2003 Location: Uranus
|
Posted: Wed Feb 08, 2006 3:40 pm Post subject: |
|
|
I want to try passive learning, ie make screen savers with Korean words and phrases and then more after that as well. I want to make some langauge instruction like the rehab methods in Clockwork Orange but on a computer. I have to look at encoding again. I did that a day ago. I had to mail merge Korean addresses into Word and then onto envelopes. I did that once before but this last time I blew over 12 hours and I quit. We eventually did it manually.
I am really working on a NS project right now. I'm a medical record administrator by profession. Its dull but its steady work. We are the people that do medical transcription and I'm supposed to be one of those cutting edge types so I'm obligated to make that thing work. The industry hates NS although it looks like the future so I have to make a very charming sales pitch because NS's advocates usually have fruits and vegetables thrown at them. |
|
Back to top |
|
 |
Bulsajo

Joined: 16 Jan 2003
|
Posted: Wed Feb 08, 2006 9:20 pm Post subject: |
|
|
I'm obviously out of my depth here (except for recognizing that 'hangumal' is not the correct way to describe what you want), I had incorrectly assumed you were asking a noob question about browser encoding and IME...  |
|
Back to top |
|
 |
dulouz
Joined: 04 Feb 2003 Location: Uranus
|
Posted: Sat Feb 18, 2006 3:34 am Post subject: |
|
|
Quote: |
(#17046) User insertable ASCII from the keyboard B'mark-It!
A:
- posted by synergy - last updated on 12/29/2002 7:40:41 PM 0 comment(s) [ read comments ]
- url - http://www.vbcity.com/forums/faq.asp?tid=17046
Like MSWord and other word processors, you can give your user the ability to insert ascii charcters from the keyboard. The process is: if Alt is held down, then get the next three numbers and insert their chr value.
Code:Private Sub txtString_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
Static strAsc As String
Dim AltDown, Txt
AltDown = (Shift And vbAltMask) > 0
If AltDown Then
If IsNumeric(Chr$(KeyCode)) Then
strAsc = Right$(strAsc, 2) & Val(Chr$(KeyCode))
End If
End If
If Len(strAsc) = 3 And Val(strAsc) < 256 Then
txtString(Index).SelText = Chr$(strAsc)
strAsc = ""
End If
End Sub
This could be easily modified to include chr values above 256 for the foreign characters included with some fonts.
|
Quote: |
VB Strings are Unicode
Filed under: Visual Basic 6.0, Charset API — Administrator @ 8:51 am
Question:
Me again! We��re still having a couple of problems. I Think we��ve worked out that we��re not storing true Shift_Jis in the database, we��ve used a bit of code we found online to convert the output of your CharSet.ConvertFromUniCode to a string so it can be used in some server code to search an HTML file for matching strings. Given that Shift_Jis is not consistently 2 bytes per char then I would assume that the code below will not [always] work but may do most of the time.
Pretty much all of what I have read online is dealing with taking unicode data from a file or database and then converting it for output in a web page or another file. What we need is something different. We need to take our unicode data, convert it to a shift)jis string and then search a Shift_Jis web page for matching strings. We also need to be able to take a Shift_Jis string and convert it to unicode in order to query the database. And do all this in ASP VBScript/JavaScript Is all this possible?
We��ve managed to get the unicode out and convert to Shift_Jis and do the comparison against a web page [using the vb code below] but seem unable to switch it back to unicode. I think the code below is causing the problem here as we end up with a screwed up Shift_Jis string, but I may be wrong about that.
Any help or advice you can give will be most appreciated as I feel like I am banging my head against a wall with this��
Answer:
A ��string�� in Visual Basic is Unicode, and it cannot be anything else. So there is no such thing as a Shift_JIS ��string�� in Visual Basic. You can have an array of bytes representing characters in the Shift_JIS encoding. So�� if you are working with strings, you are working with Unicode.
But your HTML file is Shift-JIS byte data. (I say ��byte�� instead of ��character�� because a character means the representation of a single glyph in one or more bytes of a specific character encoding.) What you need to do is convert the HTML file to a VB string (Unicode) and then do the matching string search with VB strings. The Chilkat Charset component has a ReadFile method that reads the complete contents of a file and returns a Variant (byte array). You can then set the FromCharset = ��Shift_JIS�� and then call ConvertToUnicode, passing the Variant to it and you��ll get back a VB string.
Comments (1)
October 6, 2005
In Visual Basic, Strings are Unicode
Filed under: Visual Basic 6.0, Charset API — Administrator @ 4:17 pm
Q:
I tried to find an example usage of charset control in visual basic but i couldn��t succeed. I��m trying to show unicode characters (Turkish, Russian, Arabic, etc) on command button, treeview control and listview control.
I��m using the following code to test:
Dim cs As New ChilkatCharset2Lib.ChilkatCharset2
cs.UnlockComponent ��********��
cs.FromCharset = ��windows-1254��
cs.ToCharset = ��windows-1250��
MsgBox cs.ConvertData(����ţ��)
MsgBox cs.ConvertToUnicode(����ţ��)
MsgBox cs.ConvertHtml(����ţ��)
actually I tested with changing ToCharset and FromCharset also but I couldn��t get the result correctly. The characers there are two Turkish characters.
Is there any way to do this? Can you send me any sample?
ANSWER:
Strings in Visual Basic are Unicode. The only way to work with byte data representing characters in a particular charset encoding is with a byte array.
When you pass ����ţ�� to ConvertData, you are passing a Unicode string (i.e. each character is represented by 2-bytes of data.) However, your code is telling the conversion component that you are passing ��windows-1254�� (1 byte/char) data, but you are NOT. Also, ConvertData returns a byte array (in a Variant), but MsgBox is expecting a string (Unicode of course).
If you are trying to display Unicode characters in VB6, your best course of action is to use the Microsoft Forms 2.0 controls (fm20.dll) instead of the default controls. These are Unicode-capable controls (text box, label, list box, etc.) that can display strings (Unicode) in any language. The default VB6 controls do not support Unicode, even though VB6 strings *are* Unicode, go figure! For me, internationalization is one of the biggest reasons for switching to .NET.
|
|
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|