diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-09-18 11:17:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-09-18 11:17:00 +0200 |
commit | ea8cd771135d573fee6529e62e08468e79b12eab (patch) | |
tree | d2f7102bac47807fd3a0cbfeb02a0bb2f6f13a30 /tex/context/base/lxml-css.lua | |
parent | 02d4d3cbde5e1e94e056cdf3b732145a37413fdb (diff) | |
download | context-ea8cd771135d573fee6529e62e08468e79b12eab.tar.gz |
beta 2014.09.18 11:17
Diffstat (limited to 'tex/context/base/lxml-css.lua')
-rw-r--r-- | tex/context/base/lxml-css.lua | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tex/context/base/lxml-css.lua b/tex/context/base/lxml-css.lua index 0deaea4d3..fa921b24f 100644 --- a/tex/context/base/lxml-css.lua +++ b/tex/context/base/lxml-css.lua @@ -146,7 +146,19 @@ local pattern = Cf( Ct("") * ( + (C("sansserif") + C("sans")) / "sans-serif" -- match before serif + C("serif") ) - ) + P(1) + ) +--+ P("\\") * ( +-- P("bf") * ( Cg ( Cc("weight") * Cc("bold") ) ) +-- + P("bi") * ( Cg ( Cc("weight") * Cc("bold") ) +-- * Cg ( Cc("style") * Cc("italic") ) ) +-- + P("bs") * ( Cg ( Cc("weight") * Cc("bold") ) +-- * Cg ( Cc("style") * Cc("oblique") ) ) +-- + P("it") * ( Cg ( Cc("style") * Cc("italic") ) ) +-- + P("sl") * ( Cg ( Cc("style") * Cc("oblique") ) ) +-- + P("sc") * ( Cg ( Cc("variant") * Cc("small-caps") ) ) +-- + P("tt") * ( Cg ( Cc("family") * Cc("monospace") ) ) +--) + + P(1) )^0 , rawset) function css.fontspecification(str) |