From: Lady Date: Mon, 30 Mar 2026 01:56:10 +0000 (-0400) Subject: Add a parser for Pipe‐Separated Jar format X-Git-Tag: 1.1.1^0 X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/refs/heads/current?ds=inline;hp=81d875684e479f12e18a806692ce39cfdd6f216a Add a parser for Pipe‐Separated Jar format This is a bespoke format which is basically a T·S·V that can be broken across multiple lines for readability. --- diff --git a/README.markdown b/README.markdown index 658866e..994df1f 100644 --- a/README.markdown +++ b/README.markdown @@ -491,6 +491,10 @@ Parsers are used to convert plaintext files into X·M·L trees, as well - **`parsers/plain.xslt`:** Wraps `text/plain` contents in a `` element. +- **`parsers/psj.xslt`:** + Converts `text/pipe-separated-jar` contents into an `` + element. + - **`parsers/record-jar.xslt`:** Converts `text/record-jar` contents into a `` of `` elements (one for each record). diff --git a/magic/psj b/magic/psj new file mode 100644 index 0000000..373fe06 --- /dev/null +++ b/magic/psj @@ -0,0 +1,13 @@ +# SPDX-FileCopyrightText: 2024, 2026 Lady +# SPDX-License-Identifier: CC0-1.0 + +0 string %?psj PSJ text +!:mime text/pipe-separated-jar +!:strength + 100 + +0 byte 0xEF +>1 byte 0xBB +>>2 byte 0xBF +>>>3 string %?psj PSJ text +!:mime text/pipe-separated-jar +!:strength + 170 diff --git a/parsers/psj.xslt b/parsers/psj.xslt new file mode 100644 index 0000000..36f8347 --- /dev/null +++ b/parsers/psj.xslt @@ -0,0 +1,268 @@ + + + + +]> + + + + <书社:id>urn:fdc:ladys.computer:20231231:Shu1She4:psj.xslt + + +