nvtk-sitesheets


Namenvtk-sitesheets JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryTool to create templated metadata sheets for fieldwork experiments
upload_time2023-05-27 07:14:41
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseNone
keywords qrcode fieldwork
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://github.com/mbr/svglue/issues/9) 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 to `id_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`) with `template-id` set to `id_text`, which will have the text of whatever the ID is. Again there can be many with `id_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.

![](templates/test.jpg)


In case the above link dies, this is how one adds the required attributes in inkscape.

> breifly, in inkscape:
> 
>  1) click the element you want to template
>
>  2) enter the XML editor (Edit -> XML Editor, or Ctrl+Shift+X for me)
>
>  3) 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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nvtk-sitesheets",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "qrcode,fieldwork",
    "author": null,
    "author_email": "kdm9 <foss@kdmurray.id.au>",
    "download_url": "https://files.pythonhosted.org/packages/3d/2d/385f206922c307ab119e2ab7973b571aa654a970119093db0835ebc10b08/nvtk-sitesheets-0.1.0.tar.gz",
    "platform": null,
    "description": "# Tools to generate \"location sheets\"\n\nSometimes 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](https://github.com/mbr/svglue/issues/9) in Inkscape.\n\nTo create a template, you need to have two or more items in the SVG file:\n\n- A rectangle with the `template-id` attribute set to `id_image`, which will contain the QR image. You can add more than one by suffixing that with numbers, e.g. `id_image1`, `id_image2`, `...`.\n- A text box (`tspan`) with `template-id` set to `id_text`, which will have the text of whatever the ID is. Again there can be many with `id_text1,2,3,...`.\n\nThere 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).\n\nAs an example, the below is an example of one sheet generated with the `templates/ctx_v2.svg` template.\n\n![](templates/test.jpg)\n\n\nIn case the above link dies, this is how one adds the required attributes in inkscape.\n\n> breifly, in inkscape:\n> \n>  1) click the element you want to template\n>\n>  2) enter the XML editor (Edit -> XML Editor, or Ctrl+Shift+X for me)\n>\n>  3) 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.\n> \n> 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.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Tool to create templated metadata sheets for fieldwork experiments",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [
        "qrcode",
        "fieldwork"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f16598f18605542175a02cf72235c1dd0ae06716ea4a2229115c798ab28057b8",
                "md5": "c52f926c9b69446b332d8cb5cb88974e",
                "sha256": "fbc8f0daab4ed4bd769f4310f2fa677ebe9d2e7a1950bea0c4f15b5fb8ad9ca8"
            },
            "downloads": -1,
            "filename": "nvtk_sitesheets-0.1.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c52f926c9b69446b332d8cb5cb88974e",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 6478,
            "upload_time": "2023-05-27T07:14:39",
            "upload_time_iso_8601": "2023-05-27T07:14:39.406434Z",
            "url": "https://files.pythonhosted.org/packages/f1/65/98f18605542175a02cf72235c1dd0ae06716ea4a2229115c798ab28057b8/nvtk_sitesheets-0.1.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3d2d385f206922c307ab119e2ab7973b571aa654a970119093db0835ebc10b08",
                "md5": "618679fbe16093d83c6e0bdbf733ca9a",
                "sha256": "1d650a025df7891d1d1dd7eff9c1eccecbd6c97c36394681f6ae3c95274f2bf9"
            },
            "downloads": -1,
            "filename": "nvtk-sitesheets-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "618679fbe16093d83c6e0bdbf733ca9a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 59526,
            "upload_time": "2023-05-27T07:14:41",
            "upload_time_iso_8601": "2023-05-27T07:14:41.164497Z",
            "url": "https://files.pythonhosted.org/packages/3d/2d/385f206922c307ab119e2ab7973b571aa654a970119093db0835ebc10b08/nvtk-sitesheets-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-27 07:14:41",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "nvtk-sitesheets"
}
        
Elapsed time: 0.07113s