From: Elspeth McGullicuddy <elspethmcgullicuddy@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: doublestroke
Date: Thu, 26 Dec 2013 16:13:16 +0100 [thread overview]
Message-ID: <CAGMMSTC+geS+xqJkO8nE0qCPkxdKpO=Qq-enfoLwuifg+3H08A@mail.gmail.com> (raw)
In-Reply-To: <52BC1994.7000108@wxs.nl>
Thanks Wolfgang for the "context --make en" tips.
Thanks Hans for having filled the "gaps".
Regards,
Chris
On Thu, Dec 26, 2013 at 12:57 PM, Hans Hagen <pragma@wxs.nl> wrote:
> On 12/26/2013 9:09 AM, Wolfgang Schuster wrote:
>>
>>
>> Am 26.12.2013 um 01:01 schrieb Elspeth McGullicuddy
>> <elspethmcgullicuddy@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?
>>
>>
>> 1. When you make a change in the code you have to remake the format file
>> (context —make en).
>>
>> 2. When you write many lines in the form “blocks[<name>] = { first=…,
>> last=… }” you do only replace the previous setting but don’t add new
>> entries to the table.
>>
>> 3. Part of the problem is mess in unicode because the symbols you need are
>> scattered, see http://www.unicode.org/charts/PDF/U1D400.pdf and here
>> http://www.unicode.org/charts/PDF/U2100.pdf
>
>
> I now support 'gaps' (blocks have a gaps entry). Beta uploaded.
>
> Hans
>
> -----------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
> | 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://tex.aanhet.net
> archive : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2013-12-26 15:13 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 ` doublestroke Elspeth McGullicuddy
2013-12-26 8:09 ` doublestroke Wolfgang Schuster
2013-12-26 11:57 ` doublestroke Hans Hagen
2013-12-26 15:13 ` Elspeth McGullicuddy [this message]
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='CAGMMSTC+geS+xqJkO8nE0qCPkxdKpO=Qq-enfoLwuifg+3H08A@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).