Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

error running asciidoctor-pdf-cjk-kai_gen_gothic-install #12

Open
zhou0 opened this issue Jan 16, 2020 · 5 comments
Open

error running asciidoctor-pdf-cjk-kai_gen_gothic-install #12

zhou0 opened this issue Jan 16, 2020 · 5 comments

Comments

@zhou0
Copy link

zhou0 commented Jan 16, 2020

[1/20] Downloading KaiGenGothicCN-Bold-Italic.ttf
Traceback (most recent call last):
17: from /home/lzhou/bin/asciidoctor-pdf-cjk-kai_gen_gothic-install:23:in <main>' 16: from /home/lzhou/bin/asciidoctor-pdf-cjk-kai_gen_gothic-install:23:in load'
15: from /home/lzhou/.gem/ruby/gems/asciidoctor-pdf-cjk-kai_gen_gothic-0.1.1/exe/asciidoctor-pdf-cjk-kai_gen_gothic-install:30:in <top (required)>' 14: from /home/lzhou/.gem/ruby/gems/asciidoctor-pdf-cjk-kai_gen_gothic-0.1.1/exe/asciidoctor-pdf-cjk-kai_gen_gothic-install:30:in chdir'
13: from /home/lzhou/.gem/ruby/gems/asciidoctor-pdf-cjk-kai_gen_gothic-0.1.1/exe/asciidoctor-pdf-cjk-kai_gen_gothic-install:31:in block in <top (required)>' 12: from /home/lzhou/.gem/ruby/gems/asciidoctor-pdf-cjk-kai_gen_gothic-0.1.1/exe/asciidoctor-pdf-cjk-kai_gen_gothic-install:31:in each_with_index'
11: from /home/lzhou/.gem/ruby/gems/asciidoctor-pdf-cjk-kai_gen_gothic-0.1.1/exe/asciidoctor-pdf-cjk-kai_gen_gothic-install:31:in each' 10: from /home/lzhou/.gem/ruby/gems/asciidoctor-pdf-cjk-kai_gen_gothic-0.1.1/exe/asciidoctor-pdf-cjk-kai_gen_gothic-install:33:in block (2 levels) in <top (required)>'
9: from /home/lzhou/.gem/ruby/gems/asciidoctor-pdf-cjk-kai_gen_gothic-0.1.1/exe/asciidoctor-pdf-cjk-kai_gen_gothic-install:33:in open' 8: from /home/lzhou/.gem/ruby/gems/asciidoctor-pdf-cjk-kai_gen_gothic-0.1.1/exe/asciidoctor-pdf-cjk-kai_gen_gothic-install:34:in block (3 levels) in <top (required)>'
7: from /usr/share/ruby/open-uri.rb:35:in open' 6: from /usr/share/ruby/open-uri.rb:735:in open'
5: from /usr/share/ruby/open-uri.rb:165:in open_uri' 4: from /usr/share/ruby/open-uri.rb:224:in open_loop'
3: from /usr/share/ruby/open-uri.rb:224:in catch' 2: from /usr/share/ruby/open-uri.rb:226:in block in open_loop'
1: from /usr/share/ruby/open-uri.rb:755:in buffer_open' /usr/share/ruby/open-uri.rb:377:in open_http': 403 Forbidden (OpenURI::HTTPError)

@xu4wang
Copy link

xu4wang commented May 5, 2020

@chloerei
Copy link
Owner

chloerei commented May 5, 2020

Sorry, This gem is no longer maintained, I suggest follow the asciidoctor-pdf theme guides to use your local font.

https://github.com/asciidoctor/asciidoctor-pdf/blob/v1.5.0.beta.7/docs/theming-guide.adoc#custom-fonts

If you want to manually complete the install script, your can found fonts here: https://github.com/chloerei/asciidoctor-pdf-cjk-kai_gen_gothic/releases/tag/v0.1.0-fonts

@life888888
Copy link

https://github.com/life888888/asciidoctor-pdf-cjk-ext/releases/tag/v0.1.0

Fonts :

  • Noto Sans CJK
  • Noto Sans Mono CJK
  • Noto Serif CJK

Font Style:

  • Regular
  • Bold
  • Bold Italic
  • Italic

Support language:

  • Simplified Chinese sc
  • Traditional Chinese tc
  • Hong Kong hk
  • Japanese jp
  • Korean kr

If you want Noto Serif CJK, and JP (Japanese) , download notoserif-cjk-jp.zip

If you want Noto Sans Mono CJK, and TC (Traditional Chinese) , download notosansmono-cjk-tc.zip

If you want Noto Sans CJK, and SC (Simplified Chinese) , download notosans-cjk-sc.zip

Support Theme list is here: https://github.com/life888888/asciidoctor-pdf-cjk-ext/blob/main/ThemeList.adoc

Every zip include 6 theme (For Asciidoctor PDF 2.x Theme , For Asciidoctor PDF 1.x Theme)

Naming Rule is:

  • default-ext-notosans-cjk-xx
  • default-notosans-cjk-xx
  • notosans-cjk-xx-theme

For Asciidoctor PDF 2.x Theme:

  • default-ext-notoFONTXXX-cjk-xx
  • default-notoFONTXXX-cjk-xx
  • notoFONTXXX-cjk-xx

For Asciidoctor PDF 1.x Theme

  • default-ext-notoFONTXXX-cjk-xx-pdf-1
  • default-notoFONTXXX-cjk-xx-pdf-1
  • notoFONTXXX-cjk-xx-pdf-1

Font List
asciidoctor-pdf-cjk-ext-fonts-1

Theme List
asciidoctor-pdf-cjk-ext-themes-1

@life888888
Copy link

https://github.com/life888888/asciidoctor-pdf-cjk-ext/blob/main/install-zip-to-downloaded-resources-dir.sh

provide download shell script but only for linux, bash.

execute ./install-zip-to-downloaded-resources-dir.sh sc

will auto download SC (Simplified Chinese) - ( sans, snasmono, serif )

@life888888
Copy link

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

No branches or pull requests

4 participants