

(BTW, the font is a somewhat transitional serif family with 14 weights and support for all Latin-based languages plus IPA. I must thank for all your RegEx inputs as they would help this project. The work is still running but the font will probably use all 20 stylistic sets available to OT nowadays. Chess notation to become automatic (substitution of letters and signs to international chess figurines). Pairs like |vu| or |gu| get slight minor serifs where the glyphs tends to touch each other, inreasing legibility.Ĥ. Alternative glyphs to reduce serif conflicts. For example: |SS| in German to be replaced by Ezsett |5o| or |3a| to become 5º and 3ª in Portuguese and Spanish and so on.ģ. Roman numbers: you type any number up to 9999 and get the proper Roman numeral.Ģ. Other features already have OT solutions triggered through stylistic sets:ġ. Hope I could achieve a complete set of OT substitutions to make this really automatic and useful for scientific texts. I still do not developed the whole OT code, but your tips about RegEx solutions are pretty useful. One of its stylistic set is planned to do these automatic formating to scientific notation (Mathematical, Chemical, Phisics, etc.) exactly as these discussed here. I’m developing a font with many OT features. For example, it knows that a “2” after “MC” should be superscript, but a “2” after just “C” should be subscript. It uses some of the same techniques in this blog post, but it has different “smarts” about whether a number should be superscript or subscript. Here’s another snippet that you might find useful.
#How to make a superscript on illustrator download#
In case you want to try it yourself without all that grep typing, here’s an InDesign snippet you can download and file > place in your InDesign document. The result? Here’s the same text before and after the paragraph style with this grep style in it is applied: Nothing magic about it it’s just seeing the pattern then using the positive lookbehind and positive lookahead features in grep. Subscript one or more numbers that comes immediately after the text “sub”.


So “Hsub2O” means make the 2 subscript.īut of course, I also don’t want that caret or the word “sub” to appear in the final document! No problem: Just make a character style that makes the text disappear. I honestly don’t know if there’s a standard way to type this.

In my case, I’m saying, “use sub2” to mean make this number a subscript. In order to do this for subscript character, we need to come up with a standard to tell our authors. You can immediately see the pattern, right? “Look for one or more digits after a caret and make them superscript.” As soon as you have a pattern, you can grep-it - create a GREP style that applies formatting to it. The caret means make the following number a superscript. In my case, the manuscript uses the typical ascii format for exponential numbers, such as 10^9. I really don’t want to manually format all those numbers, and fortunately I don’t have to. There are a number of ways to do this, but I’m working on a manuscript right now that has a lot of superscripted numbers such as “109” (except that 9 is supposed to pop up a bit, to mean “ten to the ninth” or “one billion” in the modern, long form nomenclature). How should you format H20 or MC2? Generally, you’d want to subscript the 2 in the first instance and superscript it in the second.
