Skip to main content
The myspellchecker.utils.console module provides Rich-based terminal formatting used by the CLI. It includes custom themes for Myanmar text, pre-built table and panel formatters for spell checking output, and helper functions for consistent console styling.

Overview

Theme System

MYSPELL_THEME

Custom Rich theme with styles for Myanmar spell checking:

Using the Theme

Error Formatting

ERROR_STYLES

Mapping from error types to theme style names:

ERROR_ICONS

Unicode icons for error types:

Table Functions

create_error_table

Creates a formatted table for displaying spelling errors:
Output:

create_stats_table

Creates a statistics summary table:

Custom Suggestion Display

To display suggestions, create a custom table:

Panel Functions

create_summary_panel

Creates a summary panel for spell check results:

create_build_header_panel

Creates a header panel for build operations:

PipelineConsole

Console wrapper for pipeline output with Rich formatting (colors disabled for structured output). Constructed with PipelineConsole(force_plain=False).

Step Tracking

Schema and Statistics

Pipeline-Specific Panels

Message Methods

CLI Output Examples

Standard Check Output

Build Progress Output

Integration with argparse CLI

The console utilities integrate with the argparse-based CLI commands:

Configuration

Console Settings

Environment Variables

See Also