mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-10-23 03:07:13 +00:00
seriesof: the series a book belongs to, and which volume this is
This commit is contained in:
@@ -48,6 +48,7 @@ try {
|
||||
| `splitCollection` | One markdown file into the works inside it |
|
||||
| `fuseHits` | Several ranked lists into one |
|
||||
| `identify` | What a file is, from its first bytes |
|
||||
| `seriesOf` | The series a book belongs to, and which volume this is |
|
||||
|
||||
The tools that read files or call another program are not here: a browser has
|
||||
neither, and a binding that pretends otherwise fails at run time rather than
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
// check, and nothing else would notice.
|
||||
import {
|
||||
chunkMarkdown, scrub, countTokens, parseSubtitles, packCues,
|
||||
splitCollection, fuseHits, identify,
|
||||
type Chunk, type Cue, type Section, type Hit, type Doc,
|
||||
splitCollection, fuseHits, identify, seriesOf,
|
||||
type Chunk, type Cue, type Section, type Hit, type Doc, type SeriesProposal,
|
||||
} from "./dist/web/catena.js";
|
||||
|
||||
const chunks: Chunk[] = chunkMarkdown("# One\n\nbody\n", 512, 64, 50, 768);
|
||||
@@ -35,4 +35,8 @@ parseSubtitles("x");
|
||||
packCues(cues);
|
||||
fuseHits(hits);
|
||||
|
||||
export const checked = [page, chapter, flags, clean, tokens, start, packed, slug, fused, kind, notes];
|
||||
const proposal: SeriesProposal | undefined = seriesOf("The Philokalia Vol 3");
|
||||
const volume: number | undefined = proposal?.volume;
|
||||
seriesOf("Aquinas (Companion)", "Cambridge");
|
||||
|
||||
export const checked = [volume, page, chapter, flags, clean, tokens, start, packed, slug, fused, kind, notes];
|
||||
|
||||
Reference in New Issue
Block a user