Tool to create templated metadata sheets for fieldwork experiments
Project description
Tools to generate "location sheets"
Sometimes you need a bit more than a simple text/qr code label. That's where this tool comes in. Create a temlate with e.g. Excel or Inkscape, then create an svglue template in Inkscape.
To create a template, you need to have two or more items in the SVG file:
- A rectangle with the
template-id
attribute set toid_image
, which will contain the QR image. You can add more than one by suffixing that with numbers, e.g.id_image1
,id_image2
,...
. - A text box (
tspan
) withtemplate-id
set toid_text
, which will have the text of whatever the ID is. Again there can be many withid_text1,2,3,...
.
There are a few templates from our research under ./templates
, which should be somewhat self-explanatory. If you have any questions, reach out (in github issues or via Email).
As an example, the below is an example of one sheet generated with the templates/ctx_v2.svg
template.
In case the above link dies, this is how one adds the required attributes in inkscape.
breifly, in inkscape:
click the element you want to template
enter the XML editor (Edit -> XML Editor, or Ctrl+Shift+X for me)
add (with plus button) a row in the attribute table, whose Name (1st column) is template-id, and whose Value (2nd column) is your key text.
For text just make sure you do this on the tspan element not the text element that (for me) contains it, and which inkscape focuses when you click on the text in the document. I had to manually click the tspan element in the xml editor.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nvtk-sitesheets-0.1.0.tar.gz
.
File metadata
- Download URL: nvtk-sitesheets-0.1.0.tar.gz
- Upload date:
- Size: 59.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d650a025df7891d1d1dd7eff9c1eccecbd6c97c36394681f6ae3c95274f2bf9 |
|
MD5 | 618679fbe16093d83c6e0bdbf733ca9a |
|
BLAKE2b-256 | 3d2d385f206922c307ab119e2ab7973b571aa654a970119093db0835ebc10b08 |
File details
Details for the file nvtk_sitesheets-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: nvtk_sitesheets-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbc8f0daab4ed4bd769f4310f2fa677ebe9d2e7a1950bea0c4f15b5fb8ad9ca8 |
|
MD5 | c52f926c9b69446b332d8cb5cb88974e |
|
BLAKE2b-256 | f16598f18605542175a02cf72235c1dd0ae06716ea4a2229115c798ab28057b8 |