asciidoctor-pdf-cjk-kai_gen_gothic-ex 0.1.2.beta.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'open-uri'
4
+
5
+ FontsDir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'data', 'fonts'))
6
+
7
+ Fonts = %w(
8
+ KaiGenGothicCN-Bold-Italic.ttf
9
+ KaiGenGothicCN-Bold.ttf
10
+ KaiGenGothicCN-Regular-Italic.ttf
11
+ KaiGenGothicCN-Regular.ttf
12
+ KaiGenGothicJP-Bold-Italic.ttf
13
+ KaiGenGothicJP-Bold.ttf
14
+ KaiGenGothicJP-Regular-Italic.ttf
15
+ KaiGenGothicJP-Regular.ttf
16
+ KaiGenGothicKR-Bold-Italic.ttf
17
+ KaiGenGothicKR-Bold.ttf
18
+ KaiGenGothicKR-Regular-Italic.ttf
19
+ KaiGenGothicKR-Regular.ttf
20
+ KaiGenGothicTW-Bold-Italic.ttf
21
+ KaiGenGothicTW-Bold.ttf
22
+ KaiGenGothicTW-Regular-Italic.ttf
23
+ KaiGenGothicTW-Regular.ttf
24
+ RobotoMono-Bold.ttf
25
+ RobotoMono-BoldItalic.ttf
26
+ RobotoMono-Italic.ttf
27
+ RobotoMono-Regular.ttf
28
+ )
29
+
30
+ Dir.chdir(FontsDir) do
31
+ Fonts.each_with_index do |name, index|
32
+ puts "[#{index + 1}/#{Fonts.count}] Downloading #{name}"
33
+ File.open(name, 'wb') do |file|
34
+ file.write URI.open("https://github.com/chloerei/asciidoctor-pdf-cjk-kai_gen_gothic/releases/download/v0.1.0-fonts/#{name}").read
35
+ end
36
+ end
37
+ end
38
+
39
+ puts "Done"
@@ -0,0 +1,9 @@
1
+ module Asciidoctor
2
+ module Pdf
3
+ class ThemeLoader
4
+ DataDir.replace ::File.expand_path(::File.join(::File.dirname(__FILE__), '..', '..', '..', '..', '..', 'data'))
5
+ ThemesDir.replace ::File.join DataDir, 'themes'
6
+ FontsDir.replace ::File.join DataDir, 'fonts'
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module Asciidoctor
2
+ module Pdf
3
+ module CJK
4
+ module KaiGenGothic
5
+ VERSION = "0.1.2.beta.1"
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,12 @@
1
+ require "asciidoctor/pdf/cjk"
2
+ require "asciidoctor/pdf/cjk/kai_gen_gothic/version"
3
+ require "asciidoctor/pdf/cjk/kai_gen_gothic/theme_loader.rb"
4
+
5
+ module Asciidoctor
6
+ module Pdf
7
+ module CJK
8
+ module KaiGenGothic
9
+ end
10
+ end
11
+ end
12
+ end
@@ -0,0 +1 @@
1
+ require "asciidoctor/pdf/cjk/kai_gen_gothic"
metadata ADDED
@@ -0,0 +1,136 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: asciidoctor-pdf-cjk-kai_gen_gothic-ex
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2.beta.1
5
+ platform: ruby
6
+ authors:
7
+ - Yuhang Guo
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-08-16 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: asciidoctor-pdf-cjk
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.1.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.1.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.10'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: |+
70
+ Waining:
71
+ This is an unofficial extended support of asciidoctor-pdf-cjk-kai_gen_gothic.
72
+
73
+ This official gem is no longer maintained.
74
+ Detail information can find on: https://github.com/chloerei/asciidoctor-pdf-cjk-kai_gen_gothic
75
+ I won't make any changes to the font, just make sure it keeps downloading.
76
+
77
+ email:
78
+ - 22561797+Sherry520@users.noreply.github.com
79
+ executables:
80
+ - asciidoctor-pdf-cjk-kai_gen_gothic-install
81
+ extensions: []
82
+ extra_rdoc_files: []
83
+ files:
84
+ - ".gitignore"
85
+ - Gemfile
86
+ - LICENSE.txt
87
+ - README.md
88
+ - Rakefile
89
+ - asciidoctor-pdf-cjk-kai_gen_gothic.gemspec
90
+ - bin/build_fonts
91
+ - bin/console
92
+ - bin/convert_italic.pe
93
+ - bin/setup
94
+ - data/fonts/.gitkeep
95
+ - data/themes/KaiGenGothicCN-theme.yml
96
+ - data/themes/KaiGenGothicJP-theme.yml
97
+ - data/themes/KaiGenGothicKR-theme.yml
98
+ - data/themes/KaiGenGothicTW-theme.yml
99
+ - exe/asciidoctor-pdf-cjk-kai_gen_gothic-install
100
+ - lib/asciidoctor-pdf-cjk-kai_gen_gothic.rb
101
+ - lib/asciidoctor/pdf/cjk/kai_gen_gothic.rb
102
+ - lib/asciidoctor/pdf/cjk/kai_gen_gothic/theme_loader.rb
103
+ - lib/asciidoctor/pdf/cjk/kai_gen_gothic/version.rb
104
+ homepage: https://github.com/Sherry520/asciidoctor-pdf-cjk-kai_gen_gothic
105
+ licenses:
106
+ - MIT
107
+ metadata: {}
108
+ post_install_message: |2+
109
+
110
+ ======================
111
+
112
+ Run this command to download required fonts:
113
+
114
+ $ asciidoctor-pdf-cjk-kai_gen_gothic-install
115
+
116
+ ======================
117
+
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: 2.7.0
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">"
129
+ - !ruby/object:Gem::Version
130
+ version: 1.3.1
131
+ requirements: []
132
+ rubygems_version: 3.1.6
133
+ signing_key:
134
+ specification_version: 4
135
+ summary: This is an unofficial extended support of asciidoctor-pdf-cjk-kai_gen_gothic
136
+ test_files: []