<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Running that code:</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
```LaTeX<br>
\documentclass{book}<br>
<br>
\usepackage{translations}<br>
\usepackage[english, bidi=basic]{babel}<br>
<br>
\babelprovide[onchar=ids fonts]{arabic}<br>
\babelfont{rm}{Crimson}<br>
\babelfont[*arabic]{rm}{FreeSerif}<br>
<br>
\DeclareTranslation{Arabic}{text}{ ﻓﺼﺤﻰ اﻟﻌﺼﺮ }<br>
<br>
\begin{document}<br>
<br>
\GetTranslation{text}<br>
<br>
\end{document}<br>
```</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Produces that: <img style="max-width: 795px; max-height: 123px;" data-outlook-trace="F:1|T:1" src="cid:d83d6c0b-6996-4ffb-8426-f039806b81d6"></div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Where it should output Arabic characters</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> you have some other issue</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
That problem is reproducible, you can copy-paste the MWE to see it. So it's not about me having a problem</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> can not read it</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
No need for it. I literally copied the Arabic characters from the example you sent me in my own MWE. It's only about being able to output those rather than understand them</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
>> you would have an error about missing fonts</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> Package fontspec Warning: Font 'Crimson' is using the default features for language 'English'. That's usually fine, because many languages require no specific features, but if the output is not as expected, consider selecting another font.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
> Package fontspec Warning: Font 'FreeSerif' is using the default features for language 'Arabic'. That's usually fine, because many languages require no specific features, but if the output is not as expected, consider selecting another font.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
No errors otherwise. Disappears if I delete `\babelfont{rm}{Crimson}\n\babelfont[*arabic]{rm}{FreeSerif}`</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
But it's not about that anyway, because if it was about font problem, there won't be "text" written. The engine would try to output Arabic and would output nothing because failing to do so. Here it outputs the tag without even trying to output it in Arabic</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>De :</b> David Carlisle <d.p.carlisle@gmail.com><br>
<b>Envoyé :</b> dimanche 12 mai 2024 20:46<br>
<b>À :</b> outlook user <RACP@outlook.fr><br>
<b>Objet :</b> Re: RE4: Lots of undefined control sequences when using Arabic Babel</span>
<div> </div>
</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">On Sun, 12 May 2024 at 17:12, outlook user <<a href="mailto:RACP@outlook.fr" id="OWAc18a429c-1103-b201-0113-b54c5d19f4dc" class="OWAAutoLink">RACP@outlook.fr</a>> wrote:</div>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left: 1px solid rgb(204, 204, 204);">
<div style="direction: ltr;">That code creates the same case as<br>
<br>
> `\usepackage{babel}` with or without `\babelprovide{arabic}` doesn't output any Arabic, only latin text [...]. In fact `babelprovide` doesn't change anything to the case here<br>
<br>
Don't produce errors but no Arabic text outputed</div>
</blockquote>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">The code posted produces</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"><img alt="image.png" width="488" height="101" style="width: 488px; height: 101px;" data-outlook-trace="F:1|T:1" src="cid:ii_lw3vx1i11"></div>
<div style="direction: ltr;">If you are not seeing Arabic text you have some other issue I can't help, sorry I am no expert on Arabic, and can not read it.</div>
<div style="direction: ltr;">If you don't have the font installed you would have an error about missing fonts.</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">David</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;"> </div>
<blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left: 1px solid rgb(204, 204, 204);">
<div style="direction: ltr;"><br>
```LaTeX<br>
\documentclass{book}<br>
<br>
\usepackage{translations}<br>
\usepackage[english, bidi=basic]{babel}<br>
<br>
\babelprovide[onchar=ids fonts]{arabic}<br>
\babelfont{rm}{Crimson}<br>
\babelfont[*arabic]{rm}{FreeSerif}<br>
<br>
\DeclareTranslation{Arabic}{text}{ ﻓﺼﺤﻰ اﻟﻌﺼﺮ }<br>
<br>
\begin{document}<br>
<br>
\GetTranslation{text}<br>
<br>
\end{document}<br>
```<br>
________________________________________<br>
De : David Carlisle <<a href="mailto:d.p.carlisle@gmail.com" id="OWAd6b573a8-92d1-4fa3-4653-245d07e28e2b" class="OWAAutoLink">d.p.carlisle@gmail.com</a>><br>
Envoyé : dimanche 12 mai 2024 17:57<br>
À : outlook user <<a href="mailto:RACP@outlook.fr" id="OWAb7d9449b-e6cd-eb48-cb1f-504ad8eb69eb" class="OWAAutoLink">RACP@outlook.fr</a>><br>
Cc : <a href="mailto:texhax@tug.org" id="OWA3d5bf2d8-4f24-f698-2316-8185236aba8a" class="OWAAutoLink">
texhax@tug.org</a> <<a href="mailto:texhax@tug.org" id="OWA9908eb15-b084-7d33-32f2-4fc858fc3482" class="OWAAutoLink">texhax@tug.org</a>><br>
Objet : Re: RE2: Lots of undefined control sequences when using Arabic Babel<br>
<br>
<br>
I do not read arabic, but see the babel manual for some arabic examples, eg the following (which requires lualatex)<br>
<br>
\documentclass{book}<br>
\usepackage[english, bidi=basic]{babel}<br>
<br>
\babelprovide[onchar=ids fonts]{arabic}<br>
<br>
\babelfont{rm}{Crimson}<br>
\babelfont[*arabic]{rm}{FreeSerif}<br>
<br>
\begin{document}<br>
<br>
Most Arabic speakers consider the two varieties to be two registers<br>
of one language, although the two registers can be referred to in<br>
Arabic as \ ﻓﺼﺤﻰ اﻟﻌﺼﺮ \textit{fuṣḥā l-ʻaṣr} (MSA) and<br>
\ ﻓﺼﺤﻰ اﻟﺘﺮاث \textit{fuṣḥā t-turāth} (CA).\end{document}</div>
</blockquote>
</body>
</html>