-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
173 lines (173 loc) ยท 4.68 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
{
"$schema": "https://www.raycast.com/schemas/extension.json",
"name": "screenocr",
"title": "ScreenOCR",
"description": "ScreenOCR allows you to quickly and easily extract text from screen captures via OCR, perfect for extracting text from any on-screen content. All processing is done locally on device.",
"icon": "command-icon.png",
"author": "huzef44",
"categories": [
"Productivity"
],
"license": "MIT",
"preferences": [
{
"required": true,
"name": "primaryLanguage",
"title": "Primary Language",
"description": "Primary language for text recognition",
"type": "dropdown",
"data": [
{
"title": "๐บ๐ธ English (US)",
"value": "en-US"
},
{
"title": "๐ซ๐ท French (France)",
"value": "fr-FR"
},
{
"title": "๐ฎ๐น Italian (Italy)",
"value": "it-IT"
},
{
"title": "๐ฉ๐ช German (Germany)",
"value": "de-DE"
},
{
"title": "๐ช๐ธ Spanish (Spain)",
"value": "es-ES"
},
{
"title": "๐ง๐ท Portuguese (Brazil)",
"value": "pt-BR"
},
{
"title": "๐จ๐ณ Chinese (Simplified)",
"value": "zh-Hans"
},
{
"title": "๐น๐ผ Chinese (Traditional)",
"value": "zh-Hant"
},
{
"title": "๐จ๐ณ Cantonese (Simplified)",
"value": "yue-Hans"
},
{
"title": "๐ญ๐ฐ Cantonese (Traditional)",
"value": "yue-Hant"
},
{
"title": "๐ฐ๐ท Korean (South Korea)",
"value": "ko-KR"
},
{
"title": "๐ฏ๐ต Japanese (Japan)",
"value": "ja-JP"
},
{
"title": "๐ท๐บ Russian (Russia)",
"value": "ru-RU"
},
{
"title": "๐บ๐ฆ Ukrainian (Ukraine)",
"value": "uk-UA"
},
{
"title": "๐น๐ญ Thai (Thailand)",
"value": "th-TH"
},
{
"title": "๐ป๐ณ Vietnamese (Vietnam)",
"value": "vi-VT"
}
]
},
{
"required": true,
"name": "ocrMode",
"title": "Recognition Level",
"description": "Affects performance and accuracy of the text recognition.",
"type": "dropdown",
"data": [
{
"title": "Accurate",
"value": "accurate"
},
{
"title": "Fast",
"value": "fast"
}
]
},
{
"required": true,
"name": "languageCorrection",
"title": "Language Correction",
"description": "Applies language correction during the recognition process. Disabling this property returns the raw recognition results, which provides performance benefits but less accurate results.",
"type": "checkbox",
"label": "Use Language Correction",
"default": true
},
{
"required": false,
"name": "ignoreLineBreaks",
"title": "Ignore Line Breaks",
"description": "Ignores Line Breaks",
"type": "checkbox",
"label": "Ignore Line Breaks",
"default": false
},
{
"required": false,
"name": "customWordsList",
"title": "Custom Words List",
"description": "You can improve text recognition by providing a list of words that are special to your text",
"type": "textfield",
"label": "Custom Words List"
}
],
"commands": [
{
"title": "Preferences",
"description": "Preferences Page for ScreenOCR",
"name": "preferences",
"mode": "view"
},
{
"name": "recognize-text",
"title": "Recognize Text",
"description": "Detect all text from the captured screen area.",
"mode": "no-view"
},
{
"name": "recognize-text-fullscreen",
"title": "Recognize Text Entire Screen",
"description": "Detect all text from the captured screen.",
"mode": "no-view"
}
],
"dependencies": {
"@raycast/api": "^1.49.3",
"@raycast/utils": "^1.5.2",
"execa": "^7.1.1",
"immer": "^10.0.2",
"use-immer": "^0.9.0"
},
"devDependencies": {
"@raycast/eslint-config": "1.0.5",
"@types/node": "18.8.3",
"@types/react": "18.0.9",
"eslint": "^7.32.0",
"prettier": "^2.5.1",
"typescript": "^5.0.4"
},
"scripts": {
"build": "ray build -e dist",
"build-swift": "swift build --configuration=release --arch arm64 --arch x86_64 && mv .build/apple/Products/Release/recognize-text assets",
"dev": "ray develop",
"fix-lint": "ray lint --fix",
"lint": "ray lint",
"publish": "npx @raycast/api@latest publish"
}
}