From e87f29e017a75af15d228d537bc20b9fc78ace24 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 29 Jan 2023 17:42:29 +0100 Subject: update sentense-export to work with user.js --- anki-card-template/back-template.html.m4 | 2 ++ anki-card-template/back-template.m4 | 2 -- anki-card-template/front-template.html.m4 | 3 +++ anki-card-template/front-template.m4 | 3 --- anki-card-template/makefile | 4 ++-- anki-card-template/template.html.m4 | 20 ++++++++++++++++++++ anki-card-template/template.m4 | 23 ----------------------- 7 files changed, 27 insertions(+), 30 deletions(-) create mode 100644 anki-card-template/back-template.html.m4 delete mode 100644 anki-card-template/back-template.m4 create mode 100644 anki-card-template/front-template.html.m4 delete mode 100644 anki-card-template/front-template.m4 create mode 100644 anki-card-template/template.html.m4 delete mode 100644 anki-card-template/template.m4 (limited to 'anki-card-template') diff --git a/anki-card-template/back-template.html.m4 b/anki-card-template/back-template.html.m4 new file mode 100644 index 0000000..194c79b --- /dev/null +++ b/anki-card-template/back-template.html.m4 @@ -0,0 +1,2 @@ +define(`CARD_SIDE', `back')dnl +include(`template.html.m4')dnl diff --git a/anki-card-template/back-template.m4 b/anki-card-template/back-template.m4 deleted file mode 100644 index 79504dc..0000000 --- a/anki-card-template/back-template.m4 +++ /dev/null @@ -1,2 +0,0 @@ -define(`CARD_SIDE', `back')dnl -include(`template.m4')dnl diff --git a/anki-card-template/front-template.html.m4 b/anki-card-template/front-template.html.m4 new file mode 100644 index 0000000..384e112 --- /dev/null +++ b/anki-card-template/front-template.html.m4 @@ -0,0 +1,3 @@ +define(`CARD_SIDE', `front')dnl +include(`template.html.m4')dnl + diff --git a/anki-card-template/front-template.m4 b/anki-card-template/front-template.m4 deleted file mode 100644 index dbfc810..0000000 --- a/anki-card-template/front-template.m4 +++ /dev/null @@ -1,3 +0,0 @@ -define(`CARD_SIDE', `front')dnl -include(`template.m4')dnl - diff --git a/anki-card-template/makefile b/anki-card-template/makefile index 013acb6..f567bab 100644 --- a/anki-card-template/makefile +++ b/anki-card-template/makefile @@ -5,8 +5,8 @@ all: back-template.html front-template.html include ../common.mk -back-template.html: card.min.js card.min.css template.m4 -front-template.html: card.min.js card.min.css template.m4 +back-template.html: card.min.js card.min.css template.html.m4 +front-template.html: card.min.js card.min.css template.html.m4 clean: $(RM) back-template.html front-template.html card.min.js card.min.css diff --git a/anki-card-template/template.html.m4 b/anki-card-template/template.html.m4 new file mode 100644 index 0000000..d3aba5d --- /dev/null +++ b/anki-card-template/template.html.m4 @@ -0,0 +1,20 @@ +include(`common.m4')dnl + + +
+
+{{Complete sentence}} +
+
+
+{{Target word reading}} +{{Target word translation}} + +{{Tags}} +
+
+ + + diff --git a/anki-card-template/template.m4 b/anki-card-template/template.m4 deleted file mode 100644 index 1b2a782..0000000 --- a/anki-card-template/template.m4 +++ /dev/null @@ -1,23 +0,0 @@ -define(`EXEC',`translit(esyscmd($1),` -')')dnl -define(`TIMESTAMP',EXEC(`date'))dnl -define(`VERSION',EXEC(`git describe --tags'))dnl - - -
-
-{{Complete sentence}} -
-
-
-{{Target word reading}} -{{Target word translation}} - -{{Tags}} -
-
- - - -- cgit v1.2.3