SCI HEBREW font works but.....

Started by Alex Lowes, Fri 11/07/2003 12:31:14

Previous topic - Next topic

am

There are times where mixing is needed, e.g. when using names etc. another option is a multi-language game :-)
However, I don't see this as a problem since I use scripting anyway ...

Alex Lowes

let me explain what he means ;)
I will speak as simple as it gets by an example:
in hebrew hello=shalom(with hebrew font's)
but to write shalom in hebrew font's we need to spell it blindly ;)
in other words we have written on the keyboard all the hebrew letters
so hello in hebrew is like this= akuo
which means nothing for you but because AGS translates in to the written font we do see the correct shalom :)
it would be grate if we had a screen like in the font editor in sci studio poping up and let us write with the sci fonts themselves so we can see what we are writting :)


now I really did not understand what I have written but I hope somone can explain this better :)

Rani Hasan

Quote from: am on Mon 21/07/2003 20:20:24
There are times where mixing is needed, e.g. when using names etc. another option is a multi-language game :-), However, I don't see this as a problem since I use scripting anyway ...

Well, if that is the case then I think there is no problem :)

I haven't used the engine so much and so I didn't realize that using the built in interactions would not THAT much important. :)

Alex, as for what you mentioned, I completely understand you, but that's not what I asked for :) though having that would be really great ... What i'm planning to do is to write a simple text conversion tool in which you write the words in your local langauge -ie: Arabic, Hebrew - and then it translates them into thier english equvielnt, then you can easily copy and paste the outcome -which is something like 'akuo'- into the ags editor.

Example: you input "Shalom" in the tool -writting in Hebron letters- and it produces "akuo".

Thanks a lot for you comments.

FiXxXeR

#23
This is Rani Hasan.

I need help with the following:

1. What's the API function for enabling / disabling right-to-left -ex: setLeftToRight(0)- ?

2. Alex, how did you solve the problem of having the NEW LINES showing not under the text but above it -Line breaks working upside down-?

What happens:
This is the Second line
This is the First line (when line breaks, the second line appears on top)

What should happen:
This is the First line
This is the Second line

P.S: line breaks should be normal, exactly like english, the only differance is the right-to-left oriantation instead of left-to-right. -for Arabic lanaguge at least-

Please help me with those issues.

Alex Lowes

well your right :)
I just saw the problem ;)
well I did not solve it maybe cj will know how?
and about the text translation tool it could be cooler if it were a plug-in.

LucasFan

QuoteWhat i'm planning to do is to write a simple text conversion tool in which you write the words in your local langauge -ie: Arabic, Hebrew - and then it translates them into thier english equvielnt, then you can easily copy and paste the outcome -which is something like 'akuo'- into the ags editor.

Heh, wouldn’t it be easier to use an Arabic TTF?  ;)

Alex Lowes

well now :)
If you have read my long ago post asking for hebrew support for AGS.
we conqluded that it won't be done in the near fututre cause there are not more than 128 chars to write with :).
So sombody said well no hebrew fonts for now unless someone will make a hebrew sci font :)
and so after moths of planning it I drew the font :)

p.s
will it be possible to add the hebrew font to the font pack on the AGS site?

FiXxXeR

#27
Quote from: LucasFan on Tue 22/07/2003 14:27:29

Heh, wouldn’t it be easier to use an Arabic TTF?  ;)


Ofcourse it would be easier ;) but the problem is the AGS editor doesn't support Arabic letters, and the AGS engine can't import arabic fonts even if they are ttf.

Alex, I'll try to make it as a plugin which can be fully customized to support Arabic and Hebrew.

Oh by the way, I just finished the Arabic font, and it's working smoothly :) but i still need to fix the line break issue, and I need the API function to switch back to left-to-right.

P.S: I hope it's possiable to add the Arabic font too to the Font Pack Alex mentioned.

Rani

LucasFan

#28
Quote…and the AGS engine can't import arabic fonts even if they are ttf.

LOL. And why shouldn’t AGS be able to import them? I’ve read that the Arabic alphabet consists of only 28 characters. The Russian has 33. And AGS supports Cyrillic TTFs very well…  ;)



Rani Hasan

Quote from: LucasFan on Tue 22/07/2003 15:25:39

LOL. And why shouldn’t AGS be able to import them? I’ve read that the Arabic alphabet consists of only 28 characters. The Russian has 33. And AGS supports Cyrillic TTFs very well…  ;)


First of all, i'm arabic and I do know how to count the alphabet ;) the second thing which makes it impossiable for AGS to import the Arabic font is because Arabic letters come in differant shapes -based in thier location at the word and the letter before and after them- and so even if it has 28 alphabet you should multiplay it with at least 3 times to have all the shapes of the letters ready to be used.

What happens when you import an Arabic TTF is that it only imports the first 128 characters which is NOT USEFUL at all as you still have lots of missing letters -letter shapes-.

The other thing is that, even if you import that arabic TTF the AGS editor doesn't handle arabic font -in the editor text fields- for example, if you switch to the Arabic lanaguge and try to add a Global Message instead of having arabic letters showing in the editor's textfield you'll have rubbish characters.

My easy and simple solution to this was to redraw all the arabic letters over the english ones -for example draw the letter "Alef" in arabic over the letter Q- and then type a "Q" when ever i need the "Alef" letter, and to handle large amounts of text, i'll design a tool in which you write the words in Arabic, and then it converts all the "Alef" letters for example to "Q" and then I would easily copy and paste the out come into the AGS editor and that's it :) you have an Arabized AGS Engine :)

I'm done with the Arabic font, i tested it and it's working smooth.

Anyways, Please help me get over the following issuses:

1. What's the API function for enabling / disabling right-to-left -ex: setLeftToRight(0)- ?

2. How can I solve the problem of having the NEW LINES showing not under the text but above it -Line breaks working upside down-?

What happens:
This is the Second line
This is the First line (when line breaks, the second line appears on top)

What should happen:
This is the First line
This is the Second line

P.S: In Arabic and Hebrew line breaks should be normal, exactly like english, the only differance is the right-to-left oriantation instead of left-to-right. -for Arabic lanaguge at least-.

Pumaman

#30
Quote from: Rani Hasan on Tue 22/07/2003 22:52:20
What happens when you import an Arabic TTF is that it only imports the first 128 characters which is NOT USEFUL at all as you still have lots of missing letters -letter shapes-.

AGS does import the entire font, but in the editor you can only use 128 characters. You can, however, use 256 characters in a translation file, so one possible way to do it is to write the game in English, then create a Hebrew translation file which can use the entire character set.

Quote
1. What's the API function for enabling / disabling right-to-left -ex: setLeftToRight(0)- ?

To disable it:
SetGameOption (OPT_RIGHTTOLEFT, 0);
game.text_align = ALIGN_LEFT;

To enable it:
SetGameOption (OPT_RIGHTTOLEFT, 1);
game.text_align = ALIGN_RIGHT;

Quote
2. How can I solve the problem of having the NEW LINES showing not under the text but above it -Line breaks working upside down-?

What happens:
This is the Second line
This is the First line (when line breaks, the second line appears on top)

I'm confused now - that's now I did it before, but Alex said it was wrong. I apologise for the confusion here but I seem to be getting different messages about how left-to-right writing works.

Ok, well I've changed how it works in RC 2, so can you let me know whether this is any better.

Alex Lowes

Sorry I have confused you CJ.I myself did not track down the bug :)
but now in RC2 it works .
thanks. :D

Rani Hasan

Quote from: Pumaman on Fri 25/07/2003 13:37:57
Ok, well I've changed how it works in RC 2, so can you let me know whether this is any better.

Right to Left is working 100% now.

Thanks CJ.

Now AGS fully supports Arabic and Hebrew -using special made SCI fonts-.

Pumaman

Excellent, thanks for letting me know.

Al_Ninio

So where can I find this hebrew font, then?

Alex Lowes

hey I did write you a message to just e0mail me :)
lowesalex@hotmail.com
"am"
the font I sent you has one mising letter so e-mail me again and I will send you the correct font :) ok
anyone who wishes to get this update please mail me. :D

SMF spam blocked by CleanTalk