From 5d3eded8ad72ddcafd63144edcd885a7ba0b4b75 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 17 Sep 2013 22:16:07 +0000 Subject: simurgh (17sep13) git-svn-id: svn://tug.org/texlive/trunk@31684 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty | 92 ++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty (limited to 'Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty') diff --git a/Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty b/Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty new file mode 100644 index 00000000000..03d878f298d --- /dev/null +++ b/Master/texmf-dist/tex/lualatex/simurgh/simurgh.sty @@ -0,0 +1,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 \ No newline at end of file -- cgit v1.2.3