diff options
author | Karl Berry <karl@freefriends.org> | 2006-12-19 14:43:13 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-12-19 14:43:13 +0000 |
commit | 1e298c548919394a0daf6243076a734b9b8c2fe7 (patch) | |
tree | c97a9c395e28bd30b4d13771dea3a2b6604e47f4 /Master/texmf-dist/tex/latex/arabi/translit.sty | |
parent | 0ab593f121f4b07946d534dc7b7dc5e02e67c631 (diff) |
arabi 1.1 (18dec06)
git-svn-id: svn://tug.org/texlive/trunk@2811 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/arabi/translit.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/arabi/translit.sty | 186 |
1 files changed, 186 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/arabi/translit.sty b/Master/texmf-dist/tex/latex/arabi/translit.sty new file mode 100644 index 00000000000..c8aec54d876 --- /dev/null +++ b/Master/texmf-dist/tex/latex/arabi/translit.sty @@ -0,0 +1,186 @@ +% \iffalse meta-comment +% +% Copyright 2006 Youssef Jabri +% +% +% This file is part of the `Arabi' system. +% ------------------------------------------- +% +% It may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either version 1.3b +% of this license or (at your option) any later version. +% The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3b or later is part of all distributions of LaTeX +% version 2005/12/01 or later. +% +% This file has the LPPL maintenance status "maintained". +% +% +% \fi +% +% Filename: translit.sty +%% +%% When texts are in general not fully vowelized, the transliteration +%% cannot be expected to be correct. +%% +%% Moreover, when writing using CP1256/ISO 8859-6 8-bit input encoding, +%% there is no way to distinguish between long vowels A I U and the letters +%% alif yaa and waw. neither, it is possible to write correctly the hamza +%% when on alif waw or yaa. +%% +\ProvidesFile{tranlit.sty} + [2005/09/08 v0.1 Arabic transliteration (test version: may change)] + +%\renewcommand{\rmdefault}{ptm} +%\renewcommand{\sfdefault}{phv} +%\renewcommand{\ttdefault}{pcr} + + +\DeclareTextCommand{\hamza}{T1}{\ensuremath{\rhook }} +\DeclareTextCommand{\alefmadda}{T1}{\ensuremath{\rhook\kern-.1em \bar a}} +\DeclareTextCommand{\alefhamza}{T1}{\ensuremath{\rhook\kern-.3em a}} +\DeclareTextCommand{\wawhamza}{T1}{\ensuremath{\rhook\kern-.1em w}} +\DeclareTextCommand{\aleflowerhamza}{T1}{\ensuremath{\rhook\kern-.3em i}} +\DeclareTextCommand{\yahamza}{T1}{183} + +\DeclareTextCommand{\alef}{T1}{\ensuremath{\bar a}} +\DeclareTextCommand{\baa}{T1}{\ensuremath{b}} +\DeclareTextCommand{\T}{T1}{\ensuremath{t}} %taa marbuuta +\DeclareTextCommand{\taa}{T1}{\ensuremath{t}} + +\DeclareTextCommand{\thaa}{T1}{\ensuremath{\bar t}} +\DeclareTextCommand{\jeem}{T1}{\ensuremath{\check{g}}} %geem ??? +\DeclareTextCommand{\Haa}{T1}{\textit{\d h}} +\DeclareTextCommand{\kha}{T1}{\ensuremath{\underbar{\text{\textit{h}}}}} %<<<<<<<<<<<<< +\DeclareTextCommand{\dal}{T1}{\ensuremath{d}} +\DeclareTextCommand{\dhal}{T1}{\ensuremath{\bar d}} +\DeclareTextCommand{\ra}{T1}{\ensuremath{r}} +\DeclareTextCommand{\zay}{T1}{\ensuremath{z}} +\DeclareTextCommand{\seen}{T1}{\ensuremath{s}} +\DeclareTextCommand{\sheen}{T1}{\ensuremath{\check{s}}} +\DeclareTextCommand{\sad}{T1}{\textit{\d s}} +\DeclareTextCommand{\dad}{T1}{\textit{\d d}} +\DeclareTextCommand{\Ta}{T1}{\textit{\d{t}}} +\DeclareTextCommand{\za}{T1}{\ensuremath{\dot z}} +\DeclareTextCommand{\ayn}{T1}{\ensuremath{\lhook }} +\DeclareTextCommand{\ghayn}{T1}{\textit{\d g}} +% +\DeclareTextCommand{\keshchar}{T1}{254} +\DeclareTextCommand{\fa}{T1}{\ensuremath{f}} +\DeclareTextCommand{\qaf}{T1}{\ensuremath{q}} +\DeclareTextCommand{\kaf}{T1}{\ensuremath{k}} +\DeclareTextCommand{\lam}{T1}{\ensuremath{l}} +\DeclareTextCommand{\meem}{T1}{\ensuremath{m}} +\DeclareTextCommand{\nun}{T1}{\ensuremath{n}} +\DeclareTextCommand{\ha}{T1}{\ensuremath{h}} +\DeclareTextCommand{\waw}{T1}{\ensuremath{w}} +\DeclareTextCommand{\ya}{T1}{\ensuremath{y}} +\DeclareTextCommand{\alefmaqsura}{T1}{\ensuremath{\bar a}}%170 +% +%%%%%%%%%%%% Vowels +% +% Firt, Vowels that come only at the end of a word +% +\DeclareTextCommand{\nasb}{T1}{\ensuremath{aN}} +\DeclareTextCommand{\raff}{T1}{\ensuremath{uN}} +\DeclareTextCommand{\jarr}{T1}{\ensuremath{iN}} +% +\DeclareTextCommand{\shaddanasb}{T1}{\ensuremath{aN}} +\DeclareTextCommand{\shaddaraff}{T1}{\ensuremath{uN}} +\DeclareTextCommand{\shaddajarr}{T1}{\ensuremath{iN}} +% +% Then, Vowels that come anywhere in a word +% +\DeclareTextCommand{\fatha}{T1}{\ensuremath{a}}%{161} +\DeclareTextCommand{\damma}{T1}{\ensuremath{u}}%{162} +\DeclareTextCommand{\kasra}{T1}{\ensuremath{i}}%{163} +\DeclareTextCommand{\shadda}{T1}{\ensuremath{}}%{164} +\DeclareTextCommand{\sukun}{T1}{\ensuremath{}}%{197}%{} +% +\DeclareTextCommand{\shaddafatha}{T1}{\ensuremath{a}}%169 +\DeclareTextCommand{\shaddadamma}{T1}{\ensuremath{u}}%170 +\DeclareTextCommand{\shaddakasra}{T1}{\ensuremath{i}}%171 +% + + +%%%%%%%%%%%% Vowels after passing through \novocalize <--> \vocalize +% +% Firt, Vowels that come only at the end of a word +% +\DeclareTextCommand{\nasbSAV}{T1}{\ensuremath{aN}} +\DeclareTextCommand{\raffSAV}{T1}{\ensuremath{uN}} +\DeclareTextCommand{\jarrSAV}{T1}{\ensuremath{iN}} +% +\DeclareTextCommand{\shaddanasbSAV}{T1}{\ensuremath{aN}} +\DeclareTextCommand{\shaddaraffSAV}{T1}{\ensuremath{uN}} +\DeclareTextCommand{\shaddajarrSAV}{T1}{\ensuremath{iN}} +% +% Then, Vowels that come anywhere in a word +% +\DeclareTextCommand{\fathaSAV}{T1}{\ensuremath{a}}%{161} +\DeclareTextCommand{\dammaSAV}{T1}{\ensuremath{u}}%{162} +\DeclareTextCommand{\kasraSAV}{T1}{\ensuremath{i}}%{163} +\DeclareTextCommand{\shaddaSAV}{T1}{\ensuremath{}}%{164} +\DeclareTextCommand{\sukunSAV}{T1}{\ensuremath{}}%{197}%{} +% +\DeclareTextCommand{\shaddafathaSAV}{T1}{\ensuremath{a}}%169 +\DeclareTextCommand{\shaddadammaSAV}{T1}{\ensuremath{u}}%170 +\DeclareTextCommand{\shaddakasraSAV}{T1}{\ensuremath{i}}%171 +% + +%%%%%%%%%%%% Vowels after passing through \novocalize --> \vocalize +% +% Firt, Vowels that come only at the end of a word +% +\DeclareTextCommand{\nasbOFF}{T1}{\ensuremath{aN}} +\DeclareTextCommand{\raffOFF}{T1}{\ensuremath{uN}} +\DeclareTextCommand{\jarrOFF}{T1}{\ensuremath{iN}} +% +\DeclareTextCommand{\shaddanasbOFF}{T1}{\ensuremath{aN}} +\DeclareTextCommand{\shaddaraffOFF}{T1}{\ensuremath{uN}} +\DeclareTextCommand{\shaddajarrOFF}{T1}{\ensuremath{iN}} +% +% Then, Vowels that come anywhere in a word +% +\DeclareTextCommand{\fathaOFF}{T1}{\ensuremath{a}}%{161} +\DeclareTextCommand{\dammaOFF}{T1}{\ensuremath{u}}%{162} +\DeclareTextCommand{\kasraOFF}{T1}{\ensuremath{i}}%{163} +\DeclareTextCommand{\shaddaOFF}{T1}{\ensuremath{}}%{164} +\DeclareTextCommand{\sukunOFF}{T1}{\ensuremath{}}%{197}%{} +% +\DeclareTextCommand{\shaddafathaOFF}{T1}{\ensuremath{a}}%169 +\DeclareTextCommand{\shaddadammaOFF}{T1}{\ensuremath{u}}%170 +\DeclareTextCommand{\shaddakasraOFF}{T1}{\ensuremath{i}}%171 +% + + + +\DeclareTextCommand{\tatweel}{T1}{} + + + +%% +%% \CharacterTable +%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\endinput +%% +%% End of file `jaeenc.def'. + + + + |