ID for language-invariant strings

Nicholas Shanks contact at nickshanks.com
Fri Mar 14 17:52:48 CET 2008


On 14 Mar 2008, at 5:07 pm, Peter Constable wrote:

> Let me give a concrete example, which should make this clear.  
> Consider the Microsoft YaHei font: the 'name' table has strings for  
> various data categories, and for a given data category there may be  
> strings in various languages. Consider the data category Family  
> (name ID 1): there are display strings for English and for  
> Simplified Chinese. But we also want a entry that would be the  
> Family name that gets used when the font is referenced in text- 
> drawing APIs or document markup; it doesn't matter at all whether  
> that's the English or Chinese (or some other) name. But it does need  
> a separate entry in the 'name' table, and it will need a BCP47 tag  
> as part of its key. Thus:
>
>
>
> Key
>
>
>
>
>
> Name ID
>
> Lang ID
>
> Use
>
> Value
>
> 1
>
> en
>
> English display name
>
> ¡°Microsoft YaHei¡±
>
> 1
>
> zh-Hans
>
> Chinese display name
>
> ¡°Î¢ÈíÑźڡ±
>
> 1
>
> ??
>
> Language-neutral reference name
>
> ¡°Microsoft YaHei¡±
>
> I need a language tag to replace ??.
>

Like Michael said, as long as you're not using zxx in any other  
name:lang key-pair, then zxx will suffice.
Consider if the value of the language-neutral name was unprintable as  
ASCII.


¡ª Nicholas Shanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.alvestrand.no/pipermail/ietf-languages/attachments/20080314/b6bee179/attachment-0001.html


More information about the Ietf-languages mailing list