小節
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 plugin command have three roles
<redpen-conf lang="en">
<validators>
<validator name="SentenceLength" level="warn" >
<property name="max_len" value="200"/>
</validator>
<validator name="InvalidSymbol" level="info" />
<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.
This validator checks a set of rules writers should adherre. The rules are written in the YAML format.
In the rule file there are three block lang, name and pattern.
KatakanaSpecllCheck のプロパティに辞書ファイルへのパス(パスはカレントディレクトリからの相対パス)を記述する。
<redpen-conf lang="ja">
<validators>
{ | |
"document": "Theyre is a blak rownd borl.", | |
"format": "json2", | |
"documentParser": "PLAIN", | |
"config": { | |
"lang" : "en", | |
"validators" : { | |
"CommaNumber": {}, | |
"Contraction": {}, | |
"DoubledWord": {}, |
Add cleanup steps in pipeline target.
Add cleanup as a element of a array in pipeline.
Sample