Debian Codegraph @

support/babel/README.md

raw symbols SCIP
1 ## Version 0.7, Treaty of Babel Revision 12
2
3 This is the source code for `babel`, the [Treaty of Babel][babel] analysis tool. `Babel` performs all the fundamental operations for dealing with the features offered by the treaty, and serves as a flexible multi-tool for analyzing and working with treaty-compliant files.
4
5 [babel]: https://babel.ifarchive.org/
6
7 Namely, `babel`:
8
9 * extracts metadata from story files
10 * extracts cover art from story files
11 * determines the format of a story file
12 * determines the IFID of a story file
13 * verifies the correctness of iFiction metadata
14 * bundles story files, metadata, and cover art together in the [blorb format][blorb]
15
16 [blorb]: https://eblong.com/zarf/blorb/
17
18 `Babel` is also a portable C API for accessing the functionality provided by the treaty.
19
20 Included with the `babel` source is a suite of programs intended to extend `babel`'s functionality and help users start taking advantage of the benefits provided by the treaty.
21
22 The babel suite includes:
23
24 * `babel-get`: Fetches metadata and cover art from a variety of sources
25 * `babel-list`: Demo program to describe all story files in a directory
26 * `ifiction-aggregate`: Combine multiple iFiction files into one
27 * `ifiction-xtract`: Search metadata for a named value
28 * `babel-cache.pl`: Build a cache of metadata and cover art for your story file collection
29 * `babel-marry.pl`: Encapsulate your story collection with its metadata
30 * `simple-marry`: Simplified babel-marry for windows users
31 * `babel-wed.pl`: Find and merge a story file with its metadata (also available as windows executable)
32
33 Parts of `babel` are intended for use in other programs. When adapting
34 `babel`'s source, the files `babel.c`, `babel_story_functions.c` and
35 `babel_ifiction_functions.c` will probably not prove useful. However, you
36 may wish to use `babel_handler`, which provides a framework for loading a
37 story file, selecting the proper treaty modules, and seamlessly handling
38 blorb-wrapped files.
39
40 ## Building Babel
41
42 To build `babel`:
43
44 1. compile all the source files in this directory
45 2. link them together
46 3. the end
47
48 For folks who find makefiles more useful than generalizations, there is a
49 makefile provided for `babel`. The makefile is currently configured for
50 Borland's 32-bit C compiler. Comment out those lines and uncomment the block
51 which follows for gcc.
52
53 To compile `babel-get`, first compile `babel`, then do the same thing in the
54 `babel-get` directory.
55
56 To compile `ifiction-aggregate`, `ifiction-xtract`, `babel-list`, and `simple-marry`,
57 first compile `babel`, then compile the relevant C file in the `extras/` directory
58 (These may rely on `#include` files from the `babel` directory, so, for example,
59 to compile ifiction-aggregate, `gcc -c -I.. ifiction-aggregate.c`), then link the
60 object file to the `babel` and `ifiction` libraries (`babel.lib` and `ifiction.lib`
61 under Windows, `babel.a` and `ifiction.a` most everywhere else. eg.
62 `gcc -o ifiction-aggregate ifiction-aggregate.o ../babel.a ../ifiction.a`)
63
64 ## Contributing to Babel
65
66 `Babel` is intended to accept contributions in the form of treaty modules
67 as defined by the [Treaty of Babel Appendix][treaty-a].
68
69 [treaty-a]: https://babel.ifarchive.org/babel.html#appendix-babel-a-users-guide
70
71 These modules should use the declarations made in `treaty.h`.
72 The file `treaty_builder.h` generates a generic framework which simplifies
73 the task of writing treaty modules. Its use is not required for treaty
74 compliance, but it should prove useful.
75
76 ## Attribution
77
78 Most of this code is (c) 2006-2010 by L. Ross Raszewski
79
80 The following files are public domain:
81
82 - zcode.c
83 - glulx.c
84 - executable.c
85 - level9.c
86 - magscrolls.c
87 - agt.c
88 - hugo.c
89 - advsys.c
90 - misc.c
91 - alan.c
92 - adrift.c
93 - html.c
94 - treaty.h
95 - treaty_builder.h
96
97 The following files are Copyright (C) 1999, 2000, 2002 Aladdin Enterprises:
98
99 - md5.c
100 - md5.h
101
102 And are used in accordance with their licenses.
103
104 The following files are Copyright 2006 by Emily Short:
105
106 - test/bronze/Bronze.zblorb
107
108 All other files are (c) 2006 by L. Ross Raszewski and are released under
109 the Creative Commons Attribution 4.0 License.
110
111 To view a copy of this license, visit
112 https://creativecommons.org/licenses/by/4.0/ or send a letter to
113
114 Creative Commons,
115 PO Box 1866,
116 Mountain View, CA 94042, USA.