summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty
blob: 03d878f298dec087a042aec416c16e446554fcb7 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{simurgh}[2013/12/01 v0.01a parsi typesetting]
\RequirePackage{xkeyval}
\RequirePackage{simurgh-tools}
\RequirePackage{simurgh-chkeng}
\RequirePackage{simurgh-shellescape}
\RequirePackage{fontspec}
\RequirePackage{simurgh-fonts}
\RequirePackage{simurgh-jalalical}
\RequirePackage{simurgh-mathdigitspec}
\RequirePackage{simurgh-bidi}
\RequirePackage{simurgh-unibidi}
\RequirePackage{simurgh-cptns}
\RequirePackage{simurgh-counters}
\RequirePackage{simurgh-ltx}
\RequirePackage{simurgh-clss}
\RequirePackage{simurgh-pkgs}
\RequirePackage{simurgh-loader}


\define@choicekey{simurgh.sty}{maindirection}[\simurgh@tempa\simurgh@tempb]{righttoleft,lefttoright}{%
  \ifcase\simurgh@tempb\relax
    \@RTLtrue%
    \simurgh@pagedir TRT%
    \simurgh@bodydir TRT%
    \simurgh@pardir TRT%
    \simurgh@textdir TRT%
  \or
    \@RTLfalse%
    \simurgh@pagedir TLT%
    \simurgh@bodydir TLT%
    \simurgh@pardir TLT%
    \simurgh@textdir TLT%
  \fi}

\define@choicekey{simurgh.sty}{mathdirection}[\simurgh@tempa\simurgh@tempb]{righttoleft,lefttoright}{%
  \ifcase\simurgh@tempb\relax
    \simurgh@mathdir TRT%
  \or
    \simurgh@mathdir TLT%
  \fi}
  
  
\define@choicekey{simurgh.sty}{mathdigits}[\simurgh@tempa\simurgh@tempb]{automatic,default,parsi}{%
  \ifcase\simurgh@tempb\relax
    \AutoMathDigits%
  \or
    \DefaultMathDigits%
  \or
    \ParsiMathDigits%
  \fi}

\define@choicekey{simurgh.sty}{footnoterule}[\simurgh@tempa\simurgh@tempb]{automatic,left,right,split,textwidth}{%
  \ifcase\simurgh@tempb\relax
    \autofootnoterule%
  \or
    \leftfootnoterule%
  \or
    \rightfootnoterule%
  \or
    \SplitFootnoteRule%
  \or
    \textwidthfootnoterule%
  \fi}
  
\define@choicekey{simurgh.sty}{footnotedirection}[\simurgh@tempa\simurgh@tempb]{righttoleft,lefttoright}{%
  \ifcase\simurgh@tempb\relax
    \@RTL@footnotetrue%
  \or
    \@RTL@footnotefalse%
  \fi}
  
\define@choicekey{simurgh.sty}{debugfootnotedirection}[\simurgh@tempa\simurgh@tempb]{on,off}{%
  \ifcase\simurgh@tempb\relax
    \footdir@debugtrue
  \or
    \footdir@debugfalse
  \fi}

\DeclareOptionX{unicodebidi}{\simurgh@unibidi@setmode{#1}}

\ExecuteOptionsX{%
       maindirection=righttoleft,%
       mathdirection=lefttoright,%
       mathdigits=automatic,%
       footnoterule=automatic,%
       footnotedirection=righttoleft,%
       debugfootnotedirection=off,%
       unicodebidi=global%
}
\ProcessOptionsX
\endinput