-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create new package: turkish * Fix package version: turkish
- Loading branch information
1 parent
aa9389f
commit 8db2b03
Showing
3 changed files
with
84 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Turkish Characters 🇹🇷 | ||
|
||
A simple package to convert English characters to Turkish. | ||
|
||
## Vowels | ||
| Trigger | Replacement | | ||
|:-------------:|:-------------:| | ||
| U- | Ü | | ||
| O- | Ö | | ||
| I- | İ | | ||
| u- | ü | | ||
| o- | ö | | ||
| i- | ı | | ||
|
||
|
||
## Consonants | ||
| Trigger | Replacement | | ||
|:-------------:|:-------------:| | ||
| C- | Ç | | ||
| S- | Ş | | ||
| G- | Ğ | | ||
| c- | ç | | ||
| s- | ş | | ||
| g- | ğ | | ||
|
||
## Criteria for the 'trigger character' | ||
- Should be accessible with one key stroke. | ||
- This is why `:` is not good enough. | ||
- Should be *caps lock agnostic* | ||
- This is why repetions are not good enough. | ||
- E.g. `Ii` and `II` should both be replaced with `İ`. What about `iI`? Is it `İ` or `ı`? | ||
- It should come **after** the base character. It just feels more natural. | ||
- `:` won't work, e.g. "numbers: 1, 2, 3" would get replaced with "numberş 1, 2, 3" | ||
- [base] + [trigger] is not a valid combination otherwise. | ||
- `e` after vowels: Goethe | ||
- `x` after consonants: Matrix | ||
- `'`: Marc's | ||
- `-`: `i--` (programming) | ||
|
||
### Decision | ||
`-` satisfies almost all of the criteria, except for one: it can have a special meaning in some programming languages. But I prefer `i -= 1` over `i--`, you don't need it that often in most of the modern programming languages anyway (because we have for-in loops). And most people don't write code, so it should be okay. This why I decided to go with `-`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name: "turkish" | ||
title: "Turkish characters" | ||
description: A package for typing Turkish characters with any keybord layout. | ||
version: 1.0.0 | ||
author: Alp Kaan Aksu | ||
tags: ["turkish"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
matches: | ||
# Turkish Characters | ||
- trigger: "C-" | ||
replace: "Ç" | ||
|
||
- trigger: "c-" | ||
replace: "ç" | ||
|
||
- trigger: "S-" | ||
replace: "Ş" | ||
|
||
- trigger: "s-" | ||
replace: "ş" | ||
|
||
- trigger: "G-" | ||
replace: "Ğ" | ||
|
||
- trigger: "g-" | ||
replace: "ğ" | ||
|
||
- trigger: "U-" | ||
replace: "Ü" | ||
|
||
- trigger: "u-" | ||
replace: "ü" | ||
|
||
- trigger: "O-" | ||
replace: "Ö" | ||
|
||
- trigger: "o-" | ||
replace: "ö" | ||
|
||
- trigger: "I-" | ||
replace: "İ" | ||
|
||
- trigger: "i-" | ||
replace: "ı" |