ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Andreas Mang <mang@imt.uni-luebeck.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: math symbol: blacktriangle
Date: Wed, 18 Jul 2012 08:47:54 +0200	[thread overview]
Message-ID: <038EA290-5A1A-4ECC-9ECF-EDBFA618EF5E@imt.uni-luebeck.de> (raw)
In-Reply-To: <5005F347.4040607@wxs.nl>

Hi Hans,


> On 17-7-2012 20:41, Andreas Mang wrote:
>> mathname="blacktriangle",
>> 
>> to
>> 
>> [0x25B4]={
>>   adobename="blackuppointingsmalltriangle",
>>   category="so",
>>   description="BLACK UP-POINTING SMALL TRIANGLE",
>>   direction="on",
>>   linebreak="al",
>>   unicodeslot=0x25B4,
>>  },
> 
> why not 25B2 (the bigger one)
>> 
>>  [0x25BE]={
>>   category="so",
>>   description="BLACK DOWN-POINTING SMALL TRIANGLE",
>>   direction="on",
>>   linebreak="al",
>>   unicodeslot=0x25BE,
>>  },
>> 
>> with mathname="blacktriangledown" under the assumption you'd like to be consistent with the naming convention of latex.
> 
> or 25BC (the bigger one)

To make it short: I think Hans is correct. From my perspective there is an error in char-def.lua for "blacktriangleleft" and secondly the internet page I have looked this up is not consistent with what is implemented in ConTeXt, both facts of which lead me into the wrong direction (see below (P.S.), if you are interested).

Both,

http://www.unicodemap.org/details/0x25B2/index.html

and

http://www.unicodemap.org/details/0x25BC/index.html

look consistent to "\blacktriangleright" (which I am already using in my document):

http://www.unicodemap.org/details/0x25B6/index.html

Cheers,
Andreas


P.S.: When I started to look into this I thought it might be possilble to define some command in the preamble of my document that uses unicode. From searching the internet I found 

http://www-sop.inria.fr/marelle/tralics/doc-b.html

which says "The \blacktriangle command is valid only in math mode. Its translation is <mo>&blacktriangle;</mo> (Unicode U+25B4, ▴)".

However, there indeed is a problem (which I have not spotted in the first place). I had a look at char-def.lua which at first confirmed my impression on using small triangels: 

 [0x25B8]={
  category="so",
  description="BLACK RIGHT-POINTING SMALL TRIANGLE",
  direction="on",
  linebreak="al",
  mathclass="bin",
  mathname="blacktriangleleft",
  unicodeslot=0x25B8,
 },

However, this is not consistent with what you can find on the internetpage from above, since it "0x25B8" should be "blacktriangleright" 

"The \blacktriangleright command is valid only in math mode. Its translation is <mo>&blacktriangleright;</mo> (Unicode U+25B8, ▸)." 

Secondly, the \triangleleft, which I have not used before, does not work (at least for me ConTeXt  ver: 2012.07.10 09:52 MKIV fmt: 2012.7.15 int: english/english):

simple example: 

%%%%%%%%%%%%
\starttext
$\blacktriangleleft$ % does not appear
$\blacktriangleright$ % works
\stoptext
%%%%%%%%%%%%

For the blacktriangleright we have:

 [0x25B6]={
  adobename="blackrightpointingtriangle",
  category="so",
  cjkwd="a",
  description="BLACK RIGHT-POINTING TRIANGLE",
  direction="on",
  linebreak="ai",
  mathclass="bin",
  mathname="blacktriangleright",
  unicodeslot=0x25B6,
 },

which is _not_ consistent with "The \blacktriangleright command is valid only in math mode. Its translation is <mo>&blacktriangleright;</mo> (Unicode U+25B8, ▸)."

However, looking at http://www.unicodemap.org/details/0x25B6/index.html and given the fact that "blacktriangleright" works nicely, I'd assume that Hans is correct and it indeed is not the small ones but the big tirangles.
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2012-07-18  6:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-17 17:13 Andreas Mang
2012-07-17 17:39 ` Aditya Mahajan
2012-07-17 18:41   ` Andreas Mang
2012-07-17 23:20     ` Hans Hagen
2012-07-18  6:47       ` Andreas Mang [this message]
2012-07-18  8:37         ` Hans Hagen
2012-07-18  9:10           ` Andreas Mang
2012-07-18 15:50           ` Aditya Mahajan
2012-07-17 19:40   ` Hans Hagen
2012-07-17 20:36     ` Khaled Hosny
2012-07-17 22:29       ` Hans Hagen
2012-07-18 11:25         ` Khaled Hosny

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=038EA290-5A1A-4ECC-9ECF-EDBFA618EF5E@imt.uni-luebeck.de \
    --to=mang@imt.uni-luebeck.de \
    --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).