aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--makefile15
-rw-r--r--oldstandard.tex13
2 files changed, 11 insertions, 17 deletions
diff --git a/makefile b/makefile
index 1748e0a..c19afb8 100644
--- a/makefile
+++ b/makefile
@@ -2,23 +2,30 @@ pkg := oldstandard
2ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?') 2ver := $(shell grep '\\edef\\pkgver' $(pkg).tex | grep -Eo '[0-9]?\.[0-9]?')
3TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME') 3TEXMFDIR := $(shell kpsewhich -expand-var='$$TEXMFHOME')
4HOMEDIR := $$HOME 4HOMEDIR := $$HOME
5LOCALFONTDIR := $(HOMEDIR)/.local/share/fonts
5 6
6doc: clean 7doc: 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
12all: clean doc 13all: doc
13 14
14package: clean doc 15local: clean
16 cp otf/OldStandard-*.otf $(LOCALFONTDIR)/
17 luaotfload-tool --update
18
19package: 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
20clean: 25clean:
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