GitShow/torvalds/HunspellColorize
torvalds

HunspellColorize

Wrapper around 'less' to colorize spelling mistakes using Hunspell

by torvalds
Star on GitHubFork

C

364 stars18 forks1 contributorQuiet · 7mo agoSince 2026GPL-2.0

Meet the team

See all 1 on GitHub →
torvalds
torvalds5 contributions

Languages

View on GitHub →
C95.4%
Makefile4.6%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

2 of 6 standards met

Community profile →
42
✓README✓License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 3 in progress · Last activity 7mo ago
See all on GitHub →
Kolgrim33
huncolor: add UTF-8 multi-byte decoding and locale supportOpenPR

Calls on initialization to respect the user's terminal locale. Handles multi-byte character sequences and buffer boundary split recovery using . Uses standard wide-character functions (, ) to accurately detect word boundaries across UTF-8 text without mangling non-ASCII characters.

Kolgrim33 · 1mo ago
p1k0chu
Find the hunspell aff and dic files in XDG_DATA_DIRSOpenPR

on a linux distro like nixos /usr/share doesn't exist but XDG_DATA_DIRS is set to the location of hunspell files (if they are installed ofc) so we look for each directory in XDG_DATA_DIRS, check if theres an en_us dictionary in it, if not, fall back to previous /usr/share/... path tested this on my nixos and on an ubuntu docker image

p1k0chu · 7mo ago
PyScriptPlus
Highlight misspelled words in red for better visibilityOpenPR

This PR modifies the color scheme of HunspellColorize to make misspelled words appear in red in the terminal. Previously, the program used ANSI bold sequences (\033[1m / \033[22m) which some terminals do not display clearly. Changes made: Updated START and STOP macros: #define START "\033[31m" #define STOP "\033[0m" This improves visibility of misspelled words and provides a clearer visual cue for users reading text through the program. The Hunspell functionality remains unchanged, and the program still correctly identifies misspelled words using the same dictionaries. Tested on WSL/Ubuntu with English dictionary (en_US.aff/en_US.dic). No additional dependencies are required. Suggested Usage: echo "This is a simpel txt" less -R Now, misspelled words like "simpel" and "txt" appear in red.

PyScriptPlus · 7mo ago

Recent fixes

View closed PRs →
AndreaBozzo
add random contributor name to readmeMergedPR

This PR adds my name to the README.md file, as i thought it would be cool to be on it! open to feedbacks on the implementation

AndreaBozzo · 3w ago
VanTuZ0987
huncolor: Clean up hunspell handleMergedPR
VanTuZ0987 · 5mo ago
iamDyeus
Buffer overflow in escape sequence handlingClosedIssue

The function will memcpy beyond buffer bounds when escape sequences exceed SMALLBUF.

iamDyeus · 7mo ago
Structured data for AI agents

Repository: torvalds/HunspellColorize. Description: Wrapper around 'less' to colorize spelling mistakes using Hunspell Stars: 364, Forks: 18. Primary language: C. Languages: C (95.4%), Makefile (4.6%). License: GPL-2.0. Open PRs: 3, open issues: 0. Last activity: 7mo ago. Community health: 42%. Top contributors: torvalds.

·@ofershap

Replace github.com with gitshow.dev