[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Hebrew ANSII codes
If we have this topic raised, I'll also say a couple of words. Though it
is going to be offtopic again, but seems there is no other forum to
discuss it.
>> I need to convert hebrew ASCII character codes (as used by DOS) to
>> Hebrew ANSII character codes (as used in MicroSoft Windows). Does anyone
>> has the codes tables or can provide me with a C source program that does
>> this ?
>
>Ha Ha Ha,
>It's like searching for a needle in bunch of straw.
Well, I have a program for dos, that reliably converts DOS Hebrew
character set <-> Windoze Hebrew character set. Also, seems that following
may do the trick:
$_ = join("",map { $x=ord($_);chr($x>=0x80&&$x<0xA0?$x+0x60:$x) } split(//,$_));
For PERL-illitrates ;) - just move everything from 80h to 9Fh up 60h (so
it will be from E0h to FFh).
Logical (well, seems some guys in M$ have a *really* sick sense of humor)
<-> Visual is a different topic.
>I wanted to write a few libraries for this ( I've just needed them to do
>something and I don't care others to use them for free ) But I didn't find
>no specs no algorithms of how these layout works. I think this is a shame
There is no algorithm. Or, to be more precious, there is a bunch of.
Hebrew of Word and Hebrew of Wordpad are two different hebrew supports.
Try cut-and-paste between them and see. If you insert english text,
numbers, punctuation, etc - effects will be really like in Disney movies.
>! How it happends to be that there are specs for English layout and not
>Hebrew !!!
Well, no wonder. If M$ cannot even be compatible with itself, it surely
cannot publish any specs. The specs just do not exist.
>
>Actually I wrote a lib to convert from Visual to Logical, but I did
>reverse engineering and because of that I couldn't complete theis little
Well, I wrote it about ten times... Every time there is a windoze program
that has different hebrew... Not to mention web browsers, that think that
"internationalization" means having support for two languages and
optional corean interface.
>So whether someone will break into Micro$oft or other company who knows
No use... May be if someone would break some hard and rough things on
heads of "hebrew support" developers, crying loud "Design before you
program! Debug your code! Don't call bugs "features"! Follow specs!", then
it would help a bit... >;))
--
frodo@sharat.co.il \/ There shall be counsels taken
Stanislav Malyshev /\ Stronger than Morgul-spells
phone +972-2-5369213 /\ JRRT LoTR.
http://www.sharat.co.il/frodo/ whois:SM719-RIPE@whois.ripe.net