Skip to content

Commit

Permalink
Create a new package: turkish (#83)
Browse files Browse the repository at this point in the history
* Create new package: turkish

* Fix package version: turkish
  • Loading branch information
alpkaanaksu authored May 5, 2024
1 parent aa9389f commit 8db2b03
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
41 changes: 41 additions & 0 deletions packages/turkish/1.0.0/README.md
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 `-`.
6 changes: 6 additions & 0 deletions packages/turkish/1.0.0/_manifest.yml
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"]
37 changes: 37 additions & 0 deletions packages/turkish/1.0.0/package.yml
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: "ı"

0 comments on commit 8db2b03

Please sign in to comment.