• Stars
    star
    248
  • Rank 163,560 (Top 4 %)
  • Language
    Python
  • License
    Other
  • Created over 11 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Converts LaTeX tags to unicode: \mathcal{H} → ℋ. Available on the web or as Automator script for the Mac.

UnicodeIt

Tested on Linux, Mac and Windows: Tests

Converts LaTeX tags to unicode. Available online at 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

python -m unicodeit.cli \\alpha

or in Python

import unicodeit
print(unicodeit.replace('\\alpha'))

JavaScript / TypeScript

Install with npm install unicodeit --save-dev and use it like this:

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

To set a keyboard shortcut, go to System PreferencesKeyboardShortcutsServicesTextUnicodeItAction. 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

[dev] New Release Flow

  • update version in uncodeit/__init__.py and package.json
  • create a new release on Github

More Repositories

1

html5validator

Command line tool to validate HTML5 files. Great for continuous integration.
Python
309
star
2

pysparkling

A pure Python implementation of Apache Spark's RDD and DStream interfaces.
Python
260
star
3

socialforce

Differentiable Social Force simulation with universal interaction potentials.
Jupyter Notebook
118
star
4

databench

Data analysis tool.
Python
83
star
5

databench_examples

Example analyses for Databench.
Python
28
star
6

localcrawl

Crawl and render JavaScript templates.
Python
8
star
7

pelican-jsmath

Pass math to JavaScript renderers.
Python
7
star
8

pelican-theme-validator

Automatically create git branches with the output of pelican builds. Connect to TravisCI and show an overview of the status.
Python
4
star
9

databench_spark_test

Demo of using PySpark and Databench together.
Python
4
star
10

decouple

Decouple and recouple.
Python
4
star
11

databench_go

Go language kernel for Databench. Write your data analysis in Go and visualize and interact with it in the browser.
Go
3
star
12

decoupledDemo

Demo of recoupling a decoupled project. Effective likelihoods and template parametrizations are hosted on the web.
Python
2
star
13

dvds-js

Distributed versioned data structures implemented in JavaScript for browsers and node.js.
JavaScript
2
star
14

svenkreiss.github.io

Personal
HTML
2
star
15

PyROOTUtils

Python utilities for ROOT.
Python
2
star
16

dockbroker

Experimental. Clients ask dockbrokers for an "offer" for how much money they can execute a job and then pick the cheapest. Brokers that have data locally available or already cached part of the Docker image are cheaper and therefore preferred. Estimated time to completion will affect the price. Clients can build reputation in brokers when they deliver on time and brokers build reputation in clients when their job description and estimated run-time are good.
Go
2
star
17

LHCHiggsCouplings

Python interface to the numbers published by the LHC Higgs Cross Section Working Group in Yellow Report 3.
Python
1
star
18

databench_examples_viewer

Runs on Heroku.
Python
1
star
19

BatchLikelihoodScan

Creates (profile) likelihood scans of RooFit/RooStats models in any dimension locally or on batch systems.
Python
1
star
20

docker-flask-gevent

Ubuntu base. Need an image that has python-dev and all dependencies (174 of them) already built.
Shell
1
star