If you select language code is tc
.
docker pull ghcr.io/life888888/docker-asciidoctor-cjk/docker-asciidoctor-cjk-tc
docker tag ghcr.io/life888888/docker-asciidoctor-cjk/docker-asciidoctor-cjk-tc docker-asciidoctor-cjk
Just run:
docker run -it -v `pwd`:/documents/ docker-asciidoctor-cjk
Create CJK PDF:
asciidoctor-pdf \
-r asciidoctor-diagram \
-r asciidoctor-mathematical \
-a scripts=cjk \
-a pdf-themesdir=/home/demo/downloaded-resources/themes \
-a pdf-fontsdir="/home/demo/downloaded-resources/fonts;GEM_FONTS_DIR" \
-a pdf-theme=default-ext-notosans-cjk-tc \
README-zh_TW.adoc
Important
|
If you select language code is You can set Theme Name List:
Please change |
Other usage is same as https://github.com/asciidoctor/docker-asciidoctor/blob/main/README.adoc#how-to-use-it
-
-a pdf-themesdir=/home/demo/downloaded-resources/themes
-
-a pdf-fontsdir="/home/demo/downloaded-resources/fonts;GEM_FONTS_DIR"
-
-a pdf-theme=default-ext-notosans-cjk-tc
/home/demo
└── downloaded-resources
├── fonts
│ ├── notosans-cjk-tc-bold_italic.ttf
│ ├── notosans-cjk-tc-bold.ttf
│ ├── notosans-cjk-tc-italic.ttf
│ ├── notosans-cjk-tc-normal.ttf
│ ├── notosansmono-cjk-tc-bold_italic.ttf
│ ├── notosansmono-cjk-tc-bold.ttf
│ ├── notosansmono-cjk-tc-italic.ttf
│ ├── notosansmono-cjk-tc-normal.ttf
│ ├── notoserif-cjk-tc-bold_italic.ttf
│ ├── notoserif-cjk-tc-bold.ttf
│ ├── notoserif-cjk-tc-italic.ttf
│ └── notoserif-cjk-tc-normal.ttf
└── themes
├── default-ext-notosans-cjk-tc-theme.yml
├── default-ext-notosansmono-cjk-tc-theme.yml
├── default-ext-notoserif-cjk-tc-theme.yml
├── default-notosans-cjk-tc-theme.yml
├── default-notosansmono-cjk-tc-theme.yml
├── default-notoserif-cjk-tc-theme.yml
├── notosans-cjk-tc-theme.yml
├── notosansmono-cjk-tc-theme.yml
└── notoserif-cjk-tc-theme.yml
Please download source code: https://github.com/life888888/docker-asciidoctor-cjk/archive/refs/heads/main.zip
Unzip file.
JUST SELECT ONE FONT LANGUAGE CODE
- sc (Simplified Chinese)
-
run command:
./build-docker-asciidoctor-cjk.sh sc
- tc (Traditional Chinese)
-
run command:
./build-docker-asciidoctor-cjk.sh tc
- hk (Hong Kong)
-
run command:
./build-docker-asciidoctor-cjk.sh hk
- jp (Japanese)
-
run command:
./build-docker-asciidoctor-cjk.sh jp
- kr (Korean)
-
run command:
./build-docker-asciidoctor-cjk.sh kr
$ docker image ls
docker-asciidoctor-cjk latest 24394fa1e002 3 hours ago 1.19GB
docker-asciidoctor-cjk-tc latest 24394fa1e002 3 hours ago 1.19GB
life888888/docker-asciidoctor-cjk-tc latest 24394fa1e002 3 hours ago 1.19GB
life888888/docker-asciidoctor-cjk-tc 0.0.1 24394fa1e002 3 hours ago 1.19GB
I use tag name docker-asciidoctor-cjk
to point to docker-asciidoctor-cjk-tc
docker-asciidoctor-cjk → docker-asciidoctor-cjk-tc → life888888/docker-asciidoctor-cjk-tc → life888888/docker-asciidoctor-cjk-tc:0.0.1
docker-asciidoctor-cjk
like a alias name, it will point to your language, like docker-asciidoctor-cjk-sc
or docker-asciidoctor-cjk-jp
.