Skip to content

Commit 8288a4f

Browse files
committed
Fix help data for linux
1 parent 7a4707a commit 8288a4f

File tree

13 files changed

+2552
-2374
lines changed

13 files changed

+2552
-2374
lines changed

hsphelp_en/i_file.hs

Lines changed: 78 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
;
2-
; HSP help manager用 HELPソースファイル
3-
; (先頭が;の行はコメントとして処理されます)
2+
; HELP source file for HSP help manager
3+
; (Lines starting with ";" are treated as comments)
44
;
55

66
%type
7-
Built-in Command
7+
Built-in command
88
%ver
99
3.7
1010
%note
11-
ver3.7 Standard Command
11+
ver3.7 standard command
1212

1313
%date
1414
2022/04/07
@@ -23,13 +23,13 @@ Cli
2323

2424
%index
2525
bcopy
26-
Copy a File
26+
Copy file
2727
%group
2828
File Operation Commands
2929
%prm
3030
"filename1","filename2"
31-
"filename1" : Source File Name
32-
"filename2" : Destination File Name
31+
"filename1" : Source filename
32+
"filename2" : Destination filename
3333

3434
%inst
3535
Copies the file "filename1" to a file named "filename2".
@@ -43,17 +43,17 @@ bsave
4343

4444
%index
4545
chdir
46-
Change Directory
46+
Change directory
4747
%group
4848
File Operation Commands
4949
%prm
5050
"dirname"
51-
"dirname" : Destination Directory Name
51+
"dirname" : Destination directory name
5252

5353
%inst
54-
Moves to the directory with the name specified by "dirname".
55-
If the specified directory does not exist, or the format is incorrect, error 12 ("File not found or invalid name") will occur.
56-
The current directory can be referenced with the system variable dir_cur.
54+
Moves to the directory specified by "dirname".
55+
If the specified directory does not exist or the format is incorrect, error 12 ("File not found or invalid name") will occur.
56+
The current directory can be referenced by the system variable dir_cur.
5757
%href
5858
dir_cur
5959
%port+
@@ -63,44 +63,44 @@ Let
6363

6464
%index
6565
delete
66-
Delete a File
66+
Delete file
6767
%group
6868
File Operation Commands
6969
%prm
7070
"filename"
71-
"filename" : File Name to Delete
71+
"filename" : Filename to delete
7272

7373
%inst
7474
Deletes the file specified by "filename".
75-
If the specified file does not exist, or the format is incorrect, error 12 ("File not found or invalid name") will occur.
76-
Be sure to check for the existence of the file using the exist command before executing the delete command.
75+
If the specified file does not exist or the format is incorrect, error 12 ("File not found or invalid name") will occur.
76+
Be sure to check the existence of the file with the exist command before executing the delete command.
7777

7878

7979

8080
%index
8181
dirlist
82-
Get Directory List
82+
Get directory list
8383
%group
8484
File Operation Commands
8585
%prm
8686
p1,"filemask",p2
87-
p1=Variable : String variable to store the directory list
87+
p1=Variable : String variable to store the directory list
8888
"filemask" : File mask for the list
89-
p2=0(0) : Directory acquisition mode
89+
p2=0(0) : Directory acquisition mode
9090

9191
%inst
9292
Creates a list of files in the current directory and assigns it to a variable.
93-
"filemask" specifies the file mask to use for creating the list.
94-
The file mask is a parameter specified in a wildcard format, such as "*.*".
95-
For example, the file mask "*.as" creates a list of all files with the as extension. "*.*" will create a list of all files in the current directory.
96-
The directory list is assigned to the string variable specified by p1 as a string separated by line feeds (\n) for each file. This data is in a format that can be handled by the memory notepad command.
93+
"filemask" specifies the file mask for creating the list.
94+
The file mask is a parameter specified in a wildcard format such as "*.*".
95+
For example, the file mask "*.as" creates a list of all files with the as extension. To create a list of all files in the current directory, use "*.*".
96+
The directory list is assigned to the string variable specified by p1 as a string separated by line breaks (\n) for each file. This data is in a format that can be handled by the memnote command.
9797
^
98-
When the dirlist command is executed, the system variable stat is assigned the number of files for which the list was created.
98+
After the dirlist command is executed, the system variable stat is assigned the number of files for which a list was created.
9999
If there are no files, the system variable stat is assigned 0.
100-
By specifying the p2 mode, you can select the type of file to acquire. The details of the mode values are as follows.
100+
By specifying the p2 mode, you can select the type of file to be acquired. The details of the mode values are as follows.
101101
If the mode is omitted, it will be 0.
102102
^p
103-
Mode : Content Acquired
103+
Mode : Content to be acquired
104104
---------------------------------------------------------------------
105105
0 : All files
106106
1 : All files except directories
@@ -114,7 +114,7 @@ If the mode is omitted, it will be 0.
114114
%sample
115115
sdim a,64
116116
dirlist a,"*.*" ; Get the current directory
117-
mes a ; Display the contents
117+
mes a ; Display content
118118
stop
119119
%href
120120
dirlist2
@@ -124,15 +124,15 @@ dirlist2
124124

125125
%index
126126
exist
127-
Get File Size
127+
Get file size
128128
%group
129129
File Operation Commands
130130
%prm
131131
"filename"
132132
"filename" : Name of the file to check the size of
133133

134134
%inst
135-
Checks whether the file specified by "filename" exists and gets its file size. When the exist command is executed, the system variable strsize reflects the result.
135+
Checks whether the file specified by "filename" exists and gets its file size. After the exist command is executed, the result is reflected in the system variable strsize.
136136
^
137137
If the file exists, its file size is assigned to strsize.
138138
If the file does not exist, -1 is assigned to strsize.
@@ -144,48 +144,48 @@ Let
144144

145145
%index
146146
mkdir
147-
Create Directory
147+
Create directory
148148
%group
149149
File Operation Commands
150150
%prm
151151
"dirname"
152-
"dirname" : Directory Name to Create
152+
"dirname" : Name of the directory to create
153153

154154
%inst
155155
Creates a directory with the name specified by "dirname".
156156
Directories can only be created one level deep.
157157
If an error occurs during creation, error 12 ("File not found or invalid name") will occur.
158-
Be sure to check for the existence of the folder with the dirlist command before executing the mkdir command.
158+
Be sure to check the existence of the folder with the dirlist command before executing the mkdir command.
159159

160160

161161

162162

163163
%index
164164
bload
165-
Load File into Buffer
165+
Load file into buffer
166166
%group
167167
File Operation Commands
168168
%prm
169169
"filename",p1,p2,p3
170-
"filename" : File Name to Load
171-
p1=Variable : Variable Name
172-
p2=64(-1): Size to Load (in Bytes)
173-
p3=0(-1) : File Offset
170+
"filename" : Filename to load
171+
p1=Variable : Variable name
172+
p2=64(-1): Size to load (in bytes)
173+
p3=0(-1) : File offset
174174

175175
%inst
176176
Loads the contents of a file into a memory buffer.
177-
Normally used with memory buffers secured with the sdim command, but can also be used with variables of other types or array variables.
178-
If the buffer size p2 is omitted or a negative value is specified, the variable buffer size is automatically set.
177+
Normally, it is used for memory buffers allocated with the sdim command, but it can also be used for variables with other types or array variables.
178+
If you omit the buffer size of p2 or specify a negative value, the variable buffer size will be set automatically.
179179
^
180-
Also, after the bload command is executed, the system variable strsize reflects the size of the loaded data.
180+
Also, after the bload command is executed, the size of the loaded data is reflected in the system variable strsize.
181181
^
182-
Specifying a file offset value shifts the location of the operation by that value from the beginning of the file. For example, if you specify an offset value of 100 with the bload command, data is normally read into memory from the beginning of the file, but data is read into memory from the location 100 bytes past the beginning (skipping 100 bytes).
182+
If you specify a file offset value, the operation will be performed from a location shifted from the beginning of the file by that value. For example, if you specify an offset value of 100 in the bload command, data will normally be read into memory from the beginning of the file, but it will be read into memory from a location 100 bytes past the beginning (skipping 100 bytes).
183183
^
184-
This makes it possible to read only a part of a large file, or to process it in segments.
184+
This makes it possible to read only a portion of a large file, or to process it in segments.
185185
^
186-
It is recommended to use the dedicated noteload command to read text files.
186+
It is recommended to use the dedicated noteload command when reading text files.
187187
^
188-
Note that when reading a file encrypted with the #epack command using the bload command, you cannot specify the file offset value.
188+
Please note that if you read a file encrypted with the #epack command with the bload command, you cannot specify the file offset value.
189189

190190
%href
191191
noteload
@@ -199,28 +199,28 @@ Let
199199

200200
%index
201201
bsave
202-
Save Buffer to File
202+
Save buffer to file
203203
%group
204204
File Operation Commands
205205
%prm
206206
"filename",p1,p2,p3
207-
"filename" : File Name to Save
208-
p1=Variable : Variable Name
209-
p2=0(-1) : Size to Save (in Bytes)
210-
p3=0(-1) : File Offset
207+
"filename" : Filename to save
208+
p1=Variable : Variable name
209+
p2=0(-1) : Size to save (in bytes)
210+
p3=0(-1) : File offset
211211
%inst
212212
Writes the contents of a memory buffer to a file.
213-
Normally used with memory buffers secured with the sdim command, but can also be used with variables of other types or array variables.
214-
If the buffer size p2 is omitted or a negative value is specified, the variable buffer size is automatically set.
213+
Normally, it is used for memory buffers allocated with the sdim command, but it can also be used for variables with other types or array variables.
214+
If you omit the buffer size of p2 or specify a negative value, the variable buffer size will be set automatically.
215215
^
216-
Specifying a file offset value shifts the location of the operation by that value from the beginning of the file.
217-
By specifying an offset with the bsave command, you can save from a location past an arbitrary size from the beginning of the file.
216+
If you specify a file offset value, the operation will be performed from a location shifted from the beginning of the file by that value.
217+
If you specify an offset with the bsave command, you can save from a location past an arbitrary size from the beginning of the file.
218218
(In this case, the file contents before that offset will not change.
219219
Also, an error will occur if the file does not exist when the offset is specified.)
220220
^
221-
This makes it possible to update only a part of a large file, or to process it in segments.
221+
This makes it possible to update only a portion of a large file, or to process it in segments.
222222
^
223-
It is recommended to use the dedicated notesave command to save text files.
223+
It is recommended to use the dedicated notesave command when saving text files.
224224

225225
%href
226226
notesave
@@ -230,25 +230,25 @@ bload
230230

231231
%index
232232
memfile
233-
Memory Stream Setting
233+
Memory stream settings
234234
%group
235235
File Operation Commands
236236
%prm
237237
p1,p2,p3
238-
p1=Variable : Variable Name to be Streamed
239-
p2=0(0) : Buffer Offset
240-
p3=0(MAX) : Buffer Size
238+
p1=Variable : Variable name to be streamed
239+
p2=0(0) : Buffer offset
240+
p3=0(MAX) : Buffer size
241241
%inst
242-
Sets a variable that has a memory space to be treated as a substitute for a file (memory stream function).
243-
The variable specified by p1 will be the read source of the file specified by "MEM:filename" thereafter.
244-
p2 specifies the offset (start position when reading). If 0 is specified or omitted, it will be read from the beginning of the buffer.
242+
Sets a variable that has a memory space to be treated as a substitute for a file. (Memory stream function)
243+
The variable specified by p1 will be the read source of the file specified by "MEM:filename" from now on.
244+
p2 specifies the offset (starting position when reading). If 0 is specified or omitted, it will be read from the beginning of the buffer.
245245
p3 specifies the size to be read. If 0 is specified or omitted, the entire variable buffer will be targeted.
246-
It is possible to read image files by specifying the file image loaded in memory as "picload "MEM:a.jpg"".
247-
Note that when mmload command or something that judges the extension as a file type, it is necessary to specify a dummy file name (such as "MEM:a.wav").
246+
It is possible to load image files by specifying the file image loaded in memory as "picload "MEM:a.jpg"".
247+
Please note that if the extension is used as a file type to determine, such as with the mmload command, it is necessary to specify a dummy file name (such as "MEM:a.wav").
248248
^
249-
The memory stream function is intended to be used only in special situations such as preparing a unique format archive or encryption format and expanding the contents as an image.
250-
Note that the memory stream function is in principle not applied to file names passed to external DLLs or extension plugins.
251-
(Excluding extension plugins that support the memory stream function of HSP3)
249+
The memory stream function is intended to be used only in special situations, such as preparing a proprietary archive or encryption format and expanding the contents as an image by reading them.
250+
Please note that the memory stream function is in principle not applied to file names passed to external DLLs or extension plugins.
251+
(Excluding extension plugins that support the HSP3 memory stream function)
252252

253253
%href
254254
bload
@@ -260,27 +260,27 @@ Let
260260

261261
%index
262262
chdpm
263-
DPM File Setting
263+
DPM file settings
264264
%group
265265
File Operation Commands
266266
%prm
267267
"dpmname",p1,p2
268-
"dpmname" : DPM File Name
269-
p1(-1) : Encryption Key Specification
270-
p2(-1) : Slot Number (015)
268+
"dpmname" : DPM filename
269+
p1(-1) : Encryption key specification
270+
p2(-1) : Slot number (015)
271271

272272
%inst
273-
Sets the .dpm file (data file packed with multiple files) to be read.
274-
When the chdpm command is executed, the file specified by "dpmname" is treated as data packed in DPM format from then on.
273+
Sets the .dpm file (data file in which multiple files are packed) to be read.
274+
After the chdpm command is executed, the file specified by "dpmname" is treated as data packed in DPM format.
275275
If an error occurs while initializing the DPM file, error 12 ("File not found or invalid name") will occur.
276276
^
277-
The slot number is the number to which the DPM file is read. You can specify a value from 0 to 15. If you specify a negative value, a new slot number is automatically assigned.
278-
This makes it possible to refer to and target multiple DPM format files simultaneously.
277+
The slot number is the number of the location to which the DPM file is loaded. You can specify a value from 0 to 15. If you specify a negative value, a new slot number will be automatically assigned.
278+
This makes it possible to simultaneously refer to and load multiple DPM format files.
279279
Files embedded in the exe file have slot number 0.
280-
If you specify an empty string ("") for the DPM file name, the specified slot number is discarded from the read target.
280+
If you specify an empty string ("") for the DPM file name, the specified slot number will be discarded from the reading target.
281281
^
282-
By performing different encryption for each DPM file, it is possible to provide more robust file protection.
283-
For details, refer to the programming manual "File Packing and Encryption".
282+
It is also possible to perform more powerful file protection by performing different encryption for each DPM file.
283+
For details, please refer to the Programming Manual "File Packing and Encryption".
284284
%href
285285
#pack
286286
#epack

0 commit comments

Comments
 (0)