Forum Moderators: phranque

Message Too Old, No Replies

European to Arabic-Hindo / Hebrew digits

How to automate it

         

picophd

4:27 pm on Dec 6, 2004 (gmt 0)

10+ Year Member



Greetings,

The digits written as 123, we call them Arabic numbers alright, but these are [em]not[/em] the Arabic digits used in the Middle East. There are also Hebrew digits that look very different. Now in order for these digits to show up correctly in the browser, you have to encode using unicode, and also type ١ instead of 1, in order for the Arabic digit 1 to show up correctly, and so on. So if I wanted to show 123 in Arabic digits, I'd have to type ١٢٣

That is most definitely completely tedious and unproductive. So do you know any way that this can be automated in Dreamweaver or even using any other HTML editor or any other program for that matter? Automating this, regarding a few numbers here and there on Middle Eastern web pages would definitely be good enough for itself. However, automating this even for databases and results shown from databases, etc, would be a heaven of development in these kinds of projects. So do you know of a solution to this?

Thanks a lot for anyone taking the time to help and give tips and information.

picophd

8:54 pm on Dec 14, 2004 (gmt 0)

10+ Year Member



If this is not the appropriate place, can someone at least tell me where in WW would I have a better chance receiving an answer to this question?

TheDoctor

10:20 pm on Dec 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Couldn't you do this via PHP or a server-side include? seems to me that you'd just need a subroutine that looks up the correct code using a subscript.

Can't someone who knows this stuff better than me explain a bit more precisely?

If not joy here, picophd, I suggest asking on the PHP and Perl forums.

picophd

8:09 pm on Dec 15, 2004 (gmt 0)

10+ Year Member



TheDoctor, thank you very much. I'll wait a bit more then ask in the PHP forums, I believe, quoting what you had said.