From 19312d61bef912740ca1c75d91f03e0139def80b Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 30 Apr 2020 23:44:06 +0300 Subject: [PATCH] Added left-to-right support. Also an example file for testing purposes and some Hebrew fonts. --- Dockerfile | 5 +++++ example/Makefile | 5 ++++- example/left-to-right.md | 10 ++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 example/left-to-right.md diff --git a/Dockerfile b/Dockerfile index c1494cb..1658339 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ COPY --from=golang /go/bin/on-change /go/bin/ttyrec2gif /usr/local/bin/ RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ fonts-font-awesome \ + fonts-linex \ + fonts-noto-extra \ + fonts-sil-ezra \ graphicsmagick \ gosu \ graphviz \ @@ -18,6 +21,8 @@ RUN apt-get update && \ texlive-fonts-extra \ texlive-fonts-recommended \ texlive-font-utils \ + texlive-lang-arabic \ + texlive-lang-other \ texlive-latex-base \ texlive-latex-extra \ texlive-luatex \ diff --git a/example/Makefile b/example/Makefile index 5bfc7ee..03bf817 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,6 +1,6 @@ .PHONY: all clean -all: presentation.pdf +all: presentation.pdf left-to-right.pdf presentation.pdf: diagram.pdf presentation.pdf: prompt.gif @@ -8,6 +8,9 @@ presentation.pdf: prompt.gif %.pdf: %.md pandoc -t beamer $< -o $@ +left-to-right.pdf: left-to-right.md + pandoc --pdf-engine=xelatex $< -o $@ + %.pdf: %.dot dot $< -Tpdf > $@ diff --git a/example/left-to-right.md b/example/left-to-right.md new file mode 100644 index 0000000..0f9dabb --- /dev/null +++ b/example/left-to-right.md @@ -0,0 +1,10 @@ +--- +dir: rtl +lang: he +mainfont: SILEOT.ttf +... + + +# משהו בעברית + +עוד קצת עברית. -- GitLab