admin管理员组

文章数量:1404923

According to this source, we have a neat way to show parallel, not parallel and perpendicular symbols. What I'm looking for though, would be crossed perpendicular symbol, or 'not perpendicular' symbol. I know it's very rare, but usage can be easily justified from math point of view, hence my question.

But it seems like it's not within Unicode character list.

How can I add the symbol and render it with HTML and JavaScript.

According to this source, we have a neat way to show parallel, not parallel and perpendicular symbols. What I'm looking for though, would be crossed perpendicular symbol, or 'not perpendicular' symbol. I know it's very rare, but usage can be easily justified from math point of view, hence my question.

But it seems like it's not within Unicode character list.

How can I add the symbol and render it with HTML and JavaScript.

Share Improve this question asked Aug 28, 2014 at 0:50 KarolKarol 8,07312 gold badges51 silver badges68 bronze badges 7
  • 4 not a programming question. – Mitch Wheat Commented Aug 28, 2014 at 0:52
  • Are you familiar with Tex? If so, you could try some tools to convert Tex to HTML. – wookie919 Commented Aug 28, 2014 at 2:28
  • 1 How about U+27C2 (PERPENDICULAR) followed by U+0338 (COMBINING LONG SOLIDUS OVERLAY): ⟂̸ Or U+0337 (COMBINING SHORT SOLIDUS OVERLAY): ⟂̷ – Biffen Commented Aug 28, 2014 at 6:43
  • How is drawing something using Javascript not a programming question?! – MSalters Commented Aug 28, 2014 at 8:04
  • @Biffen: Do you want to make that an answer? The Arial on my OS X does a poor job of displaying your bined glyphs, but with other fonts this works nicely, and it's exactly what I myself would have suggested. – MvG Commented Aug 28, 2014 at 8:57
 |  Show 2 more ments

1 Answer 1

Reset to default 7

(Turning my ment into an answer.)

You can use Unicode's bining characters, e.g:

U+27C2 (PERPENDICULAR) followed by either

  • U+0338 (COMBINING LONG SOLIDUS OVERLAY):

    ⟂̸

  • or U+0337 (COMBINING SHORT SOLIDUS OVERLAY):

    ⟂̷

Or some other character that you find fitting.

Naturally this will only work with supportive fonts and proper renderers (i.e. browsers in this case), but then again font limitations can always cause problems, with or without bining characters.

本文标签: javascriptUnicode 39not perpendicular39 symbolStack Overflow