-Copyright © 2019, 2024, 2025, 2026 Reasoning Technology. All Rights Reserved.
+MIT License
-This software, including all source code, compiled code, text, images, graphics, and associated media (collectively, "the Software and Content"), is the proprietary property of Reasoning Technology.
+Copyright (c) 2026 Reasoning Technology
-A limited license, revocable at any time, is granted to access and view the Software and Content strictly for normal web browsing purposes.
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
-Beyond this limited viewing permission, no other rights are granted. A person is strictly prohibited from copying, extracting, modifying, republishing, distributing, sublicensing, selling, or otherwise exploiting this Software and Content, in whole or in part, for any purpose, without express written consent from Reasoning Technology. No license to any underlying technology, patents, trademarks, or other intellectual property is granted or implied by this access.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
--- /dev/null
+# RT-style-JS_public
+
+A JavaScript based layout, themes, and elements semantic HTML documents. Used for documents on RT projects.
+
+## To build the library
+
+This project is based on RT's **Harmony** project skeleton. Hence there are role directroies. After clocing the repo, go to the top of the project and type:
+
+```bash
+. setup developer
+make
+./developer/tool/release write
+```
+
+The resulting JavaScript library will be located in the `consumer/release/RT`
+
+## To use the library
+
+Here is an example document using the library.
+
+
+```html
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8">
+ <title>Example Document</title>
+
+ <script>
+ window.RT_REPO_ROOT = "../../";
+ document.write('<script src="' + window.RT_REPO_ROOT + 'shared/style_directory_dict.js"></script>');
+ document.write('<script src="' + window.RT_REPO_ROOT + 'shared/third_party/RT-style-JS_public/consumer/release/RT/core/loader.js"></script>');
+ document.write('<script src="' + window.RT_REPO_ROOT + 'shared/third_party/RT-style-JS_public/consumer/release/RT/core/body_visibility_hidden.js"></script>');
+ </script>
+
+ <script>
+ window.StyleRT.include('RT/theme');
+ window.StyleRT.include('RT/layout/article_tech_ref');
+ </script>
+ </head>
+ <body>
+ <RT-article>
+ <RT-title
+ title="Example Document"
+ author="Thomas Walker Lynch"
+ date="2026-03-06">
+ </RT-title>
+
+ <RT-TOC level="1"></RT-TOC>
+
+ <h1>Introduction</h1>
+ <p>
+ This is a demonstration of the <RT-term>RT-style-JS_public</RT-term> engine in action.
+ </p>
+ </RT-article>
+ </body>
+</html>
+```
+
+## Semantic Elements
+
+The engine targets custom HTML tags to apply formatting and behavior.
+
+* `<RT-article>` : The primary container for standard documentation.
+* `<RT-memo>` : The container for strict formal printed layouts.
+* `<RT-title>` : Generates a standardized document header. Accepts `title`, `author`, and `date` attributes.
+* `<RT-TOC>` : Automatically generates a Table of Contents. Uses the `level` attribute to target specific heading depths.
+* `<RT-term>` / `<RT-neologism>` : Italicizes the first occurrence of a specific term and generates an anchor ID for indexing.
+* `<RT-code>` : Code block formatting with auto-dedentation and syntax highlighting hooks.
+* `<RT-math>` : Integration hooks for MathJax rendering.
+
+## Code Formatting Standard
+
+This project adheres to the **RT Code Format** for all JavaScript source files:
+
+1. **Indentation:** Strictly 2 spaces. Never use tabs.
+2. **Naming Conventions:** PascalCase for Modules/Classes; snake_case for variables and functions. Semantic suffixes are utilized (e.g., `TOC_seq`, `term_norm_s`).
+3. **Vertical Commas:** Multi-line arrays, arguments, or structures place the comma at the start of the new line, aligned with the item.
+4. **Enclosure Spacing:** Single-level enclosures require zero padding (`if(condition){`). Multi-level enclosures require one space of padding on the outermost enclosure only (`if( f(x) ){`).
+5. **Braces:** No space before an opening brace.