Skip to content

Commit 19afaeb

Browse files
committed
add more translating document to build PDF
1 parent f198ad0 commit 19afaeb

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

translation/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,45 @@ You need to specify `REVIEW_LANG` environment variable to what you want, choosin
5353
$ REVIEW_LANG=en ./build-in-docker-epub.sh
5454
```
5555

56+
#### Building other than English version
57+
58+
You need to create/modify some config files.
59+
60+
Inside `article` folder, copy `config-epub-en.yml` to `config-epub-{lang}.yml`.
61+
Open it and modify `language` and `contentdir`.
62+
63+
```
64+
langueage: {lang}
65+
contentdir: text_{lang}
66+
```
67+
68+
Then modiy `locale.yml` like following.
69+
70+
```
71+
locale: ko
72+
image: 그림
73+
table: 표
74+
list: "리스트 "
75+
equation: "식 "
76+
column: "열 %s"
77+
columnname: "열"
78+
column_head: "열"
79+
part: 제%pR부
80+
part_short: "%pR"
81+
chapter: 제%d장
82+
...
83+
```
84+
85+
Full sample is [here](https://github.com/kmuto/review/blob/master/lib/review/i18n.yml).
86+
87+
88+
If you have any trouble with PDF font, you may need to add following line to `articles/sty/review-custom.sty` after final usepackage command.
89+
We are not sure about any other than Japanese, please solve the issue by yourself.
90+
91+
```
92+
\usepackage[korean]{pxbabel}
93+
```
94+
5695
## Developing
5796

5897
Since this book is written by [Re:VIEW format](https://github.com/kmuto/review/blob/master/doc/format.md), we need to exlude Re:VIEW tags from translation.

0 commit comments

Comments
 (0)