On Oct 08, 2015, at 07:05, Vlad Ghitulescu <[email protected]> wrote: > I cannot remember / figure anymore how to type the square symbol (², > SUPERSCRIPT TWO, Unicode: U+00B2, UTF-8: C2 B2) in BBEdit. > > I can copy and paste it, but there used to be a shortcut somewhere… ______________________________________________________________________
Hey Vlad, I believe not – at least not on the Mac. You can directly input Unicode characters via the keyboard in Windows. http://superuser.com/questions/47420/insert-unicode-characters-via-the-keyboard <http://superuser.com/questions/47420/insert-unicode-characters-via-the-keyboard> On the Mac you're stuck using a utility – either the system character palette – or something like PopChar. Since you use Typinator you can create easy mnemonics for superscript and subscript numbers like: ;2 for superscript and 2; for subscript. In fact I believe there are built-in sets for these. On the other hand it's easy enough to roll-your-own custom character table: ------------------------------------------------------------------------------------------- # Auth: Christopher Stone <[email protected]> # dCre: 2015/10/08 11:00 # dMod: 2015/10/08 11:20 # Appl: BBEdit # Task: Insert Superscript Number(s) into Front Text Document. # Tags: @Applescript, @Script, @BBEdit, @Insert, @Superscript, @Number, @Front, @Document. ------------------------------------------------------------------------------------------- set _sep to "-----------------------------" set superScriptList to {_sep, "SUPERSCRIPT", _sep, "⁰", "¹", "²", "³", "⁴", "⁵", "⁶", "⁷", "⁸", "⁹", "⁺", "⁻", "⁼", "ⁿ", "⁽", "⁾", "₀", _sep, "SUBSCRIPT", _sep, "₁", "₂", "₃", "₄", "₅", "₆", "₇", "₈", "₉", "₊", "₋", "₌", "₍", "₎", "ₔ", "ₐ", "ₑ", "ₒ", "ₓ"} set myDelimiter to "" set myChoice to choose from list superScriptList ¬ with title ¬ "Superscript Numbers" with prompt ¬ "Pick 1 or more:" default items {item 1 of superScriptList} ¬ multiple selections allowed true ¬ without empty selection allowed if myChoice ≠ false then set {oldTIDS, AppleScript's text item delimiters} to {AppleScript's text item delimiters, myDelimiter} set myChoice to myChoice as text set AppleScript's text item delimiters to oldTIDS tell application "BBEdit" to set text of selection of front text window to myChoice end if ------------------------------------------------------------------------------------------- -- Best Regards, Chris -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
