GitShow/torvalds/HunspellColorize
torvalds

HunspellColorize

Wrapper around 'less' to colorize spelling mistakes using Hunspell

by torvalds
Star on GitHubFork

C

351 stars15 forks1 contributorQuiet · 5mo 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 · 2 in progress · Last activity 5mo ago
See all on GitHub →
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 · 5mo 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 · 5mo ago

Recent fixes

View closed PRs →
VanTuZ0987
huncolor: Clean up hunspell handleMergedPR
VanTuZ0987 · 3mo ago
iamDyeus
Buffer overflow in escape sequence handlingClosedIssue

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

iamDyeus · 5mo ago
daniliuskosmaches
the most important message that you ever gotClosedIssue

hi replace write() to -> fwrite() just for fun like fuckwrite()

daniliuskosmaches · 5mo ago
Structured data for AI agents

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

·@ofershap

Replace github.com with gitshow.dev