CTAN Comprehensive TeX Archive Network

Direc­tory support/fribidixetex

README.md

FriBidi

FriBidi is a pre-pro­ces­sor for files to sup­port uni­code bidi­rec­tional al­go­rithm.

Usage

To use FriBidi, run the fribidixetex com­mand on the file, the re­sult­ing file can then be pro­cessed by the en­gine to pro­duce the fi­nal out­put.

FriBidi un­der­stands some spe­cial com­ments to con­trol its be­hav­ior:

  • %BIDION: ac­ti­vate FriBidi spe­cial han­dling.
  • %BIDIOFF: stop it
  • %BIDILTR: the para­graph is mainly left-to-right with some right-to-left text.

Ex­am­ple

Here is a sam­ple xepersian doc­u­ment:

\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 pro­cessed with FriBidi, then by to pro­duce the fi­nal pdf:

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

Re­port­ing bugs


Please use the is­sue tracker to re­port bugs.

Down­load the con­tents of this pack­age in one zip archive (22.6k).

FriBidi – A pre-pro­ces­sor for files to sup­port uni­code bidi­rec­tional al­go­rithm

The pack­age pro­vides a pre-pro­ces­sor for files to sup­port uni­code bidi­rec­tional al­go­rithm.

To use FriBidi, run the fribidix­e­tex com­mand on the file. The re­sult­ing file can then be pro­cessed by the en­gine to pro­duce the fi­nal out­put.

Pack­ageFriBidiXeTeX
Bug trackerhttps://github.com/bidi-tex/fribidix­e­tex/is­sues
Re­pos­i­toryhttps://github.com/bidi-tex/fribidix­e­tex
Ver­sion0.0.2
Li­censesGNU Gen­eral Public Li­cense, ver­sion 2
Copy­right2007 Ar­tyom Tonkikh
2015 Khaled Hosny
2016 Vafa Kha­lighi
Main­tainerbidi-tex GitHub Or­gan­i­sa­tion
Vafa Kha­lighi (in­ac­tive)
Topics
Pre­pro­ces­sor
Bidi­rec­tional
...
Guest Book Sitemap Contact Contact Author