autoArabic
(mPDF ≥ 6.0)
Description
boolean autoArabic
Tells mPDF whether to try and distinguish between Arabic languages when using autoScriptToLang
.
Analysis of the text will attempt to distinguish Arabic, Farsi, Pashto, Urdu and Sindhi. If active, the text will then be
marked with a specific language tag e.g. "pa"
, "ur"
, "fa"
etc.
Values
$autoArabic = true
|false
Values
false
: Arabic script will be marked with the attributelang='und-Arab'
when usingautoScriptToLang
.true
: mPDF will attempt to distinguish Arabic, Farsi, Pashto, Urdu and Sindhi, and text will then be marked with a specific language tag e.g."pa"
,"ur"
,"fa"
etc.
Default: false
Usage
Set at document initiation
<?php
$mpdf = new \Mpdf\Mpdf(['autoArabic' => true]);
See Also
- autoScriptToLang - marks up HTML text using the lang attribute, based on the Unicode script block in question
- Automatic Font selection