Skip to content

Commit 543a90d

Browse files
authored
feat!: Update Persian Dictionary to V2 (#376)
* Update Persian Dictionary to V2
1 parent 745dc28 commit 543a90d

11 files changed

+758
-320
lines changed

extensions/persian/.vscode/launch.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"type": "extensionHost",
88
"request": "launch",
99
"runtimeExecutable": "${execPath}",
10-
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "${workspaceRoot}/samples"],
1111
"stopOnEntry": false,
1212
"sourceMaps": true,
1313
"outFiles": ["${workspaceRoot}/out/src/**/*.js"],

extensions/persian/.vscode/tasks.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"version": "2.0.0",
55
"tasks": [
66
{
7-
"identifier": "build",
8-
"label": "build",
7+
"label": "npm: build",
98
"type": "npm",
109
"script": "build",
1110
"group": {
@@ -15,13 +14,13 @@
1514
"problemMatcher": "$tsc"
1615
},
1716
{
18-
"identifier": "clean-build",
17+
"label": "npm: clean-build",
1918
"type": "npm",
20-
"script": "build",
19+
"script": "clean-build",
2120
"problemMatcher": "$tsc"
2221
},
2322
{
24-
"identifier": "test",
23+
"label": "npm: test",
2524
"type": "npm",
2625
"script": "test",
2726
"group": {
@@ -30,7 +29,7 @@
3029
}
3130
},
3231
{
33-
"identifier": "watch",
32+
"label": "npm: watch",
3433
"type": "npm",
3534
"script": "watch",
3635
"problemMatcher": ["$tsc-watch"]

extensions/persian/.vscodeignore

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
.vscode/**
1+
.gitignore
22
.vscode-test/**
3+
.vscode/**
4+
**/*.d.ts
5+
**/*.map
6+
**/*.test.*
37
out/test/**
4-
test/**
8+
samples/**
59
src/**
6-
**/*.map
7-
.gitignore
10+
test/**
811
tsconfig.json
912
vsc-extension-quickstart.md

extensions/persian/LICENSE

+691-21
Large diffs are not rendered by default.

extensions/persian/cspell-ext.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"import": ["@cspell/dict-fa-ir/cspell-ext.json"]
3+
}

extensions/persian/package-lock.json

+6-250
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/persian/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"preview": false,
88
"private": true,
99
"publisher": "streetsidesoftware",
10+
"license": "GPL-3.0-or-later",
1011
"engines": {
1112
"vscode": "^1.67.0"
1213
},
@@ -35,19 +36,19 @@
3536
"contributes": {
3637
"commands": [
3738
{
38-
"command": "cSpellExt_persian.enablePersian",
39+
"command": "cSpellExt_persian.enable",
3940
"title": "Enable Persian Spell Checker Dictionary"
4041
},
4142
{
42-
"command": "cSpellExt_persian.disablePersian",
43+
"command": "cSpellExt_persian.disable",
4344
"title": "Disable Persian Spell Checker Dictionary"
4445
},
4546
{
46-
"command": "cSpellExt_persian.enablePersianWorkspace",
47+
"command": "cSpellExt_persian.enableWorkspace",
4748
"title": "Enable Persian Spell Checker Dictionary in Workspace"
4849
},
4950
{
50-
"command": "cSpellExt_persian.disablePersianWorkspace",
51+
"command": "cSpellExt_persian.disableWorkspace",
5152
"title": "Disable Persian Spell Checker Dictionary in Workspace"
5253
}
5354
]
@@ -62,7 +63,6 @@
6263
"bugs": {
6364
"url": "https://github.com/streetsidesoftware/vscode-cspell-dict-extensions/issues"
6465
},
65-
"license": "MIT",
6666
"scripts": {
6767
"clean": "rimraf out",
6868
"clean-build": "npm run clean && npm run build",
@@ -74,6 +74,6 @@
7474
"test": "node ../../node_modules/vscode/bin/test"
7575
},
7676
"dependencies": {
77-
"cspell-dict-fa-ir": "^1.1.1"
77+
"@cspell/dict-fa-ir": "^2.0.0"
7878
}
7979
}
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"language": "fa"
3+
}

extensions/persian/samples/seattle.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Seattle
2+
3+
[سیاتل - ویکی‌پدیا، دانشنامهٔ آزاد](https://fa.wikipedia.org/wiki/%D8%B3%DB%8C%D8%A7%D8%AA%D9%84)
4+
5+
سیاتل (انگلیسی: Seattle) یک شهر ساحلی در شمال غربی ایالات متحده آمریکا است. سیاتل در شهرستان کینگ ایالت واشینگتن قرار دارد. این شهر با جمعیت ۷۳۷۰۱۵ نفر در سال ۲۰۲۰، بزرگترین شهر در ایالت واشینگتن و منطقه شمال غربی اقیانوس آرام در آمریکای شمالی است. جمعیت منطقه شهری سیاتل ۴٫۰۲ میلیون نفر است که پانزدهمین منطقه بزرگ در ایالات متحده است. نرخ رشد جمعیتی ۲۱٫۱ درصدی آن بین سال‌های ۲۰۱۰ تا ۲۰۲۰، آن را به یکی از پرشتاب‌ترین شهرهای بزرگ آمریکا تبدیل کرده‌است. سیاتل یک باریکه خاکی است که بین دریاراه پیوجت ساند (یک ورودی اقیانوس آرام) و دریاچه واشینگتن واقع شده‌است. این شمالی‌ترین شهر بزرگ ایالات متحده است که در حدود ۱۶۰ کیلومتری جنوب مرز کانادا قرار دارد. سیاتل یک دروازه بزرگ برای تجارت با شرق آسیا، چهارمین بندر بزرگ در آمریکای شمالی از نظر جابجایی کانتینر از سال ۲۰۲۱ است. منطقه سیاتل برای حداقل ۴۰۰۰ سال قبل از اولین ورود مهاجران دائمی اروپایی، توسط بومیان آمریکا به عنوان محل زندگی انتخاب شده بود. آرتور ای. دنی و گروه مسافرانش که متعاقباً به عنوان حزب دنی شناخته می‌شوند، از ایلینوی از طریق پورتلند وارد این منطقه شدند. این شهرک به ساحل شرقی خلیج الیوت منتقل شد و در سال ۱۸۵۲ به افتخار رئیس سیاحل قبایل محلی دوامیش و سوکوامیش، «سیاتل» نامگذاری شد. امروزه، سیاتل دارای جمعیت بالایی از بومیان، اسکاندیناوی‌ها، آسیایی-آمریکایی‌ها و آفریقایی-آمریکایی‌ها، و همچنین جامعه دگرباشان جنسی پر رونق است که از نظر جمعیت در رتبه ششم ایالات متحده قرار دارد.

0 commit comments

Comments
 (0)