latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
241 stars 28 forks source link

a few additional subscripts, greek letters #479

Closed thirs closed 6 years ago

thirs commented 6 years ago

Status

Extremely minor.

Description

Just added a few superscripts for greek letters.

Minimal example demonstrating the new/fixed functionality

\documentclass{article}
\usepackage{unicode-math}
\begin{document}
\[
   aᵝ,aᵞ,aᵟ,aᵠ, bᵡ
\]
\end{document}
wspr commented 6 years ago

Thanks!

thirs commented 6 years ago

Thanks to you!

ArchangeGabriel commented 6 years ago

I would rather have put them at the end of the list than in the middle of numbers. There is no code-point ordering in place AFAICS, so this would make more sense. It’s also the case for subscripts btw.

thirs commented 6 years ago

Sure.

ArchangeGabriel commented 6 years ago

Also note that those are modifiers letters, not superscripts. And they are some more like this: ᶲ, ᶿ, ᶥ, ᶷ.

ArchangeGabriel commented 6 years ago

If you’re going this way, there is also a lot of missing Latin letters from https://unicode-table.com/en/blocks/phonetic-extensions/. I can add them in a PR if required.

ArchangeGabriel commented 6 years ago

As well as https://unicode-table.com/en/blocks/phonetic-extensions-supplement/

wspr commented 6 years ago

Hi Bruno -- thanks for the input. As long as the additions aren't going too overboard (or too much of a stretch in terms of overloading the meaning of a particular unicode slot, etc.) I would support additional subscripts and superscripts that people might expect to work in a mathematical context. PR away!

(I haven't tested the performance but I don't think we're too limited by what we add here. The actual code that makes this work does need to be improved, though. Mostly just a comment to myself.)

ArchangeGabriel commented 6 years ago

Well, I was trying to find detailed Unicode properties but I can’t remember where to find them. Anyway, for instance the sub- and superscripts β are defined as <sub> GREEK SMALL LETTER BETA (U+03B2) and <super> GREEK SMALL LETTER BETA (U+03B2) respectively, so despite their names of Greek Subscript Small Letter Beta vs Modifier Letter Small Beta, I think it should be OK. However I’m not sure whether fonts implement them though.

PR on its way, I’m making sure to got everything included this time. Do we also want Cyrillic letters? Else I will limit myself to latin+greek.

wspr commented 6 years ago

It doesn't matter if the fonts include glyphs for them — this is an input feature, and maps the unicode input char into a form that LaTeX can typeset using its mathematical engine. It follows, too, that Cyrillic (at this stage) isn't needed since we don't have anything (again, at this stage) to properly support Cyrillic in maths.

ArchangeGabriel commented 6 years ago

After some thinking on this, I’m excluding the following characters from my PR, because they are not superscript variant of greek letters but of latin letters with similar names:

So the only new greek superscript in my PR will be ᶿ.