rst2pdfで日本語出力

メモです。

rst2pdfはeasy_installで入れればよい。
あとは設定ファイルを書いておけば良きにはからってくれる。

~/.rst2pdf/config

[general]
stylesheets="~/.rst2pdf/ja.json"
conpressed=false
font_path="/Users/kshimo69/Library/Fonts"
language="ja_JP"
header=""
footer=""
fit_mode="shrink"
break_level=0

~/.rst2pdf/ja.json

{
    "embeddedFonts" :
    [["VL-Gothic-Regular.ttf","VL-PGothic-Regular.ttf","VL-Gothic-Regular.ttf","VL-Gothic-Regular.ttf"]],
    "fontsAlias" : {
        "stdFont": "VL-PGothic-Regular",
        "stdBold": "VL-PGothic-Regular",
        "stdItalic": "VL-PGothic-Regular",
        "stdMono": "VL-Gothic-Regular"
    },
    "styles" : [
        ["base" , {
            "wordWrap": "CJK"
        }],
        ["literal" , {
            "wordWrap": "None"
        }]
    ]
}