From 898681c2532beaac134259024aaa83b794af13e4 Mon Sep 17 00:00:00 2001 From: Aleteoryx Date: Sat, 6 Sep 2025 22:32:24 -0400 Subject: [PATCH] build system --- README.md | 32 +------------ gloss/__init__.py | 84 ++++++++++++++++++++++++++++++++++ gloss/__main__.py | 99 +++++++++++----------------------------- gloss/markup/__init__.py | 3 ++ gloss/modes/glossary.py | 24 ++++------ gloss/util.py | 10 ++++ 6 files changed, 132 insertions(+), 120 deletions(-) create mode 100755 gloss/__init__.py create mode 100644 gloss/util.py diff --git a/README.md b/README.md index 1caa45f7117a2b91715713a2e512bb8a6be65a09..0138cf8770096d438dc2c9c996433af8c8799f18 100644 --- a/README.md +++ b/README.md @@ -6,34 +6,4 @@ it is designed to maximize nonlinear browsing. *** -the central gloss.py script translates each .gls file in its input directory to a .html in its output. -to run it, you will need a python runtime and a C compiler. make sure to download the entire repo. - -.gls files are composed of a names section, a set of blocks, and an optional "see also" section. - -the names section consists of the first non-empty non-comment lines in a file. -each line becomes a name for the file. -a file's names are automatically turned into links, -the first time it is referenced in another document. -matching is performed at word boundaries: a file with name "foo" will not be linked from "foobar". -the names section is terminated with a blank line. - -blocks can be either paragraph blocks or quote blocks, and they are terminated by blank lines. -a block is a quote block if its first line begins with a '>'. -to begin a paragraph block with '>', escape it with a backslash. - -if any line in a block begins with ~, it will become the block's metadata. -only quotes have metadata, for authorship info. -the format is thus: ` @@