Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svenkreiss/unicodeit
Converts LaTeX tags to unicode: \mathcal{H} → ℋ. Available on the web or as Automator script for the Mac.
https://github.com/svenkreiss/unicodeit
converts-latex-tags unicode
Last synced: about 1 month ago
JSON representation
Converts LaTeX tags to unicode: \mathcal{H} → ℋ. Available on the web or as Automator script for the Mac.
- Host: GitHub
- URL: https://github.com/svenkreiss/unicodeit
- Owner: svenkreiss
- License: other
- Created: 2013-05-27T17:52:57.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T11:34:33.000Z (12 months ago)
- Last Synced: 2024-04-14T11:04:42.556Z (5 months ago)
- Topics: converts-latex-tags, unicode
- Language: Python
- Homepage: https://www.unicodeit.net
- Size: 2.36 MB
- Stars: 258
- Watchers: 8
- Forks: 34
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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