quirematrix
An easy to use, dependency-less software to visualize in the browser the layout of quires, using a very intuitive notation system
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
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
- Host: GitHub
- Owner: paths-erc
- License: mit
- Language: JavaScript
- Default Branch: master
- Homepage: http://paths-erc.eu/quireMatrix
- Size: 35.2 KB
Statistics
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 3
Topics
Metadata Files
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.
Download from Github
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>
- Create a new instance
js var m = new Matrix('canvas');wherecanvasis theidattribute of the canvas element, eg.
html
<canvas id="canvas" width="400" height="50"></canvas>
- Parse a string
javascript m.parseString('string', 'second_half');wherestringid the string to parse andsecond_halfis 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>
Or add a listener to an input element to get data from user
javascript m.observeInput('input', 'second_half');whereinputid theidattribute of the input element (it can be atextarea,input, etc.).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 right1) left: nothing; right: singleton1(infers on right0) left: singleton; right: nothing0*(infers on right1*) left: lost singleton (dashed line); right: singleton1*(infers on right0*) left: singleton; right: lost singleton (dashed line)1x*(infers on right1x*) lost union (dashed line)0+(infers on right1+) left: stub; right: singleton1+(infers on right0+) left: singleton; right: stub0+*(infers on right1+*) left: lost stub; right: lost singleton1+*(infers on right0+*) left: lost singleton; right: lost stub1x(infers on right1x) union, ie. left: singleton; right: singleton2(infers on right0) union on the left side; right: nothing2*(infers on right0) lost union on the left side (dashed); right: nothing3(infers on right0) union and singleton on the left side; right: nothing3*(infers on right0) lost union and singleton on the left side (dashed); right: nothing4(infers on right0) two union on the left side; right: nothing4*(infers on right0) 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
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
- Website: http://paths.uniroma1.it/
- Repositories: 5
- Profile: https://github.com/paths-erc
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
- Homepage: https://github.com/paths-erc/quireMatrix#readme
- License: MIT
-
Latest release: 1.2.0
published over 7 years ago