From: Aditya Mahajan <adityam@umich.edu>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: A bug in latin modern fonts?
Date: Sat, 4 Feb 2012 16:20:09 -0500 (EST) [thread overview]
Message-ID: <alpine.LNX.2.02.1202041614540.11721@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <4F2D8F1C.8000702@wxs.nl>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 825 bytes --]
On Sat, 4 Feb 2012, Hans Hagen wrote:
> On 4-2-2012 18:49, Aditya Mahajan wrote:
>
>> 2. \colonequals is a bug in ConTeXt's definition. We should be using the
>> glyph from the font anyways and falling back only if the glyph is missing.
>
> Ah, i messed that one up ... I'll fix it.
>
> But anyway, it looks like I have to start on making a a nice library of
> composed glyphs
The following mapping in char-def.lua should take care of remapping -
(0x002D) to \minus (0x2212), but it is not working.
{
adobename="hyphen",
category="pd",
cjkwd="na",
description="HYPHEN-MINUS",
direction="es",
linebreak="hy",
mathsymbol=0x2212,
unicodeslot=0x002D,
},
The attached patch to math-map.lua can force the remapping, but it will be
nicer if the mathsymbol in char-def.lua worked correctly.
Aditya
[-- Attachment #2: Type: TEXT/PLAIN, Size: 1119 bytes --]
--- /home/adityam/Software/context-pkgbuild/src/tex/texmf-context/tex/context/base/math-map.lua 2011-09-14 06:34:53.000000000 -0400
+++ /opt/context-minimals/texmf-context/tex/context/base/math-map.lua 2012-02-04 16:13:16.000000000 -0500
@@ -128,7 +128,7 @@
[0x03F4]=0x03F4, [0x03F5]=0x03F5,
},
symbols = {
- [0x2202]=0x2202, [0x2207]=0x2207,
+ [0x002d]=0x2212, [0x2202]=0x2202, [0x2207]=0x2207,
},
}
@@ -160,7 +160,7 @@
[0x03F4]=0x1D6F3, [0x03F5]=0x1D716,
},
symbols = {
- [0x2202]=0x1D715, [0x2207]=0x1D6FB,
+ [0x002d]=0x2212, [0x2202]=0x1D715, [0x2207]=0x1D6FB,
},
}
@@ -185,7 +185,7 @@
[0x03F4]=0x1D6B9, [0x03F5]=0x1D6DC,
},
symbols = {
- [0x2202]=0x1D6DB, [0x2207]=0x1D6C1,
+ [0x002d]=0x2212, [0x2202]=0x1D6DB, [0x2207]=0x1D6C1,
},
}
@@ -210,7 +210,7 @@
[0x03F4]=0x1D72D, [0x03F5]=0x1D750,
},
symbols = {
- [0x2202]=0x1D74F, [0x2207]=0x1D735,
+ [0x002d]=0x2212, [0x2202]=0x1D74F, [0x2207]=0x1D735,
},
}
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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:[~2012-02-04 21:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-29 10:42 Janne Junnila
2012-02-04 8:15 ` Janne Junnila
2012-02-04 17:49 ` Aditya Mahajan
2012-02-04 18:18 ` Khaled Hosny
2012-02-04 20:03 ` Hans Hagen
2012-02-04 21:20 ` Aditya Mahajan [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=alpine.LNX.2.02.1202041614540.11721@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).