Coder Social home page Coder Social logo

Comments (13)

FrankMittelbach avatar FrankMittelbach commented on May 9, 2024

@seloumi please keep the issue template structure intact (i.e., keep the headings). Also please provide the necessary data. There is a reason that one heading says:

Log (and possibly PDF) file

We do require the .log; only the pdf is optional not the other way around. This helps in identifying any issues with the setup.

from latex2e.

josephwright avatar josephwright commented on May 9, 2024

@FrankMittelbach I see the same effect: my log attached.
test.log

from latex2e.

eg9 avatar eg9 commented on May 9, 2024

from latex2e.

josephwright avatar josephwright commented on May 9, 2024

@seloumi My suspicion is a font issue as @eg9 says: with \showoutput I get

....\TU/Amiri(1)/bx/n/14.4 b
....\TU/Amiri(1)/bx/n/14.4 a
....\TU/Amiri(1)/bx/n/14.4 b
....\TU/Amiri(1)/bx/n/14.4 e
....\TU/Amiri(1)/bx/n/14.4 l

i.e. babel is requesting a bold font, not a bold-italic one.

from latex2e.

jbezos avatar jbezos commented on May 9, 2024

Seems a bug in fontspec/luaotfload:

\documentclass{article}
\usepackage{fontspec}
\setmainfont[Script=Arabic]{Amiri}

\begin{document}
\pardir TRT\textdir TRT

\textbf{إمكانيات}
\end{document}

from latex2e.

josephwright avatar josephwright commented on May 9, 2024

I think it's clear this is not a babel bug: most likely the font. I'll close on that basis.

from latex2e.

wspr avatar wspr commented on May 9, 2024

If possible it would be better not to rely on luaotfload's auto-detection of shapes to find the bold version:

\setmainfont{amiri}[
  Script=Arabic,
  Extension=.ttf,
  UprightFont=*-regular,
  BoldFont=*-bold,
]

You could write an Amiri.fontspec file to hard-code this if it was a common font used by babel.

from latex2e.

khaledhosny avatar khaledhosny commented on May 9, 2024

@wspr would it be a good idea of the Amiri package on CTAN provided an Amiri.fontspec file?

from latex2e.

wspr avatar wspr commented on May 9, 2024

@khaledhosny Sure! I haven't been reaching out to folks about doing this, but I think it would be a sensible approach. Are you familiar with how they're supposed to look?

from latex2e.

khaledhosny avatar khaledhosny commented on May 9, 2024

Not sure I remember the syntax (and I think it changed since I last tried it long ago), if you can give me a file that would be super awesome, otherwise I can always check the docs/source code and try.

from latex2e.

wspr avatar wspr commented on May 9, 2024

This should be enough to get you started... not sure if Script=Arabic should be default or not and you might also want to add ItalicFont and BoldItalicFont. Note also that once amiri.fontspec exists it won't be regenerated, so edit the file directly after running the source below.

\begin{filecontents*}{amiri.fontspec}
\defaultfontfeatures[amiri]{
  Script=Arabic,
  Extension=.ttf,
  UprightFont=*-regular,
  BoldFont=*-bold,
}
\end{filecontents*}

\documentclass{article}
\usepackage{fontspec}
\setmainfont{amiri}
\begin{document}
إمكانيات
\par
\textbf{إمكانيات}
\end{document}

from latex2e.

khaledhosny avatar khaledhosny commented on May 9, 2024

Thanks @wspr, I did this (using file names that match the current release), let me know if I did something wrong.

from latex2e.

jbezos avatar jbezos commented on May 9, 2024

from latex2e.

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.