Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kashida option incompatible with Ligatures=Rare (+dlig) #6

Open
1 of 5 tasks
vafakhalighi opened this issue May 14, 2020 · 0 comments
Open
1 of 5 tasks

Kashida option incompatible with Ligatures=Rare (+dlig) #6

vafakhalighi opened this issue May 14, 2020 · 0 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed

Comments

@vafakhalighi
Copy link
Contributor


Brief outline of the issue

Through a lot of trial and error, I seem to have found out that settextfont does not pass Ligatures=Rare (or RawFeature=+dlig) to fontspec when package class option Kashida is used.

Is this a bug or a feature ?

Upon further inspection, the issue is not related to package option Kashida per se, but with Kashida activation within text which disables ligatures as a side effect.

In the latter case, then the documentation should specify that using Kashida excludes using discretionary ligatures.

Check/indicate

  • Relevant to the bidi package
  • The bidi package issue tracker has been searched for similar issues?
  • Issue tracker has been searched for similar issues?
  • Links to <tex.stackexchange.com> discussion if appropriate
  • Links to <qa.parsilatex.com> discussion if appropriate

Minimal example showing the issue

%%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
\documentclass[12pt,a4paper]{article}
\usepackage{polyglossia}
\setdefaultlanguage{persian}
\usepackage[Kashida]{xepersian}
\settextfont{Noto Sans Arabic}[Ligatures=Rare]
\begin{document}
\begin{latin}
With KashidaOn:
\end{latin}

\KashidaOn
فرج‌الله نیک‌نژاد.


\begin{latin}
With KashidaOff:
\end{latin}

\KashidaOff
فرج‌الله نیک‌نژاد.
\end{document}

Note: The source code does not contain the kasra that is shown on Github site (where ligatures are activated !!).

Same issue appears with other fonts such as Adobe Arabic.

Expected behavior

Log and PDF files

@vafakhalighi vafakhalighi added the bug Something isn't working label May 14, 2020
@vafakhalighi vafakhalighi self-assigned this May 14, 2020
@vafakhalighi vafakhalighi added enhancement New feature or request help wanted Extra attention is needed labels May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant