resolve #510: reverse quote direction in RTL languages (#1183)

This commit is contained in:
Naim A 2023-05-19 17:49:16 +03:00 committed by GitHub
parent 74b818fe40
commit d61a839188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,7 @@ impl<'s> Quotes<'s> {
"es" if matches!(region, Some("ES") | None) => ("", "", "«", "»"), "es" if matches!(region, Some("ES") | None) => ("", "", "«", "»"),
"hu" | "pl" | "ro" => ("", "", "", ""), "hu" | "pl" | "ro" => ("", "", "", ""),
"ru" | "no" | "nb" | "nn" | "ua" => ("", "", "«", "»"), "ru" | "no" | "nb" | "nn" | "ua" => ("", "", "«", "»"),
_ if lang.dir() == Dir::RTL => ("", "", "", ""),
_ => return Self::default(), _ => return Self::default(),
}; };

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View File

@ -25,6 +25,9 @@
#set text(lang: "fi") #set text(lang: "fi")
"Hevonen ei syö kurkkusalaattia" oli ensimmäinen koskaan 'puhelimessa' lausuttu lause. "Hevonen ei syö kurkkusalaattia" oli ensimmäinen koskaan 'puhelimessa' lausuttu lause.
#set text(lang: "he")
"הסוס לא אוכל סלט מלפפונים" היה המשפט ההראשון שנאמר ב 'טלפון'.
#set text(lang: "ro") #set text(lang: "ro")
"Calul nu mănâncă salată de castraveți" a fost prima propoziție rostită vreodată la 'telefon'. "Calul nu mănâncă salată de castraveți" a fost prima propoziție rostită vreodată la 'telefon'.