/*
immediate.js
- There are 4 variations for RT-Style-locator.js:
+ There are 4 variations for RT-Manuscript-locator.js:
URL_only - used by websites
indirect - used by Harmony projects, except for RT-Manuscript
(function() {
window.RT.dirpr_library = "..";
- document.write('<script src="' + window.RT.dirpr_library + '/Core/RT-Style_make.js"><\/script>');
+ document.write('<script src="' + window.RT.dirpr_library + '/Core/RT-Manuscript_make.js"><\/script>');
})();
<html lang="en">
<head>
<meta charset="UTF-8">
- <title>RT Style System: Reference Manual</title>
+ <title>RT Manuscript: Reference Manual</title>
<script src="RT-Manuscript_locator.js"></script>
<script>
window.RT.theme_preference('inverse_wheat');
(function() {
if (!window.RT) {
- console.error("RT not defined - was RT-Style_make run?");
+ console.error("RT not defined - was RT-Manuscript_make run?");
return;
}
if (!window.RT.Element) {
(function() {
if (!RT) {
- console.error("RT not defined – was RT-Style_make run?");
+ console.error("RT not defined – was RT-Manuscript_make run?");
return;
}
if (!RT.Element) {
(function(){
if (!RT) {
- console.error("RT not defined – was RT-Style_make run?");
+ console.error("RT not defined – was RT-Manuscript_make run?");
return;
}
if (!RT.Element) {
(function() {
if (!RT) {
- console.error("RT not defined – was RT-Style_make run?");
+ console.error("RT not defined – was RT-Manuscript_make run?");
return;
}
if (!RT.Element) {
(function() {
if (!RT) {
- console.error("RT not defined - was RT-Style_make run?");
+ console.error("RT not defined - was RT-Manuscript_make run?");
return;
}
if (!RT.Element) {
}
if (isNaN(num) || num < 1) {
- console.error(`RT-Style Layout Error: Type mismatch. Invalid 'on-first-step' value '${val_str}' for style '${style}' in counter '${counter_name}'.`);
+ console.error(`RT-Manuscript Layout Error: Type mismatch. Invalid 'on-first-step' value '${val_str}' for style '${style}' in counter '${counter_name}'.`);
return 1;
}
return num;
const depth = state.stack.length - 1;
if (state.empty[depth]) {
- console.error(`RT-Style Layout Error: Attempted to snapshot an empty counter '${counter_name}' at snapshot '${snapshot_name}'. A person must use <RT·Counter·step> before taking a snapshot.`);
+ console.error(`RT-Manuscript Layout Error: Attempted to snapshot an empty counter '${counter_name}' at snapshot '${snapshot_name}'. A person must use <RT·Counter·step> before taking a snapshot.`);
} else {
RT.dict_snapshot[snapshot_name] = clone_state(state);
}
reads[i].innerHTML = (value !== undefined) ? value : `[Missing key: ${key}]`;
} else {
reads[i].innerHTML = `[Unknown snapshot: ${snapshot_name}]`;
- console.error(`RT-Style Layout Error: <RT·Counter·read> failed. No snapshot named '${snapshot_name}' found in the dictionary.`);
+ console.error(`RT-Manuscript Layout Error: <RT·Counter·read> failed. No snapshot named '${snapshot_name}' found in the dictionary.`);
}
}
});
(function() {
if (!window.RT) {
- console.error("RT not defined - was RT-Style_make run?");
+ console.error("RT not defined - was RT-Manuscript_make run?");
return;
}
if (!window.RT.Element) {
(function() {
if (!window.RT) {
- console.error("RT not defined - was RT-Style_make run?");
+ console.error("RT not defined - was RT-Manuscript_make run?");
return;
}
if (!window.RT.Element) {
(function() {
if (!window.RT) {
- console.error("RT not defined - was RT-Style_make run?");
+ console.error("RT not defined - was RT-Manuscript_make run?");
return;
}
if (!window.RT.Element) {
(function() {
if (!window.RT) {
- console.error("RT not defined - was RT-Style_make run?");
+ console.error("RT not defined - was RT-Manuscript_make run?");
return;
}
if (!window.RT.Element) {
(function() {
if (!window.RT) {
- console.error("RT not defined - was RT-Style_make run?");
+ console.error("RT not defined - was RT-Manuscript_make run?");
return;
}
if (!window.RT.Element) {
(function() {
if (!window.RT) {
- console.error("RT not defined - was RT-Style_make run?");
+ console.error("RT not defined - was RT-Manuscript_make run?");
return;
}
if (!window.RT.Element) {
container.addEventListener('change', (e) => {
if(e.target.name === 'RT·theme') {
// Saves 'inverse_wheat' to local storage
- localStorage.setItem('RT-Style·theme_preference', e.target.value);
+ localStorage.setItem('RT-Manuscript·theme_preference', e.target.value);
location.reload();
}
});
(function() {
if (!window.RT) {
- console.error("RT not defined - was RT-Style_make run?");
+ console.error("RT not defined - was RT-Manuscript_make run?");
return;
}
if (!window.RT.Element) {