Newbie Spellweaver
- Joined
- Jul 5, 2016
- Messages
- 25
- Reaction score
- 1
I want to type Thai language into the chat box.
i edit
LittleEndianAccessor
MaplePacketLittleEndianWriter
edit cilent and change font client to tahoma
is work but thai vowels are counted as one word see pictrue v111 gms
i need fix this anyone can help me
Example: THMS v96
i edit
LittleEndianAccessor
PHP:
public final String readAsciiString(final int n) {
try {
final byte ret[] = new byte[n];
for (int x = 0; x < n; x++) {
ret[x] = readByte();
}
return new String(ret, "TIS-620");
} catch (UnsupportedEncodingException ex) {
System.err.println(ex);
}
return "";
}
MaplePacketLittleEndianWriter
PHP:
private static final Charset ASCII = Charset.forName("TIS-620");
PHP:
public final void writeAsciiString(final String s) {
write(s.getBytes(ASCII));
}
public final void writeAsciiString(String s, final int max) {
if (s.getBytes(ASCII).length > max) {
s = s.substring(0, max);
}
write(s.getBytes(ASCII).length);
for (int i = s.getBytes(ASCII).length; i < max; i++) {
baosWrite((byte) 0);
}
}
PHP:
public final void writeMapleAsciiString(final String s) {
writeShort((short) s.getBytes(ASCII).length);
writeAsciiString(s);
}
public final void writeMapleAsciiString(String s, final int max) {
if (s.getBytes(ASCII).length > max) {
s = s.substring(0, max);
}
writeShort((short) s.getBytes(ASCII).length);
write(s.getBytes(ASCII));
for (int i = s.getBytes(ASCII).length; i < max; i++) {
baosWrite((byte) 0);
}
}
edit cilent and change font client to tahoma
PHP:
// Allow foreign characters in chat - credits to yeehaw and sonkub
// CWndMan::TranslateMessage
// PatchNop(0x00BEEE6D, 9);
// CWndMan::EnableIME
// PatchNop(0x00BEE769, 2);
// IsDBCSLeadByte 1
// WriteValue(0x0058F990, (char)0xEB);
// IsDBCSLeadByte 2
// WriteValue(0x00A5180F, (char)0xEB);
// IsDBCSLeadByte 3
// WriteValue(0x00AED532, (char)0xEB);
// IsDBCSLeadByte 4
// WriteValue(0x00B3C7E2, (char)0xEB);
// IsDBCSLeadByte 5
// WriteValue(0x00C3CAF8, (char)0xEB);
is work but thai vowels are counted as one word see pictrue v111 gms
![Maple0003 - ้help V111 native languages - RaGEZONE Forums Maple0003 - ้help V111 native languages - RaGEZONE Forums](https://forum.ragezone.com/data/attachments/101/101648-c5d11ae9ddd29fc394ef2cb88cbfd7dc.jpg)
i need fix this anyone can help me
Example: THMS v96
![Maple0000 - ้help V111 native languages - RaGEZONE Forums Maple0000 - ้help V111 native languages - RaGEZONE Forums](https://forum.ragezone.com/data/attachments/101/101653-256bccb72317c3a58ff4695e0635047d.jpg)
Attachments
You must be registered for see attachments list