https://github.com/joom/turkish-deasciifier.vim
Vim plugin to use emres/turkish-deasciifier
https://github.com/joom/turkish-deasciifier.vim
Last synced: 11 months ago
JSON representation
Vim plugin to use emres/turkish-deasciifier
- Host: GitHub
- URL: https://github.com/joom/turkish-deasciifier.vim
- Owner: joom
- Created: 2014-07-12T21:07:57.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-22T12:09:27.000Z (almost 11 years ago)
- Last Synced: 2025-01-11T05:18:18.821Z (over 1 year ago)
- Language: VimL
- Size: 198 KB
- Stars: 18
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
turkish-deasciifier.vim
=======================
This plugin is a tool to pipe your selection into a Turkish deasciifier, which is based on Deniz Yüret's [turkish-mode](https://github.com/emres/turkish-mode).
It contains two functions, one to deasciify a selection, and the other to asciify it.
You can create key mappings for it like this in your .vimrc file:
```vim
vmap tr :call Turkish_Deasciify()
vmap rt :call Turkish_Asciify()
```
## Demo

## Requirements
Note that you need to install an executable Turkish deasciifier program. There are several ports of it in different languages.
**1)** [f/deasciifier](https://github.com/f/deasciifier/) is the easier version to install if you have `node` and `npm` installed. This command would install the deasciifier:
```bash
npm install deasciifier -g
```
Then you have to include this line in your .vimrc file:
```vim
let g:turkish_deasciifier_path = 'deasciify'
```
**2)** [joom/turkish-deasciifier.hs](https://github.com/joom/turkish-deasciifier.hs/) is another easy version to install if you have Haskell installed (`cabal` and `ghc`). This command would install the deasciifier:
```bash
cabal install turkish-deasciifier
```
Then you have to include this line in your .vimrc file:
```vim
let g:turkish_deasciifier_path = 'turkish-deasciifier'
```
**3)** [emres/turkish-deasciifier](https://github.com/emres/turkish-deasciifier/) is another deasciifier version that you can use if you have Python installed. Running this command would be a easy way to do so:
```bash
cd ~/ && mkdir -p Library && cd Library && git clone https://github.com/emres/turkish-deasciifier.git
```
If you don't specify a path for the [executable](https://github.com/emres/turkish-deasciifier/blob/master/turkish-deasciify) file, the plugin will assume that it is included in the environment. However, if that is not the case (if you installed [emres/turkish-deasciifier](https://github.com/emres/turkish-deasciifier/) with the command above, it is not), you can specify a path for it in your .vimrc file:
```vim
let g:turkish_deasciifier_path = '~/Library/turkish-deasciifier/turkish-deasciify'
```
## Installation
You can install it the way you install any other plugin with Vundle or Pathogen.
## License
MIT