question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How is the {n,*} syntax processed by PRONOM?

See original GitHub issue

The document http://www.nationalarchives.gov.uk/aboutapps/fileformat/pdf/automatic_format_identification.pdf defines the syntax for binary PRONOM signatures.

In it, it says you can specify wildcard matches as follows:

{m-n}: wildcard matching between m-n bytes inclusive, where m and n are integers or ‘*’.

e.g.: 0x03 {1-2} 4D would match 0x03 3C 4D or 0x03 3C 88 4D. 

e.g.: 0x03 {2-*} 4D would match 0x03 3C 88 4D or 0x03 3C 88 3F 4D

Are there actually any signatures that support the second form using the * wildcard?

One way it could work, using the example given above, gives two SubSequences:

0x03 {2-*} 4D

becomes:

SubSequence 1: 0x03 ?? ??
SubSequence 2: 0x4D

I’ve added two ?? bytes - since we’re saying there has to be a minimum gap of two between the two SubSequences.

Is this how PRONOM processes such syntax? Is there an example of one in PRONOM currently?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nishihatapalmercommented, Sep 6, 2019

Awesome! I googled around bit didn’t find that.

On Fri, 6 Sep 2019, 18:16 Ross Spencer, notifications@github.com wrote:

PRONOM exports can all be found here https://zenodo.org/record/3269467#.XXKTpXUzY5k in their full and native XML @nishihatapalmer https://github.com/nishihatapalmer. I was researching your problem earlier and it was easy enough to search across files in a text editor for the results you need.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digital-preservation/droid/issues/274?email_source=notifications&email_token=ABBY4JB55FDQAQZPPY474ODQIKF6XA5CNFSM4IUI6Z22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6DPIZA#issuecomment-528938084, or mute the thread https://github.com/notifications/unsubscribe-auth/ABBY4JEYH6A2DB7NCLX6JL3QIKF6XANCNFSM4IUI6Z2Q .

0reactions
ross-spencercommented, Sep 6, 2019

PRONOM exports can all be found here in their full and native XML @nishihatapalmer. I was researching your problem earlier and it was easy enough to search across files in a text editor for the results you need.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The pragmatics and syntax of pronoun preposing | SpringerLink
We provide an analysis of the pragmatics and syntax of Swedish pronoun preposing based on a study of spontaneously produced spoken language ...
Read more >
Binding theory – The Science of Syntax - Pressbooks
In (10a), Marta c-commands sie, and they're co-indexed, so the pronoun is bound. The result is ungrammatical. In contrast, in (10b), the pronoun...
Read more >
NLPA-Syntax
Classify each word in the following sentences as either a noun (N), verb (V), adjective. (A), preposition (P), determiner (D), pronoun (PRN) or...
Read more >
The Role of Syntax During Pronoun Resolution - ACL Anthology
The current study examined the role of syntactic structure during pronoun resolu- tion. We correlated complexity measures.
Read more >
Putting pronoun resolution in context: The role of syntax ...
We argue that, while the former are processed as part of the same DU as the matrix clause, the latter are processed as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found