Commit 35c5457
committed
🚜 [refactor] Large-scale docs localization + ANSI conversion scripts overhaul + tooling updates
- 🧪 Improved encoding support: use iconv decode(cp437) for legacy ANSI files and return both content and sauce metadata.
- ✨ Better return shapes: convertAnsiToPs1 now returns { lines, warnings, terminal } for programmatic consumption; main() gives clearer status and exits non-zero on fatal errors.
- 🔁 Consistent style & exports: standardized function exports (TerminalEmulator, readAnsiFile, convertAnsiToPs1, parseArguments, sanitizeName, main, createDefaultAttrs, stripSauce) and applied consistent formatting/whitespace for readability.
🚜 [refactor] Split-AnsiFile.js — CLI splitting utility hardened & modernized
- 🔧 Reworked CLI parsing into typed SplitOptions with JSDoc and solid defaults (DEFAULT_OUTPUT_DIR).
- 🔧 Implemented robust segmentation pipeline: extractLinesFromPs1(), determineBreaks(), splitLines(), ensureTrailingReset(), plus chunk-writing helpers writeChunkPs1/writeChunkAnsi.
- 🔧 Added features: --heights (cumulative), --breaks (absolute), --every (regular chunking), --auto (blank-line gap detection with gap/minSegment thresholds), --dry-run and --strip-space-bg; improved user-facing error/help output.
- 🔧 Now uses the conversion utilities (readAnsiFile/convertAnsiToPs1) and produces consistent part files (sanitized names, padded suffixes) and safe writes.
👷 [ci] Tooling & formatting additions (package.json & package-lock)
- 🔧 Added Prettier + an array of Prettier plugins to devDependencies: prettier, prettier-plugin-powershell, prettier-plugin-ini, prettier-plugin-jsdoc, prettier-plugin-multiline-arrays, prettier-plugin-packagejson, prettier-plugin-merge, prettier-plugin-sql, prettier-plugin-sort-json, prettier-plugin-tailwindcss, and helper plugins (prettier-plugin-interpolated-html-tags, @awmottaz/prettier-plugin-void-html, prettier-plugin-properties).
- 🔧 Updated package-lock.json to reflect new plugin dependency graph and included supporting libs (micromark/mdast ecosystem, json5, luxon, etc.) for the new formatting toolchain.
- ⚙️ Rationale: unify code style across JS/Markdown/PowerShell and enable safe automated formatting in CI pipelines.
📝 [docs] Massive localization & help content hygiene (pt / ru / zh-CN + others)
- ✍️ Standardized many localized Markdown help pages under ColorScripts-Enhanced/{pt,ru,zh-CN}: added blank-line separations, improved examples, clarified descriptions, expanded Best Practices and Advanced Usage sections where missing.
- ✍️ Escaped wildcard characters in docs (changed "*" to "\*") in multiple languages to avoid unintended Markdown rendering and to make parameter docs literal and copy-paste safe.
- ✍️ Normalized parameter YAML fragments: standardized keys (DontShow, AcceptedValues, HelpMessage) and consistent formatting (HelpMessage: ""), added small blank lines for readability.
- ✍️ Inserted several translated refinements and extra sample snippets for configuration, caching and profile installation workflows.
📝 [docs] HelpInfo and generated help XML updates
- ✍️ Bumped UICultureVersion timestamps in HelpInfo.xml files for pt/ru/zh-CN to reflect documentation refresh (2025.11.05.1608 → 2025.11.05.1615).
- ✍️ Reflowed long description paragraphs in the module help XMLs to improve readability and to separate lists into distinct maml:para blocks.
📝 [docs] Documentation index & summary artifacts updated
- ✍️ Updated DOCUMENTATION_EXPANSION_SUMMARY.md, DOCUMENTATION_INDEX.md, DOCUMENTATION_STATUS_REPORT.md, HELP_ENHANCEMENTS_SUMMARY.md and related artifacts: reflowed tables, aligned columns, improved metrics and "Last Updated" formatting (converted trailing bullets to underscored metadata).
- ✍️ README.md: small table alignment fixes and clarified Get-Help -Online behavior wording.
✨ [feat] help-redirect.html — rewrite for robust language detection & redirects
- ✨ Normalized doctype and modernized HTML head; improved language mapping and browser language probing (navigator.languages fallback), better supportedCultures mapping and safe redirect to localized markdown pages on GitHub.
- 📝 UI improvements: spinner, friendly message, and explicit "Detected language" feedback prior to redirect.
🧹 [chore] CI/config formatting and docs support fixes
- 🧹 _config.yml: normalized plugin list indentation for Jekyll site config.
- 🧹 codecov.yml: comment spacing & inline comment normalizations; minor whitespace cleanups in ignored paths to reduce diff noise.
- 🧹 Updated multiple docs (Development.md, CODECOV_JUNIT_SETUP.md, NPM_SCRIPTS.md, Publishing.md, QUICK_REFERENCE.md) to fix table alignment, wording, and code-block formatting.
📝 [docs] micro-fixes & release artifacts
- ✍️ Cleaned dist release notes templates (dist/LatestReleaseNotes.md, dist/PowerShellGalleryReleaseNotes.md): removed empty placeholders, reflowed contributor/license blocks and ensured git-cliff footer note is present.
- ✍️ Minor localized help adjustments: consistent quoting, added minor explanatory text and small example expansions across many command docs (Get-ColorScriptList, Show-ColorScript, New-ColorScript, New-ColorScriptCache, Clear-ColorScriptCache, etc.).
🧪 [test] Validation notes and guardrails
- 🔍 Conversion & split scripts now emit warnings array for conversion anomalies (parser/CSI/ESC warnings). CLI surfaces top warnings and summarizes them for troubleshooting.
- 🔁 Conversion pipeline improved to return programmatic values enabling unit-style verification in future tests.
Notes / Impact
- 🔔 Primary focus: stabilise and modernize the ANSI → PowerShell conversion pipeline and make CLI splitting deterministic and extensible.
- 🧾 Secondary focus: large documentation/localization cleanup for better UX and consistent help output across supported locales.
- 1 parent 3493565 commit 35c5457
191 files changed
Lines changed: 10191 additions & 7023 deletions
File tree
- .github
- PROMPTS
- agents
- workflows
- .vscode
- ColorScripts-Enhanced
- de
- docs
- en-US
- es
- fr
- it
- ja
- nl
- pt
- ru
- zh-CN
- docs
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
7 | 40 | | |
8 | 41 | | |
9 | 42 | | |
| |||
44 | 77 | | |
45 | 78 | | |
46 | 79 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
52 | 87 | | |
53 | 88 | | |
54 | 89 | | |
| |||
131 | 166 | | |
132 | 167 | | |
133 | 168 | | |
| 169 | + | |
134 | 170 | | |
135 | 171 | | |
136 | 172 | | |
| 173 | + | |
137 | 174 | | |
138 | 175 | | |
139 | 176 | | |
140 | 177 | | |
141 | 178 | | |
| 179 | + | |
142 | 180 | | |
143 | 181 | | |
144 | 182 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
0 commit comments