diff options
| author | MALO <57839069+MDLC01@users.noreply.github.com> | 2023-11-10 17:17:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-10 17:17:39 +0100 |
| commit | 13f1a4386faac13b21722b744843152a88791e50 (patch) | |
| tree | 30301f0c69dbbaff24914acfb567bdea7d0e54fc /tests | |
| parent | 010084e2d6d4c766bac9cc751ee6940cd3278695 (diff) | |
Improve French and Chinese localization for figures (#2542)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/meta/figure-localization.png | bin | 0 -> 2724 bytes | |||
| -rw-r--r-- | tests/ref/meta/figure.png | bin | 190166 -> 54197 bytes | |||
| -rw-r--r-- | tests/typ/meta/figure-localization.typ | 17 | ||||
| -rw-r--r-- | tests/typ/meta/figure.typ | 22 |
4 files changed, 17 insertions, 22 deletions
diff --git a/tests/ref/meta/figure-localization.png b/tests/ref/meta/figure-localization.png Binary files differnew file mode 100644 index 00000000..9f7f4c89 --- /dev/null +++ b/tests/ref/meta/figure-localization.png diff --git a/tests/ref/meta/figure.png b/tests/ref/meta/figure.png Binary files differindex 1bc3b0dc..83bd7b7f 100644 --- a/tests/ref/meta/figure.png +++ b/tests/ref/meta/figure.png 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é.], -) |
