UNPKG

mesdan

Version:

Latinî mesdan ile Osmanî metin yazmak için hazırlanmış bir alettir.

19 lines (12 loc) 2.36 kB
### Suggestions for Further Improvements This library is already forming a robust baseline, but there are some excellent features you could add to make it an essential tool for Ottoman Turkish typing and education: **1. On-Screen Virtual Keyboard (Visual Map)** Since the mapping is custom (e.g., `A` -> `ع` with shift, `a` -> `ا`), a visual toggleable on-screen keyboard component mapping out these keys would be incredibly useful. Teaching users the layout is usually the hardest part of custom input methods. You could even create an interactive UI where pressing `Shift` or `Alt` on the physical keyboard updates the characters shown on the virtual map in real time. **2. Ottoman Auto-Complete & Spell Check (Luğat/Dictionary Integration)** Unlike modern Turkish, Ottoman Turkish is heavily historical and non-phonetic in its spelling (e.g., writing "olmak" as `اولمق`, or "gök" as `كوك`). Users often misspell words by trying to write them exactly as they sound today. Building an autocomplete dictionary overlay inside the Lexical plugin (suggesting the correct historical spelling from a Kamus-ı Türki dataset when a user types a Latin word) would be a killer feature. **3. Batch Transliteration Tool** Currently, users type in real-time. Adding a utility function (or a button in the UI) to "Paste Latin Text -> Output Ottoman Text" in bulk would be great. You already have `tebdilMetniOsmaniye`, but wrapping it in an easy-to-use batch conversion UI feature would attract users who have large texts to transcribe. **4. Visible Zero-Width Non-Joiner (ZWNJ / Kesek) Toggling** You use `\u200C` (mapped to `w`) to prevent letters from joining. In a rich text editor like Lexical, `\u200C` is invisible, which can confuse users when they try to delete characters. You could write a Lexical Node modifier that visually highlights ZWNJ characters (perhaps as a tiny vertical dashed line) when the editor is in focus, making it easier for teachers to explain word separation. **5. Ligature Control (Allah, Lam-Elif, etc.)** Some Ottoman texts require strict control over whether `Lam` and `Elif` combine into `لا`, or if the word `Allah` automatically forms the beautiful `اللّٰه` ligature. Adding a toggle configuration for "Historical Ligatures" vs "Plain Text" would be a very advanced, professional-grade typographical feature.