Commit graph

50 commits

Author SHA1 Message Date
horsicq
6a09071199 Update file(s): 2025-04-01 2025-04-01 02:43:09 +02:00
Kaens
386a8c4187 *db/read *db/chunkparsers
read:
 - ATASCII and a couple of its options added (gods I should stop it with the hacking in of things)
 - the more narrow side trianglies I used to be using for some reason are now proper side trianglies. I hate that Github is showing some of these characters on blue square background, they've been around since long before unicode existed...

chunkparsers:
 - Atari binary detection can now start from a user-specified offset. Obvious stuff...
2025-03-31 19:04:07 +02:00
Kaens
02ba4c0e70 *db/read +db/chunkparsers
db/read:
 - since File.readBytes is temporarily down, there's now a replacement for it in there;
 - all affected files also modified

db/chunkparsers:
 - I'm now collecting the chunked file structure parsers into this one cute file. They're supposed to quickly go through some common blocks, gathering the types, data offsets, data sizes (or whatever else would be necessary otherwise) and guessing the correct expected file size and reporting it too
2025-03-28 15:19:54 +01:00
horsicq
7dfe3c4ee8 Update file(s): 2025-03-28 2025-03-28 02:58:59 +01:00
Kaens
4867084208 weeding out readBytes
db/read:
 - readBytes sunset because the system function now exists

archives.ancient.sg, rom.1.sg, audio.DSS.1.sg, databases.1.sg, bin.PalmFile.1.sg:
 - using the system readBytes now
 - modernised the detect/result func syntax
 - js beautify off
2025-03-03 14:53:18 +01:00
horsicq
3d634f6a94 Update file(s): 2025-01-06 2025-01-06 06:42:05 +01:00
horsicq
1cb6aba570 Update file(s): 2024-12-07 2024-12-07 10:52:01 +01:00
Kaens
2c3cf3af98 archive.DEFLATE.1, image.TGA.1, rom.1, db/read
- deflate: archive finder off the first 40h bytes somewhat optimised for speed, file is now in shorthand script and uses tabs
 - TGA: tightened by max width/height
 - rom: TAP added. MGT cosmetics
 - read: charStat fixed to catch eXtaSCii and foreign better
2024-11-22 12:40:42 +01:00
horsicq
ff008898fa Update file(s): 2024-11-16 2024-11-16 01:37:13 +01:00
Kaens
7f0444f052 db/read bugfixes
firstNotOf and _logHex fixed
2024-10-25 19:17:26 +02:00
Kaens
e8add91f9a +PalmFile; db/read: +firstNotOf *outArray *addEllipsis
- PalmFile added, detecting PRC and PDB as best it can given the flimsy nature thereof

db/read:
 - firstNotOf: added as a much more general case of isAllZeroes (hi C++)
 - outArray: now tags strings
 - addEllipsis: l∞p fixed (omg)
 - cosmetics
2024-10-22 13:40:35 +02:00
Kaens
f21a5d1cf1 beautify-js awareness++
Some heavy scripts were tentatively equipped with anti-beautify-js tags, let's see if this works
2024-10-08 10:43:02 +02:00
Kaens
8423b925fd db/read modified
- BitReader moved from <<>> to Util.shl/ru64, fixing the signedness glitches and hopefully increasing speed
 - added the versatile outArray, a prettier Array log output
 - added the niche-helpful findGaps and findExtensions too
 - added some _log* functions for ease of debugging and freedom of choice
 - many cosmetic changes
2024-09-28 04:49:21 +02:00
horsicq
daedee257e Update file(s): 2024-09-17 2024-09-17 00:15:40 +02:00
Kaens
99a6e5d25a *DBF *db/read
databases.1.sg:
 - DBF vastly improved, truncation possible (or should I say ripper-ready?)
db/read:
 - CP866, KOI8-R Speccy encodings added
 - functions secondsToTimeStr, charStat, toBase64 and _logBase64 added (read the file for docs)
 - a makeshift "patching" ~engine~ added until it's native
2024-09-06 19:08:00 +02:00
Kaens
ad8ad2504e
read.: *addEllipsis
- a tiny post-adjustment ^^;
2024-07-31 12:08:38 +02:00
Kaens
244604fb89
read.: *addEllipsis
- addEllipsis now has a default trim value of 80h if none provided; a potential infinite loop fixed
2024-07-31 12:06:09 +02:00
Kaens
0b9068f8d6
read: *decAnsi
read:
 - decAnsi now also accepts the 0~1F chartable parameter
2024-05-03 19:01:15 +02:00
Kaens
700aa0aa0a
db/read: *decEncoding *Chars0to??
db/read:
 - renamed Chars0to32* to Chars0to1F* for reasons obvious in hindsight
2024-04-28 13:04:58 +02:00
Kaens
098f8294cd
db/read: *decEncoding
db/read:
 - decEncoding now accepts the optional parameter that lets you choose how to treat the first 0~32 characters; currently there are tables implemented that leave either LF or CR & LF as-is, or turn either one into its character representation.
 - accidental trailing spaces removed
2024-04-28 12:48:00 +02:00
Kaens
5fdf223192
Update read
Critical fix, a mis-paste of the whole file
2024-04-25 08:39:03 +02:00
Jason Hood
2dbef90ba2 Remove trailing whitespace 2024-04-25 11:04:31 +10:00
Kaens
fe63e3f6f6
db/read *readBytes
db/read:
 - readBytes now features an optional parameter "zspace" for a special case of those 1-byte-encoding strings where zeroes may be a visible part of the string: if zspace = true, all 0 become 0x20 in the read data.
2024-04-24 23:16:26 +02:00
Jason Hood
9f979df178 Remove trailing whitespace 2024-04-24 11:58:00 +10:00
Kaens
a6a022054f
db/read: *Option *OptionT *decAnsi *decEncoding
db/read:
 - added some exotic retro charsets (Amiga, RISC OS, Atari ST) for use with decAnsi/decEncoding;
 - Option and OptionT commands now have a way to add the suffix too (just put "" as a prefix if you don't want one but a suffix is needed);
 - decAnsi/decEncoding now make the pre-space and 0x7F characters visible, whilst making sure it doesn't interfere in the way JIS7X0201 or KOI7-R (should that ever be added in this regressive manner) control characters still work.
2024-04-09 17:13:01 +02:00
Kaens
9d1c3b0beb
read: +outSz
outSz function added to facilitate and make uniform the output of calculated file size(s), visually comparing that to the actual file size if not equal in a concise manner. Use regex to find it in the logs :)
2024-04-08 17:38:59 +02:00
DosX
b0424be7b8 Some fixes 2024-04-07 22:52:29 +03:00
horsicq
a0ebd9e076 Update file(s): 2024-03-29 2024-03-29 18:45:55 +01:00
horsicq
598ce25de0 Update file(s): 2024-03-14 2024-03-14 00:34:28 +01:00
horsicq
8a7fbecfe1 Update file(s): 2024-02-29 2024-02-29 11:42:13 +01:00
horsicq
db5d97ae2a Update file(s): 2024-02-16 2024-02-16 17:39:41 +01:00
horsicq
bdb1e2748e Update file(s): 2024-02-12 2024-02-12 18:20:58 +01:00
horsicq
aa9a59f829 Update file(s): 2024-02-10 2024-02-10 13:39:11 +01:00
horsicq
62ecb8d849 Update file(s): 2024-02-08 2024-02-08 17:22:05 +01:00
horsicq
abb883e82a Update file(s): 2024-01-30 2024-01-30 18:41:21 +01:00
horsicq
39c321eeb2 Update file(s): 2024-01-27 2024-01-27 18:02:10 +01:00
horsicq
88da46dfa5 Update file(s): 2024-01-27 2024-01-27 10:31:06 +01:00
horsicq
7eb7c92293 Update file(s): 2024-01-19 2024-01-19 01:35:48 +01:00
horsicq
d58394507e Update file(s): 2023-12-27 2023-12-27 17:48:59 +01:00
horsicq
63dee17ada Update file(s): 2023-10-17 2023-10-17 18:24:59 +02:00
horsicq
494a5e6b98 Fix: 2023-01-03 2023-01-03 09:11:02 +01:00
horsicq
7509399cce Fix: 2022-07-25 2022-07-25 18:43:19 +02:00
horsicq
4293b94d21 Fix: 2022-07-20 2022-07-20 19:04:26 +02:00
horsicq
30c32551e5 Fix: 2022-07-19 2022-07-19 18:53:02 +02:00
horsicq
c140e3e3fe Fix 2020-09-07 00:40:53 +02:00
Jason Hood
3ba7bc2fab Stick with LF 2019-04-23 11:00:25 +10:00
Jason Hood
73def553ee Updated documentation. 2014-06-30 18:24:47 +10:00
horsicq
d58b97231f \r->\r\n 2014-06-02 09:02:47 +02:00
horsicq
05bf984aa0 \n ->\r\n 2014-06-02 08:51:37 +02:00
horsicq
e80fb7aca2 First commit 2014-06-01 23:42:39 +02:00