Skip to content

nacro90/turkishmode.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turkishmode.nvim

turkishmode.gif

This project is a Lua port of Deniz Yüret's emacs plugin turkish-mode.

This is for the people trying to type Turkish documents on a U.S. keyboard using Neovim. The plugin provides a turkishmode module that can be asciify and deasciify the buffer contents and arbitrary strings.

The program uses decision lists (included at the end of this file) which was created based on 1 million words of Turkish news text using the GPA algorithm. For more information on GPA see the Greedy prepend algorithm for decision list induction.

Features

  • Deasciify and asciify the current buffer
  • Deasciify and asciify the current line

Installation

Use your favorite plugin manager in Neovim.

Usage

You can call the module functions directly:

:lua require('turkishmode').deasciify_buffer()
:lua require('turkishmode').deasciify_current_line()
:lua require('turkishmode').asciify_buffer()
:lua require('turkishmode').asciify_current_line()

You can create commands to call the functions easily:

:command DeasciifyBuf lua require('turkishmode').deasciify_buffer()

You can use the core module for raw string asciification and deasciification:

require('turkishmode.core').deasciify('arbitrary string')
require('turkishmode.core').asciify('arbitrary string')

TODO

  • Asciify & Deasciify raw strings
  • Asciify & Deasciify buffers and lines
  • Asciification & Deasciification on typing

About

Deasciify turkish texts easily

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages