You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spellchecking of some special file formats is hard to
novices. Let's view on PHP file:
------
<html_tag attrib="Value to spellcheck (3)">Text to
spellcheck (4)
... and so on ...
------
How to spellcheck regions (1)-(4) selectively in any
combinations? E.g. PHP comments and HTML text? Or
ignore PHP code completely?
I'm trying to spellcheck AsciiDoc. The suggestion is implement a "straight-forward" filter implementation; looking at the Markdown filter, I see 1k+ lines of C++. Nope.
For my (limited) use case, I only need to imitate the effect of
sed -e '/\.\.\.\./,/\.\.\.\./d' -e 's/`+.\++`//g' file
to get rid of code blocks; maybe a couple similar patterns will come along. It would be great if aspell could consume a similar list of replacement/ignore patterns.
Mitraotor <mitraotor@sf> created a feature request on 2006-06-16 10:05:42 UTC
(Orig. from https://sourceforge.net/p/aspell/feature-requests/48)
Good day.
Thank you for aspell's developing!
Spellchecking of some special file formats is hard to
novices. Let's view on PHP file:
------
<html_tag attrib="Value to spellcheck (3)">Text to
spellcheck (4)
... and so on ...
------
How to spellcheck regions (1)-(4) selectively in any
combinations? E.g. PHP comments and HTML text? Or
ignore PHP code completely?
I've failed to force exclude PHP by:
------
MODE php
FILTER context
OPTION clear-context-delimiters
OPTION add-context-delimiters
OPTION add-context-delimiters " "
OPTION disable-context-visible-first
------
It would be great aspell woulda allows filters
configuration via regexp.
And following filter options are highly desirable:
- allowed context (e.g. "" = only in PHP)
- disallowed context (e.g. "" = exclude PHP)
- allowed chars (e.g. to check latin only)
- disallowed chars (e.g. to ignore latin)
- allowed word patterns
- disallowed word patterns (e.g. to ignore hex numbers)
- pre-spelling string/regex replaces (e.g. to
reconstruct hyphenated words)
My apologies, if any of this has been already
implemented, but filter options aren't documented
enough.
The text was updated successfully, but these errors were encountered: