quirematrix

An easy to use, dependency-less software to visualize in the browser the layout of quires, using a very intuitive notation system

https://github.com/paths-erc/quirematrix

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.6%) to scientific vocabulary

Keywords

archaeological-science archaeology codicology coptic-studies digital-humanities egypt egyptology manuscripts
Last synced: 6 months ago · JSON representation ·

Repository

An easy to use, dependency-less software to visualize in the browser the layout of quires, using a very intuitive notation system

Basic Info
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 3
Topics
archaeological-science archaeology codicology coptic-studies digital-humanities egypt egyptology manuscripts
Created over 8 years ago · Last pushed over 1 year ago
Metadata Files
Readme License Citation

README.md

quireMatrix

An easy to use, dependency-less software to visualize in the browser the layout of quires, using a very intuitive notation system.

Demo

A working demo is shipped within the project files (file docs/index.html). Download and open in a web browser to test the software.

If you don't want to run your own copy a freely accessible demo is available on our website at https://paths-erc.github.io/quireMatrix/

Browser compatibility

Your favorite browser is the only software you need to run quireMatrix, which uses the canvas element.

All modern browsers have a good support for the canvas element, but if you want to make it will work on yours, check here.

Usage

The software takes a formatted string describing the first (left) half of a quire and uses it to reconstruct the second half. It then builds the matrix view.

  1. Download from Github

  2. Require the library html <script type="text/javascript" src="quireMatrix.js"></script> or use a CDN version

html <script type="text/javascript" src="//cdn.jsdelivr.net/gh/paths-erc/quireMatrix/quireMatrix.min.js"></script>

  1. Create a new instance js var m = new Matrix('canvas'); where canvas is the id attribute of the canvas element, eg.

html <canvas id="canvas" width="400" height="50"></canvas>

  1. Parse a string javascript m.parseString('string', 'second_half'); where string id the string to parse and second_half is the id of the element that will contain the second part of the quire, eg:

html <input type="text" id="string"> <span id="second_half"></span>

  1. Or add a listener to an input element to get data from user javascript m.observeInput('input', 'second_half'); where input id the id attribute of the input element (it can be a textarea, input, etc.).

  2. Done!

Full example

A full working example can be found in the demo/index.html file. A minimal, working example of both the HTML and JS code needed to get a working environment:

```html <!-- Input element -->

var m = new Matrix('canvas'); m.observeInput('input', 'second_half'); ```

Check also our working demo on GitHub Pages

API

quireMatrix has only three public methods - Matrix.clear: clears the canvas - Matrix.parseString(val, secondHalfId): parses the notated string passed in val and puts the reconstructed (right) half in right half element passed as id (string) or as jQuery element in secondHalfId. - Matrix.observeInput(inputId, secondHalfId): sets an observer on inputId element passed as id (string) or as jQuery element.

Notation system

quireMatrix uses a very simple notation system to describe the first half of a quire, that will be used to infer the second (specular) half structure.

Pages should be separated by a forward slash (/). Each page must be describes by one of the following:

  • 0 (infers on right 1) left: nothing; right: singleton
  • 1 (infers on right 0) left: singleton; right: nothing
  • 0* (infers on right 1*) left: lost singleton (dashed line); right: singleton
  • 1* (infers on right 0*) left: singleton; right: lost singleton (dashed line)
  • 1x* (infers on right 1x*) lost union (dashed line)
  • 0+ (infers on right 1+) left: stub; right: singleton
  • 1+ (infers on right 0+) left: singleton; right: stub
  • 0+* (infers on right 1+*) left: lost stub; right: lost singleton
  • 1+* (infers on right 0+*) left: lost singleton; right: lost stub
  • 1x (infers on right 1x) union, ie. left: singleton; right: singleton
  • 2 (infers on right 0) union on the left side; right: nothing
  • 2* (infers on right 0) lost union on the left side (dashed); right: nothing
  • 3 (infers on right 0) union and singleton on the left side; right: nothing
  • 3* (infers on right 0) lost union and singleton on the left side (dashed); right: nothing
  • 4 (infers on right 0) two union on the left side; right: nothing
  • 4* (infers on right 0) two lost union on the left side (dashed); right: nothing

Notation example

The notation syntax describes the left half of the quire and contains information useful to reconstruct the second part of it. Its if formed by several elements divided by forward slashes (/). Each element describes a leaf/layer and is formed by a number (1, 2, 3 or 4) that indicates the leaf on the left side followed by one or many indicators, that tell more about its conservation, consistency and correspondence to the right side. The available indicators are: - x, to be used only with number 1, indicating perfect correspondence on both sides of the quire - * indicates that the leaf is not preserved, but that we have decisive clues that it existed - +, indicates that on the other side of the leaf only a stub is visible Left (user input): 1x/1*/1/1x/1x/0+/1x* infers on right side: 1x*/1+/1x/1*/1/1x/1x. The inferred right side will have a reversed order if compared to the left half. This is easily explained by considering that the overall descriptions follows a clockwise direction or reading order.

Verbose description: - 1 - 1 singleton on left side - 1x - 1x binion - 1* - 0* binion with right page lost - 1+ - 0+ singleton on left side with stub on right side - 1x* - 1x* lost binion - 1+* - 0+* lost singleton with stub

How to cite

This software is archived in Zenodo. Please cite it by referring the DOI: 10.5281/zenodo.1453361

DOI

License

MIT License. See LICENSE file

Copyright

Copyright (c) 2017 Julian Bogdani, PAThs

Owner

  • Name: PAThs - Tracking Papyrus and Parchment Paths: An Archaeological Atlas of Coptic Literature. Literary Texts in their Geographical Context: Production, Copying, Usage, Dissemination and Storage
  • Login: paths-erc
  • Kind: organization
  • Email: julian.bogdani@uniroma1.it
  • Location: Rome

An ERC granted project (Advanced Grant 2015 #687567), aimed to provide a diachronical representation of the geography of Coptic literary production

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
  - family-names: Bogdani
    given-names: Julian
    orcid: https://orcid.org/0000-0001-5250-927X
title: "quireMatrix"
version: 1.3.0
doi: "10.5281/zenodo.1453362"
date-released: 2021-11-22
license: "MIT"

GitHub Events

Total
  • Release event: 1
  • Push event: 3
  • Create event: 1
Last Year
  • Release event: 1
  • Push event: 3
  • Create event: 1

Issues and Pull Requests

Last synced: 8 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • npm 16 last-month
  • Total dependent packages: 1
  • Total dependent repositories: 1
  • Total versions: 2
  • Total maintainers: 1
npmjs.org: quirematrix

An easy to use, dependency-less software to visualize in the browser the layout of quires, using a very intuitive notation system

  • Versions: 2
  • Dependent Packages: 1
  • Dependent Repositories: 1
  • Downloads: 16 Last month
Rankings
Dependent repos count: 10.8%
Forks count: 15.9%
Stargazers count: 17.2%
Dependent packages count: 21.5%
Average: 24.1%
Downloads: 54.9%
Maintainers (1)
Last synced: 7 months ago