Skip to content

Commit

Permalink
doc: Japanese support
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiphereth-A committed May 15, 2024
1 parent 480d5f4 commit ef6a789
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,18 @@ jobs:
wget -q -O fira.zip "https://github.com/mozilla/Fira/archive/refs/tags/4.106.zip"
wget -q -O firacode.zip "https://github.com/tonsky/FiraCode/releases/download/6.2/Fira_Code_v6.2.zip"
wget -q -O notosans.zip "https://noto-website-2.storage.googleapis.com/pkgs/NotoSans-hinted.zip"
wget -q -O notosanscjk.zip "https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKsc-hinted.zip"
wget -q -O notosanscjksc.zip "https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKsc-hinted.zip"
wget -q -O notosanscjkjp.zip "https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJKjp-hinted.zip"
wget -q "https://mirror.math.princeton.edu/pub/CTAN/fonts/cm-unicode.zip"
unzip -q fira.zip -d fira
unzip -q firacode.zip -d firacode
unzip -q notosans.zip -d notosans
unzip -q notosanscjk.zip -d notosanscjk
unzip -q notosanscjksc.zip -d notosanscjksc
unzip -q notosanscjkjp.zip -d notosanscjkjp
unzip -q ./cm-unicode.zip
for i in woff2 ttf; do cp -r fira/Fira-4.106/$i /usr/share/fonts/$i; done
for i in woff2 ttf; do cp -r firacode/$i /usr/share/fonts/$i; done
cp -r notosans notosanscjk cm-unicode/fonts/otf/* /usr/share/fonts
cp -r notosans notosanscjksc notosanscjkjp cm-unicode/fonts/otf/* /usr/share/fonts
fc-cache -f
root_file: notebook.tex
- name: Upload Artifacts
Expand Down
2 changes: 2 additions & 0 deletions ICPCnotebook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
\setmathrm{CMU Serif}
\setmathsf{CMU Sans Serif}
\newfontfamily\cnfont{Noto Sans CJK SC}
\newfontfamily\jpfont{Noto Sans CJK JP}
\setTransitionsForChinese{\begingroup\cnfont}{\endgroup}
\setTransitionsForJapanese{\begingroup\jpfont}{\endgroup}

% User defined command
\newcommand{\lcm}{\operatorname{lcm}}
Expand Down

0 comments on commit ef6a789

Please sign in to comment.