microrep


Namemicrorep JSON
Version 1.0.0 PyPI version JSON
download
home_pageNone
SummaryAn Inkscape extension with allows to create and modify hand postures and representations of hand microgestures with or without the associated commands. This work has been initiated for the experiences presented in the paper 'Studying the Simultaneous Representations of Microgestures' published by MobileHCI 2024.
upload_time2025-08-22 10:37:07
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords microgesture representation illustration hand fingers gesture
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
<div style="display: table; margin: 0 auto">
    <h1 style="display: table-cell; vertical-align: middle;padding-right: 20px">microrep</h1>
    <span style="display: table-cell; vertical-align: middle;padding-right: 5px"><img src="./docs/images/microRep_full.png" alt="Project Settings screenshot" height="75" width="75"/></span>
    <span style="display: table-cell; vertical-align: middle;"><img src="./docs/images/python_logo.png" alt="Project Settings screenshot" height="75" width="75"/></span>
</div>
<h3 align="center">A Python Package to Create Representation of Microgestures</h3>
</p>
<p align="center">
  <p align="center">
    <a href="https://vincent-lambert.eu/">Vincent Lambert</a><sup>1</sup>
    ·
    <a href="http://alixgoguey.fr/">Alix Goguey</a><sup>1</sup>
    ·
    <a href="https://malacria.com/">Sylvain Malacria</a><sup>2</sup>
    ·
    <a href="http://iihm.imag.fr/member/lnigay/">Laurence Nigay</a><sup>1</sup>
    <br>
    <sup>1</sup>Université Grenoble Alpes <sup>2</sup>Université Lille - INRIA
  </p>
</p>

---

<h3 align="center">
    General Information - Home Page
</h3>

---


This package is made of 6 subpackages that allows you to batch export and modify representations of microgestures.
You can create a large number of representations and find the designs that best matches your needs or quickly create representations and iterate on them for research purposes. 

Each subpackage can be used in a Command Line Interface (CLI), in Python scripts or even directly in Inkscape (tested with Inkscape v1.2.0, see the [*Inkscape installation steps*](./docs/inkscape-installation-steps.md) :art:).

## Main Concepts 

This package is based on a few main concepts:

* **Microgestures** are quick and subtle finger movements that do not involve the wrist nor the arm. In this package, we focus on three microgestures: *tap*, *swipe* and *hold*.
* **Representations** visually explain how to perform microgestures by showing the moving finger, i.e. the *actuator*, the target, i.e. the *receiver*, and the trajectory of the microgesture. There are two types of representations: 
  * *Single-picture representations of microgestures* describe illustrations that shows one microgesture per hand shape. Multiple single-picture representations are typically used to illustrate a set of microgestures.
  * *Simultaneous representations of microgestures* describe illustrations that shows multiple microgestures on the same hand shape.
* **Families** describe the consistent set of visual cues used to shape the representations of each microgesture. You can use the `mgrep-family-layer` and the `mgrep-path-element` attributes to attribute your own visual cues to the available microgestures.
* **Markers** define the key points of the representations. They are used to define the position of the visual cues defined by the families for the different microgestures. You can use the `mgrep-marker` attribute to define the markers. It accepts a value with the shape `[finger],[microgesture],[characteristic],[markerType]`. `[finger]` can be one of `thumb`, `index`, `middle`, `ring` or `pinky`. `{microgesture]` can be one of `tap`, `swipe` or `hold`. `[characteristic]` can be one of `nail`, `tip` or `middle`, `base`, `up`, `down`, `left`, `right`. `[markerType]` can be one of `actuator`, `receiver`, `traj-start`, `traj-end`.

The file `initial.svg` is an example of a base file that can be used as a starting point (with the `export_hand_poses` :raised_hand: subpackage). If you inspect it, you will find that it is structured and annotated according to these concepts.. For more details, please refer to the detailed documentation of each subpackage

### Documentation for each subpackage

:bookmark_tabs: [**Export Hand Poses**](./docs/export-hand-poses.md) :raised_hand:
&emsp;&ensp; Export different hand poses from a base file (see `initial.svg`).


:bookmark_tabs: [**Create Representations**](./docs/create-representations.md) :cyclone: 
&emsp;&ensp; Create one or multiple representations based on a previously exported hand pose (see the `export_hand_poses` :raised_hand: subpackage).


:bookmark_tabs: [**Map Commands**](./docs/map-commands.md) :game_die: 
&emsp;&ensp; Create one or multiple command mappings for an existing representation of microgestures (see the `create_representations` :cyclone: subpackage).

#### Optional subpackages

This package also includes 3 optional subpackages that were developped for experiment purposes (see [*experiment 1*](./docs/experiment-simultaneous-representations.md) and [*experiment 2*](./docs/experiment-help-interface.md)).

:bookmark_tabs: [**Add Enhancement**](./docs/add-enhancement.md) 
&emsp;&ensp; Create modified versions, of a given representation, e.g. changed colors or shrunken visual cues (optional step after the `create_representations` :cyclone: subpackage).


:bookmark_tabs: [**Add Legend**](./docs/add-legend.md)
&emsp;&ensp; Add a legend to the copy of a given representation (optional step after the `create_representations` :cyclone: subpackage).


:bookmark_tabs: [**Add Overlap Adaptation**](./docs/add-overlap-adaptation.md)
&emsp;&ensp; Modifies the copy of a given representation to make sure the commands do not overlap when working on representations using both the tap and the hold microgestures (optional step after the `create_representations` :cyclone: subpackage).

## Installation

You can install the `microrep` package by simply running `python3 -m pip install microrep` in a terminal. Pip should automatically install the required dependencies. If not, please check the main dependencies of this package with the list below :
- inkex
- lxml
- shapely
- svg.path

If during your installation another module is missing, please check your local distribution before warning us for a missing module in this list.

In case you want to build the module locally, you can run `python3 -m build` in the root folder of the project. This will create a `.tar.gz` file in the `dist` folder that you can install with `python3 -m pip install dist/microrep-{version}.tar.gz`.

## Credits

This `microrep` package was developed using Nikolai Shkurkin's extension export-layers-combo (https://github.com/nshkurkin/inkscape-export-layer-combos) as a base. 

## License

Except for the `cairosvgmg` folder (``tests/experiment_help_interface/cairosvgmg``), which is a copy of the `cairosvg` library, this project is licensed under the MIT License. The `cairosvgmg` folder contains the source code of the `cairosvg` library, which is licensed under the GNU Lesser General Public License v3.0 (LGPL-3.0). You can find its full license text in the `cairosvgmg/LICENSE` file.

The MIT License of this project as a whole can be found at the root folder of the project.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "microrep",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "microgesture, representation, illustration, hand, fingers, gesture",
    "author": null,
    "author_email": "Vincent Lambert <vincent.lambert29@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/42/fe/dcda7795780d364cb4fdb6fb883e2fc9dfb3d58ad0a59be171db5bb48d10/microrep-1.0.0.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\r\n<div style=\"display: table; margin: 0 auto\">\r\n    <h1 style=\"display: table-cell; vertical-align: middle;padding-right: 20px\">microrep</h1>\r\n    <span style=\"display: table-cell; vertical-align: middle;padding-right: 5px\"><img src=\"./docs/images/microRep_full.png\" alt=\"Project Settings screenshot\" height=\"75\" width=\"75\"/></span>\r\n    <span style=\"display: table-cell; vertical-align: middle;\"><img src=\"./docs/images/python_logo.png\" alt=\"Project Settings screenshot\" height=\"75\" width=\"75\"/></span>\r\n</div>\r\n<h3 align=\"center\">A Python Package to Create Representation of Microgestures</h3>\r\n</p>\r\n<p align=\"center\">\r\n  <p align=\"center\">\r\n    <a href=\"https://vincent-lambert.eu/\">Vincent Lambert</a><sup>1</sup>\r\n    \u00b7\r\n    <a href=\"http://alixgoguey.fr/\">Alix Goguey</a><sup>1</sup>\r\n    \u00b7\r\n    <a href=\"https://malacria.com/\">Sylvain Malacria</a><sup>2</sup>\r\n    \u00b7\r\n    <a href=\"http://iihm.imag.fr/member/lnigay/\">Laurence Nigay</a><sup>1</sup>\r\n    <br>\r\n    <sup>1</sup>Universit\u00e9 Grenoble Alpes <sup>2</sup>Universit\u00e9 Lille - INRIA\r\n  </p>\r\n</p>\r\n\r\n---\r\n\r\n<h3 align=\"center\">\r\n    General Information - Home Page\r\n</h3>\r\n\r\n---\r\n\r\n\r\nThis package is made of 6 subpackages that allows you to batch export and modify representations of microgestures.\r\nYou can create a large number of representations and find the designs that best matches your needs or quickly create representations and iterate on them for research purposes. \r\n\r\nEach subpackage can be used in a Command Line Interface (CLI), in Python scripts or even directly in Inkscape (tested with Inkscape v1.2.0, see the [*Inkscape installation steps*](./docs/inkscape-installation-steps.md) :art:).\r\n\r\n## Main Concepts \r\n\r\nThis package is based on a few main concepts:\r\n\r\n* **Microgestures** are quick and subtle finger movements that do not involve the wrist nor the arm. In this package, we focus on three microgestures: *tap*, *swipe* and *hold*.\r\n* **Representations** visually explain how to perform microgestures by showing the moving finger, i.e. the *actuator*, the target, i.e. the *receiver*, and the trajectory of the microgesture. There are two types of representations: \r\n  * *Single-picture representations of microgestures* describe illustrations that shows one microgesture per hand shape. Multiple single-picture representations are typically used to illustrate a set of microgestures.\r\n  * *Simultaneous representations of microgestures* describe illustrations that shows multiple microgestures on the same hand shape.\r\n* **Families** describe the consistent set of visual cues used to shape the representations of each microgesture. You can use the `mgrep-family-layer` and the `mgrep-path-element` attributes to attribute your own visual cues to the available microgestures.\r\n* **Markers** define the key points of the representations. They are used to define the position of the visual cues defined by the families for the different microgestures. You can use the `mgrep-marker` attribute to define the markers. It accepts a value with the shape `[finger],[microgesture],[characteristic],[markerType]`. `[finger]` can be one of `thumb`, `index`, `middle`, `ring` or `pinky`. `{microgesture]` can be one of `tap`, `swipe` or `hold`. `[characteristic]` can be one of `nail`, `tip` or `middle`, `base`, `up`, `down`, `left`, `right`. `[markerType]` can be one of `actuator`, `receiver`, `traj-start`, `traj-end`.\r\n\r\nThe file `initial.svg` is an example of a base file that can be used as a starting point (with the `export_hand_poses` :raised_hand: subpackage). If you inspect it, you will find that it is structured and annotated according to these concepts.. For more details, please refer to the detailed documentation of each subpackage\r\n\r\n### Documentation for each subpackage\r\n\r\n:bookmark_tabs: [**Export Hand Poses**](./docs/export-hand-poses.md) :raised_hand:\r\n&emsp;&ensp; Export different hand poses from a base file (see `initial.svg`).\r\n\r\n\r\n:bookmark_tabs: [**Create Representations**](./docs/create-representations.md) :cyclone: \r\n&emsp;&ensp; Create one or multiple representations based on a previously exported hand pose (see the `export_hand_poses` :raised_hand: subpackage).\r\n\r\n\r\n:bookmark_tabs: [**Map Commands**](./docs/map-commands.md) :game_die: \r\n&emsp;&ensp; Create one or multiple command mappings for an existing representation of microgestures (see the `create_representations` :cyclone: subpackage).\r\n\r\n#### Optional subpackages\r\n\r\nThis package also includes 3 optional subpackages that were developped for experiment purposes (see [*experiment 1*](./docs/experiment-simultaneous-representations.md) and [*experiment 2*](./docs/experiment-help-interface.md)).\r\n\r\n:bookmark_tabs: [**Add Enhancement**](./docs/add-enhancement.md) \r\n&emsp;&ensp; Create modified versions, of a given representation, e.g. changed colors or shrunken visual cues (optional step after the `create_representations` :cyclone: subpackage).\r\n\r\n\r\n:bookmark_tabs: [**Add Legend**](./docs/add-legend.md)\r\n&emsp;&ensp; Add a legend to the copy of a given representation (optional step after the `create_representations` :cyclone: subpackage).\r\n\r\n\r\n:bookmark_tabs: [**Add Overlap Adaptation**](./docs/add-overlap-adaptation.md)\r\n&emsp;&ensp; Modifies the copy of a given representation to make sure the commands do not overlap when working on representations using both the tap and the hold microgestures (optional step after the `create_representations` :cyclone: subpackage).\r\n\r\n## Installation\r\n\r\nYou can install the `microrep` package by simply running `python3 -m pip install microrep` in a terminal. Pip should automatically install the required dependencies. If not, please check the main dependencies of this package with the list below :\r\n- inkex\r\n- lxml\r\n- shapely\r\n- svg.path\r\n\r\nIf during your installation another module is missing, please check your local distribution before warning us for a missing module in this list.\r\n\r\nIn case you want to build the module locally, you can run `python3 -m build` in the root folder of the project. This will create a `.tar.gz` file in the `dist` folder that you can install with `python3 -m pip install dist/microrep-{version}.tar.gz`.\r\n\r\n## Credits\r\n\r\nThis `microrep` package was developed using Nikolai Shkurkin's extension export-layers-combo (https://github.com/nshkurkin/inkscape-export-layer-combos) as a base. \r\n\r\n## License\r\n\r\nExcept for the `cairosvgmg` folder (``tests/experiment_help_interface/cairosvgmg``), which is a copy of the `cairosvg` library, this project is licensed under the MIT License. The `cairosvgmg` folder contains the source code of the `cairosvg` library, which is licensed under the GNU Lesser General Public License v3.0 (LGPL-3.0). You can find its full license text in the `cairosvgmg/LICENSE` file.\r\n\r\nThe MIT License of this project as a whole can be found at the root folder of the project.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "An Inkscape extension with allows to create and modify hand postures and representations of hand microgestures with or without the associated commands. This work has been initiated for the experiences presented in the paper 'Studying the Simultaneous Representations of Microgestures' published by MobileHCI 2024.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/Vincent-LAMBERT/inkscape-microgestures",
        "Issues": "https://github.com/Vincent-LAMBERT/inkscape-microgestures/issues"
    },
    "split_keywords": [
        "microgesture",
        " representation",
        " illustration",
        " hand",
        " fingers",
        " gesture"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "42fedcda7795780d364cb4fdb6fb883e2fc9dfb3d58ad0a59be171db5bb48d10",
                "md5": "1ae154b3d48b803867fa8375374fc613",
                "sha256": "45930675acfdf67febcb36fe32eef3c842d5a755a3d5f26f49345883ed88e4da"
            },
            "downloads": -1,
            "filename": "microrep-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1ae154b3d48b803867fa8375374fc613",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2019124,
            "upload_time": "2025-08-22T10:37:07",
            "upload_time_iso_8601": "2025-08-22T10:37:07.528577Z",
            "url": "https://files.pythonhosted.org/packages/42/fe/dcda7795780d364cb4fdb6fb883e2fc9dfb3d58ad0a59be171db5bb48d10/microrep-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-22 10:37:07",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Vincent-LAMBERT",
    "github_project": "inkscape-microgestures",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "microrep"
}
        
Elapsed time: 1.50573s