Skip to content

Commit 21f1968

Browse files
chore(release): 1.1.1 [skip ci]
## [1.1.1](v1.1.0...v1.1.1) (2022-09-20) ### Bug Fixes * no spelling errors no longer falsely displays ([466b057](466b057)) * spellcheck results now have proper spacing ([3507597](3507597))
1 parent 9fcb655 commit 21f1968

File tree

7 files changed

+206
-13
lines changed

7 files changed

+206
-13
lines changed
Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,34 @@
1-
Replaced when project is built from commit logs via Semantic Release.
1+
# [1.1.0](https://github.com/ashblue/unity-simple-spellcheck/compare/v1.0.1...v1.1.0) (2020-04-15)
2+
3+
4+
### Features
5+
6+
* **dictionary:** added words can now be modified ([dcab2bb](https://github.com/ashblue/unity-simple-spellcheck/commit/dcab2bb3228181ae4338b837b8199c0457cbd26b))
7+
* **dictionary:** capital letters now respected properly ([3b83007](https://github.com/ashblue/unity-simple-spellcheck/commit/3b83007a795e03bd7a2ad2a29effc2d12c2700d2))
8+
* **spell check:** xml tags no longer break spell check ([2e6ed64](https://github.com/ashblue/unity-simple-spellcheck/commit/2e6ed64d81eb2aae7264bbdcbcf2c48448ed08f6))
9+
10+
## [1.0.1](https://github.com/ashblue/unity-simple-spellcheck/compare/v1.0.0...v1.0.1) (2020-02-15)
11+
12+
13+
### Bug Fixes
14+
15+
* npm converted dictionary no longer crashes ([53c68d1](https://github.com/ashblue/unity-simple-spellcheck/commit/53c68d1517e27a85d8146bab182118879155d7f7))
16+
17+
# 1.0.0 (2020-02-15)
18+
19+
20+
### Bug Fixes
21+
22+
* **dictionary:** forced lowercase for all dictionary values ([20aca73](https://github.com/ashblue/unity-simple-spellcheck/commit/20aca73a471f078d24774f5ee80770c0f1896d24))
23+
* **settings:** no longer crashes when attempting creation ([f26cc01](https://github.com/ashblue/unity-simple-spellcheck/commit/f26cc015d751230725ef1b58d34cd432ba6ebf0b))
24+
* line breaks no longer crash spell check area ([be85df0](https://github.com/ashblue/unity-simple-spellcheck/commit/be85df067c7fd294bde549e59452864b8c8697a3))
25+
26+
27+
### Features
28+
29+
* new log window that prints all evaluated nodes ([011653e](https://github.com/ashblue/unity-simple-spellcheck/commit/011653eb493609eb4ef1b389d8dbe70f6a3af132))
30+
* new text area spell check drawer ([74032e0](https://github.com/ashblue/unity-simple-spellcheck/commit/74032e0326ec181fbf4c453d4a9a44759e1ed35d))
31+
* **settings:** auto created if it doesn't exist ([3fc5c6b](https://github.com/ashblue/unity-simple-spellcheck/commit/3fc5c6b5c00897931ee86b95094eed7df627ef74))
32+
* users can now added extra words to the dictionary ([bbaa2e7](https://github.com/ashblue/unity-simple-spellcheck/commit/bbaa2e7dfa2603cf760ec45621b86b30f1ce73a8))
33+
* word error check now prints to an editor window ([e3432c4](https://github.com/ashblue/unity-simple-spellcheck/commit/e3432c46bc76addffc7258d33e34b6530a30d643))
34+
* **spelling:** internal spell check API to apply a dictionary of words ([f82f57a](https://github.com/ashblue/unity-simple-spellcheck/commit/f82f57af283dae9fa7d018200337a42fe1c18073))
Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1-
Edit LICENSE.md in root, contents will be replaced.
1+
MIT License
2+
3+
Copyright (c) 2020 Ash Blue
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 113 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,113 @@
1-
Edit README.md in root, contents will be replaced.
1+
# Unity Simple Spell Check
2+
3+
Unity simple spell check provides a fast and easy way to evaluate text in your game for basic spelling errors. It uses a [local dictionary](https://github.com/dwyl/english-words) and allows for advanced configuration.
4+
5+
## Features
6+
7+
### Usage with text area attributes
8+
9+
![Simple Usage](images/simple-usage.png)
10+
11+
This will create a simple spell check button that evaluates a custom text area. If you need some basic spell checking for items or large blocks of text this should help.
12+
13+
```c#
14+
public class ExampleDialogue : ScriptableObject {
15+
[TextAreaSpellCheck]
16+
public string text;
17+
}
18+
```
19+
20+
### Usage with advanced project logging
21+
22+
![Advanced Usage](images/advanced-usage.png)
23+
24+
You can log text from anywhere in your game with this pattern. You'll need to do this if you have large amounts of dialogue and you want to evaluate it all at once.
25+
26+
```c#
27+
public class SpellCheckAllDialogue {
28+
[MenuItem("Spell Check/All Dialogue")]
29+
public static void CheckAllDialogue () {
30+
var logList = new List<LogEntry>();
31+
32+
var guids = AssetDatabase.FindAssets($"t:{typeof(ExampleDialogue).Name}");
33+
foreach (var guid in guids) {
34+
var path = AssetDatabase.GUIDToAssetPath(guid);
35+
var asset = AssetDatabase.LoadAssetAtPath<ExampleDialogue>(path);
36+
37+
if (!SpellCheck.Instance.IsInvalid(asset.Title) && !SpellCheck.Instance.IsInvalid(asset.Text)) continue;
38+
39+
var log = new LogEntry($"{asset.Title} {asset.Text}", () => {
40+
SpellCheck.Instance.ClearValidation();
41+
SpellCheck.Instance.AddValidation("Title", asset.Title);
42+
SpellCheck.Instance.AddValidation("Text", asset.Text);
43+
Selection.activeObject = asset;
44+
});
45+
46+
logList.Add(log);
47+
}
48+
49+
SpellCheck.Instance.ShowLogs("All Example Dialogue Errors", logList);
50+
}
51+
}
52+
```
53+
54+
## Installation
55+
56+
Unity Simple Spellcheck is used through [Unity's Package Manager](https://docs.unity3d.com/Manual/CustomPackages.html). In order to use it you'll need to add the following lines to your `Packages/manifest.json` file. After that you'll be able to visually control what specific version of Unity Simple Spellcheck you're using from the package manager window in Unity. This has to be done so your Unity editor can connect to NPM's package registry.
57+
58+
```json
59+
{
60+
"scopedRegistries": [
61+
{
62+
"name": "NPM",
63+
"url": "https://registry.npmjs.org",
64+
"scopes": [
65+
"com.fluid"
66+
]
67+
}
68+
],
69+
"dependencies": {
70+
"com.fluid.simple-spellcheck": "1.0.0"
71+
}
72+
}
73+
```
74+
75+
## Releases
76+
77+
Archives of specific versions and release notes are available on the [releases page](https://github.com/ashblue/unity-simple-spellcheck/releases).
78+
79+
## Nightly Builds
80+
81+
To access nightly builds of the `develop` branch that are package manager friendly, you'll need to manually edit your `Packages/manifest.json` as so.
82+
83+
```json
84+
{
85+
"dependencies": {
86+
"com.fluid.simple-spellcheck": "https://github.com/ashblue/unity-simple-spellcheck.git#nightly"
87+
}
88+
}
89+
```
90+
91+
Note that to get a newer nightly build you must delete this line and any related lock data in the manifest, let Unity rebuild, then add it back. As Unity locks the commit hash for Git urls as packages.
92+
93+
## Development Environment
94+
95+
If you wish to run to run the development environment you'll need to install the latest [node.js](https://nodejs.org/en/). Then run the following from the root once.
96+
97+
`npm install`
98+
99+
If you wish to create a build run `npm run build` from the root and it will populate the `dist` folder.
100+
101+
### Making Commits
102+
103+
All commits should be made using [Commitizen](https://github.com/commitizen/cz-cli) (which is automatically installed when running `npm install`). Commits are automatically compiled to version numbers on release so this is very important. PRs that don't have Commitizen based commits will be rejected.
104+
105+
To make a commit type the following into a terminal from the root
106+
107+
```bash
108+
npm run commit
109+
```
110+
111+
---
112+
113+
This project was generated with [Oyster Package Generator](https://github.com/ashblue/oyster-package-generator).
Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,27 @@
11
{
22
"name": "com.fluid.simple-spellcheck",
3-
"version": "0.0.0",
3+
"version": "1.1.1",
44
"displayName": "Unity Simple Spellcheck",
55
"description": "A simple spell check utility for use in the Unity Editor",
6-
"unity": ""
6+
"unity": "",
7+
"repository": {
8+
"type": "git",
9+
"url": "git+https://github.com/ashblue/unity-simple-spellcheck.git"
10+
},
11+
"license": "MIT",
12+
"bugs": {
13+
"url": "https://github.com/ashblue/unity-simple-spellcheck/issues"
14+
},
15+
"homepage": "https://github.com/ashblue/unity-simple-spellcheck#readme",
16+
"keywords": [
17+
"spelling",
18+
"spell check",
19+
"unity editor",
20+
"unity textarea"
21+
],
22+
"author": {
23+
"name": "Ash Blue",
24+
"email": "ash@clevercrowgames.com",
25+
"url": "https://twitter.com/ashbluewd"
26+
}
727
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## [1.1.1](https://github.com/ashblue/unity-simple-spellcheck/compare/v1.1.0...v1.1.1) (2022-09-20)
2+
3+
4+
### Bug Fixes
5+
6+
* no spelling errors no longer falsely displays ([466b057](https://github.com/ashblue/unity-simple-spellcheck/commit/466b057adaf09828c052ff970bc1624023035edc))
7+
* spellcheck results now have proper spacing ([3507597](https://github.com/ashblue/unity-simple-spellcheck/commit/35075976104b2989113b0747ba47992e76cf83f2))
8+
19
# [1.1.0](https://github.com/ashblue/unity-simple-spellcheck/compare/v1.0.1...v1.1.0) (2020-04-15)
210

311

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.fluid.simple-spellcheck",
3-
"version": "0.0.0",
3+
"version": "1.1.1",
44
"unity": "",
55
"displayName": "Unity Simple Spellcheck",
66
"description": "A simple spell check utility for use in the Unity Editor",
@@ -11,11 +11,11 @@
1111
"commit": "git-cz"
1212
},
1313
"keywords": [
14-
"spelling",
15-
"spell check",
16-
"unity editor",
17-
"unity textarea"
18-
],
14+
"spelling",
15+
"spell check",
16+
"unity editor",
17+
"unity textarea"
18+
],
1919
"husky": {
2020
"hooks": {
2121
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"

0 commit comments

Comments
 (0)