Opened 8 years ago

Closed 8 years ago

#4239 closed defect (fixed)

Find a way to convert translated markdown files to pdf

Reported by: runa Owned by: runa
Priority: Medium Milestone:
Component: User Experience/Tor Support Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

For the English version of the user manual, I run the following command to convert the markdown to pdf:

markdown en/tsum.text | htmldoc --cont --book --footer 1 --headfootsize 8.0 --linkcolor blue --linkstyle plain --format pdf14 - > short-user-manual_en.pdf

Everything seems to fall apart when I try to run the same command on a translated (say, Spanish) markdown file. It turns out that htmldoc doesn't support UTF-8 until version 1.9, so I need to find another way of converting translated markdown files to pdf.

Child Tickets

Change History (3)

comment:1 Changed 8 years ago by phobos

use pandoc to convert markdown to latex, and then pdflatex to create the pdf. markdown doesn't handle utf-8 too well, but pandoc does.

comment:2 in reply to:  1 Changed 8 years ago by runa

Replying to phobos:

use pandoc to convert markdown to latex, and then pdflatex to create the pdf. markdown doesn't handle utf-8 too well, but pandoc does.

Is there a way to convert markdown to latex to pdf without having to pick on the latex file? I really don't want to manually edit the translated files.

comment:3 Changed 8 years ago by runa

Resolution: fixed
Status: newclosed

I decided to convert the files to xhtml instead.

Note: See TracTickets for help on using tickets.