PS Forms Engine: Statically Compiled Stream Rendering & Deterministic Pagination Multi-pass Matrices
1. Unibase Attribute Field Types
| Key | Syntax / Modifiers | Functional Behavior & Verbatim Examples |
|---|---|---|
| A | A{R}{<dec>}<expr> | Accumulator. Resets at subtotals unless R passed. balance, 10 A2 [amount] |
| B | B<valid_chars> | Boolean. Restricts string to listed upper/digits. sex, 1 BMF |
| C | C | Counter. Zero-filled sequential numeric digit blocks. line no, 3 C |
| D | D{C} | Date. Width 6 (YYMMDD). C forces Century Width 8 (CCYYMMDD). date, 8 DC |
| E | E{<mod>}{<dec>}<expr> | Expression. Math/logic loops arrays via #. sales, 10*7 E2 ([day]="#")*[sales] |
| F | F<tbl>{<bx>}{<cmd>}[<ds>] | Foreign Key. Validates target index. Modifiers: F file, C cmd, X script. cust, 6 Fcustomer [cust name] |
| G | G<val_per_*><expr> | Graphic Expression. Renders responsive charts using text * tags. perf, 10 G1000 [sales] |
| I | I | Invisible. Masks terminal screen viewport input text data into values of * characters. pass, 8 I |
2. Calculations & Matrix Expressions
Calculated dynamically without physical database storage footprint. Non-procedural sorting.
| Operator Tokens | Parsing Mechanics, Precedence Frameworks & Array Rules |
|---|---|
| SQRT, EXP, LOG, LOG10 | Transcendental functions. Strings/Dates transform automatically when passed. |
| TRIG & HYPERBOLIC | Full execution of SIN, COS, TAN, ASIN, ACOS, ATAN, SINH, COSH, TANH matrices. |
| DAY | Extracts date structures into fixed week offsets (0 = Sunday to 6 = Saturday). |
| &, | | Logical bitwise AND / OR. Yields boolean 0 or 1. Short-circuits left-to-right. |
| +, -, *, /, ( ) | Arithmetic operators. Multiplication overrides logical/comparison evaluation borders. |
| <, <=, >=, >, =, !=, <> | Comparisons. Vector check rules: "AAA"=[area] (matches any element), "AAA"<[area] (all). Inline short-circuit fork instance: ([amount]>=0)*[amount] (replaces if-then-else). |
Formatting: Numbers use standard syntax (
2.5). Strings use "X" or 'X'. Fields use [name]. Dates utilize @ (Century) or ~ trackers. Appending Z forces zero-suppression (blanks instead of 0).3. ubmenu Flat File Routing Engine Layout
Compiles configuration hierarchies directly into secure interface routing matrices, applying security access thresholds before dispatching tasks:
MENU: hub | TITLE: “ENTERPRISE CORE SECURITY ROUTING GATEWAY” | SECURITY: 100
OPTION: 1 | LABEL: “Run Ledger Matrix” | SECURITY: 150 | COMMAND: run_program “$UBDIR/bin/ub_ledger”
OPTION: 2 | LABEL: “Compile Schema Engine” | SECURITY: 200 | COMMAND: run_program “$UBDIR/bin/ub_compiler”
OPTION: 3 | LABEL: “Load Utilities Menu Tree” | SECURITY: 100 | COMMAND: load_menu “$UBDIR/menu/utils.mnu”
OPTION: 4 | LABEL: “Terminate Shell Pipeline” | SECURITY: 100 | COMMAND: exit_process_thread
OPTION: 1 | LABEL: “Run Ledger Matrix” | SECURITY: 150 | COMMAND: run_program “$UBDIR/bin/ub_ledger”
OPTION: 2 | LABEL: “Compile Schema Engine” | SECURITY: 200 | COMMAND: run_program “$UBDIR/bin/ub_compiler”
OPTION: 3 | LABEL: “Load Utilities Menu Tree” | SECURITY: 100 | COMMAND: load_menu “$UBDIR/menu/utils.mnu”
OPTION: 4 | LABEL: “Terminate Shell Pipeline” | SECURITY: 100 | COMMAND: exit_process_thread
4. Prompted Scripts Sections Ledger (.prm)
| Block | Syntax Definition Map | Functional Responsibility & Execution Context Matrix |
|---|---|---|
| B | B T > M > B > | Background Layout: Maps viewports into 9 locations via lines (>) and regions (#). |
| C | C <tbl> <cond> > | Conditions Block: Enforces dynamic data row boundaries during foreign key index reads. |
| F | F{B|C|E|R} {k} {f} l... | Function Keys: Runs commands (Default: Tcl, override via #!/bin/bash). Evaluates inputs inside [f]. Modifiers: B,C,E clear text buffer focus; R loops screen focus; I maps targets to explicit iframe/div nodes.FR1 [user] USER NAME > #!/bin/bash who am i > |
| H | H {name} <help> > | Help Matrix: Pins structured runtime help strings to interface nodes. |
| M | M {B} {r c} > | Popup Menus: Builds responsive overlay context selectors across row/col configurations. |
| P | P {def} > {screen} > | Data Entry Core: Subsection 1 sets variable properties; Part 2 renders form layout blocks via square [field] tokens. P user, 8 #ID > UID: [user] > |
| S | S <f> <expr> > | Initialization: Forces an automated calculation write into field buffers if data is completely blank. |
| T | T{1..6} <title> | Form Title: Renders highlight headers on terminal sheets, or <h1>-<h6> markup on web layers. |
5. PS Forms Structural Layout Tree
Statically compiled server-side page-breaking rendering pipeline framework:
| XML Tag | Child Elements Array | Matrix Processing Scope & Rendering Bounds |
|---|---|---|
document | watermark, form* | Root canvas container. Dictates absolute units, dimensions, row/col grids. |
form | head, body, tail?, watermark | Initializes multi-page stream scope boundaries. Handles landscape/portrait orientation. |
head / tail | line*, rule*, image | Binds elements systematically to the start/end margins of every page sheet. |
box | bar*, line*, barcode… | Groups vector properties, rules, and typography blocks inside spatial coordinates. |
imagetab | None | Advances drawing markers past the bottom tracking borders of all current images. |
line / p | text*, image*, pageNumber* | Horizontal typing nodes. Controls dynamic padding limits and text spacing loops. |
newpage | None | Flushes the output data stream and forces a hard layout boundary shift to a fresh page. |
pageNumber | None | Retrieves active runtime page loop sequence variable totals to inject them dynamically. |
rule / bar | None | Draws solid graphic lines across the grid via heights, point widths, shades, or RGB scales. |
text | Plain string value | Prints text characters. Hooks URLs via links, applies transforms, sets underlines. |
Native PS Forms Engine Layout Attributes Index
align | left|center|right text adjustments. | link | Attaches hyperlinked URLs to text regions. |
anchor | Pins images to the top or bottom of target lines. | llx / lly | Lower-left coordinates measured from the page margin base. |
background-* | Sets fill color shades or red/green/blue balances. | llx-even|odd... | Duplex alignment offsets to compensate for print binders. |
red / green / blue | Numeric channel densities scaled from 0 to 1. | name | Structural identifier mapping layout array objects. |
border-* | Draws outlines using explicit widths, gray tones, or RGB. | orientation | Switches engine calculation matrix to landscape|portrait. |
check-* | Fills layout frames with standard x * width verification marks. | orphan / orphan-height | Thresholds forcing pagebreaks if remaining units are low. |
cols / rows | Establishes column/row layouts on document grids. | pos | Measures string positions from the margin base line. |
corner-* | Renders curved box perimeters matching a point radius. | rgb | Hex colors using uppercase characters without hash marks (e.g. 008080). |
fade | Transparency tweaks (values < 1 darken; > 1 lighten). | rotate | Applies angular vector transformations to drawing streams. |
font-face | PostScript text typeface family map identifier. | siblings | Groups lines so they move to new pages together. |
font-size | Typographic scale calculated in points (72 points = 1 inch). | top | Measures text spacing from the upper margin container. |
grid-* / grid-width | Generates background measurement grids across page axes. | underline-* | Customizes rule strokes under text nodes. |
height / width | Geometric rule boundaries computed via native unit maps. | units / urx / ury | Inches (in) or millimeters (mm) / Upper-right matrix paths. |