On 4/15/2017 10:42 AM, Hans Γ berg wrote:
Since Luaotfload is extracted from ConTeXt, I figure people here will know this:
In the code below, math mode '.' and ',' are translated into ':'and ';', which seems to occur because that is what ASCII/Unicode has in those positions, unlike CMMI. So how to correct this?
The issue is really trying to find get texinfo.tex working with Unicode fonts using LuaTeX, as it probably does not work with ConTeXt. (Later versions of the former use LuaTeX UTF-8 directly without translations.)
---- \input luaotfload.sty
\font\stix={file:STIX-Regular.otf} at 10pt \font\stixit={name:STIXMath-Regular} at 10pt \font\stixsc={file:STIX-Regular.otf} at 7pt \font\stixscsc={file:STIX-Regular.otf} at 5pt \stix
\textfont0=\stix \textfont1=\stixit % Translates ',' into ';'. \scriptfont0=\stixsc \scriptscriptfont0=\stixscsc \scriptfont1=\stixsc \scriptscriptfont1=\stixscsc \textfont2=\stix \textfont3=\stix
Hello π, Β±, $π₯ = Β±π¦_π$, $$π_0, β¦, π_{π - 1} β’ π.$$
There is a luatex-math.tex file in the context distribution that you can look in .. basically you need to define the proper math character mapping (context ship swith a plain setup too). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------