summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf-dist/doc/xelatex/unicode-bidi/README.md63
-rwxr-xr-xMaster/texmf-dist/tex/xelatex/unicode-bidi/unicode-bidi.sty35
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-xetex.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/unicode-bidi.tlpsrc0
5 files changed, 100 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/xelatex/unicode-bidi/README.md b/Master/texmf-dist/doc/xelatex/unicode-bidi/README.md
new file mode 100755
index 00000000000..27f93fe1ac3
--- /dev/null
+++ b/Master/texmf-dist/doc/xelatex/unicode-bidi/README.md
@@ -0,0 +1,63 @@
+The `unicode-bidi` package
+========
+
+The experimental `unicode-bidi` package allows you to mix non-RTL script with RTL script without any markup.
+
+Usage
+-----
+
+To use the `unicode-bidi` package, you just need to load it
+
+````latex
+\usepackage{unicode-bidi}
+````
+
+Example
+-------
+
+Here is a sample `xepersian` document:
+
+````latex
+\documentclass{article}
+\usepackage{xepersian}
+\usepackage{unicode-bidi}
+\settextfont{Yas}
+\begin{document}
+این یک آزمایش است (یک آزمایش)
+One, two, and three (numbers) or [numbers]
+و آزمایش بعدی,
+This is a [real test].
+و این هم یک [آزمایش دیگر] است.
+
+نام نخستین شرکت هواپیمایی ایران
+Iran Air or \hbox{Homa airlines}
+بوده است که به بسیاری از نقاط دنیا پرواز داشته است.
+
+
+من نام
+\hbox{من و you and we ما می‌شویم.}
+را دوست می‌دارم.
+
+Joanne 123 and you
+نام من در زبان انگلیسی می‌باشد.
+
+\begin{latin}
+This is a test as you can see
+
+\end{latin}
+
+نام من به زبان انگلیسی
+Joanne Patterson
+هست.
+\end{document}
+````
+
+
+
+
+Reporting bugs
+-------
+Please use [the issue tracker][1] to report bugs.
+
+
+ [1]: https://github.com/vafa/unicode-bidi/issues \ No newline at end of file
diff --git a/Master/texmf-dist/tex/xelatex/unicode-bidi/unicode-bidi.sty b/Master/texmf-dist/tex/xelatex/unicode-bidi/unicode-bidi.sty
new file mode 100755
index 00000000000..ecd94d3fb55
--- /dev/null
+++ b/Master/texmf-dist/tex/xelatex/unicode-bidi/unicode-bidi.sty
@@ -0,0 +1,35 @@
+%%
+%% This is file `unicode-bidi.sty'.
+%%
+%% __________________________________________________
+%% Copyright (c) 2016 Vafa Khalighi <persian-tex@tug.org>
+%%
+%% It may be distributed and/or modified under the LaTeX Project Public License,
+%% version 1.3c or higher (your choice). The latest version of
+%% this license is at: http://www.latex-project.org/lppl.txt
+%%
+%% This work is “author-maintained” (as per LPPL maintenance status)
+%% by Vafa Khalighi.
+%%
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{unicode-bidi}[2016/11/09 v0.01
+Experimental unicode bidi package for XeTeX]
+\newcount\unicode@bidi@latin@alphabets
+\newXeTeXintercharclass\unicode@bidi@latin@alphabets@charclass
+\newXeTeXintercharclass\unicode@bidi@latin@punctuations@charclass
+\unicode@bidi@latin@alphabets=`\A \loop \XeTeXcharclass \unicode@bidi@latin@alphabets \unicode@bidi@latin@alphabets@charclass \ifnum\unicode@bidi@latin@alphabets<`\Z \advance\unicode@bidi@latin@alphabets \@ne \repeat
+\unicode@bidi@latin@alphabets=`\a \loop \XeTeXcharclass \unicode@bidi@latin@alphabets \unicode@bidi@latin@alphabets@charclass \ifnum\unicode@bidi@latin@alphabets<`\z \advance\unicode@bidi@latin@alphabets \@ne \repeat
+\XeTeXcharclass `\, \unicode@bidi@latin@punctuations@charclass
+\XeTeXcharclass `\( \unicode@bidi@latin@punctuations@charclass
+\XeTeXcharclass `\) \unicode@bidi@latin@punctuations@charclass
+\XeTeXcharclass `\[ \unicode@bidi@latin@punctuations@charclass
+\XeTeXcharclass `\] \unicode@bidi@latin@punctuations@charclass
+\XeTeXinterchartoks \z@ \unicode@bidi@latin@alphabets@charclass {\unicode@bidi@startlatin}
+\XeTeXinterchartoks \e@alloc@intercharclass@top \unicode@bidi@latin@alphabets@charclass {\unicode@bidi@startlatin}
+\XeTeXinterchartoks \e@alloc@intercharclass@top \z@ {\unicode@bidi@finishlatin}
+\XeTeXinterchartoks \unicode@bidi@latin@alphabets@charclass \z@ {\unicode@bidi@finishlatin}
+\newcommand*{\unicode@bidi@startlatin}{\if@nonlatin\bgroup\beginL\latinfont\@nonlatinfalse\fi}
+\newcommand*{\unicode@bidi@finishlatin}{\if@nonlatin\else\unskip\endL\egroup{ }\fi}
+\endinput
+%%
+%% End of file `unicode-bidi.sty'. \ No newline at end of file
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index a64ee6d8b00..3e22028c655 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -617,7 +617,7 @@ my @TLP_working = qw(
umthesis umtypewriter
unamth-template unamthesis underlin underoverlap underscore undolabl
unfonts-core unfonts-extra
- uni-wtal-ger uni-wtal-lin unicode-data unicode-math unisugar
+ uni-wtal-ger uni-wtal-lin unicode-data unicode-bidi unicode-math unisugar
units unitsdef universa universalis
unravel unswcover
uothesis uowthesis uowthesistitlepage
diff --git a/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc b/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc
index 5342ccdd08c..bac24101465 100644
--- a/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-xetex.tlpsrc
@@ -21,6 +21,7 @@ depend ptext
depend quran
depend realscripts
depend ucharclasses
+depend unicode-bidi
depend unisugar
depend xebaposter
depend xecjk
diff --git a/Master/tlpkg/tlpsrc/unicode-bidi.tlpsrc b/Master/tlpkg/tlpsrc/unicode-bidi.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/unicode-bidi.tlpsrc