# -----------------------------------------------------------------------------
# File 4: welcome.sxt (Specification Document)
# -----------------------------------------------------------------------------
cat << 'EOF' > welcome.sxt
..welcome_anchor|Welcome to SXT.. .| Anker fuer dieses Dokument
,,20260726|20260726.. .| Erstellungs- und Änderungsdatum
,center Welcome to Smart teXT (SXT) ,b — Specification & Test File .b .center
This file demonstrates the grammatical rules and the core features of SXT.
=============================================================================
1. THE SPACING GRAMMAR (Do's and Don'ts for Whitespace)
=============================================================================
In SXT, the precise placement of spaces determines whether a text block is valid:
• papipo pupapo, pipapo etc. -> YES! (Valid comma separation)
• papipo pupapo,pipapo etc. -> NO! (Missing space after comma)
• papipo pupapo , pipapo etc. -> NO! (Illegal space before comma)
• papipo pupapo. Pipapo etc. -> YES! (Valid sentence structure)
• papipo pupapo. 5 pipapo etc. -> YES! (Valid sentence with number)
• papipo pupapo. pipapo etc. -> YOU CAN! (Valid lowercase start)
• papipo pupapo.Pipapo etc. -> NO! (Missing space after dot)
• papipo pupapo.5 pipapo etc. -> NO! (Missing space after dot before digit)
• papipo pupapo . pipapo etc. -> NO! (Illegal space before dot)
Verwende Code mit Vorsicht.
• papipo pupapo.pipapo etc. -> NO! (No spaces around dot at all)
NOTE: Structures like " ,_xxx" or " ._xxx" are STRIKT RESERVED FOR CODE!
=============================================================================
2. FORMATTING CODES (Inline ANSI & HTML)
Use a leading space followed by a comma to trigger formatting, and a space
followed by a dot to reset it.
• This is ,b bold text .b and this is regular.
• This is ,i italic text .i and this is regular.
• This is ,u underlined text .u and this is regular.
• This is ,r reverse/inverted text .r and this is regular.
• This is ,c crossed out text .c and this is regular.
Foreground Colors:
• ,k Black text .k ,d Red text .d ,n Green text .n ,w Yellow text .w
• ,e Blue text .e ,a Magenta .a ,y Cyan text .y ,w White text .w
Background Colors:
• ,0 Black BG .0 ,1 Red BG .1 ,2 Green BG .2 ,3 Yellow BG .3
• ,4 Blue BG .4 ,5 Magenta .5 ,6 Cyan BG .6 ,7 White BG .7
Full Page Background Command:
• ,p (Reserved for master page background color definition)
=============================================================================
3. HYPERLINKS & NAVIGATION
• Internal Jump: ,.#welcome_anchor|Go to top,, (Link within this file)
• External Link: ,.
https://example.com|Visit Example Website.. (Far link)
• Milestone Mark: ..5000.. (5000 character/word line metric counter)
=============================================================================
4. ADVANCED LAYOUT ENGINE (Reserved Tags)
These structural commands control margins, lists, and numbering sequences:
• Page Numbering: ,page. | ,101page.begin | .page.
• Left Margins: ,010randL. | ,010randLbullet. | ,010randLcount. | ,010randL-.
• Left Resets: .010randL. | .010randLbullet. | .010randLcount. | .010randL-.
• Right Margins: ,010randR. | ,010randRbullet. | ,010randRcount. | ,010randR-.
• Right Resets: .010randR. | .010randRbullet. | .010randRcount. | .010randR-.
=============================================================================
5. ESCAPED FREE TEXT & RAW CODE BLOCKS
• Interpretive Free Text:
," ,b This bold works .b but other syntax rules inside are relaxed ."
• Strict Literal Code:
." This content is preserved exactly as written ."
EOF