juliamono icon indicating copy to clipboard operation
juliamono copied to clipboard

Add stylistic set for true \mathscr

Open xaltsc opened this issue 3 years ago • 8 comments
trafficstars

The current design for the characters encoded at the script points look more like the alphabet of \mathcal (see below for an image).

Sadly, Unicode doesn't seem to provide codepoints for the other script alphabet in use, \mathscr. I don't know if this is possible, but could you add a stylistic set for this alphabet as well ? Both have different uses in some areas of maths.

Here are shown the two alphabets (under mathcal for \mathcal, mathrsfs for \mathscr) http://www.peteryu.ca/tutorials/publishing/latex_math_script_styles

Another solution would be to provide different distributions of the font, some distributions encoding \mathscr at the points of bold \mathcal, which would make it easier to use on software that don't support open type features.

And yet another solution would be to use the private area, but we'd loose semantics and this is not, in my opinion, acceptable.

xaltsc avatar Jan 09 '22 22:01 xaltsc

Interesting idea! I'll do some investigations.

cormullion avatar Jan 10 '22 10:01 cormullion

I think I went for a simpler-looking "writing" style because squeezing the more ornate penmanship style into the available monospaced width was too challenging (at least for a beginner). I'll take another look. If you find a monospaced script font that looks like they've solved this problem already, please let me know!

cormullion avatar Jan 10 '22 15:01 cormullion

I don't have any mono fonts on my computer that have this particular set of character (which is why I need your font :D)

However, if you're looking for ttf/otf open fonts with those characters, there's FreeSerif, DejaVu Serif and Noto Serif Math

xaltsc avatar Jan 11 '22 14:01 xaltsc

I just came across SITX font's repo and they do exactly whay I suggested with ss01 https://github.com/stipub/stixfonts

xaltsc avatar Jan 21 '22 23:01 xaltsc

Probably in the next release...

Screenshot 2022-02-02 at 16 16 24

cormullion avatar Feb 02 '22 16:02 cormullion

hopefully fixed in v0.044

cormullion avatar Feb 08 '22 22:02 cormullion

Sadly, Unicode doesn't seem to provide codepoints for the other script alphabet in use, \mathscr. […]

Since Unicode 14.0 (released last year, September 14) it is actually possible to provide both styles directly, i.e., without the use of stylistic sets.

As explained in the initial proposal, this is accomplished by using the variation selectors U+FE00 and U+FE01. The selector U+FE00 (default) is meant for the more simple \mathcal style (called “chancery”), while the selector U+FF01 is meant for the more calligraphic \mathscr style (called “roundhand”).

(This was introduced in Unicode 14 precisely because mathematicians kept complaining about the missing distinction between the two styles.)

I just came across SITX font's repo and they do exactly whay I suggested with ss01

The STIX font have so far handeled this issue via a stylistic set because this used to be the only possible way. But for their upcoming 2.20 release they have already implemented the new, official approach via variation selectors. (But they will also keep on supporting the old approach via stylistic sets.)


I’d suggest that JuliaMono makes it possible to access both script styles through the official, Unicode-sanctioned way of variation selectors. This should also have the advantages of

  • not relying of stylistic sets,
  • allowing easy use of both styles at the same time.

(I decided to post in this closed issue because I think the suggestion belongs here and because the issue was only closed a few days ago. I can also open a new issue if this is prefered.)

cionx avatar Feb 16 '22 16:02 cionx

I'll have a look. If it's not too much work, it will be done...😂

cormullion avatar Feb 16 '22 18:02 cormullion

added in 0.046

cormullion avatar Sep 15 '22 09:09 cormullion