Document Settings
Certain behaviors of BML can be configured by providing a special settings
object in an eval
block.
eval {
provide({
settings: {
version: null,
whitespaceCleanup: true,
punctuationCleanup: true,
capitalizationCleanup: true
}
});
}
setting | default | purpose |
version |
null |
The bml version number the document is written for. If present, bml will check that this matches the version running. If it does not, a warning will be logged to the console. |
whitespaceCleanup |
true |
Clean up the whitespace in the output document. See here for details. |
punctuationCleanup |
true |
Perform simple English-like correction of whitespace around punctuation marks. See here for details. |
capitalizationCleanup |
true |
Try to correct capitalization of the first words of sentences. See here for details. |