ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* unicode error
@ 2010-09-25 18:25 Alan BRASLAU
  2010-09-25 18:30 ` Mojca Miklavec
  2010-09-26  0:41 ` Li Yanrui (李延瑞)
  0 siblings, 2 replies; 4+ messages in thread
From: Alan BRASLAU @ 2010-09-25 18:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

An obscure unicode error, minimal example:

\starttext
(≡) should be ($\equiv$)
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: unicode error
  2010-09-25 18:25 unicode error Alan BRASLAU
@ 2010-09-25 18:30 ` Mojca Miklavec
  2010-09-26 11:14   ` Hans Hagen
  2010-09-26  0:41 ` Li Yanrui (李延瑞)
  1 sibling, 1 reply; 4+ messages in thread
From: Mojca Miklavec @ 2010-09-25 18:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Sep 25, 2010 at 20:25, Alan BRASLAU wrote:
> An obscure unicode error, minimal example:
>
> \starttext
> (≡) should be ($\equiv$)
> \stoptext

Well, this works: $≡$
(This is not to say that the character ≡ alone should not work, but it
may be that it is simply missing in the text font and no mechanism is
there that would switch to "math mode".)

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: unicode error
  2010-09-25 18:25 unicode error Alan BRASLAU
  2010-09-25 18:30 ` Mojca Miklavec
@ 2010-09-26  0:41 ` Li Yanrui (李延瑞)
  1 sibling, 0 replies; 4+ messages in thread
From: Li Yanrui (李延瑞) @ 2010-09-26  0:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2010/9/26 Alan BRASLAU <alan.braslau@cea.fr>:
> An obscure unicode error, minimal example:
>
> \starttext
> (≡) should be ($\equiv$)
> \stoptext
>

The character "≡" in text can be find in some CJK fonts. For example:

\definefont[song][name:adobesongstdlight]

\starttext
\song
(≡) should be ($\equiv$)
\stoptext

-- 
Best regards,

Li Yanrui (李延瑞)
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: unicode error
  2010-09-25 18:30 ` Mojca Miklavec
@ 2010-09-26 11:14   ` Hans Hagen
  0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2010-09-26 11:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mojca Miklavec

On 25-9-2010 8:30, Mojca Miklavec wrote:
> On Sat, Sep 25, 2010 at 20:25, Alan BRASLAU wrote:
>> An obscure unicode error, minimal example:
>>
>> \starttext
>> (≡) should be ($\equiv$)
>> \stoptext
>
> Well, this works: $≡$
> (This is not to say that the character ≡ alone should not work, but it
> may be that it is simply missing in the text font and no mechanism is
> there that would switch to "math mode".)

indeed. of course one could use the math font as base font as well, but 
that would complicate matters a bit as we use a virtual font (so instead 
of the default set one would need to specify multiple featuresets, which 
actually is supported)

another solution is do define fallbacks but I have no time right now to 
do that (it would slow down loading a bit); some time in the future we 
will have the option in luatex to add missing glyphs to a font using a 
'missign glyph' callback but this is quite tricky as there is state to 
be kept)

making all math characters active and resolve to math could be a 
solution too but this is not always wanted either (so we should need 
exceptions etc etc then)

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-09-26 11:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-25 18:25 unicode error Alan BRASLAU
2010-09-25 18:30 ` Mojca Miklavec
2010-09-26 11:14   ` Hans Hagen
2010-09-26  0:41 ` Li Yanrui (李延瑞)

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).