Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Bitmask [&xx] [!&xx] syntax post DROID 5.x #9

Open
ross-spencer opened this issue Nov 6, 2017 · 6 comments
Open

Implement Bitmask [&xx] [!&xx] syntax post DROID 5.x #9

ross-spencer opened this issue Nov 6, 2017 · 6 comments

Comments

@ross-spencer
Copy link
Member

See: openpreserve/fido#117

This will work for identifying HFS if we want to try it out:

 BOF Offset 1024: 4244{12}0003{6}[!&01]00
@ross-spencer
Copy link
Member Author

Notes:

Documented a little bit here: https://groups.google.com/forum/#!msg/droid-list/v4CHVddELaM/IhmBcN0Vk_oJ

Not implemented in standard skeleton suite (problematic for testing (need to mock a PRONOM xml to implement and test (HFS is a good candiate)): https://github.com/exponential-decay/skeleton-test-suite-generator

Implemented in container skeleton suite (should be some copy and paste code here we can use): exponential-decay/skeleton-container-test-suite-generator#1

@ross-spencer
Copy link
Member Author

@Dclipsham how does the PRONOM stored procedure deal with the bitmask signatures - have we used them outside of the container signature file yet?

@Dclipsham
Copy link

Hi Ross,
To my knowledge we haven't previously, but I've tried it in DevTest and it handled it happily. Output from sig file is as follows:
<InternalSignature ID="1509" Specificity="Specific"> <ByteSequence Reference="BOFoffset"> <SubSequence MinFragLength="0" Position="1" SubSeqMaxOffset="1024" SubSeqMinOffset="1024"> <Sequence>4244</Sequence> <DefaultShift>3</DefaultShift> <Shift Byte="42">2</Shift> <Shift Byte="44">1</Shift> <RightFragment MaxOffset="12" MinOffset="12" Position="1">0003</RightFragment> <RightFragment MaxOffset="6" MinOffset="6" Position="2">[!&amp;01]00</RightFragment> </SubSequence> </ByteSequence> </InternalSignature>

<FileFormat ID="1936" Name="HFS Test" PUID="fmt/1105"> <InternalSignatureID>1509</InternalSignatureID> <Extension>img</Extension> </FileFormat>

This identifies the HFS files available on the OPF Corpus. Is this enough information or do you need something further from the routine itself?

David

@ross-spencer
Copy link
Member Author

ross-spencer commented Nov 7, 2017 via email

@richardlehane
Copy link

@Dclipsham if bitmasked signatures enter the PRONOM canon would be great if at some point Technical Paper 1 could be updated to reflect. That document was a great resource for me & I'm sure for others - is really nice to have an exhaustive reference doc rather than rely on reverse engineering/ trial and error (though there is always going to be a bit of that too!)

@ross-spencer
Copy link
Member Author

ross-spencer commented Nov 7, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants