Git Product home page Git Product logo

enisozgen / turkish-mode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emres/turkish-mode

0.0 2.0 0.0 72 KB

Developed by Deniz Yüret, this mode is for people trying to type Turkish documents on a U.S. keyboard using Emacs. The program provides a turkish-mode in which the correct Turkish accents are added to the ascii version of the last word typed each time the user hits space.

Home Page: http://denizyuret.blogspot.com/2006/11/emacs-turkish-mode.html

License: Other

Emacs Lisp 100.00%

turkish-mode's Introduction

turkish-mode for Emacs

This Emacs mode is developed by Deniz Yüret.

This is for people trying to type Turkish documents on a U.S. keyboard using Emacs. The program provides a turkish-mode in which the correct Turkish accents are added to the ascii version of the last word typed each time the user hits space. The latest version is available here.

It was inspired by Gökhan Tür's deasciifier.

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.

Installation

To activate the program first load this file into emacs:

If you have melpa and emacs24 installed, simply type:

M-x package-install turkish

Add following lines to your init file:

(require 'turkish)

Then turn on the turkish mode:

M-x turkish-mode

When Turkish mode is enabled, the space, tab, and enter keys correct the previous word by adding Turkish accents. For corrections use C-t to toggle the accent of the character under the cursor.

About Unicode and UTF-8

Please read the remarks of Deniz Yüret about the Unicode and utf-8 issue and changes between Emacs 23 and previous versions (the following comment is about turkish-char-alist data structure):

;; deniz 20100217: Emacs 23 seems to have changed its internal
;; representation to unicode.  So I am adding unicode as another
;; column after utf-8.  The columns now are: ascii, latin-5, multibyte
;; latin-5, utf-8, unicode.  Emacs versions older than 23 should use
;; column 3 (utf8), 23 and later should use column 4 (unicode).

turkish-mode's People

Contributors

emres avatar enisozgen avatar purcell avatar syohex avatar

Watchers

James Cloos avatar  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.