diff options
| author | Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com> | 2023-11-11 12:46:25 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-11 10:46:25 +0100 |
| commit | a44141be2e7688e99dc5510667f2f16eb1fb9d76 (patch) | |
| tree | 6a92277dd3187b42092bafa9b6e1f48bb5b5fb47 | |
| parent | 13f1a4386faac13b21722b744843152a88791e50 (diff) | |
Changed default `image` Russian supplement to short form (#2637)
| -rw-r--r-- | crates/typst-library/src/visualize/image.rs | 2 | ||||
| -rw-r--r-- | tests/ref/meta/figure-localization.png | bin | 2724 -> 4493 bytes | |||
| -rw-r--r-- | tests/typ/meta/figure-localization.typ | 9 |
3 files changed, 10 insertions, 1 deletions
diff --git a/crates/typst-library/src/visualize/image.rs b/crates/typst-library/src/visualize/image.rs index b877c472..fb24b6e1 100644 --- a/crates/typst-library/src/visualize/image.rs +++ b/crates/typst-library/src/visualize/image.rs @@ -242,7 +242,7 @@ impl LocalName for ImageElem { Lang::POLISH => "Rysunek", Lang::PORTUGUESE => "Figura", Lang::ROMANIAN => "Figura", - Lang::RUSSIAN => "Рисунок", + Lang::RUSSIAN => "Рис.", Lang::SLOVENIAN => "Slika", Lang::SPANISH => "Figura", Lang::SWEDISH => "Figur", diff --git a/tests/ref/meta/figure-localization.png b/tests/ref/meta/figure-localization.png Binary files differindex 9f7f4c89..b0b708d9 100644 --- a/tests/ref/meta/figure-localization.png +++ b/tests/ref/meta/figure-localization.png diff --git a/tests/typ/meta/figure-localization.typ b/tests/typ/meta/figure-localization.typ index da0fb28a..e6bde0e4 100644 --- a/tests/typ/meta/figure-localization.typ +++ b/tests/typ/meta/figure-localization.typ @@ -15,3 +15,12 @@ rect(), caption: [一个矩形], ) + +--- +// Test Russian +#set text(lang: "ru") + +#figure( + polygon.regular(size: 1cm, vertices: 8), + caption: [Пятиугольник], +) |
