Skip to content

Commit 8b923d9

Browse files
committed
Fix typos.
1 parent 5575c15 commit 8b923d9

File tree

24 files changed

+68
-68
lines changed

24 files changed

+68
-68
lines changed

autocorrect-rb/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ Calculating -------------------------------------
9999

100100
| Test Case | Duration (Rust) | Duration (Pure Ruby) | Speedup |
101101
| ----------- | --------------- | -------------------- | ------- |
102-
| Foramt 50 | 0.008ms | 0.031ms | ~3.8x |
102+
| Format 50 | 0.008ms | 0.031ms | ~3.8x |
103103
| Format 100 | 0.017ms | 0.062ms | ~3.6x |
104104
| Format 400 | 0.052ms | 0.2ms | ~3.8x |
105105
| Format HTML | 0.183ms | 0.67ms | ~3.6x |
106106

107107
> 🎈 Rust version about 3.5 ~ 3.8x fast then Ruby (pure version).
108-
>
108+
>
109109
> By this result, we can see the Ruby version is also fast, but the Rust version is more better.
110110
111111
## Know issues

autocorrect-website/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ <h1 class="text-3xl">AutoCorrect</h1>
4646
<pre class="codeblock"><span>curl -sSL https://git.io/JcGER | sh</span></pre>
4747
</div>
4848
<div class="intro">
49-
<p>Like Eslint, Rubocop, Gofmt ..., AutoCorrect allow us to checking soure code, and output as colorized diff
50-
with corrected suggest. You can intergrating to CI (GitLab CI, GitHub Action, Travis CI....) for use to
49+
<p>Like Eslint, Rubocop, Gofmt ..., AutoCorrect allow us to checking source code, and output as colorized diff
50+
with corrected suggest. You can integrating to CI (GitLab CI, GitHub Action, Travis CI....) for use to
5151
checking the contents in source code. Recognize the file name, and find out the strings and the comment
5252
part.
5353
</p>

autocorrect-website/public/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"properties": {
66
"fileTypes": {
77
"default": {},
8-
"description": "Speical file type mapping.\nExample:\n{ \"mdx\": \"markdown\" }\nDefault: https://github.com/huacnlee/autocorrect/raw/main/autocorrect/.autocorrectrc.default",
8+
"description": "Special file type mapping.\nExample:\n{ \"mdx\": \"markdown\" }\nDefault: https://github.com/huacnlee/autocorrect/raw/main/autocorrect/.autocorrectrc.default",
99
"type": "object",
1010
"additionalProperties": {
1111
"$ref": "#/definitions/FileType"
@@ -158,7 +158,7 @@
158158
"type": "object",
159159
"properties": {
160160
"mode": {
161-
"description": "DEPRACTED: use `rules.spellcheck` instead",
161+
"description": "DEPRECATED: use `rules.spellcheck` instead",
162162
"default": null,
163163
"anyOf": [
164164
{

autocorrect-website/src/AppEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export const AppEditor = () => {
209209
</div>
210210
</div>
211211
</div>
212-
<div className="editor-wraper absolute bottom-4 left-4 right-4 top-[110px]">
212+
<div className="editor-wrapper absolute bottom-4 left-4 right-4 top-[110px]">
213213
<Editor
214214
defaultLanguage="markdown"
215215
theme={editorOptions.theme}

autocorrect-website/src/examples.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function application() {
5757
scss: {
5858
title: 'CSS / SCSS',
5959
raw: `
60-
/*
60+
/*
6161
这是多行CSS第1行
6262
这是第2行
6363
*/
@@ -200,7 +200,7 @@ func helloWorld(name: String) -> String {
200200
},
201201
kotlin: {
202202
title: 'Kotlin',
203-
raw: `/**
203+
raw: `/**
204204
* 第1行注释
205205
* 第2行注释
206206
*/
@@ -220,7 +220,7 @@ fun helloWorld(name: String) {
220220
raw: `<div class="container">
221221
<p>目前html tag里的无法处理</p>
222222
<?php
223-
/**
223+
/**
224224
* 第1行注释
225225
* 第2行注释
226226
*/
@@ -241,7 +241,7 @@ fun helloWorld(name: String) {
241241
* 第1行注释
242242
* 第2行注释
243243
*/
244-
public String helloWorld(stirng name) {
244+
public String helloWorld(string name) {
245245
// 第3行注释
246246
string singleLineString = "第1个字符串string";
247247
string stringLiteral = $"这是stringLiteral {name}!";
@@ -276,7 +276,7 @@ end`,
276276
},
277277
dart: {
278278
title: 'Dart',
279-
raw: `/**
279+
raw: `/**
280280
* 第1行注释
281281
* 第2行注释
282282
*/
@@ -302,9 +302,9 @@ String helloWorld(String name) {
302302
COMMENT ON COLUMN "topics"."user_id" IS 'topic创建者';
303303
-- Comment注释信息
304304
COMMENT ON COLUMN "topics"."status" IS '3屏蔽 1审核中 2已发布';
305-
/*
305+
/*
306306
多行,且带有换行
307-
注释comment信息
307+
注释comment信息
308308
*/
309309
COMMENT ON COLUMN "topics"."kind" IS '0普通 1转发';`,
310310
},
@@ -330,19 +330,19 @@ region:
330330
"publisher": "huacnlee",
331331
"meta": {
332332
// 第1行注释
333-
"title": "第1个meta",
334-
/**
333+
"title": "第1个meta",
334+
/**
335335
* 第2行注释
336336
* 第3行注释
337337
*/
338-
"description": "第2个meta",
338+
"description": "第2个meta",
339339
"测试key不格式化": false
340340
}
341341
}`,
342342
},
343343
strings: {
344344
title: 'Strings',
345-
raw: `/*
345+
raw: `/*
346346
InfoPlist.strings测试
347347
Created by某某
348348
*/

autocorrect-website/src/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ body {
4343
}
4444
}
4545

46-
.editor-wraper {
46+
.editor-wrapper {
4747
@apply rounded-sm border border-gray-300 shadow;
4848
@apply dark:border-gray-700;
4949
}

autocorrect-website/src/welcome.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ export const Welcome = () => {
196196
<div className="intro">
197197
<p>
198198
Like Eslint, Rubocop, Gofmt ..., AutoCorrect allow us to checking
199-
soure code, and output as colorized diff with corrected suggest. You
200-
can intergrating to CI (GitLab CI, GitHub Action, Travis CI....) for
199+
source code, and output as colorized diff with corrected suggest. You
200+
can integrating to CI (GitLab CI, GitHub Action, Travis CI....) for
201201
use to checking the contents in source code. Recognize the file
202202
name, and find out the strings and the comment part.
203203
</p>

autocorrect/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AutoCorrrect for Rust
1+
# AutoCorrect for Rust
22

33
[![Go](https://github.com/huacnlee/autocorrect/workflows/CI/badge.svg)](https://github.com/huacnlee/autocorrect/actions?query=workflow%3ACI)
44
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/huacnlee/autocorrect?label=Version)](https://github.com/huacnlee/autocorrect/releases)
@@ -9,7 +9,7 @@
99

1010
A linter and formatter for help you improve copywriting, to correct spaces, punctuations between CJK (Chinese, Japanese, Korean).
1111

12-
Like Eslint, Rubocop, Gofmt ..., AutoCorrect allows us to checking soure code, and output as colorized diff with corrected suggest. You can intergrating to CI (GitLab CI, GitHub Action, Travis CI....) for use to checking the contents in source code. Recognize the file name, and find out the strings and the comment part.
12+
Like Eslint, Rubocop, Gofmt ..., AutoCorrect allows us to checking source code, and output as colorized diff with corrected suggest. You can integrating to CI (GitLab CI, GitHub Action, Travis CI....) for use to checking the contents in source code. Recognize the file name, and find out the strings and the comment part.
1313

1414
基于 Rust 编写的 CLI 工具,用于「自动纠正」或「检查并建议」文案,给 CJK(中文、日语、韩语)与英文混写的场景,补充正确的空格,同时尝试以安全的方式自动纠正标点符号等等。
1515

@@ -25,7 +25,7 @@ Like Eslint, Rubocop, Gofmt ..., AutoCorrect allows us to checking soure code, a
2525
- Multiple file content support (HTML, YAML, Rust, Go, SQL, Ruby, Python, Objective-C, Swift, Java, Kotlin, Dart, JavaScript, CSharp ...).
2626
- Fullwidth -> halfwidth (only for [a-zA-Z0-9], and `` in time).
2727
- Correct punctuations into Fullwidth near the CJK.
28-
- Lint checking and output diff or JSON result, so you can integrating to everwhere (GitLab CI, GitHub Action, VS Code, Vim, Emacs...)
28+
- Lint checking and output diff or JSON result, so you can integrating to everywhere (GitLab CI, GitHub Action, VS Code, Vim, Emacs...)
2929
- Allows to use `.gitignore` or `.autocorrectignore` to ignore files that you wants ignore.
3030

3131
## Usage

autocorrect/grammar/gettext.pest

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Gettext Parser
22
item = _{ SOI ~ line* ~ EOI }
3-
line = _{ pair | key | value | string | refrence | other }
3+
line = _{ pair | key | value | string | reference | other }
44
other = ${ !(string) ~ ANY }
55
WHITESPACE = { " " | "\t" | NEWLINE }
66

@@ -9,8 +9,8 @@ line_comment = _{ "#" ~ (!(NEWLINE) ~ ANY)* }
99
block_comment = _{ "/*" ~ (!("*/") ~ ANY)* ~ "*/" }
1010
COMMENT = ${ line_comment | block_comment }
1111

12-
/// refrence
13-
refrence = ${ "#:" ~ (!(NEWLINE) ~ ANY)* }
12+
/// reference
13+
reference = ${ "#:" ~ (!(NEWLINE) ~ ANY)* }
1414

1515
/// string
1616
string = @{ inner_string }
@@ -26,4 +26,4 @@ value = ${ value_func ~ other* ~ string }
2626

2727
/// key value
2828
key_func = @{ "msgid" | "msgid_plural" | "msgctxt" }
29-
value_func = @{ "msgstr" }
29+
value_func = @{ "msgstr" }

autocorrect/grammar/html.pest

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ comment_normal = _{ comment_tag_start ~ (!comment_tag_end ~ ANY)* ~ comment_t
3434
comment_tag_start = _{ chevron_left_bang ~ "--" }
3535
comment_tag_end = _{ "--" ~ chevron_right_normal }
3636

37-
/// Compatability with old IE browsers... This is not necessary for newer browsers
37+
/// Compatibility with old IE browsers... This is not necessary for newer browsers
3838
comment_if = _{ comment_if_start ~ (!comment_if_end ~ ANY)* ~ comment_if_end }
3939
comment_if_start = _{ comment_tag_start ~ "[" ~ ^"if" }
4040
comment_if_end = _{ chevron_left_bang ~ "[" ~ ^"endif" ~ "]" ~ comment_tag_end }
4141

4242
/// ATTRIBUTES
4343
attr = { attr_key ~ (equal ~ (attr_non_quoted | attr_quoted))? }
4444
attr_quoted = { PUSH(quote) ~ attr_value ~ end_attr_quoted }
45-
end_attr_quoted = { POP }
45+
end_attr_quoted = { POP }
4646
attr_non_quoted = @{ !quote ~ (!(WHITESPACE | chevron_right) ~ ANY)* }
4747
attr_key = ${ !WHITESPACE ~ (":" | "@" | "#" | ".")? ~ ASCII_ALPHA ~ text_chars* }
4848
attr_value = ${ WHITESPACE* ~ (!PEEK ~ ANY)* ~ WHITESPACE* }
@@ -138,5 +138,5 @@ chevron_right = _{
138138
}
139139

140140
/// other
141-
equal = @{ "=" }
142-
quote = @{ "\"" | "'" }
141+
equal = @{ "=" }
142+
quote = @{ "\"" | "'" }

0 commit comments

Comments
 (0)