GithubHelp home page GithubHelp logo

michfield / sublime-transliterate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from malexer/sublimetranslit

0.0 0.0 0.0 107 KB

Transliteration plugin for Sublime Text 3.

License: MIT License

Python 100.00%

sublime-transliterate's Introduction

Sublime Transliterate Plugin

Sublime Transliteration is a plugin for Sublime Text () for transliterating selected text.

Intented to be used via Command Palette.

Try openning Command Palette and typing "translit".

Creating Transliteration Dictionaries

SublimeTranslit supports extending it with additional dictionaries.

Every Dictionary is described by two files:

  1. dictionary_name.dict - is used to define characters mapping.
  2. dictionary_name.sublime-commands - is used to add a command for this dictionary to Command Palette.

All these dictionary files should be placed into Sublime Transliteration plugin directory.

dictionary_name.dict

Contains mapping (dictionary chars_mapping) of latin characters to source characters which will be transliterated.

Take a look at example:

{
    "name": "Cyrillic (russian)",
    "description": "GOST 7.79 System B, modified ISO 9:1995",
    "link": "http://en.wikipedia.org/wiki/ISO_9",
    "chars_mapping":
    {
        "A":   "\u0410",
        "B":   "\u0411",
    }
}

All other fields (name, description, link) is optional and specified in order to explain used translit rules and point to source documents.

dictionary_name.sublime-commands

It is a ordinary .sublime-commands file for Command Palette item for this dictionary.

Should run command transliterate_selection with parameter dictionary_file - a file name of dictionary_name.dict.

Example:

[
    {
        "caption": "Transliterate: Russian Cyrillic (GOST 7.79)",
        "command": "transliterate", "args":
        {
            "dictionary_file": "dictionary_name.sublime-commands"
        }
    }
]

sublime-transliterate's People

Contributors

malexer avatar michfield avatar

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.