From: Elspeth McGullicuddy <elspethmcgullicuddy@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: doublestroke
Date: Thu, 26 Dec 2013 01:01:55 +0100 [thread overview]
Message-ID: <CAGMMSTCGwBAFnGahBcBAaPa+Mf_Mik13vpxShmtuFiT4MqmEcA@mail.gmail.com> (raw)
In-Reply-To: <CAGMMSTCriEEVX-aweNxcTCsEXFvtgnz7c0djv6Bg9oZYjVyd0w@mail.gmail.com>
Hi,
I hopped you all had a merry Christmas :-)
In the very first working example:
\definefontfamily [mainface] [rm] [Latin Modern Roman]
\definefallbackfamily [mainface] [mm] [TeX Gyre Termes Math]
[range={uppercasedoublestruck}] %%%,letterlikesymbols}]
\definefontfamily [mainface] [mm] [Latin Modern Math]
\setupbodyfont[mainface]
\starttext
\startformula
ABC \quad {\blackboard AB[C]DEFG[H]IJKLM[N]O[PQR]STUVWXY[Z]}
\stopformula
\stoptext
letters here in brackets weren't rendered as expected... Because there
are "holes
in the uft table" as can be seen there:
http://www.w3.org/TR/MathML2/double-struck.html
Adding the "bloks" "letterlikesymbols" was, to an extent solving the problem.
Now in my document I am also using calligraphic letters which I want
to remain in "modern".
1- WHAT DIDN'T WORK:
First idea that comes to me is modifying the file: math-act.lua
I have added all the lines that are commented out here.
blocks["uppercasedoublestruck"] = { first = 0x1D538,
last = 0x1D550 } %0x1D551 is not attributed
%blocks["uppercasedoublestruckc"] = { first = 0x02102,
last = 0x02102 } %
%blocks["uppercasedoublestruckh"] = { first = 0x0210D,
last = 0x0210D } %
%blocks["uppercasedoublestruckn"] = { first = 0x02115,
last = 0x02115 } %
%blocks["uppercasedoublestruckp"] = { first = 0x02119,
last = 0x02119 } %
%blocks["uppercasedoublestruckq"] = { first = 0x0211A,
last = 0x0211A } %
%blocks["uppercasedoublestruckr"] = { first = 0x0211D,
last = 0x0211D } %
%blocks["uppercasedoublestruckz"] = { first = 0x02124,
last = 0x02124 } %
It just didn't work. Compiled but fail to provided expected result:
Everything was in modern.
2- WHAT WORKED
\definefontfamily [mainface] [rm] [Latin Modern Roman]
\definefallbackfamily [mainface] [mm] [TeX Gyre Termes Math]
[range={uppercasedoublestruck,0x02102,0x0210D,0x02115,0x02119,0x0211A,0x0211D,0x02124}]
\definefontfamily [mainface] [mm] [Latin Modern Math]
\setupbodyfont[mainface]
\starttext
\startformula
\int_a^b \quad ABC \quad {\blackboard AB[C]DEFG[H]IJKLM[N]O[PQR]STUVWXY[Z]}
\stopformula
\stoptext
3-QUESTION
Unless I'm completely wrong, the modification I've made to the file:
math-act.lua
haven't been taken into account at all:
even if I modify the line "uppercasedoublestruck" such as to reduce the range:
blocks["uppercasedoublestruck"] = { first = 0x1D538,
last = 0x1D540 }
my \blackboard UVXY keep to be rendered with term...
So why?
Regards,
Chris
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2013-12-26 0:01 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-19 15:50 doublestroke Elspeth McGullicuddy
2013-12-22 1:47 ` doublestroke Elspeth McGullicuddy
2013-12-22 3:10 ` doublestroke Elspeth McGullicuddy
2013-12-22 10:56 ` doublestroke Wolfgang Schuster
2013-12-22 13:12 ` doublestroke Elspeth McGullicuddy
2013-12-22 13:28 ` doublestroke Wolfgang Schuster
2013-12-22 14:09 ` doublestroke Elspeth McGullicuddy
2013-12-22 14:15 ` doublestroke Wolfgang Schuster
2013-12-22 15:23 ` doublestroke Elspeth McGullicuddy
2013-12-22 15:49 ` doublestroke Wolfgang Schuster
2013-12-22 16:33 ` doublestroke Elspeth McGullicuddy
2013-12-22 16:40 ` doublestroke Wolfgang Schuster
2013-12-22 17:06 ` doublestroke Elspeth McGullicuddy
2013-12-22 17:23 ` doublestroke Wolfgang Schuster
2013-12-22 17:29 ` doublestroke Elspeth McGullicuddy
2013-12-26 0:01 ` Elspeth McGullicuddy [this message]
2013-12-26 8:09 ` doublestroke Wolfgang Schuster
2013-12-26 11:57 ` doublestroke Hans Hagen
2013-12-26 15:13 ` doublestroke Elspeth McGullicuddy
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=CAGMMSTCGwBAFnGahBcBAaPa+Mf_Mik13vpxShmtuFiT4MqmEcA@mail.gmail.com \
--to=elspethmcgullicuddy@gmail.com \
--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).