From 13a1b80721a76be09a2ee4c91f629c21faacda31 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Wed, 20 Apr 2016 22:18:42 +0200 Subject: [doc] extend request syntax with combinations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s sort of official now ;) --- doc/luaotfload-main.tex | 34 ++++++++++++++++++++++++++++------ 1 file changed, 28 insertions(+), 6 deletions(-) diff --git a/doc/luaotfload-main.tex b/doc/luaotfload-main.tex index c418991..92a4c01 100644 --- a/doc/luaotfload-main.tex +++ b/doc/luaotfload-main.tex @@ -188,9 +188,30 @@ for a more formal description see figure \ref{font-syntax}. ::= , [ ], \{ \} \alt , \{ \} ; - ::= `file:', + ::= `combo:', + \alt `file:', \alt `name:', ; + ::= , \{ `;', \} ; + + ::= , `->', ; + + ::= , `->', ; + + ::= (`(', \{ {\sc digit} \}, `)' | \{ {\sc digit} \} ) ; + + ::= (`(', \{ {\sc digit} \}, `,', , `)' + \alt \{ {\sc digit} \} ) ; + + ::= `fallback' + \alt \{ , \{ `*', \} \} ; + + ::= , [ `-', ] ; + + ::= `0x', \{ {\sc hexdigit} \} + \alt `U+', \{ {\sc digit} \} + \alt \{ {\sc digit} \} ; + ::= \{ \} ; ::= \{ \} ; @@ -227,12 +248,11 @@ requires a \emphasis{prefix}: \endnarrower % where \meta{prefix} is either \inlinecode{file:} or \inlinecode {name:}.\footnote{% - The development version also knows two further prefixes, - \inlinecode {kpse:} and \inlinecode {my:}. + \identifier{Luaotfload} also knows two further prefixes, \inlinecode {kpse:} + and \inlinecode {my:}. % A \inlinecode {kpse} lookup is restricted to files that can be found by - \identifier{kpathsea} and - will not attempt to locate system fonts. + \identifier{kpathsea} and will not attempt to locate system fonts. % This behavior can be of value when an extra degree of encapsulation is needed, for instance when supplying a customized tex distribution. @@ -373,7 +393,7 @@ have no meaning in \LUATEX. \beginsubsubsection{Loading by File Name} -For example, conventional \abbrev{type1} font can be loaded with a +For example, conventional \TeX\ font can be loaded with a \inlinecode {file:} request like so: \beginlisting @@ -784,6 +804,8 @@ advance as well as a special \emphasis{request syntax}. Furthermore, this allows to define \emphasis{fallback fonts} to supplement fonts that may lack certain required glyphs. +Combinations are created by defining a font using the \luaident{combo:} prefix. + \beginsubsection {Fallbacks} For example, the \identifier{Latin Modern} family of fonts does, as indicated -- cgit v1.2.3