Re: Looking for a grammar/spelling tool for XML I-D

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2020-8-20, at 17:11, Lars Eggert <lars@xxxxxxxxxx> wrote:
> On 2020-8-20, at 16:58, Lars Eggert <lars@xxxxxxxxxx> wrote:
>> On 2020-8-20, at 12:38, Eric Vyncke (evyncke) <evyncke=40cisco.com@xxxxxxxxxxxxxx> wrote:
>>> So, we are looking forward for any tools on-line/off-line being able to do this.
>> 
>> https://github.com/codespell-project/codespell works on md, xml and txt (and more).
> 
> Ah, sorry. You wanted a grammar checker.
> 
> https://eggert.org/software/idreview has some scripting around languangetool that boils down to something like this:
> 
> rfcstrip "$id" | \
> sed -e 's/^[ ]\{1,\}//g; s/[ ]\{2,\}/ /g; s/^o /\* /' | \
> languagetool -l en-US -d WHITESPACE_RULE,EN_QUOTES,\
> COMMA_PARENTHESIS_WHITESPACE,UPPERCASE_SENTENCE_START,\
> THREE_NN,DOUBLE_PUNCTUATION,THREE_NN,DOUBLE_PUNCTUATION,\
> WORD_CONTAINS_UNDERSCORE,COPYRIGHT,\
> DASH_RULE,PLUS_MINUS,MULTIPLICATION_SIGN,ARROWS

And if you want to work on the XML, you can use --xmlfilter and pass it an XML file instead of the rfcstripped/sedded text version.

Lars

PS: I'll stop with the follow-ons now.

Attachment: signature.asc
Description: Message signed with OpenPGP


[Index of Archives]     [IETF Annoucements]     [IETF]     [IP Storage]     [Yosemite News]     [Linux SCTP]     [Linux Newbies]     [Mhonarc]     [Fedora Users]

  Powered by Linux