ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Unicode​Math

by mvoidex ST2/ST3

Plugin for Sublime for inserting unicode math symbols and emoji

Details

  • 2019.01.27.20.56.51
  • github.​com
  • github.​com
  • 8 months ago
  • 22 minutes ago
  • 7 years ago

Installs

  • Total 4K
  • Win 2K
  • OS X 1K
  • Linux 1K
Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4
Windows 1 0 0 1 0 0 1 0 0 2 0 2 0 1 3 3 0 0 1 2 0 2 2 1 0 0 0 0 1 3 2 0 1 0 1 0 0 0 1 1 0 0 0 0 2 1
OS X 0 1 1 0 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 0 1 0 0 0 0 0 0 1 0 0 2 1 0 0 0 0 0 1 1 1 0 1 1 0
Linux 0 0 3 0 0 0 1 1 0 1 0 1 0 1 3 1 0 0 0 1 0 1 0 0 1 0 1 1 1 0 0 0 2 0 1 0 0 2 0 0 0 0 1 0 1 1

Readme

Source
raw.​githubusercontent.​com

UnicodeMath

Package Control Join the chat at https://gitter.im/UnicodeMath/UnicodeMath PayPal Flattr this git repo

Plugin for Sublime for inserting unicode math symbols

Installation

Install via PackageControl or git clone in your Packages directory (Select Preferences → Browse Packages... to open right packages directory).

Usage

Input

Input backslash and name of unicode symbol (for example \forall) then insert space and text will be automatically converted to ∀
To insert space use shift+space
You can disable conversion on space by setting convert_on_space to false.

Emoji

Emoji's names starts with colon (:)

Emoji

Special

There are also special way to convert subscripts and superscripts with several symbols, just input several symbols after \_ or \^:

S^1+2k → S¹⁺²ᵏ
S_1+2k → S₁₊₂ₖ
Script

You can also convert list of chars with special prefix via \\prefix\abc, which will be equivalent to \prefixa \prefixb and \prefixc, for example:

\Bbb\ABCabc → 𝔸𝔹ℂ𝕒𝕓𝕔

Hex-code

Hex-code of unicode symbol can be also used in one of these formats:

\u12ba
\U0001d7be
\U+1F1D1

To explicitly convert (or convert back) use commands UnicodeMath: Convert, UnicodeMath: Convert Back, UnicodeMath: Convert Back (Code). Selection convert is also available:

SelectionConvert

To select symbols from list, use command UnicodeMath: Insert

Settings

You can add custom symbols into symbol-table in UnicodeMath settings (Preferences → Package Settings → UnicodeMath → Settings — User or command “Preferences: UnicodeMath Settings — User”)

(Note: don't use characters fom word_separators, see #19 issue for details)

    "symbols": {
        "mysymbol": "\u0021",
        "myothersymbol": "\u2080",
        "shortcode": "\\u0021", // code within string
        "longcode": "\\U00000021",
        "pluscode": "\\U+12345",
        "manycodes": "\\U+12345\\u0020",
        "codes-and-text": "Foo\\U+12345"
    }

Synonyms for existing symbols can also be set:

    "synonyms": {
        "mys": "mysymbol"
    }

Now \mys will insert the same symbol as \mysymbol.

Disable plugin for specific syntaxes (most common and default is 'latex'):

    "ignore_syntax": ["latex"]

Enable (default) or disable converting hex-codes:

    "convert_codes": true

Enable (default) or disable converting multichar sub- and superscripts:

    "convert_sub_super": true

Enable (default) or disable converting list of chars with prefix:

    "convert_list": true

Font settings

I prefer using Lucida Sans Unicode, it contains many unicode symbols.

    "font_face": "Lucida Sans Unicode"

I also recommend to set directwrite font option on Windows to allow font-substitution for unknown unicode symbols

    "font_options": ["directwrite"]

Symbols table

You can see all predefined emoji, symbols and synonyms