File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 40
40
--[[
41
41
% extract_enigmaxml
42
42
43
- EnigmaXML is the underlying file format of a Finale `.musx` file. It is undocumented
44
- by MakeMusic and must be extracted from the `.musx` file. There is an effort to document
45
- it underway at the [EnigmaXML Documentation](https://github.com/finale-lua/ziputils-documentation)
46
- repository.
47
-
48
43
This function extracts the EnigmaXML buffer from a `.musx` file. Note that it does not work with Finale's
49
44
older `.mus` format.
50
45
51
46
@ filepath (string) utf8-encoded file path to a `.musx` file.
52
- : (string) utf8-encoded buffer of xml data containing the EnigmaXml extracted from the `.musx`.
47
+ : (string) buffer of EnigmaXml data extracted from the `.musx`. (The xml declaration specifies the encoding, but expect it to be utf8.)
53
48
]]
54
49
function enigmaxml .extract_enigmaxml (filepath )
55
50
local not_supported_message
@@ -67,7 +62,7 @@ function enigmaxml.extract_enigmaxml(filepath)
67
62
end
68
63
69
64
-- Steps to extract:
70
- -- Unzip the `.musx` (which is `.zip` in disguise)
65
+ -- Unzip the `.musx` (which is a `.zip` archive in disguise)
71
66
-- Run the `score.dat` file through `crypt_enigmaxml_buffer` to get a gzip archive of the EnigmaXML file.
72
67
-- Gunzip the extracted EnigmaXML gzip archive into a string and return it.
73
68
You can’t perform that action at this time.
0 commit comments