%D \module %D [ file=s-fnt-31, %D version=2011.05.12, %D title=\CONTEXT\ Style File, %D subtitle=Unicode Math Scripts, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. \startluacode function fonts.tracers.mathscripts() context.starttabulate { "|cT|c|cT|c|c|l|" } for k, v in table.sortedpairs(table.merged(characters.superscripts,characters.subscripts)) do local ck = utf.char(k) local cv = utf.char(v) local ss = characters.superscripts[k] and "^" or "_" context.NC() context("U+%05X",k) context.NC() context(ck) context.NC() context("U+%05X",v) context.NC() context(cv) context.NC() context("$x%s = x%s%s$",ck,ss,cv) context.NC() context(string.lower(characters.data[k].description)) context.NC() context.NR() end context.stoptabulate() end \stopluacode \continueifinputfile{s-fnt-32.mkiv} \setupbodyfont[dejavu,10pt] % \enabletrackers[math.normalizing] % \setupbackend[export=yes] \setuplayout [backspace=1cm, topspace=1cm, footer=1cm, header=0cm, height=middle, width=middle] \starttext \startbuffer $e=mc²$ ${}²$ $²$ $x²ᶞ$ $x⁽²⁺²⁼²⁺²⁾$ $x²⁺²⁼²⁺²$ $x₅²$ $x²₅²$ \stopbuffer \typebuffer \getbuffer \startluacode fonts.tracers.mathscripts() \stopluacode \stoptext