[XeTeX] Warning about no Hindi language in Devanagari script
Steve White
stevan.white at googlemail.com
Sat Jan 21 13:31:06 CET 2012
Hi Khaled!
Agreed, this does make the warning go away, but not my complaint.
The warning still doesn't say what it should: the message reads
Package fontspec Warning:
Font "Free Serif/ICU/ICU" does not contain language 'Hindi' for
script 'Devanagari'
This font does in fact support the *language", and tables for the
script that effectively support the lanugage. It just doesn't have
specifically-tagged feature tables for that language. The message is
being triggered because *features* have been requested, which aren't
present. (The purpose of the fontspec command also wasn't clear to
me--thanks for explaining!)
If the warning rather said something like
Font <> has no feature tables for language 'Hindi' for script 'Devanagari'
it would make the source of the complaint (as well as the function of
the fontspec command) cldar.
Cheers!
On 1/21/12, Khaled Hosny <khaledhosny at eglug.org> wrote:
> On Sat, Jan 21, 2012 at 12:27:37PM +0100, Steve White wrote:
>> What is the point of this warning? Is it to inform the user that the
>> font can't have good support for a language, due to having no lookup
>> tables for it? That might be useful information. In the case of
>> these languages, it is indeed very poor to fail to perform certain
>> complex transformations.
>
> You explicitly asked for ‘Language=Hindi’ which is translated to
> ‘language=HIN’ in the low level font code, and since the font does not
> have any lookups with that ‘language’ tag, fontspec is issuing a
> warning. Remove the ‘Language=Hindi’ call if you just want the default
> language of that script and the warning will go away.
>
> Regards,
> Khaled
>
>
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
> http://tug.org/mailman/listinfo/xetex
>
More information about the XeTeX
mailing list