Hey Chris!
> Am 08.10.2015 um 18:25 schrieb Christopher Stone <[email protected]>: > > > On the Mac you're stuck using a utility – either the system character palette > – or something like PopChar. That’s what I’m doing usually (the character palette). > 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. I’m a TextExpander-user, but I’m sure that’s something similar there too. > 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 > > ————————————————————————————————————————————— Oh, that’s cool… a little like KBM! Thanks, Chris! > -- > Best Regards, > Chris Regards, Vlad -- 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].
