Skip to content

Commit 84da3b1

Browse files
committed
1.0.0, Emojis, Swap splitted into Convert and Convert Back
1 parent 2a1328d commit 84da3b1

File tree

9 files changed

+4411
-65
lines changed

9 files changed

+4411
-65
lines changed

Default.sublime-commands

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,17 @@
1414
}
1515
},
1616
{
17-
"caption": "UnicodeMath: Swap",
18-
"command": "unicode_math_swap"
17+
"caption": "UnicodeMath: Convert",
18+
"command": "unicode_math_convert"
19+
},
20+
{
21+
"caption": "UnicodeMath: Convert Back",
22+
"command": "unicode_math_convert_back"
23+
},
24+
{
25+
"caption": "UnicodeMath: Convert Back (Code)",
26+
"command": "unicode_math_convert_back",
27+
"args": { "code": true }
1928
},
2029
{
2130
"caption": "UnicodeMath: Insert",

Images/Input.gif

7.67 KB
Loading

Images/Script.gif

7.07 KB
Loading

Messages/1.0.0.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
UnicodeMath 1.0.0
2+
===
3+
4+
— Added emoji ☺
5+
— Codes in settings can now contain "\\uXXXX", "\\UXXXXXXXX" and "\\U+XXXX[XXXX]"
6+
`Swap` command removed, there are new commands instead, see below
7+
— Added `Convert` command
8+
— Added `Convert Back` to convert symbol before caret into unicode name or synonym
9+
— Added `Convert Back (Code)`, same as above, but converts into code: \uXXXX or \UXXXXXXXX

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,16 @@ Plugin for Sublime for inserting unicode math symbols
66
Usage
77
-----
88

9-
Input backslash and name of unicode symbol:
10-
<pre>
11-
\forall
12-
</pre>
13-
then insert space and text will be automatically converted to ∀<br>
9+
![Input](Images/Input.gif)
10+
Input backslash and name of unicode symbol (for example `\forall`) then insert space and text will be automatically converted to ∀<br>
1411
To insert space use `shift+space`
1512

1613
There are also special way to convert subscripts and superscripts with several symbols, just input several symbols after `\_` or `\^`:
1714
<pre>
1815
S\^1+2k → S¹⁺²ᵏ
1916
S\_1+2k → S₁₊₂ₖ
2017
</pre>
18+
![Script](Images/Script.gif)
2119

2220
You can also convert list of chars with special prefix via `\\prefix\abc`, which will be equivalent to `\prefixa` `\prefixb` and `\prefixc`, for example:
2321
<pre>
@@ -28,9 +26,10 @@ Hex-code of unicode symbol can be also used in one of these formats:
2826
<pre>
2927
\u12ba
3028
\U0001d7be
29+
\U+1F1D1
3130
</pre>
3231

33-
To explicitly convert (or convert back) use command **UnicodeMath: Swap**
32+
To explicitly convert (or convert back) use commands **UnicodeMath: Convert**, **UnicodeMath: Convert Back**, **UnicodeMath: Convert Back (Code)**
3433

3534
To select symbols from list, use command **UnicodeMath: Insert**
3635

@@ -42,7 +41,12 @@ You can add custom symbols into symbol-table in UnicodeMath settings (Preference
4241
<pre>
4342
"symbols": {
4443
"mysymbol": "\u0021",
45-
"myothersymbol": "\u2080"
44+
"myothersymbol": "\u2080",
45+
"shortcode": "\\u0021", // code within string
46+
"longcode": "\\U00000021",
47+
"pluscode": "\\U+12345",
48+
"manycodes": "\\U+12345\\u0020",
49+
"codes-and-text": "Foo\\U+12345"
4650
}
4751
</pre>
4852

@@ -98,4 +102,4 @@ I also recommend to set `directwrite` font option on Windows to allow font-subst
98102
Symbols table
99103
---
100104

101-
You can see all predefined symbols and synonyms in this [table](table.md)
105+
You can see all predefined [emoji](emoji.md), [symbols and synonyms](table.md)

0 commit comments

Comments
 (0)