mPDF Manual – mPDF Variables

autoVietnamese

(mPDF >= 6.0)

Description

boolean autoVietnamese

Tells mPDF whether to try and distinguish the Vietnamese language when using autoScriptToLang.

Vietnamese is written using mainly Latin script, and cannot therefore be distinguished for certain from other languages using Latin script. However there are a few characters which are unique to Vietnamese and may enable mPDF to distinguish text in a Vietnamese language.

Because a number of fonts do not contain these unique characters, you may wish mPDF to try and detect Vietnamese so a special font can be selected.

Note: If autoVietnamese is TRUE mPDF will mark up text detected as Vietnamese even if baseScript is set as “1” - ignoring most Latin scripts.

Values

$autoVietnamese = TRUE|FALSE

</span>

Values

FALSE: DEFAULT Vietnamese text will be treated as Latin text when using autoScriptToLang

TRUE: mPDF will attempt to distinguish Vietnamese, and text will then be marked with lang= “vi”

See Also