aboutsummaryrefslogtreecommitdiff
path: root/module/vcomponent/datetime/output.scm
diff options
context:
space:
mode:
Diffstat (limited to 'module/vcomponent/datetime/output.scm')
-rw-r--r--module/vcomponent/datetime/output.scm14
1 files changed, 9 insertions, 5 deletions
diff --git a/module/vcomponent/datetime/output.scm b/module/vcomponent/datetime/output.scm
index b75fd564..614438da 100644
--- a/module/vcomponent/datetime/output.scm
+++ b/module/vcomponent/datetime/output.scm
@@ -5,11 +5,15 @@
:use-module (text util)
:use-module (calp translation)
:use-module ((hnh util exceptions) :select (warning))
- )
+ :export (format-recurrence-rule
+ format-summary
+ format-description
+ fmt-time-span
+ ))
;; ev → sxml
;; TODO translation
-(define-public (format-recurrence-rule ev)
+(define (format-recurrence-rule ev)
;; [FRR]
;; Part of the sentance "Repeated [every two weeks], except on ~a, ~a & ~a"
;; See everything tagged [FRR]
@@ -37,11 +41,11 @@
(map value it)))))
"."))
-(define-public (format-summary ev str)
+(define (format-summary ev str)
((@ (calp html filter) summary-filter) ev str))
;; NOTE this should have information about context (html/term/...)
-(define-public (format-description ev str)
+(define (format-description ev str)
(catch #t (lambda () ((@ (calp html filter) description-filter)
ev str))
(lambda (err . args)
@@ -53,7 +57,7 @@
;; Takes an event, and returns a pretty string for the time interval
;; the event occupies.
-(define-public (fmt-time-span ev)
+(define (fmt-time-span ev)
(cond [(prop ev 'DTSTART) date?
=> (lambda (s)
(cond [(prop ev 'DTEND)