diff options
-rw-r--r-- | makefile | 15 | ||||
-rw-r--r-- | oldstandard.tex | 13 |
2 files changed, 11 insertions, 17 deletions
@@ -2,23 +2,30 @@ pkg := oldstandard | |||
2 | ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') | 2 | ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') |
3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') | 3 | TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') |
4 | HOMEDIR := $$HOME | 4 | HOMEDIR := $$HOME |
5 | LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts | ||
5 | 6 | ||
6 | doc: clean | 7 | doc: local |
7 | lualatex --shell-escape $(pkg).tex | 8 | lualatex --shell-escape $(pkg).tex |
8 | biber $(pkg) | 9 | biber $(pkg) |
9 | lualatex --shell-escape $(pkg).tex | 10 | lualatex --shell-escape $(pkg).tex |
10 | lualatex --shell-escape $(pkg).tex | 11 | lualatex --shell-escape $(pkg).tex |
11 | 12 | ||
12 | all: clean doc | 13 | all: doc |
13 | 14 | ||
14 | package: clean doc | 15 | local: clean |
16 | cp otf/OldStandard-*.otf $(LOCALFONTDIR)/ | ||
17 | luaotfload-tool --update | ||
18 | |||
19 | package: doc | ||
15 | mkdir $(pkg) | 20 | mkdir $(pkg) |
16 | cp *.{txt,md,tex,pdf} $(pkg) | 21 | cp *.{txt,md,tex,pdf} $(pkg) |
17 | cp otf/*.otf $(pkg) | 22 | cp otf/*.otf $(pkg) |
18 | tar czf $(pkg)-$(ver).tar.gz $(pkg) | 23 | tar czf $(pkg)-$(ver).tar.gz $(pkg) |
19 | 24 | ||
20 | clean: | 25 | clean: |
26 | rm -f $(LOCALFONTDIR)/OldStandard-*.otf | ||
27 | luaotfload-tool --update | ||
21 | git clean -df | 28 | git clean -df |
22 | pandoc README.md -o about.html | 29 | pandoc README.md -o about.html |
23 | 30 | ||
24 | .PHONY: doc all package clean | 31 | .PHONY: doc all local package clean |
diff --git a/oldstandard.tex b/oldstandard.tex index f23b346..1e17bc7 100644 --- a/oldstandard.tex +++ b/oldstandard.tex | |||
@@ -31,19 +31,6 @@ | |||
31 | \usepackage[greek.ancient,english]{babel} | 31 | \usepackage[greek.ancient,english]{babel} |
32 | \babeltags{grc = greek} | 32 | \babeltags{grc = greek} |
33 | 33 | ||
34 | % uncomment for testing: | ||
35 | % \babelfont{rm}[Path = otf/, | ||
36 | % ItalicFont={OldStandard-Italic.otf}, | ||
37 | % BoldFont={OldStandard-Bold.otf}, | ||
38 | % BoldItalicFont={OldStandard-BoldItalic.otf}]{OldStandard-Regular.otf} | ||
39 | |||
40 | % \babelfont[greek]{rm}[Path = otf/, | ||
41 | % RawFeature={+ss05;+ss06}, | ||
42 | % ItalicFont={OldStandard-Italic.otf}, | ||
43 | % BoldFont={OldStandard-Bold.otf}, | ||
44 | % BoldItalicFont={OldStandard-BoldItalic.otf}]{OldStandard-Regular.otf} | ||
45 | |||
46 | % use the following two lines once Old Standard is installed: | ||
47 | \babelfont{rm}{Old Standard} | 34 | \babelfont{rm}{Old Standard} |
48 | \babelfont[greek]{rm}[RawFeature={+ss05;+ss06}]{Old Standard} | 35 | \babelfont[greek]{rm}[RawFeature={+ss05;+ss06}]{Old Standard} |
49 | 36 | ||