summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/bidi.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/bidi.sty34
1 files changed, 30 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
index 1ccd2022ad5..88cdcf9ad8c 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
+++ b/Master/texmf-dist/tex/xelatex/bidi/bidi.sty
@@ -17,7 +17,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{49822}
+%% \CheckSum{49843}
%% \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
@@ -35,8 +35,8 @@
%% Right brace \} Tilde \~}
%%
\NeedsTeXFormat{LaTeX2e}
-\def\bididate{2018/09/15}
-\def\bidi@version{33.2}
+\def\bididate{2018/09/19}
+\def\bidi@version{33.3}
\ProvidesPackage{bidi}[\bididate\space v\bidi@version\space
Bidirectional typesetting in plain TeX and LaTeX]
\edef\@bidi@info{****************************************************^^J%
@@ -120,7 +120,7 @@ Bidirectional typesetting in plain TeX and LaTeX]
}
\newcommand*{\@bidi@pdfcustomproperties}{%
This is the bidi package, Version \bidi@version,
- Released September 15, 2018.
+ Released October 1, 2018.
}
\@RTLmainfalse
\AtBeginDocument{%
@@ -165,6 +165,19 @@ Bidirectional typesetting in plain TeX and LaTeX]
\the\toks@
}
\newcommand*{\@bidi@logo@}{\@bidi@logo@hb@xt@\textwidth{\hss\LRE{\bfseries Typeset by the \textsf{bidi} package\quad\@bidi@logo{bidi-logo.pdf}}}}
+\define@key{bidi@pdfencrypt}{userpassword}[]{%
+ \def\bidi@pdfencrypt@userpassword{#1}%
+}
+\define@key{bidi@pdfencrypt}{ownerpassword}[]{%
+ \def\bidi@pdfencrypt@ownerpassword{#1}%
+}
+\define@key{bidi@pdfencrypt}{keylength}[128]{%
+ \def\bidi@pdfencrypt@keylength{#1}%
+}
+\define@key{bidi@pdfencrypt}{permissionflags}[2052]{%
+ \def\bidi@pdfencrypt@permissionflags{#1}%
+}
+\newcommand*{\pdfencryptsetup}{\setkeys{bidi@pdfencrypt}}
\input{latex-xetex-bidi.def}
\input{loadingorder-xetex-bidi.def}
\define@choicekey{bidi.sty}{RTLdocument}[\bidi@tempa\bidi@tempb]{on,off}[on]{%
@@ -262,6 +275,13 @@ Bidirectional typesetting in plain TeX and LaTeX]
\ProcessOptionsX
+\pdfencryptsetup{%
+ userpassword,%
+ ownerpassword,%
+ keylength,%
+ permissionflags%
+}
+
\if@extrafootnotefeatures
\input{extrafootnotefeatures-xetex-bidi.def}
\fi
@@ -276,6 +296,12 @@ Bidirectional typesetting in plain TeX and LaTeX]
\XeTeXinterchartoks \bidi@sepmark@charclass \bidi@digits@charclass = {\DigitsDotDashInterCharToks}
\newcommand*{\DigitsDotDashInterCharToks}{\if@nonlatin\char"200F \fi}
\AtEndDocument{%
+ \special{pdf:encrypt
+ userpw (\bidi@pdfencrypt@userpassword)
+ ownerpw (\bidi@pdfencrypt@ownerpassword)
+ length \bidi@pdfencrypt@keylength
+ perm \bidi@pdfencrypt@permissionflags
+ }%
\special{pdf:%
docinfo<<%
\if@bidi@pdfm@mark