Translate local names to Greek (#2684)

Additionally, add support for single and double quotes in Greek.
This commit is contained in:
Dimitri Kokkonis 2023-11-14 15:59:30 +01:00 committed by GitHub
parent d77356a16f
commit 897447e859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 20 additions and 0 deletions

View File

@ -338,6 +338,7 @@ impl LocalName for TableElem {
Lang::FINNISH => "Taulukko",
Lang::FRENCH => "Tableau",
Lang::GERMAN => "Tabelle",
Lang::GREEK => "Πίνακας",
Lang::HUNGARIAN => "Táblázat",
Lang::ITALIAN => "Tabella",
Lang::NYNORSK => "Tabell",

View File

@ -328,6 +328,7 @@ impl LocalName for EquationElem {
Lang::FINNISH => "Yhtälö",
Lang::FRENCH => "Équation",
Lang::GERMAN => "Gleichung",
Lang::GREEK => "Εξίσωση",
Lang::HUNGARIAN => "Egyenlet",
Lang::ITALIAN => "Equazione",
Lang::NYNORSK => "Likning",

View File

@ -273,6 +273,7 @@ impl LocalName for BibliographyElem {
Lang::FINNISH => "Viitteet",
Lang::FRENCH => "Bibliographie",
Lang::GERMAN => "Bibliographie",
Lang::GREEK => "Βιβλιογραφία",
Lang::HUNGARIAN => "Irodalomjegyzék",
Lang::ITALIAN => "Bibliografia",
Lang::NYNORSK => "Bibliografi",

View File

@ -247,6 +247,7 @@ impl LocalName for HeadingElem {
Lang::FINNISH => "Osio",
Lang::FRENCH => "Chapitre",
Lang::GERMAN => "Abschnitt",
Lang::GREEK => "Κεφάλαιο",
Lang::HUNGARIAN => "Fejezet",
Lang::ITALIAN => "Sezione",
Lang::NYNORSK => "Kapittel",

View File

@ -264,6 +264,7 @@ impl LocalName for OutlineElem {
Lang::FINNISH => "Sisällys",
Lang::FRENCH => "Table des matières",
Lang::GERMAN => "Inhaltsverzeichnis",
Lang::GREEK => "Περιεχόμενα",
Lang::HUNGARIAN => "Tartalomjegyzék",
Lang::ITALIAN => "Indice",
Lang::NYNORSK => "Innhald",

View File

@ -213,6 +213,7 @@ impl<'s> Quotes<'s> {
"hu" | "pl" | "ro" => ("", "", "", ""),
"no" | "nb" | "nn" if alternative => low_high,
"ru" | "no" | "nb" | "nn" | "ua" => ("", "", "«", "»"),
"gr" => ("", "", "«", "»"),
_ if lang.dir() == Dir::RTL => ("", "", "", ""),
_ => default,
};

View File

@ -436,6 +436,7 @@ impl LocalName for RawElem {
Lang::FINNISH => "Esimerkki",
Lang::FRENCH => "Liste",
Lang::GERMAN => "Listing",
Lang::GREEK => "Παράθεση",
Lang::ITALIAN => "Codice",
Lang::NYNORSK => "Utskrift",
Lang::POLISH => "Program",

View File

@ -236,6 +236,7 @@ impl LocalName for ImageElem {
Lang::FINNISH => "Kuva",
Lang::FRENCH => "Fig.",
Lang::GERMAN => "Abbildung",
Lang::GREEK => "Σχήμα",
Lang::HUNGARIAN => "Ábra",
Lang::ITALIAN => "Figura",
Lang::NYNORSK => "Figur",

View File

@ -641,6 +641,7 @@ impl Lang {
pub const FINNISH: Self = Self(*b"fi ", 2);
pub const FRENCH: Self = Self(*b"fr ", 2);
pub const GERMAN: Self = Self(*b"de ", 2);
pub const GREEK: Self = Self(*b"gr ", 2);
pub const ITALIAN: Self = Self(*b"it ", 2);
pub const JAPANESE: Self = Self(*b"ja ", 2);
pub const NYNORSK: Self = Self(*b"nn ", 2);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View File

@ -24,3 +24,11 @@
polygon.regular(size: 1cm, vertices: 8),
caption: [Пятиугольник],
)
---
// Test Greek
#set text(lang: "gr")
#figure(
circle(),
caption: [Ένας κύκλος.],
)

View File

@ -25,6 +25,9 @@
#set text(lang: "fi")
"Hevonen ei syö kurkkusalaattia" oli ensimmäinen koskaan 'puhelimessa' lausuttu lause.
#set text(lang: "gr")
"Το άλογο δεν τρώει αγγουροσαλάτα" ήταν η πρώτη πρόταση που ειπώθηκε στο 'τηλέφωνο'.
#set text(lang: "he")
"הסוס לא אוכל סלט מלפפונים" היה המשפט ההראשון שנאמר ב 'טלפון'.