Skip to content

Commit

Permalink
Use less volatile i18n test
Browse files Browse the repository at this point in the history
- swap zh-TW -> en-EN in i18n test
- remove CJK fonts from CI
  • Loading branch information
tingerrr committed May 23, 2024
1 parent 1f520f3 commit cac5e07
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Probe runner package cache
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: imagemagick cargo fonts-noto-cjk
packages: imagemagick cargo
version: 1.0

- name: Install oxipng from crates.io
Expand Down
Binary file modified test/i18n/ref/1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/i18n/ref/2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 10 additions & 10 deletions test/i18n/test.typ
Original file line number Diff line number Diff line change
Expand Up @@ -11,52 +11,52 @@ German:

#outline(target: figure.where(kind: image))

#figure(fake-image, caption: [Caption]) <normal1>
#figure(fake-image, caption: [Regular]) <normal1>

#subpar.grid(
figure(fake-image, caption: [Inner caption]), <a>,
figure(fake-image, caption: [Inner caption]), <b>,
columns: (1fr, 1fr),
caption: [Outer caption],
caption: [Super],
label: <full1>,
)

First
German
- @normal1
- @full1
- @a
- @b

Second
English
- @normal2
- @full2
- @c
- @d

#pagebreak()

Chinese:
#set text(lang: "zh", region: "tw")
English:
#set text(lang: "en")

#outline(target: figure.where(kind: image))

#figure(fake-image, caption: [Caption]) <normal2>
#figure(fake-image, caption: [Regular]) <normal2>

#subpar.grid(
figure(fake-image, caption: [Inner caption]), <c>,
figure(fake-image, caption: [Inner caption]), <d>,
columns: (1fr, 1fr),
caption: [Outer caption],
caption: [Super],
label: <full2>,
)

First
German
- @normal1
- @full1
- @a
- @b

Second
English
- @normal2
- @full2
- @c
Expand Down

0 comments on commit cac5e07

Please sign in to comment.