Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 21 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
node_modules
lua_modules
data/*.avif
data/*.pdf
data/*.toml
data/*.aux
data/*/*-aux
data/*.log
data/*-aux.json
data/decasify.js
.fonts
static
public

# SILE
lua_modules
*.rockslock

# PagedJS
data/decasify.js

# LaTeX
data/*.aux
data/*/*-aux
data/*.log

# Glu
data/*-aux.json
all-system-fonts.css

# Speedata
data/*-aux.xml
data/*-protocol.xml
data/*.finished
data/*.status
data/*.vars
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ QUARKDOWN ?= quarkdown
SATYSFI ?= satysfi
SED ?= sed
SILE ?= sile
SPEEDATA ?= sp
TERA ?= tera
TOMLQ ?= tomlq
TYPST ?= typst
Expand All @@ -45,6 +46,7 @@ PAGEDJS_ARGS = -i $< -o $@
QUARKDOWN_ARGS = c --pdf --out $(@D) $<
SATYSFI_ARGS = $< -o $@
SILE_ARGS = -o $@ $<
SPEEDATA_ARGS = --dummy --layout $< --jobname $*-speedata
TYPST_ARGS = compile $< $@
WEASYPRINT_ARGS = $< $@
XELATEX_ARGS = -interaction=batchmode -halt-on-error
Expand Down Expand Up @@ -169,6 +171,9 @@ data/title-case-pagedjs.pdf: data/decasify.js
%-sile.pdf %-sile.toml: %/sile.xml | installrocks
$(call make_manifest,$(SILE) $(TYPESETTER_ARGS) $(SILE_ARGS))

%-speedata.pdf %-speedata.toml: %/speedata.xml
$(call make_manifest,$(SPEEDATA) $(TYPESETTER_ARGS) $(SPEEDATA_ARGS))

%-typst.pdf %-typst.toml: %/typst.typ
$(call make_manifest,$(TYPST) $(TYPESETTER_ARGS) $(TYPST_ARGS))

Expand Down
2 changes: 1 addition & 1 deletion content/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title = "Hello World!"
description = "Your most basic greeting."
weight = 1
extra.typesetters = [ "sile", "typst", "lualatex", "groff", "satysfi", "pagedjs", "weasyprint", "glu", "quarkdown" ]
extra.typesetters = [ "sile", "typst", "lualatex", "groff", "satysfi", "pagedjs", "weasyprint", "glu", "quarkdown", "speedata" ]
+++

Just the simplest way to get a phrase onto a numbered page.
Expand Down
30 changes: 30 additions & 0 deletions data/hello-world/speedata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<Layout
xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en">

<Pagetype name="page" test="true()">
<AtPageShipout>
<PlaceObject column="1" row="{sd:number-of-rows() - 1}">
<Table stretch="max">
<Tr>
<Td align="center">
<Paragraph>
<Value select="sd:current-page()"/>
</Paragraph>
</Td>
</Tr>
</Table>
</PlaceObject>
</AtPageShipout>
</Pagetype>

<Record element="data">
<PlaceObject>
<Textblock>
<Paragraph>
<Value>Hello World</Value>
</Paragraph>
</Textblock>
</PlaceObject>
</Record>
</Layout>
55 changes: 55 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
url = "github:boxesandglue/glu";
inputs.nixpkgs.follows = "nixpkgs";
};
speedata-publisher = {
url = "github:speedata/publisher";
inputs.nixpkgs.follows = "nixpkgs";
};
};

outputs =
Expand Down Expand Up @@ -45,6 +49,7 @@
};
inherit (gitignore.lib) gitignoreSource;
glu = inputs.glu.packages.${system}.default;
speedata-publisher = inputs.speedata-publisher.packages.${system}.default;
polytype =
rec {
};
Expand Down Expand Up @@ -78,6 +83,7 @@
rustc
satysfi
sile
speedata-publisher
stix-two
teracli.defaultPackage.${system}
texliveFull
Expand Down
1 change: 1 addition & 0 deletions src/codemirror.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const languageMap = {
// Aliases to near-matches
pagedjs: html,
sile: latex,
speedata: xml,
weasyprint: html,
xelatex: latex,
};
Expand Down
2 changes: 1 addition & 1 deletion templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h3 class="title is-3">{{ typesetter }}</h3>
</p>

<h4 class="title is-4">Input document</h4>
{% set source = load_data(path=manifest.src) | safe %}
{% set source = load_data(path=manifest.src, format="plain") %}
{% set ext = manifest.src | split(pat=".") | last %}
<pre class="sample" data-language="{% if typesetter != "glu" %}{{ typesetter }}{% elif ext == "md" %}markdown{% elif ext == "lua" %}lua{% else %}html{% endif %}">{{ source }}</pre>

Expand Down