How to detect languages from (=> LTR vs RTL)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi colleges and gurus,

I coding a whole "web office" and one of my problems is "LTR vs RTL".
If I have for exanple an E-Mail I use a

    <div style="direction:$DIRECTION">
      $SOME_TEXT
    </div>

but HOW can I detect the type of $SOME_TEXT  from  within  PHP,  to  set
$DIRECTION? (RTL or LTR) correctly?

And how can I do this with mixed Text (by  line  or  entired  paragraph)
like:

   german       <- must be LTR
   persian      <------------------- must be RTL
   english      <- must be LTR
   arabic       <------------------- must be RTL
   french       <- must be LTR
   jidisch      <------------------- must be RTL

Ayn Iranian (Moxhtar?), Arabs (Jasin?) or Jews (Dotan?) here  which  can
help me please?

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux
               Internet Service Provider, Cloud Computing
                <http://www.itsystems.tamay-dogan.net/>

itsystems@tdnet                     Jabber  linux4michelle@xxxxxxxxxxxxx
Owner Michelle Konzack

Gewerbe Strasse 3                   Tel office: +49-176-86004575
77694 Kehl                          Tel mobil:  +49-177-9351947
Germany                             Tel mobil:  +33-6-61925193  (France)

USt-ID:  DE 278 049 239

Linux-User #280138 with the Linux Counter, http://counter.li.org/

<<attachment: signature.pgp>>


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux