CTAN Comprehensive TeX Archive Network

Directory support/fribidixetex

README.md

FriBidi

FriBidi is a pre-processor for files to support unicode bidirectional algorithm.

Usage

To use FriBidi, run the fribidixetex command on the file, the resulting file can then be processed by the engine to produce the final output.

FriBidi understands some special comments to control its behavior:

  • %BIDION: activate FriBidi special handling.
  • %BIDIOFF: stop it
  • %BIDILTR: the paragraph is mainly left-to-right with some right-to-left text.

Example

Here is a sample xepersian document:

\documentclass{article}
\usepackage{xepersian}
\settextfont{Yas}
\setdigitfont{Yas}
\let\fribidixetexLRE\lr
\let\fribidixetexRLE\rl
\let\fribidixetexlatinnumbers\lr
\let\fribidixetexnonlatinnumbers\rl
%BIDION
\begin{document}    
این یک پاراگراف «پارسی» است به نام Simple text و این یک عدد 0887 به لاتین است.
%BIDIOFF
\begin{equation}
1+2=3\label{eq:1}
\end{equation}
%BIDION
این فرمول شماره
\ref{eq:1}
است.
%BIDILTR
\begin{latin}
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
\end{latin}
%BIDION
و ادامه متن که بعد از متن Lorem Imsum قرار می‌گیرد.
\end{document}
%BIDIOFF

This can be processed with FriBidi, then by to produce the final pdf:

fribidixetex -n test.tex -o test.ltx
xelatex test.ltx

Reporting bugs


Please use the issue tracker to report bugs.

Download the contents of this package in one zip archive (22.6k).

FriBidi – A pre-processor for files to support unicode bidirectional algorithm

The package provides a pre-processor for files to support unicode bidirectional algorithm.

To use FriBidi, run the fribidixetex command on the file. The resulting file can then be processed by the engine to produce the final output.

PackageFriBidiXeTeX
Bug trackerhttps://github.com/bidi-tex/fribidixetex/issues
Repositoryhttps://github.com/bidi-tex/fribidixetex
Version0.0.2
LicensesGNU General Public License, version 2
Copyright2007 Artyom Tonkikh
2015 Khaled Hosny
2016 Vafa Khalighi
Maintainerbidi-tex GitHub Organisation
Vafa Khalighi
Contained inMiKTeX as miktex-fribidixetex-bin-2.9
TopicsPreprocessor
Bidirectional

...
Guest Book Sitemap Contact Contact Author