GithubHelp home page GithubHelp logo

spugtex's Introduction

spugtex

An irssi plugin for Unicode math notation.

This plugin replaces LaTeX symbol names with their respective Unicode characters in your outgoing messages.

alt text

Usage

/math <some nice math> Replaces the symbol keywords in your message with Unicode symbols.

/mathp <some nice math> Prints a preview of the message to the current window. Alias for /spug preview <math>

/spug list Lists all supported symbols to the current window.

Examples

 /math Lambda = alpha/omega
 Λ = α/ω

Installation

Copy this file to your irssi scripts directory:

 $ wget -O ~/.irssi/scripts/spugtex.pl https://raw.github.com/seece/spugtex/master/spugtex.pl 

and load the script in irssi with

 /script load spugtex.pl 

On fonts

Not all fonts support the math symbols spugtex outputs. One good choice for a terminal/IRC font is Deja Vu Mono.

License

MIT License, see COPYING for details.

spugtex's People

Contributors

seece avatar tomin1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tomin1 userwer

spugtex's Issues

Issues with symbols

Some symbols give wrong characters and some symbols are missing.

The symbol list needs reviewing and enhancements.

Extensions & Ideas

Maybe extend this script to include all kinds of unicode characters other than math and rename to /u, /utf /unicode

Also support for custom codes for example /u add conj 2227 -> /u A conj B -> A ∧ B
Maybe /u rename oldname newname, /u remove name

Variable length lookbehind not implemented in regex

02:33 -!- Irssi: Error in script spugtex:
02:33 Variable length lookbehind not implemented in regex m/(?<=\W|^)(emptyset)(?=\W|$)/ at
          /cs/fs2/home/vlahdenv/.irssi/scripts/spugtex.pl line 146.
02:34 -!- Irssi: Client: irssi 0.8.15 (20100403 1617)

Heittää tälläisen virheen kun yritän käyttää.

Set unicode mode

Maybe I'm trying to explain some logic conundrum to a friend and I need to send many lines of explanation. It might be nice to be able to say for example /set unicode ON and the scripts converts everything until I say /set unicode off.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.