asciidoctor-pdf-cjk-ext PDF THEME supports 3 ways to use.
Supports 5 Language Code:
-
tc : Traditional Chinese
-
sc : Simplified Chinese
-
hk : Hong Kong
-
jp : Japanese
-
kr : Korean
Every Language supports 3 fonts:
-
Noto Sans CJK
-
Noto Sans Mono CJK
-
Noto Serif CJK
Run Command , ./install-zip-to-downloaded-resources-dir.sh xx
Please replace xx by your language code( EX: tc
).
$ ./install-zip-to-downloaded-resources-dir.sh tc
It will install asciidoctor-pdf-cjk-ext THEME to downloaded-resources
folder under your user home directory,
~/downloaded-resources
or /home/YOUR-USERNAME/downloaded-resources
If you don’t have Maven installed, or don’t want to install asciidoctor-pdf-cjk-ext to your Maven Local Repo, you can choose this method.
Run Command , ./install-jar-to-libs-dir.sh xx
Please replace xx by your language code( EX: tc
).
$ ./install-jar-to-libs-dir.sh tc
It will install asciidoctor-pdf-cjk-ext THEME to libs
folder under your user home directory,
~/libs
or /home/YOUR-USERNAME/libs
Your machine needs to have Maven installed.
Run Command , ./install-jar-to-maven-local-repo.sh xx
Please replace xx by your language code( EX: tc
).
$ ./install-jar-to-maven-local-repo.sh tc
It will install asciidoctor-pdf-cjk-ext THEME to your maven local repo.
~/.m2
or /home/YOUR-USERNAME/.m2
Please replace xx by your language code( EX: tc
).
-
"com.life888888.lab:pdf-ext-notoserif-cjk-xx:0.1.0"
-
"com.life888888.lab:pdf-ext-notosansmono-cjk-xx:0.1.0"
-
"com.life888888.lab:pdf-ext-notosans-cjk-xx:0.1.0"
configurations {
asciidoctorExt
}
dependencies {
...
// * TC (Traditional Chinese)
asciidoctorExt "com.life888888.lab:pdf-ext-notoserif-cjk-tc:0.1.0"
asciidoctorExt "com.life888888.lab:pdf-ext-notosansmono-cjk-tc:0.1.0"
asciidoctorExt "com.life888888.lab:pdf-ext-notosans-cjk-tc:0.1.0"
...
}
asciidoctorj {
modules {
asciidoctorj {
...
configurations "asciidoctorExt"
}
...
<plugins>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.maven.plugin.version}</version>
<dependencies>
<!-- tc (Traditional Chinese) -->
<!-- Font notoserif-cjk-tc -->
<dependency>
<groupId>com.life888888.lab</groupId>
<artifactId>pdf-ext-notoserif-cjk-tc</artifactId>
<version>0.1.0</version>
</dependency>
<!-- Font notosans-cjk-tc -->
<dependency>
<groupId>com.life888888.lab</groupId>
<artifactId>pdf-ext-notosans-cjk-tc</artifactId>
<version>0.1.0</version>
</dependency>
<!-- Font notosansmono-cjk-tc -->
<dependency>
<groupId>com.life888888.lab</groupId>
<artifactId>pdf-ext-notosansmono-cjk-tc</artifactId>
<version>0.1.0</version>
</dependency>
...