Closed orangain closed 8 years ago
Thanks.
Handle s/ベンダ/ベンダー/ problem by rule.
I agree with this.
Release 3.0.0
Thanks for the merge. After upgrading to 3.0.1, I realized that there were several rules affected by this issue such as s/ユーザー/ユーザ/ :stuck_out_tongue:
Problem
textlint-rule-prh does not report an error with a text
"(図1) "
and the following rule:Note: prh does fix the error with this rule.
Cause
This is because the following condition incorrectly ignore the error.
In this case, variables have the following values.
slicedText
:') '
matchedText
:') '
expected
:')'
I understand that the condition is introduced by https://github.com/azu/textlint-rule-prh/commit/f528e780567b4cf1584182d773f3b2d499c5ac6f and https://github.com/azu/textlint-rule-prh/commit/cd739dc232e4108430bc2009a9fbb690e3dcbd88 to fix
s/Web/Web/i
problem ands/ベンダ/ベンダー/
problem. But prh itself does not handles/ベンダ/ベンダー/
problem, i.e. prh correctsベンダー
toベンダーー
. So, I thinks/ベンダ/ベンダー/
problem should be handled by rule (or changing prh's behavior). I believe incompatibility between prh and textlint-rule-prh is confusing.Implementation
s/Web/Web/i
problem by code.s/ベンダ/ベンダー/
problem by rule.This fix the
s/) /)/
problem.I'll send another PR to web+db_press.yml to fix some patterns if this one is merged.