[Thai To Unicode Mac Download

0 views
Skip to first unread message

Ainoha Sistek

unread,
Jun 13, 2024, 3:20:11 AM6/13/24
to dialissoundtric

I have a string with few characters in Thai. This string is using unicode characters. But I don't see thai characters in IDE or even if I write the string in text file. If I want to see thai characters properly I have to write the following code

Thai To Unicode Mac Download


Download ✶✶✶ https://t.co/dnJXrOUN2S



Different computers can use different encodings as the default, and the default encoding can even change on a single computer. Therefore, data streamed from one computer to another or even retrieved at different times on the same computer might be translated incorrectly. In addition, the encoding returned by the Default property uses best-fit fallback to map unsupported characters to characters supported by the code page. For these two reasons, using the default encoding is generally not recommended. To ensure that encoded bytes are decoded properly, you should use a Unicode encoding, such as UTF8Encoding or UnicodeEncoding, with a preamble. Another option is to use a higher-level protocol to ensure that the same format is used for encoding and decoding.

ดдด

If you had done your homework, you would know that mai tho and maitaikhu (UniCode names) are what UniCode refers to as Non Spacing Markers (NSM). This means that the font renderer should not move to the next character cell when displaying this glyph.

In order to avoid the mess you see above, the Thai API Consortium (TAPIC) made the WTT 2.0 standard that describes both how the font rendering algorithm should handle Thai letter order when it receives it as input and also how the input method should allow such characters to be input if you attempt to type them.

Bear in mind that some editors have broken input methods that allow typing multiple NSM that cannot be combined but the output method will render only legal sequences; the result being an illegal input string that looks OK to the user on his system.

The latter two are in the category Mark, Nonspacing, and have the Combine property (Canonical_Combining_Class) set to 107, meaning that the code points are combined with the preceding code point in rendering.

You are never supposed to combine hundreds of unicode characters into one single graphical character, although unicode formats technically allow it; you usually combine not more than 2 or 3 characters.

In Thai, you have vowels and tone marks, which are displayed above the consonnant character (sometimes vowels appear below, or even around the consonnant characters...).It's a bit like accents over vowels in French (, ...) or umlauts in German. It's not normal to have more than two such signs in Thai (and more than one in French or German). It means your input is illegal Thai text (maybe written to provide some funny graphical effects, like "ASCII art"). I'm not surprised that such illegal text is interpreted differently according to the browser.

other topic.
Fail on thai font Technical Support Help me pls. How can I solve this problem also. [image]
Thai alphabet have problem in sublime Technical Support Hi Sublime Teams, I use sublime text 2 in Mac OS X 10.8.2 and Windows 8. I have some problem about Thai alphabet can not show correctly. that's make me irritable. (1) Sublime Text 2 on Mac OS X 10.8.2 (2) Sublime Text 2 on Windows 8 (3) This show correctly Thai alphabet This is information about Thai alphabet _alphabet I hope you will fixed it soon. Cheers,
Support for other languages? Technical Support The real shame is I pasted in other languages and they work fine. The editor just doesn't seem to look Thai for some reason. Its a strange language in some respects where vowels are sometimes positioned above (and below) consonants etc.

I'm guessing that it's merely a configuration issue.Are you running vim or gvim? If you're running (console) vim,
your console may not be able to display the characters even if
vim tells it to.However, if you are running gvim (or vim in a console that
supports UTF-8), then it's likely a configuration issue.It would help if you included the output of :set fenc? enc? tenc? fencs? bomb?to see more about what your settings include.-tim

You should not edit a UTF-8 file with 'encoding' set to cp936, because many
characters can be represented in UTF-8 but not in cp936.See in my other reply the URL of a vim-wiki article about how to use Unicode
in Vim.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
51. You put a pillow case over your laptop so your lover doesn't see it while
you are pretending to catch your breath.

On Oct 12, 8:21 pm, Nwngz wrote:
> I'm a newbie on lovely vim.
> I've saved/set the file with UTF-8 encoding, but it doesn't work! But
> the notepad of Windows XP handle it correctly, other editor like
> EditPlus, Wordpad (from windows) also work well. Is this a bug? Or I
> made some mistake on the setting? Can anyone help me out?

I can confirm that Vim 7.1.138 on WinXP does not show the Thai
characters in this file (only boxes appear), even though the font
settings are the same as for Notepad (which works correctly).However, the Windows CharMap.exe program tells me that none of the
fixed width fonts have Thai characters on my system. So I guess that
Notepad is actually falling back to some other (non-fixed-width) font
when it displays Thai characters.

Thanks.I've set the encoding to utf-8, and re-open the file, but all the Thai
characters are drawing as box (not "?" this time).I found your reply to the thead "How to edit UTF-8 files with gVim on
WinXP when "encoding=cp1250" ?", and take all the steps that you
wrote, but the problem sitll there.I guess that gVim can't display the Thai characters with other writing
characters in the windows without specific font.But why Notepad can handle it correctly, even its font settings same
as gVim. The only answer that I can guess out, is that, Notepad (it is
only a Edit control with a few file operating) drawing all the
character with the Microsoft Uniscribe Unicode script processor engine
to handle complex writing characters, but gVim doesn't.

I have that "Bitstream Vera sans mono" installed, and have set guifont
to that face, but also have the problem. Even I've change the default
encoding to UTF-8 or convert my "thai alphabet utf.txt" to "plain"
utf-8 file (withou BOM).gVim was able to handle the Thai syllable but unable to display it
correctly, it render the Thai syllable as a "?" or just a box, is that
mean gVim treat the glyphs of Thai characters/sylleble as "glyphs that
outside the current font"?I haven't installed any Thai language pack or font, but my IE /
Opera / Firefox / Notepad / EditPlus are all rendering correctly! So,
I have a question: Does the Vim (gVim) able to work well with a file
that contain Thai character or any others writing characters that
doesn't belong to current language of the OS, with the correct
rendering, under the Windows?

You've got a problem here. The font chosen on my Windows XP box is
Angsana New, which is NOT a fixed-width font. Vim requires the use of
fixed-width fonts. You need to find a suitable fixed-width font on
the Internet yourself to use with Vim.Best regards,Yongwei--
Wu Yongwei
URL:

I know you have tried the available fonts on Windows. I tried it
myself. That was why I said "you've got a problem" instead of "you
should try such and such". :-)Did you notice that the character width is different from the Western
characters in Notepad? Notepad is supposed to use fixed-width fonts,
but it seems it can resort to variable-width fonts when necessary.

- In Vim 7.0 or earlier, or in 7.1 builds without patch 116 (see the output of
":version"), all Unicode codepoints above U+FFFF are shown as a question mark
(which may be double-width, for "wide" CJK characters). They can be edited
correctly, but not displayed.- In any version, characters not available in the current 'encoding' (e.g.
Thai characters when 'encoding' is set to cp936) may be represented by a
question mark. WARNING: In this configuration, writing the file back to disk
will lose some data, because Vim is unable to represent the offending
characters in memory.- Un Unicode (i.e., with 'encoding' set to "utf-8"), the customary glyph for a
character not in the font is a black diamond with a white question mark on it.- In other encodings, chareacters not in the font (but defined in the current
'encoding') may be displayed variously; often as a hollow box or as a blank space.

>
> I haven't installed any Thai language pack or font, but my IE /
> Opera / Firefox / Notepad / EditPlus are all rendering correctly! So,
> I have a question: Does the Vim (gVim) able to work well with a file
> that contain Thai character or any others writing characters that
> doesn't belong to current language of the OS, with the correct
> rendering, under the Windows?

I read that JUCE was unicode and in facts, I can display my thai language as wanted. Either in label, drawFittedText or TextEditor. It is well displayed. To display the text, i switch my keyboard to thai, and I write the content directly in my .cpp file with emacs which save the file in unicode, then I compile, then run my application. The thai is displayed as wanted.

Straight : I think in this mode, Yudit just get whatever is pressed from the keyboard, so if i set my xfce4-xkb-plugin, (which is initialised with setxkbmap fr,th), to french, a key press display the correct french char, but if it is set to thai, he displays the thai character as wanted.
(It is the way I try to edit text in TextEditor)

795a8134c1
Reply all
Reply to author
Forward
0 new messages