ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Character translation with Luaotfload
@ 2017-04-15  8:42 Hans Åberg
  2017-04-16 10:51 ` Hans Hagen
  0 siblings, 1 reply; 10+ messages in thread
From: Hans Åberg @ 2017-04-15  8:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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} ⊢ 𝑃.$$

\end
----

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-06-13 12:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-15  8:42 Character translation with Luaotfload Hans Åberg
2017-04-16 10:51 ` Hans Hagen
2017-04-16 13:06   ` Hans Åberg
2017-04-16 13:49     ` Hans Hagen
2017-04-16 14:11       ` Hans Åberg
2017-04-16 17:06       ` Hans Åberg
2017-04-16 17:41         ` Hans Hagen
2017-04-16 18:20           ` Hans Åberg
2017-04-18 16:45           ` Hans Åberg
2017-06-13 12:51           ` Hans Åberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).