From a6df909a8d8018ef87b66b2128c6acfa9fb0599c Mon Sep 17 00:00:00 2001 From: pan93412 Date: Wed, 26 Apr 2023 17:30:03 +0800 Subject: Allow passing `region` to LocalName (#926) --- tests/ref/text/lang-with-region.png | Bin 0 -> 1389 bytes tests/typ/text/lang-with-region.typ | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 tests/ref/text/lang-with-region.png create mode 100644 tests/typ/text/lang-with-region.typ (limited to 'tests') diff --git a/tests/ref/text/lang-with-region.png b/tests/ref/text/lang-with-region.png new file mode 100644 index 00000000..097f105d Binary files /dev/null and b/tests/ref/text/lang-with-region.png differ diff --git a/tests/typ/text/lang-with-region.typ b/tests/typ/text/lang-with-region.typ new file mode 100644 index 00000000..344ca8d2 --- /dev/null +++ b/tests/typ/text/lang-with-region.typ @@ -0,0 +1,16 @@ +// Test if text with region works + +--- +// without any region +#set text(lang: "zh") +#outline() + +--- +// with unknown region configured +#set text(lang: "zh", region: "XX") +#outline() + +--- +// with region configured +#set text(lang: "zh", region: "TW") +#outline() -- cgit v1.2.3