catalog.layout.common

Layout functionality that is common across all output formats. Such as translation strings, formatting of dates or braille signatures.

braille-genres

braille-signatures

(braille-signatures items)

empty-or-blank?

(empty-or-blank? s)

format-date

(format-date year issue)

formats

game-genres

genres

md-extract-headings

(md-extract-headings markdown)

Return a coll of headings from a markdown string

movie-genres

ordinal

path-to-number

(path-to-number tree)

Return a map of path to number vector mapping. This can be used to look up a section number for a given path.

periodify

(periodify s)

Add a period to the end of s if it is not nil and doesn’t end in punctuation. If s is nil return an empty string.

render-narrators

(render-narrators narrators)

render-subtitles

(render-subtitles subtitles)

section-numbers

(section-numbers numbers)

Format a seq of numbers into a human readable section number

subgenres

translations

dynamic

volume-number

(volume-number date)

wrap

(wrap s)(wrap s prefix)(wrap s prefix postfix)(wrap s prefix postfix period?)

Adds a period to s and wrap it in prefix and postfix. If s is a sequence the contained strings are joined with “, ” as a separator

year

(year date)