153
153
debug.deprint("Have you registered it in /etc/diamond/schemata/ or $HOME/.diamond/schemata?", 0)
154
154
debug.deprint("To register a schema, place a file in one of those directories, and let its name be the suffix of your language.", 0)
155
155
debug.deprint("The file should consist of:", 0)
156
debug.deprint(" A Verbal Description Of The Language Purpose", 0)
157
debug.deprint(" Lines of the format alias=/path/to/the/schema/file.rng", 0)
158
debug.deprint(" alias= is optional, if not given default= is added automaticly")
156
debug.deprint(" A Verbal Description Of The Language Purpose", 0)
157
debug.deprint(" alias1=/path/to/schema1/file.rng", 0)
158
debug.deprint(" alias2=/path/to/schema2/file.rng", 0)
161
elif len(config.schemata) == 0:
162
debug.deprint("Could not find a schema file.", 0)
163
debug.deprint("Have you registered it in /etc/diamond/schemata/ or $HOME/.diamond/schemata?", 0)
164
debug.deprint("To register a schema, place a file in one of those directories, and let its name be the suffix of your language.", 0)
165
debug.deprint("The file should consist of:", 0)
166
debug.deprint(" A Verbal Description Of The Language Purpose", 0)
167
debug.deprint(" alias1=/path/to/schema1/file.rng", 0)
168
debug.deprint(" alias2=/path/to/schema2/file.rng", 0)
161
171
# if there is only one schema, use that
162
172
elif len(config.schemata) == 1:
163
173
suffix = config.schemata.keys()[0]