From 4c6512e9b6b60bb91302ffab55307dd79f838e09 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Fri, 22 Mar 2024 17:26:23 -0400 Subject: [PATCH] Update the HTML remind demo. --- www/Makefile.in | 4 ++-- www/cal_dispatch-DIST | 8 ++++++++ www/calendar.html-DIST | 2 ++ www/hebdate.rem-DIST | 1 + www/hebpdf | 17 +++++++++++++++++ 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 www/hebpdf diff --git a/www/Makefile.in b/www/Makefile.in index efc27e94..02f9d7de 100644 --- a/www/Makefile.in +++ b/www/Makefile.in @@ -59,7 +59,7 @@ all: install: -mkdir -p $(DESTDIR)$(SCRIPTDIR) -mkdir -p $(DESTDIR)$(HTMLDIR) - cp calps calpdf hebdate hebps hebhtml moon sunrise sunset $(DESTDIR)$(SCRIPTDIR) + cp calps calpdf hebdate hebps hebpdf hebhtml moon sunrise sunset $(DESTDIR)$(SCRIPTDIR) sed $(SEDSCRIPT) < cal_dispatch-DIST > $(DESTDIR)$(SCRIPTDIR)/cal_dispatch$(CGISUFFIX) sed $(SEDSCRIPT) < hebdate.rem-DIST > $(DESTDIR)$(SCRIPTDIR)/hebdate.rem sed $(SEDSCRIPT) < moon.rem-DIST > $(DESTDIR)$(SCRIPTDIR)/moon.rem @@ -76,7 +76,7 @@ install: chmod 644 $(DESTDIR)$(HTMLDIR)/calendar.html chmod 755 $(DESTDIR)$(SCRIPTDIR)/cal_dispatch$(CGISUFFIX) chmod 755 $(DESTDIR)$(SCRIPTDIR)/calpdf $(DESTDIR)$(SCRIPTDIR)/calps $(DESTDIR)$(SCRIPTDIR)/hebdate \ - $(DESTDIR)$(SCRIPTDIR)/hebps $(DESTDIR)$(SCRIPTDIR)/moon \ + $(DESTDIR)$(SCRIPTDIR)/hebps $(DESTDIR)$(SCRIPTDIR)/hebpdf $(DESTDIR)$(SCRIPTDIR)/moon \ $(DESTDIR)$(SCRIPTDIR)/sunrise $(DESTDIR)$(SCRIPTDIR)/sunset \ $(DESTDIR)$(SCRIPTDIR)/hebhtml \ diff --git a/www/cal_dispatch-DIST b/www/cal_dispatch-DIST index d0f8b95f..54c1650c 100644 --- a/www/cal_dispatch-DIST +++ b/www/cal_dispatch-DIST @@ -28,6 +28,10 @@ export REMIND REM2PS=%REM2PS% export REM2PS +# Set REM2PDF to the full pathname of the rem2pdf executable +REM2PDF=%REM2PDF% +export REM2PDF + ######################### # # Don't change anything after this. @@ -68,6 +72,10 @@ case "$1" in exec $DIR/hebps ;; + hebpdf) + exec $DIR/hebpdf + ;; + hebhtml) if [ "$2" = "" -o "$3" = "" ] ; then exec $DIR/hebhtml diff --git a/www/calendar.html-DIST b/www/calendar.html-DIST index 4ce0301a..e73c1f09 100644 --- a/www/calendar.html-DIST +++ b/www/calendar.html-DIST @@ -21,6 +21,8 @@ Blank PDF Calendar (Approximately 15kB)

Today's Hebrew Date

PostScript Calendar with Jewish Holidays (Approximately 35 kB)

+ +PDF Calendar with Jewish Holidays (Approximately 20 kB)

HTML Calendar with Jewish Holidays


diff --git a/www/hebdate.rem-DIST b/www/hebdate.rem-DIST index c7b4133a..69da2ab4 100644 --- a/www/hebdate.rem-DIST +++ b/www/hebdate.rem-DIST @@ -165,6 +165,7 @@ ENDIF IF !$PSCAL REM 20 ++40 msg Also available: a PostScript calendar (about 35KB) for %m %y, complete with Hebrew dates, Jewish holidays, and moon phases for [$Location]. REM 20 ++40 msg And: an HTML version of the above. + REM 20 ++40 msg And: a PDF version of the above. ELSE [trigger(moondate(0))] SPECIAL MOON 0 [trigger(moondate(1))] SPECIAL MOON 1 diff --git a/www/hebpdf b/www/hebpdf new file mode 100644 index 00000000..c40e8271 --- /dev/null +++ b/www/hebpdf @@ -0,0 +1,17 @@ +#!/bin/sh +# Hebrew PostScript calendar shell script +# +# This file is part of REMIND. +# Copyright (C) 1992-2018 by Dianne Skoll + +# Figure out the month: If day <= 20, use this month; otherwise, use +# next month. +echo "Content-type: application/pdf" +echo "" + +$REMIND - <