Win a copy of Head First Go this week in the Go forum!

hassan ibrahem

Greenhorn
+ Follow
since Mar 12, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
1
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by hassan ibrahem

Knute Snortum wrote:That's great!  Care to share what you did?


sure just wait i asked my friend how because he did it
and i will share it
6 days ago
thank all

now i fixed it ^_^
and its write true now
1 week ago

Stephan van Hulst wrote:You're giving us way too little info.

Anyway, this is not really a Java issue but a issue of the software you're using. I can only suggest you look at the makers of the game for support.




its java because all chat cod and file in java language
tell me what you need  info and i will send to you

this maybe will help
chat server in game
1 week ago

Paul Clapham wrote:

hassan ibrahem wrote:chat game its on server file and its not support arabic because its not make for it



As I said earlier, it's not the responsibility of the server to join up the Arabic characters and choose the correct shapes. It's the responsibility of the client to receive Unicode representations of Arabic characters and display them appropriately.



what we trying do ?
we trying make the word true and shaped when it send to client and the client not need do anything just show it
1 week ago

Paul Clapham wrote:

hassan ibrahem wrote:chat game its on server file and its not support arabic because its not make for it



As I said earlier, it's not the responsibility of the server to join up the Arabic characters and choose the correct shapes. It's the responsibility of the client to receive Unicode representations of Arabic characters and display them appropriately.



ah i know client nott support arabic so we need make server support arabic and make shape
and someone did it befor but we dont know how
1 week ago

Stephan van Hulst wrote:You need to explain this in more detail.

What do you mean by: "it is sent as English characters"? What characters? Do you have an example?

What installation and conversion does the game need to do? Why don't the files support Arabic? Do you mean that the encoding of the files is in ASCII?

Even if Arabic characters aren't supported, and you have to hack around this, why are the characters inverted at all? Why don't they appear in the String in reading order?



hi im sorry because im to late

look first we have 2 file
file server (emulator) who make game run online
and file game (client)
chat game its on server file and its not support arabic because its not make for it
arabic language have different encoding so we need add that code
to make it support arabic
someone tell me we need (arabic shape) but idk how make this
1 week ago

Stephan van Hulst wrote:Reversing Arabic characters is a mistake. You MUST put the characters in the same order that you read them, so to get the string that you want, the first character must be م, the second character must be ك, the third character must be ي, etcetera.

These character have an intrinsic reading direction of right to left. That means that even though the the rightmost character appears at index 0 in the string, a text renderer will still display it further to the right than the character at index 1. If the text renderer of the game does not do this, then reversing the characters will not help you and it will even make the situation worse because now the string represents a text that doesn't even make sense in Arabic.

Even IF the goal is to reverse the string, doing it character by character is a big mistake. For Arabic it doesn't really matter that much, because the Arabic characters can all be represented by a single UTF-16 code unit, but for languages that require more than one code unit to represent a character, you will completely corrupt the text.

To debug the program, add the following statement after you filter the message:

This should print "[06, 27, 06, 44, 06, 33, 06, 44, 06, 27, 06, 45, 00, 20, 06, 39, 06, 44, 06, 4a, 06, 43, 06, 45]" if your message is indeed السلام عليكم .





The subject is a bit complicated
When the message is sent inside the game, it is sent as English characters and it will be separate
This is because the game files do not support the Arabic language so it will not perform any installation and conversion
So the idea here is to make server files do the installation and conversion if we made
Installation and conversion Before receiving the information will be correct
Because they are inverted, ready and correct when viewed in the chat box
1 week ago

Tim Holloway wrote:

Knute Snortum wrote:Here's what the letters in the first post look like in my browser:



Not sure how that applies here, though, since it's not definite that the offending app is even running in a web browser environment.

I can see the "pretty" typesetting in Firefox, but again, depending on the fonts available, intelligence of the rendering engine and environmental settings (code page, etc.) Your Mileage May Vary.



already used all font what i have but its from server sending
when server send it to client its send it like eng not Arabic because not know it
1 week ago
thank
but there are 2 file
1- for server
2- client
so i need edit from server and make it know i write with arabic language
this file for chat server
here

and this also here
1 week ago

Paul Clapham wrote:Sorry, I'm completely unfamiliar with that product. But from the picture you posted it looks like Arabic script can be made to work in it.

I see the aiononline.com site (that's what you are using, right?) has forums and support. Perhaps you should ask over there? At least there might be more people familiar with the product.



thank you for your replay
yes its aion
but code for server file :( so its manger of writing in game
if i make it true and support arabic will fix problem
1 week ago

Paul Clapham wrote:Hi hassan, welcome to the Ranch!

You ask a very good question. Unfortunately we can't tell from your post where you are trying to write that text. Is it being displayed in a browser, or at a command line, or in a Swing or JavaFX text component? It's normally the job of the text component or browser or whatever to lay out the Arabic text with the appropriate ligatures to connect the letters together.



hi any thank you ^_^

i try write it in chat game like this


if you need more info i will send ^_^ thank again
1 week ago
I open a new game but I got a problem. when I write in the Arabic Characters/Letters in Arabic Language, it doesn't show me Connected words. I then edited something because it was inverse, first time it was and the words are not Connected
م ك ي ل ع م ا ل س ل ا

but it must be
السلام عليكم

my code



if you want other code i have
and if you want more info i have too
1 week ago