Click here to Skip to main content
13,140,231 members (47,271 online)
Click here to Skip to main content
Add your own
alternative version


5 bookmarked
Posted 15 Aug 2006

write Turkish with a QWERTY Keyboard and without any special switching

, 15 Aug 2006
Rate this:
Please Sign up or sign in to vote.
This code is a very easy way to allow people to write in Turkish in their website without expecting the user to change any special keyboard switching or pressing external buttons.


There are generally two ways to be able to write in Turkish visiting a website:

  • use Turkish Keyboard layout;
  • website provides external buttons to represent some six letters that do not exist in a typical QWERTY English keyboard.

I would like to present to the Internet community a third method of writing Turkish that neither expects a special keyboard switching, nor peripheral buttons that hinder the flow of writing Turkish on a website.

Turkish Letters That Are Not In English

There are different Turkish letters not included in English depending on the case. For capital letters the sequence goes like this:

Sample screenshot

and small-case letters:

Sample screenshot

Letters that are not in a typical QWERY keyboard should be easily evident. The S with the cedilla, or the g with the breve accent are all subtle differences between Turkish and English.

A Simple Solution

In regular writing it is certainly common to have a space after a punctuation mark, such as the period, or the command, or the colon, etc. If there is not a space after such punctuation marks and one of the letters in QWERTY but not exactly in Turkish could mean a letter we need. For example, if we type "Buras.i Mu,stur" then the software can immediately replace the ".i" combination with the dotless-i letter that is in Turkish but not English. The Javascript code attached to this article precisely does this.

The following QWERTY sequences translates to the following Turkish letters:

Sample screenshot


Sample screenshot


There is really only one special case for the small-case letters and that's the dotless-i:

Sample screenshot

Please remember that there is no space in between the punctuation mark and the letter that follows it in order to display the mapped Turkish letter.



This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Erol Esen
Software Developer (Senior)
United States United States
No Biography provided

You may also be interested in...


Comments and Discussions

GeneralMy vote of 4 Pin
Burak Tunçbilek11-Aug-12 3:56
memberBurak Tunçbilek11-Aug-12 3:56 
GeneralMy vote of 5 Pin
zuheyr9-Aug-10 5:21
memberzuheyr9-Aug-10 5:21 
GeneralAnother way Pin
Jean-Louis Guenego14-Feb-07 1:07
memberJean-Louis Guenego14-Feb-07 1:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170915.1 | Last Updated 15 Aug 2006
Article Copyright 2006 by Erol Esen
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid