From: Hans Hagen <pragma@wxs.nl>
To: ntg-context@ntg.nl
Subject: Re: Character translation with Luaotfload
Date: Sun, 16 Apr 2017 12:51:10 +0200 [thread overview]
Message-ID: <45f9ab2b-4787-f819-f99d-af12d0f41204@wxs.nl> (raw)
In-Reply-To: <06498D40-7C0B-42F5-AF46-19AF6FCECC94@telia.com>
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2017-04-16 10:51 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-15 8:42 Hans Åberg
2017-04-16 10:51 ` Hans Hagen [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45f9ab2b-4787-f819-f99d-af12d0f41204@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).