blach
blah
var dependentCharacters = RegExp(/[①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡㍻〝〟№㏍℡㊤㊥㊦㊧㊨㈱㈲㈹㍾㍽㍼]/g);
function validateSentence(sentence) {
var content = sentence.getContent();
while ((match = dependentCharacters.exec(content)) != null) {
addError("Found machine dependent character: " + "\'"+ match[0] + "\'", sentence);
<redpen-conf lang="en">
<validators>
<validator name="SentenceLength" level="warn" >
<property name="max_len" value="200"/>
</validator>
<validator name="InvalidSymbol" level="info" />
<validator name="SpaceWithSymbol" level="error" />
<validator name="SectionLength">
Writers want to suppress errors from RedPen. In such cases, writers list up the error types they want to suppress. The list of the errors are written down to the beginning of sections or paragraphs where they want to suppress the spcified errors.
The following is a sample of AsciiDoc section which suppress two error types. In the section, the specified errors are suppressed even when RedPen detect errors.
{ | |
"document": "Theyre is a blak rownd borl.", | |
"format": "json2", | |
"documentParser": "PLAIN", | |
"config": { | |
"lang" : "en", | |
"validators" : { | |
"CommaNumber": {}, | |
"Contraction": {}, | |
"DoubledWord": {}, |