On 2/14/2018 5:30 PM, Alan Braslau wrote:
On Wed, 14 Feb 2018 10:12:22 +0100
Ulrike Fischer <ne...@nililand.de> wrote:

⟂ U+27C2 \perp, for example. This is a "show-stopper" for me.

Works ok for me on latex + windows:

\documentclass{article}
\usepackage{unicode-math}
\setmathfont{Cambria Math}
\begin{document}\pagestyle{empty}
$ ^^^^27c2 blblb $
\end{document}

(the document only uses cambria.ttc, so the glyph must be from this
font).

The context code

\setupbodyfont[cambria]
\starttext
$\perp $
abc
\stoptext

works fine for me too.

As Hans points out, \perp is U+22A5 (UP TACK), not U+27C2
(PERPENDICULAR), and might differ (in weight) from U+2225 (PARALLEL) or
\parallel, although this may depend on the particular font design.
(UP/DOWN/RIGHT/LEFT TACK are a set)

Is the definition used in char-ent.lua the right choice?
char-ent.lua:    ["perp"] = "⊥", -- U+022A5

Perhaps the latex package unicode-math makes the substitution for you.

(Note that dejavu has U+27C2.)

MWE:

\setupbodyfont [cambria,20pt]
%\setupbodyfont [dejavu,20pt]
\startTEXpage
$⊥⟂∥$
\stopTEXpage
its no big deal to have some backup btu i don't want to cycle through preferences every few years so deal with it once (best in combination with other such things)

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to