File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- # textlint-rule-preset-JTF-style [ ![ textlint rule] ( https://img.shields.io/badge/textlint-fixable-green.svg?style=social )] ( https://textlint.github.io/ ) [ ![ Build Status] ( https://travis-ci.org/azu /textlint-rule-preset-JTF-style.svg?branch=master )] ( https://travis-ci.org/azu /textlint-rule-preset-JTF-style )
1
+ # textlint-rule-preset-JTF-style [ ![ textlint rule] ( https://img.shields.io/badge/textlint-fixable-green.svg?style=social )] ( https://textlint.github.io/ ) [ ![ Build Status] ( https://travis-ci.org/textlint-ja /textlint-rule-preset-JTF-style.svg?branch=master )] ( https://travis-ci.org/textlint-ja /textlint-rule-preset-JTF-style )
2
2
3
3
[ JTF日本語標準スタイルガイド(翻訳用)] ( https://www.jtf.jp/jp/style_guide/styleguide_top.html " JTF日本語標準スタイルガイド(翻訳用) ") for [ textlint] ( https://github.com/textlint/textlint " textlint ") .
4
4
10
10
11
11
## Usage
12
12
13
- 基本的に[ textlint] ( https://github.com/azu /textlint " textlint ") の使い方と同じです。
13
+ 基本的に[ textlint] ( https://github.com/textlint /textlint " textlint ") の使い方と同じです。
14
14
15
15
- [ textlintで日本語の文章をチェックする | Web Scratch] ( http://efcl.info/2015/09/10/introduce-textlint/ " textlintで日本語の文章をチェックする | Web Scratch ")
16
16
@@ -587,7 +587,7 @@ textlint --fix /path/to/target.md
587
587
588
588
Q. このルールはスタイルガイドと合ってないのでは?
589
589
590
- A. [ Issue] ( https://github.com/azu /textlint-rule-preset-jtf-style/issues/new ) に詳細を書いてみるといいと思います。
590
+ A. [ Issue] ( https://github.com/textlint-ja /textlint-rule-preset-jtf-style/issues/new ) に詳細を書いてみるといいと思います。
591
591
592
592
Issueには以下の項目が書かれていると問題を解決しやすくなります。
593
593
Original file line number Diff line number Diff line change 2
2
"name" : " textlint-rule-preset-jtf-style" ,
3
3
"repository" : {
4
4
"type" : " git" ,
5
- "url" : " git+https://github.com/azu /textlint-rule-preset-jtf-style.git"
5
+ "url" : " git+https://github.com/textlint-ja /textlint-rule-preset-jtf-style.git"
6
6
},
7
7
"author" : " azu" ,
8
8
"email" : " azuciao@gmail.com" ,
9
- "homepage" : " https://github.com/azu /textlint-rule-preset-jtf-style" ,
9
+ "homepage" : " https://github.com/textlint-ja /textlint-rule-preset-jtf-style" ,
10
10
"license" : " MIT" ,
11
11
"bugs" : {
12
- "url" : " https://github.com/azu /textlint-rule-preset-jtf-style/issues"
12
+ "url" : " https://github.com/textlint-ja /textlint-rule-preset-jtf-style/issues"
13
13
},
14
14
"version" : " 2.2.4" ,
15
15
"description" : " JTF Style Guide for Translators Working into Japanese for textlint." ,
60
60
"peerDependencies" : {
61
61
"textlint" : " >= 5.6.0"
62
62
}
63
- }
63
+ }
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ function reporter(context) {
139
139
140
140
// *数えられる数字は算用数字を使う
141
141
// 数十万、数百億にマッチしないように"数"という文字から始まるものは除外
142
- // https://github.com/azu /textlint-rule-preset-jtf-style/pull/23
142
+ // https://github.com/textlint-ja /textlint-rule-preset-jtf-style/pull/23
143
143
matchToReplace ( text , / ( [ 一 二 三 四 五 六 七 八 九 十 壱 弐 参 拾 百 〇 ] + ) [ 兆 億 万 ] / g,
144
144
ignoreWhenMatched ( / 数 ( [ 一 二 三 四 五 六 七 八 九 十 壱 弐 参 拾 百 〇 ] + ) [ 兆 億 万 ] / g, toNumber )
145
145
) ;
Original file line number Diff line number Diff line change 3
3
export const japaneseRegExp = / (?: [ 々 〇 〻 \u3400 - \u4DBF \u4E00 - \u9FFF \uF900 - \uFAFF ] | [ \uD840 - \uD87F ] [ \uDC00 - \uDFFF ] | [ ぁ - ん ァ - ヶ ] ) / ;
4
4
// http://tama-san.com/kanji-regex/ ベース
5
5
// "々" は 記号であるため除外
6
- // https://github.com/azu /textlint-rule-preset-JTF -style/issues/48
6
+ // https://github.com/textlint-ja /textlint-rule-preset-jtf -style/issues/48
7
7
export const kanjiRegExp = / (?: [ 〇 〻 \u3400 - \u9FFF \uF900 - \uFAFF ] | [ \uD840 - \uD87F ] [ \uDC00 - \uDFFF ] ) / ;
8
8
export const hiraganaRegExp = / [ ぁ - ん ] / ;
9
9
export const karakanaRegExp = / [ ァ - ヶ ] / ;
You can’t perform that action at this time.
0 commit comments