added Persian layout and Lalezar font for RTL languages (#1786) by rendinjast

* add persian layout

* font support for RTL languages (Lalezar)

* remove forcing font

* remove forcing font
This commit is contained in:
Erfan Khadivar 2021-09-01 19:42:16 +04:30 committed by GitHub
parent 75b611da88
commit efd7887d09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View file

@ -414,6 +414,16 @@ const layouts = {
"ฯฌ", "ุฤ", "ไฝ", "ทๆ", "ยณ", "จ๊", "ค๋", "ี์", "ดศ", "ะฮ", "ู?",
" "
]
},
},
persian_standard: {
keymapShowTopRow: true,
keys: [
"`~", "1!", "2@", "3#", "4$", "5%", "6^", "7&", "8*", "9(", "0)", "-_", "=+",
"ض", "ص", "ث", "ق", "ف", "غ", "ع", "ه", "خ", "ح", "ج", "چ", "\"",
"ش", "س", "ی", "ب", "ل", "اآ", "ت", "ن", "م", "ک", "گ",
"\\|", "ظ", "ط", "زژ", "ر", "ذ", "د", "پ", "و", ".", "/?",
" "
]
}
}
export default layouts;

View file

@ -9,6 +9,7 @@
@import url("https://fonts.googleapis.com/css2?family=Coming+Soon&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lato&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lalezar&display=swap");
:root {
--roundness: 0.5rem;
@ -2154,6 +2155,7 @@ key {
.word {
//flex-direction: row-reverse;
direction: rtl;
font-family: "Lalezar";
}
}
&.withLigatures {
@ -2470,6 +2472,7 @@ key {
.word {
//flex-direction: row-reverse;
direction: rtl;
font-family: "Lalezar";
}
}
&.withLigatures {