From: handa Date: Mon, 17 Nov 2008 08:08:56 +0000 (+0000) Subject: (FONT-SPEC): Add descripition of OTF-SPEC and LANG-SPEC. X-Git-Tag: XML-base~25 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=3cd34d1f07684103c080fd0e28d1c3018774e0e4;p=m17n%2Fm17n-db.git (FONT-SPEC): Add descripition of OTF-SPEC and LANG-SPEC. --- diff --git a/FORMATS/Fontset.txt b/FORMATS/Fontset.txt index 8d4580c..3fcb4cd 100644 --- a/FORMATS/Fontset.txt +++ b/FORMATS/Fontset.txt @@ -29,7 +29,8 @@ FONT-SPEC-ELEMENT ::= '(' FONT-SPEC [ FLT-NAME ] ')' FONT-SPEC ::= '(' [ FOUNDRY FAMILY [ WEIGHT [ STYLE [ STRETCH [ ADSTYLE ]]]]] - REGISTRY ')' + REGISTRY + [ OTF-SPEC ] [ LANG-SPEC ] ')' @endverbatim @c SCRIPT is a symbol of script name (e.g. latin, han) or @c nil. @c @@ -40,6 +41,35 @@ LANGUAGE is a two-letter symbol of language name code defined by ISO REGISTRY are symbols corresponding to #Mfoundry to #Mregistry property of a font. See @ref m17nFont for the meaning of each property. +@c OTF-SPEC is a symbol specifing the required OTF features. The +symbol name has the following syntax. + +@verbatim + OTF-SPEC-NAME ::= ':otf=' SCRIPT LANGSYS ? GSUB-FEATURES ? GPOS-FEATURES ? + + SCRIPT ::= SYMBOL + + LANGSYS ::= '/' SYMBOL + + GSUB-FEATURES ::= '=' FEATURE-LIST ? + + GPOS-FEATURES ::= '+' FEATURE-LIST ? + + FEATURE-LIST ::= '~' ? FEATURE ( ',' '~' ? FEATURE ',' ) + +@endverbatim + +Here, @c FEATURE is a four-letter Open Type feature. + +@c LANG-SPEC is a symbol specifying the required language support. +The symbol name has the following syntax. + +@verbatim + LANG-SPEC-NAME ::= ':lang=' LANG +@endverbatim + +Here, @c LANG is a two or three-letter ISO-639 language code. + @c FLT-NAME is a name of Font Layout Table (@ref mdbFLT). @section fontset-example EXAMPLE