# UnicodeIt
Tested on Linux, Mac and Windows: ![Tests](https://github.com/svenkreiss/unicodeit/workflows/Tests/badge.svg)
Converts LaTeX tags to unicode.
Available online at [unicodeit.net](https://www.unicodeit.net).
## Examples
```
\alpha α, \beta β, \infty ∞ e^+ e⁺, \mu^- μ⁻ \exists ∃, \nexists ∄
\int ∫, \sum ∑, \partial ∂ \to →, p\bar{p} pp̅ \mathcal{H} ℋ, \mathbb{R} ℝ
\slash{\partial} ∂̸ \underline{x} x̲ \phone ☎, \checkmark ✓
\dot{x} ẋ, \ddot{x} ẍ A^6 A⁶, m_0 m₀ \Im ℑ, \Re ℜ, \hbar ℏ
\gamma γ, \Gamma Γ \~{O} Õ \perp ⊥, \parallel ∥
\sfrac{3}{5} ⅗ \therefore ∴, \because ∵ \subset ⊂, \supset ⊃
```
## Python
Install with `pip install unicodeit` and run
```sh
python -m unicodeit.cli \\alpha
```
or in Python
```py
import unicodeit
print(unicodeit.replace('\\alpha'))
```
## JavaScript / TypeScript
Install with `npm install unicodeit --save-dev` and use it like this:
```js
var unicodeit = require('unicodeit');
console.log(unicodeit.replace('\\alpha'));
```
## Mac Automator
Create your own Automator Workflow:
* Create a new "Quick Action" (might also be labeled as "Service").
* At the top, leave the defaults: "Service receives *selected text* in *any application*"
* Select the checkmark "output replaces selected text".
* Add the action "Run Shell Script".
* From dropdown, select to "pass in: as arguments".
* The command is: `/usr/local/bin/python3 -m unicodeit.cli $1`. This Python interpreter must have unicodeit installed; e.g. with `/usr/local/bin/python3 -m pip install unicodeit`.
* It should look something like this:
![automator script](docs/automator.png)
To set a keyboard shortcut, go to `System Preferences` →
`Keyboard` → `Shortcuts` → `Services` → `Text` → `UnicodeItAction`.
Choose a keyboard shortcut like `Command+Option+Shift U`.
Now you are all set to use your new keyboard shortcut in many apps, like here in Keynote:
![keynote_demo](docs/unicodeit_demo.gif)
## [dev] New Release Flow
* update version in `uncodeit/__init__.py` and `package.json`
* create a new release on Github
Raw data
{
"_id": null,
"home_page": "https://github.com/svenkreiss/unicodeit",
"name": "unicodeit",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Sven Kreiss",
"author_email": "research@svenkreiss.com",
"download_url": "https://files.pythonhosted.org/packages/ca/59/87694efec0dd8d789776b54a4b928b85d3886ff43ece762b67faa4fbdde5/unicodeit-0.7.5.tar.gz",
"platform": null,
"description": "# UnicodeIt\n\nTested on Linux, Mac and Windows: ![Tests](https://github.com/svenkreiss/unicodeit/workflows/Tests/badge.svg)\n\nConverts LaTeX tags to unicode.\nAvailable online at [unicodeit.net](https://www.unicodeit.net).\n\n\n## Examples\n\n```\n\\alpha \u03b1, \\beta \u03b2, \\infty \u221e e^+ e\u207a, \\mu^- \u03bc\u207b \\exists \u2203, \\nexists \u2204\n\\int \u222b, \\sum \u2211, \\partial \u2202 \\to \u2192, p\\bar{p} pp\u0305 \\mathcal{H} \u210b, \\mathbb{R} \u211d\n\\slash{\\partial} \u2202\u0338 \\underline{x} x\u0332 \\phone \u260e, \\checkmark \u2713\n\\dot{x} \u1e8b, \\ddot{x} \u1e8d A^6 A\u2076, m_0 m\u2080 \\Im \u2111, \\Re \u211c, \\hbar \u210f\n\\gamma \u03b3, \\Gamma \u0393 \\~{O} \u00d5 \\perp \u22a5, \\parallel \u2225\n\\sfrac{3}{5} \u2157 \\therefore \u2234, \\because \u2235 \\subset \u2282, \\supset\u00a0\u2283\n```\n\n\n## Python\n\nInstall with `pip install unicodeit` and run\n\n```sh\npython -m unicodeit.cli \\\\alpha\n```\n\nor in Python\n\n```py\nimport unicodeit\nprint(unicodeit.replace('\\\\alpha'))\n```\n\n\n## JavaScript / TypeScript\n\nInstall with `npm install unicodeit --save-dev` and use it like this:\n\n```js\nvar unicodeit = require('unicodeit');\nconsole.log(unicodeit.replace('\\\\alpha'));\n```\n\n\n## Mac Automator\n\nCreate your own Automator Workflow:\n\n* Create a new \"Quick Action\" (might also be labeled as \"Service\").\n* At the top, leave the defaults: \"Service receives *selected text* in *any application*\"\n* Select the checkmark \"output replaces selected text\".\n* Add the action \"Run Shell Script\".\n* From dropdown, select to \"pass in: as arguments\".\n* The command is: `/usr/local/bin/python3 -m unicodeit.cli $1`. This Python interpreter must have unicodeit installed; e.g. with `/usr/local/bin/python3 -m pip install unicodeit`.\n* It should look something like this:\n\n![automator script](docs/automator.png)\n\nTo set a keyboard shortcut, go to `System Preferences` \u2192\n`Keyboard` \u2192 `Shortcuts` \u2192 `Services` \u2192 `Text` \u2192 `UnicodeItAction`.\nChoose a keyboard shortcut like `Command+Option+Shift U`.\n\nNow you are all set to use your new keyboard shortcut in many apps, like here in Keynote:\n\n![keynote_demo](docs/unicodeit_demo.gif)\n\n\n## [dev] New Release Flow\n\n* update version in `uncodeit/__init__.py` and `package.json`\n* create a new release on Github",
"bugtrack_url": null,
"license": "MIT",
"summary": "Converts LaTeX tags to unicode",
"version": "0.7.5",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ca5987694efec0dd8d789776b54a4b928b85d3886ff43ece762b67faa4fbdde5",
"md5": "efc5fe943cbff238a112d0b86ac78e48",
"sha256": "f100df7a1b8c64d7b5160859426b641cd9f30218173c5a3450842370e242a168"
},
"downloads": -1,
"filename": "unicodeit-0.7.5.tar.gz",
"has_sig": false,
"md5_digest": "efc5fe943cbff238a112d0b86ac78e48",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 40956,
"upload_time": "2023-03-12T09:23:51",
"upload_time_iso_8601": "2023-03-12T09:23:51.151151Z",
"url": "https://files.pythonhosted.org/packages/ca/59/87694efec0dd8d789776b54a4b928b85d3886ff43ece762b67faa4fbdde5/unicodeit-0.7.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-03-12 09:23:51",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "svenkreiss",
"github_project": "unicodeit",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "unicodeit"
}