From 13f1a4386faac13b21722b744843152a88791e50 Mon Sep 17 00:00:00 2001 From: MALO <57839069+MDLC01@users.noreply.github.com> Date: Fri, 10 Nov 2023 17:17:39 +0100 Subject: Improve French and Chinese localization for figures (#2542) --- tests/typ/meta/figure-localization.typ | 17 +++++++++++++++++ tests/typ/meta/figure.typ | 22 ---------------------- 2 files changed, 17 insertions(+), 22 deletions(-) create mode 100644 tests/typ/meta/figure-localization.typ (limited to 'tests/typ') diff --git a/tests/typ/meta/figure-localization.typ b/tests/typ/meta/figure-localization.typ new file mode 100644 index 00000000..da0fb28a --- /dev/null +++ b/tests/typ/meta/figure-localization.typ @@ -0,0 +1,17 @@ +// Test localization-related figure features. + +--- +// Test French +#set text(lang: "fr") +#figure( + circle(), + caption: [Un cercle.], +) + +--- +// Test Chinese +#set text(lang: "zh") +#figure( + rect(), + caption: [一个矩形], +) diff --git a/tests/typ/meta/figure.typ b/tests/typ/meta/figure.typ index 36e2da47..7d618d06 100644 --- a/tests/typ/meta/figure.typ +++ b/tests/typ/meta/figure.typ @@ -109,25 +109,3 @@ We can clearly see that @fig-cylinder and table(columns: 2)[a][b], caption: [The table with custom separator.], ) - ---- -// Test localized default separator -#set text(lang: "fr", region: "CH") - -#figure( - circle(), - caption: [Un cercle.], -) -#set text(lang: "es") - -#figure( - polygon.regular(size: 1cm, vertices: 3), - caption: [Un triángulo.], -) - -#set text(lang: "fr", region: "CA") - -#figure( - square(), - caption: [Un carré.], -) -- cgit v1.2.3