docs: Actualizar guía TM-U220 con charset detallado (box drawing, bloques, latinos)
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 36s

This commit is contained in:
2025-11-25 13:59:27 -06:00
parent 86ef1d85ac
commit 1514109e85

View File

@@ -14,7 +14,12 @@ export const PRINTING_GUIDES: Record<string, {
columns: number columns: number
columnsDoubleWidth: number columnsDoubleWidth: number
supportedChars: string supportedChars: string
charsetDetails?: {
supported: string[]
notSupported: string[]
}
rules: string[] rules: string[]
tips?: string[]
operations: string[] operations: string[]
example: string example: string
}> = { }> = {
@@ -23,16 +28,38 @@ export const PRINTING_GUIDES: Record<string, {
type: 'Matricial (impact)', type: 'Matricial (impact)',
columns: 40, columns: 40,
columnsDoubleWidth: 20, columnsDoubleWidth: 20,
supportedChars: 'ASCII básico (A-Z, a-z, 0-9, símbolos comunes). Evitar Unicode especial.', supportedChars: 'Latin-1 extendido + Box Drawing + Bloques. NO emojis ni flechas Unicode.',
charsetDetails: {
supported: [
'ASCII completo: A-Z a-z 0-9 = - _ * + | / \\ ( ) [ ] < > " \' ` @ # % & ^ ~',
'Box Drawing Doble: ╔ ╗ ╚ ╝ ║ ═',
'Box Drawing Simple: ┌ ┐ └ ┘ │ ─ ├ ┤ ┬ ┴ ┼',
'Bloques y Sombras: █ ▓ ▒ ░ ▀ ▄',
'Latinos extendidos: ñ Ñ á é í ó ú Á É Í Ó Ú ¿ ¡ ç',
'Monedas: $ € £ ¥',
'Matemáticos: ± × ÷ ≤ ≥ ∞'
],
notSupported: [
'Flechas Unicode: → ← ↑ ↓ ↔ ⇒ ⇐',
'Estrellas/Círculos: ★ ☆ ● ○ ◆ ◇',
'Emojis (todos): 😀 ❤ ✓ ✗ ☀ ☁ ✔ ✘',
'Específicos: ₿ (Bitcoin) ≠ (Distinto)'
]
},
rules: [ rules: [
'Máximo 40 caracteres por línea (20 con width:2)', 'Máximo 40 caracteres por línea (20 con width:2)',
'Usar solo caracteres ASCII básicos',
'Evitar caracteres Unicode: ╔═║╚╝ y similares',
'Usar = - _ * para separadores',
'Siempre usar feed entre elementos para legibilidad', 'Siempre usar feed entre elementos para legibilidad',
'feed:1 entre items, feed:2 entre secciones', 'feed:1 entre items, feed:2 entre secciones',
'feed:4 antes del cut final', 'feed:4 antes del cut final',
'Los headers con width:2 deben ser cortos (max 20 chars)' 'Los headers con width:2 deben ser max 20 chars',
'Docs largos pueden dar EX_TIMEOUT pero se imprimen igual'
],
tips: [
'TABLAS: Usar box drawing ┌─┬─┐ │ ├─┼─┤ └─┴─┘ para tablas legibles',
'BARRAS PROGRESO: Combinar █ y ░ ej: [█████░░░░░]',
'CAJAS: Box doble ╔═╗ ║ ╚═╝ para destacar contenido importante',
'BULLETS: Usar * - + > o [*] [X] en lugar de ✓ ✗',
'ASCII ART: Funciona perfecto con caracteres básicos'
], ],
operations: [ operations: [
'{ op: "text", value: "texto" } - Imprime texto', '{ op: "text", value: "texto" } - Imprime texto',
@@ -47,10 +74,17 @@ export const PRINTING_GUIDES: Record<string, {
{ "op": "text", "value": "TITULO" }, { "op": "text", "value": "TITULO" },
{ "op": "style", "bold": false, "width": 1, "height": 1 }, { "op": "style", "bold": false, "width": 1, "height": 1 },
{ "op": "feed", "lines": 2 }, { "op": "feed", "lines": 2 },
{ "op": "text", "value": "================================" }, { "op": "text", "value": "╔══════════════════════════════════════╗" },
{ "op": "text", "value": "║ Contenido importante aquí ║" },
{ "op": "text", "value": "╚══════════════════════════════════════╝" },
{ "op": "feed", "lines": 1 }, { "op": "feed", "lines": 1 },
{ "op": "align", "align": "left" }, { "op": "text", "value": "┌────────┬────────┬────────┐" },
{ "op": "text", "value": "Contenido aquí" }, { "op": "text", "value": "│ COL 1 │ COL 2 │ COL 3 │" },
{ "op": "text", "value": "├────────┼────────┼────────┤" },
{ "op": "text", "value": "│ dato │ dato │ dato │" },
{ "op": "text", "value": "└────────┴────────┴────────┘" },
{ "op": "feed", "lines": 1 },
{ "op": "text", "value": "Progreso: [██████████░░░░░░░░░░] 50%" },
{ "op": "feed", "lines": 4 }, { "op": "feed", "lines": 4 },
{ "op": "cut" } { "op": "cut" }
]` ]`