Giter Club home page Giter Club logo

Comments (3)

stone-zeng avatar stone-zeng commented on August 12, 2024

That is a XeTeX “feature”, it detects tat the text is right to left (it does not fully apply the BiDi algorithm, though, as this operates on word level not paragraph level) and tell HarfBuzz to shape the text in the RTL direction which in turn activates BiDi mirroring.

Originally posted by @khaledhosny in latex3/latex2e#157 (comment)

所以,是「feature」。

from forum.

Ranqumn avatar Ranqumn commented on August 12, 2024

@stone-zeng 可能没有这么简单吧。

XeLaTeX 好像并没有自动判断 CJK 文字、还有中间插入一个命令的情况,所以,如果有如下情况:

\documentclass{ctexart}

\begin{document}

  {「 ביבליה 」} (《圣经》) (\emph{Biblia})

  {「 ביבליה 」} (《圣经》) (Biblia)

  {「 ביבליה 」} (《圣经》) ({Biblia})

  {「 ביבליה 」} (《圣经》) (\texttt{Biblia})

\end{document}

效果是:

issue-hebrew-3

这个 feature 会让萌新感觉很迷……

from forum.

stone-zeng avatar stone-zeng commented on August 12, 2024

正常来说你肯定得用个支持这些的字体对吧:

\documentclass{ctexart}
\setmainfont{FreeSerif.otf}
\begin{document}

{\addfontfeatures{Script=Arabic}「ביבליה」} (《圣经》) (\emph{Biblia})

{\addfontfeatures{Script=Arabic}「ביבליה」} (《圣经》) (Biblia)

{\addfontfeatures{Script=Arabic}「ביבליה」} (《圣经》) ({Biblia})

{\addfontfeatures{Script=Arabic}「ביבליה」} (《圣经》) (\texttt{Biblia})

\end{document}

image

不管怎么样这个问题反正是超出我能力范围了,而且哪有「萌新」会这么玩……具体还是去问 Khaled Hosny 吧。

from forum.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.