summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/jknappen/semtrans.sty
blob: 31968cc34581a01fe0c4419ac9d8178ca12a087c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
% semtrans.sty
% Transliteration of semitc languages (arabic, hebrew, ethiopian languages)

% (\textcopyleft) Copyleft 1997 J"org Knappen
% Licence: GNU licence version 2

% The following commands are defined:
% \Alif, \Ayn    left and right half ring
% \U             breve below (e. g. \U h)
% \D             diaeresis below (e. g. \D d: Oromo retroflex d)
% \T             turn a letter (e. g. \T e: schwa)
% For the turning of letters, the package fraphicx is required.

\ProvidesPackage{semtrans}%
  [1998/02/10 v 1.0 specials for transliterated semitic languages (jk)]
\RequirePackage{graphicx} 

% Alif, Ayn and \U are from the exotex package by Peter S. Olivier 
% 1988/08/08

% Definitions translated into LaTeX2e by JK

% \mathchardef\lhook="012C   \mathchardef\rhook="012D
% \def\ain{\kern+1pt$\lhook$} \def\alef{\kern+1pt$\rhook$}  

\DeclareMathSymbol{\lhook}{\mathord}{letters}{"02C}
\DeclareMathSymbol{\rhook}{\mathord}{letters}{"02D}

\newcommand*\Alif{\kern.1ex$\rhook$}
\newcommand*\Ayn{\kern.1ex$\lhook$}

% \U: breve below character

\newcommand*\U[1]{\oalign{#1\crcr\hidewidth
   \vbox to .2ex{\hbox{\u{}}\vss}\hidewidth}}

% \D: diaeresis below character (modelled after \U)

\newcommand*\D[1]{\oalign{#1\crcr\hidewidth
   \vbox to .2ex{\hbox{\"{}}\vss}\hidewidth}}

% \T: turn (=rotate 180 degrees) character

\newcommand*\T[1]{\rotatebox[origin=cc]{180}{#1}}

\endinput