Ordinals and Fractions don’t play nicely together but one must remember that for any given section of text the user of the font is only ever likely to enable ordinals or fractions, they are probably not going to enable both at once.
If I use Ordinals, I will enable it as part of the Body Text paragraph style. This is the only practical method. Highlighting every occurrence of st, nd, rd, or th to enable the Ordinals feature makes it pointless adding the feature in the first place. One may as well just use Superscripts.
If the Ordinals feature is enabled, therefore, whenever one wants to use the fractions feature, it would be nice if one did not have to disable the Ordinals feature first.
It is not a big problem, which is why I have not bothered to seek a solution before, but it would be better to avoid the conflict. It clearly can be done, but the solution of 13 contextual substitutions is too complex for novice users to figure out or do without help. I would love to find a simpler solution.
It would indeed be good if they could play nicely together.
I’m sure we can get both to work for the basics, but what about more complex formulas, or even just something like:
1st = 2x + 1/3y - (34/456)z and 2nd = 0
If one writes (2x+1)/3y-(34+456) it can work, but I don’t think the slash can be used twice, even if one adds a subscripted slash to the font. The space could probably be dealt with, but it might need a smaller value for superscripts and subscripts, so it’s best to expect users to type formulae without extra spaces.
But then, I don’t know how you would have wanted it formatted…which is why for the (very) few journals I have done have at least drawings, or more likely have used MathType in Word, which I also used for generating the EPS files for ID and QXP–I just need to (1) export them ad hoc from MT in Word, and (2) make sure when laying it out that the EPS files really were like “the picture.”
If you write this with Equation Editor in Microsoft Word
1st = 2x + 1/3y - (34/456)z and 2nd = 0 or 4x^3
It looks like :
![]()
So I think ultimately OpenType features should make it look like:

On the other hand, the Fractions feature is only meant for fractions, not for exponents, so the last part (4x^3) is out of scope.
I think we’re getting way too ambitious here.
I don’t think we need 13 chaining contexts, or an equation editor.
A fraction feature that can cope with 123/456 or (1+2)/(abc-xyz) without conflicting with Ordinals would already be quite impressive.
Fair enough, but I’m still wondering what to do with this:
1st = 2x + 1/3y
Typically OT features such as fractions and ordinals are manually applied to the run of text or automated process to do so.
It looks like MikeW is right, or at least that statement would make it a lot easier for us.
I think, if only fractions are enabled it should do this:

If both fractions and ordinals are enabled it should probably do this:

Or perhaps this, but I think that not all of a-z should be included in Ordinals, though that’s a moot point:

I am still trying to understand what Mike means by “a run of text.” Is it this:
Or, just this:
10th May 2017
Or is it the entire Wikipedia article?
I don’t think it should be making it easier for the Font Designer. The Font Designer’s job is to make it easier for the users.
OpenType layout features are processed per “run of text”. This means text is divided into smaller segments. Each new line will cause such split, but also a switch between Scripts, e.g. if Latin and Hebrew text is mixed, they will be split into separate segments. That is why kerning pairs between different scripts will never work.
That looks fine to me. However, I am not too sure if the superscripted x in 2x would be expected.
As far as I know, only d, h, n, r, s, t, è and ú are valid for ordinal numbers, but there may be others in other languages.
Abbreviations like Mlle for Mademoiselle are not Ordinals.
I think that Spanish ordinals ªº are Latin-1 Supplement glyphs, and should not use ordinals either.
I am sure that the superscripted x in 2x would not be expected. In normal mathematical notation, 2x means “2 times x” but 2 followed by a superscript x means “2 to the power x” (i.e. 2 multiplied by itself x times).
I think the same.
In setting math equations without the benefit of MathType or one of the other equation editors (I rarely got Word’s equations), the /x would have not been next to the 2 if it had been meant for a multiplication operator. If there is no space type it is meant as a “power of” operator.
Setting equations is by far the most laborious of any layout work. It gets checked, double & triple checked throughout the editing process by multiple parties. Even so, there is almost always a mistake (well, more than one) somewhere in a book.
How about adding some standard fractions for powers?
I also looked for ways to accommodate thousand separators and periods. I have a kerning class that includes period, comma, and ellipsis. By adding a substitution for that with hair space, numerators work OK, but denominators break the fraction.
Never seen a real world use of large fractions with a separator before. Are separators used in the UK or the Continent with large fractions?
I don’t think frac is intended for this.
I would be happy if the fractions feature just did fractions! ![]()
It does just do fractions…but the feature is dumb, not smart. Which is why we are all going through this fun exercise to fool the end applications to do our bidding without user intervention.
We all can be smarter than what most/many applications are capable of using. When we find an application that fails in processing our fonts and their instructions, we all ought to be contacting those application makers about the problem…after we make sure that our coding is correct anyway. This works for a few companies, not so well with a particular monolithic company.
It’s sort of a chicken and egg thing. If we don’t stretch what is currently possible and complain, they won’t fix their stuff. On the other hand, unless users make use of such features then those companies see no compelling reason to fix or even expand their OT Feature support. InDesign has spotty feature support, QXP has a larger feature support and is still growing (both ID & QXP as regads westers scripts, but ID supports middle eastern languages and Q doesn’t natively yet) . AD has the most complete and functional support for western scripts and makes a great test bed.


