Site Tools


Sidebar

languages:japanese:linux:pandoc

Table of Contents

What?

Experiments to use pandoc to create epub and pdf with Japanese inside. This does not yet work for me, on Fedora20 as well as 21alpha.

notes

cat >japlinux2.txt<EOT
$ cat japlinux2.txt
* here to be kanji: 母父
* hiragana, katakana: ひらがな、かたかな
EOT

yum -y install pandoc

fc-list |grep -i jp
[..]
[..]Source Han Sans JP,Source Han Sans JP Normal,
[..]

pandoc --latex-engine=xelatex japlinux2.txt -o japlinux2.pdf \
  -V mainfont='Source Han Sans JP Normal'

evince japlinux2.pdf
# pdf has not the proper fonts.
languages/japanese/linux/pandoc.txt · Last modified: 2022/11/13 12:06 by 127.0.0.1