Skip to content

Adding needed font for ja PDF builds. #311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Conversation

JulienPalard
Copy link
Member

see: python/python-docs-ja#31 (comment)

I'm trying it manually before, to ensure that's why we need, nothing more is needed, and it actually fix the proble, so please don't merge now.

@JulienPalard JulienPalard requested a review from ewdurbin as a code owner March 13, 2023 09:32
@JulienPalard
Copy link
Member Author

Installed it manually:

root@docs:~# apt install fonts-noto
mdk@docs:~$ sudo su -
root@docs:~# apt install fonts-noto
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  fonts-noto-cjk fonts-noto-cjk-extra fonts-noto-color-emoji fonts-noto-core fonts-noto-extra fonts-noto-ui-core fonts-noto-ui-extra fonts-noto-unhinted
The following NEW packages will be installed:
  fonts-noto fonts-noto-cjk fonts-noto-cjk-extra fonts-noto-color-emoji fonts-noto-core fonts-noto-extra fonts-noto-ui-core fonts-noto-ui-extra fonts-noto-unhinted
0 upgraded, 9 newly installed, 0 to remove and 13 not upgraded.
Need to get 290 MB of archives.
After this operation, 755 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 fonts-noto-core all 20200323-1build1~ubuntu20.04.1 [10.9 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 fonts-noto all 20200323-1build1~ubuntu20.04.1 [17.6 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/main amd64 fonts-noto-cjk all 1:20190410+repack1-2 [55.7 MB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/main amd64 fonts-noto-cjk-extra all 1:20190410+repack1-2 [131 MB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 fonts-noto-color-emoji all 0~20200916-1~ubuntu20.04.1 [9940 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 fonts-noto-extra all 20200323-1build1~ubuntu20.04.1 [68.8 MB]
Get:7 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 fonts-noto-ui-core all 20200323-1build1~ubuntu20.04.1 [1326 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 fonts-noto-ui-extra all 20200323-1build1~ubuntu20.04.1 [11.9 MB]
Get:9 http://us.archive.ubuntu.com/ubuntu focal-updates/universe amd64 fonts-noto-unhinted all 20200323-1build1~ubuntu20.04.1 [252 kB]
Fetched 290 MB in 3s (115 MB/s)          
Selecting previously unselected package fonts-noto-core.
(Reading database ... 236592 files and directories currently installed.)
Preparing to unpack .../0-fonts-noto-core_20200323-1build1~ubuntu20.04.1_all.deb ...
Unpacking fonts-noto-core (20200323-1build1~ubuntu20.04.1) ...
Selecting previously unselected package fonts-noto.
Preparing to unpack .../1-fonts-noto_20200323-1build1~ubuntu20.04.1_all.deb ...
Unpacking fonts-noto (20200323-1build1~ubuntu20.04.1) ...
Selecting previously unselected package fonts-noto-cjk.
Preparing to unpack .../2-fonts-noto-cjk_1%3a20190410+repack1-2_all.deb ...
Unpacking fonts-noto-cjk (1:20190410+repack1-2) ...
Selecting previously unselected package fonts-noto-cjk-extra.
Preparing to unpack .../3-fonts-noto-cjk-extra_1%3a20190410+repack1-2_all.deb ...
Unpacking fonts-noto-cjk-extra (1:20190410+repack1-2) ...
Selecting previously unselected package fonts-noto-color-emoji.
Preparing to unpack .../4-fonts-noto-color-emoji_0~20200916-1~ubuntu20.04.1_all.deb ...
Unpacking fonts-noto-color-emoji (0~20200916-1~ubuntu20.04.1) ...
Selecting previously unselected package fonts-noto-extra.
Preparing to unpack .../5-fonts-noto-extra_20200323-1build1~ubuntu20.04.1_all.deb ...
Unpacking fonts-noto-extra (20200323-1build1~ubuntu20.04.1) ...
Selecting previously unselected package fonts-noto-ui-core.
Preparing to unpack .../6-fonts-noto-ui-core_20200323-1build1~ubuntu20.04.1_all.deb ...
Unpacking fonts-noto-ui-core (20200323-1build1~ubuntu20.04.1) ...
Selecting previously unselected package fonts-noto-ui-extra.
Preparing to unpack .../7-fonts-noto-ui-extra_20200323-1build1~ubuntu20.04.1_all.deb ...
Unpacking fonts-noto-ui-extra (20200323-1build1~ubuntu20.04.1) ...
Selecting previously unselected package fonts-noto-unhinted.
Preparing to unpack .../8-fonts-noto-unhinted_20200323-1build1~ubuntu20.04.1_all.deb ...
Unpacking fonts-noto-unhinted (20200323-1build1~ubuntu20.04.1) ...
Setting up fonts-noto-color-emoji (0~20200916-1~ubuntu20.04.1) ...
Setting up fonts-noto-ui-extra (20200323-1build1~ubuntu20.04.1) ...
Setting up fonts-noto-extra (20200323-1build1~ubuntu20.04.1) ...
Setting up fonts-noto-cjk (1:20190410+repack1-2) ...
Setting up fonts-noto-unhinted (20200323-1build1~ubuntu20.04.1) ...
Setting up fonts-noto-ui-core (20200323-1build1~ubuntu20.04.1) ...
Setting up fonts-noto-core (20200323-1build1~ubuntu20.04.1) ...
Setting up fonts-noto-cjk-extra (1:20190410+repack1-2) ...
Setting up fonts-noto (20200323-1build1~ubuntu20.04.1) ...
Processing triggers for fontconfig (2.13.1-2ubuntu3) ...
root@docs:~# 

Running a manual build of the ja doc:

docsbuild@docs:/srv/docsbuild/scripts$ /srv/docsbuild/venv/bin/python /srv/docsbuild/scripts/build_docs.py --branch 3.9 --language ja

we'll see...

@JulienPalard
Copy link
Member Author

OK, the PDF did not built but with another error, so it looks like this PR has helped, I think it can be merged.

@ewdurbin ewdurbin merged commit d77665f into python:main Mar 13, 2023
@JulienPalard JulienPalard deleted the mdk-ja branch March 13, 2023 10:07
@JulienPalard
Copy link
Member Author

Wow, so fast!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants