summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/context
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-23 00:11:19 +0000
committerKarl Berry <karl@freefriends.org>2009-11-23 00:11:19 +0000
commit6106e23b15a73668b37291685fe60ae3a64e58db (patch)
treebacf5cd589bb318f3e14307c87ec60c21587ac21 /Master/texmf-dist/source/context
parent47a83019686478b45f6a6c95dc3734ed8c90b7fb (diff)
context-simplefonts update (22nov09)
git-svn-id: svn://tug.org/texlive/trunk@16133 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/context')
-rw-r--r--Master/texmf-dist/source/context/third/simplefonts/doc/simplefonts.tex46
1 files changed, 33 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/context/third/simplefonts/doc/simplefonts.tex b/Master/texmf-dist/source/context/third/simplefonts/doc/simplefonts.tex
index cbc5e27e14c..1c56ae76d83 100644
--- a/Master/texmf-dist/source/context/third/simplefonts/doc/simplefonts.tex
+++ b/Master/texmf-dist/source/context/third/simplefonts/doc/simplefonts.tex
@@ -1,4 +1,4 @@
-\usemodule[simplefonts]%[size=11pt]
+\usemodule[simplefonts][size=10pt]
\setmainfont[DejaVu Serif]
\setsansfont[DejaVu Sans]
@@ -6,6 +6,8 @@
\starttext
+\startbodymatter
+
\title{The {\em simplefonts} module}
Writing typescripts for \ConTeXt\ can be a tedious job, …
@@ -25,22 +27,40 @@ Writing typescripts for \ConTeXt\ can be a tedious job, …
{\simplefont[TeX Gyre Chorus]TeX Gyre Chorus}
\stoplines
+\stopbodymatter
+
+\startappendices
+
+\section[sec:features]{Features}
+
\startluacode
+tex.sprint("\\starttabulate[|l|p|p|]")
+for k, v in next, fonts.otf.tables.features do
+ tex.sprint(string.format("\\NC %s\\NC %s\\NC %s\\NC\\NR",k,string.gsub(v,"#","\\letterhash"),string.lower(string.gsub(v,"[^a-zA-Z0-9]",""))))
+end
+tex.sprint("\\stoptabulate")
+\stopluacode
+
+\section[sec:scripts]{Scripts}
-local styles = { "regular", "italic", "bold", "bolditalic" }
-
-tex.sprint(tex.ctxcatcodes,"\\starttabulate[|l|b{\\nohyphens}p|]")
-tex.sprint(tex.ctxcatcodes,"\\NC \\bf style \\NC\\bf extension \\NC\\NR")
-for _, style in global.ipairs(styles) do
- tex.sprint(tex.ctxcatcodes,"\\NC " .. style .. "\\NC ")
- for _, extension in global.ipairs(thirddata.simplefonts.extlist["normal"][style]) do
- tex.sprint(tex.ctxcatcodes,extension .. " ")
--- global.print(extension)
- end
- tex.sprint(tex.ctxcatcodes," \\NC\\NR")
+\startluacode
+tex.sprint("\\starttabulate[|l|p|p|]")
+for k, v in next, fonts.otf.tables.scripts do
+ tex.sprint(string.format("\\NC %s\\NC %s\\NC %s\\NC\\NR",k,string.gsub(v,"#","\\letterhash"),string.lower(string.gsub(v,"[^a-zA-Z0-9]",""))))
end
-tex.sprint(tex.ctxcatcodes,"\\stoptabulate")
+tex.sprint("\\stoptabulate")
+\stopluacode
+
+\section[sec:languages]{Languages}
+\startluacode
+tex.sprint("\\starttabulate[|l|p|p|]")
+for k, v in next, fonts.otf.tables.languages do
+ tex.sprint(string.format("\\NC %s\\NC %s\\NC %s\\NC\\NR",k,string.gsub(v,"#","\\letterhash"),string.lower(string.gsub(v,"[^a-zA-Z0-9]",""))))
+end
+tex.sprint("\\stoptabulate")
\stopluacode
+\stopappendices
+
\stoptext