summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source')
-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