Skip to content

Commit

Permalink
add nogmagick directive for fixing images. next-l/enju_leaf#1907
Browse files Browse the repository at this point in the history
  • Loading branch information
masao committed Aug 24, 2024
1 parent bb52e11 commit fbd3550
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 10 deletions.
17 changes: 17 additions & 0 deletions _pdf/cjk-theme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
extends: default
font:
catalog:
merge: true
Noto Sans JP: NotoSansCJKjp-VF.ttf
Noto Sans Mono JP: NotoSansMonoCJKjp-VF.ttf
fallbacks:
- Noto Serif
base:
text-align: left
font-family: Noto Sans JP
codespan:
font-family: Noto Sans Mono JP
kbd:
font-family: $codespan-font-family
code:
font-family: $codespan-font-family
2 changes: 1 addition & 1 deletion _pdf/convert-adoc2pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
enju_user_all.adoc
enju_webapi_all.adoc ].each do |file|
STDERR.puts file
system("asciidoctor-pdf -a pdf-theme=default-with-fallback-font #{File.join(d, file)}")
system("asciidoctor-pdf -v -a scripts=cjk -a pdf-theme=./cjk-theme.yml -a pdf-fontsdir=./fonts -r asciidoctor/pdf/nogmagick #{File.join(d, file)}")
end
end
5 changes: 3 additions & 2 deletions _pdf/enju_install_vm_all.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
// :toc-placement!:
:sectnums:
:author: Project Next-L
:version-label: 1.4.x
:title-logo-image: image:../assets/images/logo.gif[]
:revnumber: 1.4.x
:title-logo-image: image:../assets/images/logo.png[]
:scripts: cjk

include::enju_install_vm.adoc[]

Expand Down
4 changes: 2 additions & 2 deletions _pdf/enju_operation_all.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// :toc-placement!:
:sectnums:
:author: Project Next-L
:version-label: 1.4.x
:title-logo-image: image:../assets/images/logo.gif[]
:revnumber: 1.4.x
:title-logo-image: image:../assets/images/logo.png[]

include::enju_operation.adoc[]

Expand Down
2 changes: 1 addition & 1 deletion _pdf/enju_setup_all.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
:sectnums:
:author: Project Next-L
:version-label: 1.4.x
:title-logo-image: image:../assets/images/logo.gif[]
:title-logo-image: image:../assets/images/logo.png[]
:xrefstyle: full
:!section-refsig:

Expand Down
4 changes: 2 additions & 2 deletions _pdf/enju_user_all.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// :toc-placement!:
:sectnums:
:author: Project Next-L
:version-label: 1.4.x
:title-logo-image: image:../assets/images/logo.gif[]
:revnumber: 1.4.x
:title-logo-image: image:../assets/images/logo.png[]

include::enju_user.adoc[]

Expand Down
4 changes: 2 additions & 2 deletions _pdf/enju_webapi_all.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// :toc-placement!:
:sectnums:
:author: Project Next-L
:version-label: 1.4.x
:title-logo-image: image:../assets/images/logo.gif[]
:revnumber: 1.4.x
:title-logo-image: image:../assets/images/logo.png[]

include::enju_webapi.adoc[]

Expand Down
Binary file added assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fbd3550

Please sign in to comment.