-
Notifications
You must be signed in to change notification settings - Fork 2
/
constants.py
220 lines (189 loc) · 4.65 KB
/
constants.py
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# -*- coding: utf-8 -*-
# Filer constant values and strings
# Copyright (C) 2019 Yukio Nozawa <[email protected]>
# Note: All comments except these top lines will be written in Japanese.
import win32file
import wx
APP_FULL_NAME = "Falcon test"
APP_NAME = "falcon"
APP_ICON = None
APP_VERSION = "0.0.1"
APP_LAST_RELEASE_DATE = "2022-01-01"
APP_COPYRIGHT_YEAR = "2019-2021"
APP_LICENSE = "Apache License 2.0"
APP_DEVELOPERS = "Yukio Nozawa, yamahubuki, ACT Laboratory"
APP_DEVELOPERS_URL = "https://actlab.org/"
APP_DETAILS_URL = "https://actlab.org/software/FALCON"
APP_COPYRIGHT_MESSAGE = "Copyright (c) %s %s All lights reserved." % (APP_COPYRIGHT_YEAR, APP_DEVELOPERS)
SUPPORTING_LANGUAGE = {"ja-JP": "日本語", "en-US": "English"} # 対応言語一覧
SETTING_FILE_NAME = "settings.ini"
LOG_PREFIX = "falcon"
LOG_FILE_NAME = "falcon.log"
KEYMAP_FILE_NAME = "keymap.ini"
HISTORY_FILE_NAME = "history.dat"
FONT_MIN_SIZE = 5
FONT_MAX_SIZE = 35
NOT_CHECKED = wx.CHK_UNCHECKED
HALF_CHECKED = wx.CHK_UNDETERMINED
FULL_CHECKED = wx.CHK_CHECKED
ARROW_UP = 0
ARROW_RIGHT = 1
ARROW_DOWN = 2
ARROW_LEFT = 3
# build関連定数
BASE_PACKAGE_URL = "https://github.com/actlaboratory/falcon/releases/download/0.0.1/falcon-0.0.1.zip"
PACKAGE_CONTAIN_ITEMS = ("xd2txlib.dll", "fx") # パッケージに含めたいファイルやfolderがあれば指定
NEED_HOOKS = () # pyinstallerのhookを追加したい場合は指定
STARTUP_FILE = "falcon.py" # 起動用ファイルを指定
UPDATER_URL = "https://github.com/actlaboratory/updater/releases/download/1.0.0/updater.zip"
# update情報
UPDATE_URL = "https://actlab.org/api/checkUpdate"
UPDATER_VERSION = "1.0.0"
UPDATER_WAKE_WORD = "hello"
# menuId
MENU_ID_FROM_FALCON = 5000
MENU_ID_SORT_COLUMN = 6000
# xdoc2txtでテキスト化できる形式
SUPPORTED_DOCUMENT_FORMATS = {
# document
'txt',
'pdf',
'rtf',
'tex',
# Microsoft Office
'docx',
'xlsx',
'pptx',
'doc',
'xls',
'ppt',
# datafile
'csv',
'tsv',
# data markup languages
'mht',
'htm',
'html',
'yaml',
'yml',
'md',
'rst',
'mediawiki',
'twig',
#email and adressbook
'vmg',
'vcf',
'eml',
# open Office document
'odt', # open document
'ods', # open document spreadSheet
'odp', # open document presentation
'odg', # open document graphick
# Ichitaro
'jaw',
'jtw',
'jbw',
'juw',
'jfw',
'jvw',
'jtd',
'jtt',
# others
'oas',
'oa2',
'oa3',
'bun',
'wj2',
'wj3',
'wk3',
'wk4',
'123',
'wri',
'sxw',
'sxc',
'sxi',
'sxd',
'po',
# programing languages
'c',
'h',
'cpp',
'cs',
'java',
'py',
'hsp',
'as',
'js',
'rb',
'cgi',
'php',
'sql',
'manifest',
"vbs",
#configuration and logs
'ini',
'conf',
'url',
'log',
'json',
"css",
"htaccess", # apache directory configuration
# shell script
'bat', # windows commandPrompt
"ps1", # windows PowerShell
"sh", # Shell Script
# git
'gitconfig',
'gitignore',
# JAWS for Windows configuration files
'jbd', # JAWS Braille Display
'jbs', # JAWS Braille Structure
'jcf', # JAWS Configuration File
'jsi', # JAWS Script Initialization
'jdf', # JAWS Dictionary File
'jgf', # JAWS Graphics File
'jfd', # JAWS Frame Definition
'jff', # JAWS Frame File
'jkm', # JAWS Key Map
'jsd', # JAWS Script Documentation
'jss', # JAWS Script Source
'hss', # Hidden Script Source
'jsh', # JAWS Script Header
'hsh', # Hidden Script Header
'jsm', # JAWS Script Message
'his', # History
'qs', # Quick Settings
'qsm', # quick Settings Message
'sbl', # Speech Symbols File
'chr', # Character Substitution
'vpf', # Voice Profile
'jbt', # JAWS Braille Table
'rul', # Research-It Rule
'qry', # Research-It Query
# 拡張子のないファイル
'readme',
'sconstruct',
'license',
}
# xdocに書けると意図しない結果になるが、テキストとして読めるもの
TEXT_READABLE_DOCUMENT_FORMATS = {
"xml"
}
SUPPORTED_AUDIO_FORMATS = {
'wav',
'mp3',
'ogg',
'wma',
'flac',
'aac',
'm4a',
'm4r',
'wmv',
'mpg',
"mp4",
"webm",
}
# browsableObjects.FOLDERで利用
DIR_SIZE_UNKNOWN = -1
DIR_SIZE_CALCURATING = -2
DIR_SIZE_CHECK_FAILED = -3