fontquery


Namefontquery JSON
Version 1.11 PyPI version JSON
download
home_pageNone
SummaryQuery a font in Fedora release
upload_time2024-04-02 03:47:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseMIT License Copyright (c) 2022 Red Hat, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords fedora fonts
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Fontquery
[![pip version badge](https://img.shields.io/pypi/v/fontquery)](https://pypi.org/project/fontquery/)
[![tag badge](https://img.shields.io/github/v/tag/fedora-i18n/fontquery)](https://github.com/fedora-i18n/fontquery/tags)
[![license badge](https://img.shields.io/github/license/fedora-i18n/fontquery)](./LICENSE)

fontquery is a tool to query fonts in the certain Fedora release.

## How to install

``` shell
$ pip3 install fontquery
```

Or in Fedora,

``` shell
# dnf install fontquery
```

## How to install from git

``` shell
$ pip3 install --user build wheel
$ python3 -m build
$ pip3 install --user dist/fontquery*.whl
```

Or in Fedora,

``` shell
# dnf install python3-build python3-wheel
$ python3 -m build
$ pip3 install --user dist/fontquery*.whl
```

## Usage

```
usage: fontquery [-h] [-C] [--disable-cache] [-f FILENAME_FORMAT] [-r RELEASE] [-l LANG]
                 [-m {fcmatch,fclist,json,html}] [-O OUTPUT_DIR] [-t {minimal,extra,all}] [-T TITLE] [-v] [-V]
                 [args ...]

Query fonts

positional arguments:
  args                  Queries (default: None)

options:
  -h, --help            show this help message and exit
  -C, --clean-cache     Clean caches before processing (default: False)
  --disable-cache       Enforce processing everything even if not updating (default: False)
  -f FILENAME_FORMAT, --filename-format FILENAME_FORMAT
                        Output filename format. only take effects with --mode=html (default:
                        {platform}-{release}-{target}.{mode})
  -r RELEASE, --release RELEASE
                        Release number such as "rawhide" and "39". "local" to query from current environment
                        instead of images (default: ['local'])
  -l LANG, --lang LANG  Language list to dump fonts data into JSON (default: None)
  -m {fcmatch,fclist,json,html}, --mode {fcmatch,fclist,json,html}
                        Action to perform for query (default: fcmatch)
  -O OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Output directory (default: .)
  -t {minimal,extra,all}, --target {minimal,extra,all}
                        Query fonts from (default: minimal)
  -T TITLE, --title TITLE
                        Page title format. only take effects with --mode=html (default: {platform} {release}:
                        {target})
  -v, --verbose         Show more detailed logs (default: 0)
  -V, --version         Show version (default: False)
```

To query sans-serif for Hindi on Fedora 36,

``` shell
$ fontquery -r 36 sans-serif:lang=hi
Lohit-Devanagari.ttf: "Lohit Devanagari" "Regular"
```

To generate JSON from langpacks installed environment:

``` shell
$ fontquery -m json -t langpacks
...
```

To generate html table:

``` shell
$ fontquery -m json -t langpacks | fq2html -o langpacks.html -
```

Or simply

``` shell
$ fontquery -m html -t langpacks -r 40
```

To check difference between local and reference:

``` shell
$ fontquery-diff -R text rawhide local
```

## For developers

Before committing something into git repository, you may want to do:

``` shell
$ git config core.hooksPath hooks
```

to make sure our hook scripts works.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "fontquery",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": "fedora, fonts",
    "author": null,
    "author_email": "Akira TAGOH <akira@tagoh.org>",
    "download_url": "https://files.pythonhosted.org/packages/c1/03/1b1c61b391df3af38377f968721c522312b4b79fc4bc0bb3de2d5e4a83ec/fontquery-1.11.tar.gz",
    "platform": null,
    "description": "# Fontquery\n[![pip version badge](https://img.shields.io/pypi/v/fontquery)](https://pypi.org/project/fontquery/)\n[![tag badge](https://img.shields.io/github/v/tag/fedora-i18n/fontquery)](https://github.com/fedora-i18n/fontquery/tags)\n[![license badge](https://img.shields.io/github/license/fedora-i18n/fontquery)](./LICENSE)\n\nfontquery is a tool to query fonts in the certain Fedora release.\n\n## How to install\n\n``` shell\n$ pip3 install fontquery\n```\n\nOr in Fedora,\n\n``` shell\n# dnf install fontquery\n```\n\n## How to install from git\n\n``` shell\n$ pip3 install --user build wheel\n$ python3 -m build\n$ pip3 install --user dist/fontquery*.whl\n```\n\nOr in Fedora,\n\n``` shell\n# dnf install python3-build python3-wheel\n$ python3 -m build\n$ pip3 install --user dist/fontquery*.whl\n```\n\n## Usage\n\n```\nusage: fontquery [-h] [-C] [--disable-cache] [-f FILENAME_FORMAT] [-r RELEASE] [-l LANG]\n                 [-m {fcmatch,fclist,json,html}] [-O OUTPUT_DIR] [-t {minimal,extra,all}] [-T TITLE] [-v] [-V]\n                 [args ...]\n\nQuery fonts\n\npositional arguments:\n  args                  Queries (default: None)\n\noptions:\n  -h, --help            show this help message and exit\n  -C, --clean-cache     Clean caches before processing (default: False)\n  --disable-cache       Enforce processing everything even if not updating (default: False)\n  -f FILENAME_FORMAT, --filename-format FILENAME_FORMAT\n                        Output filename format. only take effects with --mode=html (default:\n                        {platform}-{release}-{target}.{mode})\n  -r RELEASE, --release RELEASE\n                        Release number such as \"rawhide\" and \"39\". \"local\" to query from current environment\n                        instead of images (default: ['local'])\n  -l LANG, --lang LANG  Language list to dump fonts data into JSON (default: None)\n  -m {fcmatch,fclist,json,html}, --mode {fcmatch,fclist,json,html}\n                        Action to perform for query (default: fcmatch)\n  -O OUTPUT_DIR, --output-dir OUTPUT_DIR\n                        Output directory (default: .)\n  -t {minimal,extra,all}, --target {minimal,extra,all}\n                        Query fonts from (default: minimal)\n  -T TITLE, --title TITLE\n                        Page title format. only take effects with --mode=html (default: {platform} {release}:\n                        {target})\n  -v, --verbose         Show more detailed logs (default: 0)\n  -V, --version         Show version (default: False)\n```\n\nTo query sans-serif for Hindi on Fedora 36,\n\n``` shell\n$ fontquery -r 36 sans-serif:lang=hi\nLohit-Devanagari.ttf: \"Lohit Devanagari\" \"Regular\"\n```\n\nTo generate JSON from langpacks installed environment:\n\n``` shell\n$ fontquery -m json -t langpacks\n...\n```\n\nTo generate html table:\n\n``` shell\n$ fontquery -m json -t langpacks | fq2html -o langpacks.html -\n```\n\nOr simply\n\n``` shell\n$ fontquery -m html -t langpacks -r 40\n```\n\nTo check difference between local and reference:\n\n``` shell\n$ fontquery-diff -R text rawhide local\n```\n\n## For developers\n\nBefore committing something into git repository, you may want to do:\n\n``` shell\n$ git config core.hooksPath hooks\n```\n\nto make sure our hook scripts works.\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2022 Red Hat, Inc.  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Query a font in Fedora release",
    "version": "1.11",
    "project_urls": {
        "Bug Tracker": "https://github.com/fedora-i18n/fontquery/issues",
        "Homepage": "https://github.com/fedora-i18n/fontquery"
    },
    "split_keywords": [
        "fedora",
        " fonts"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9ec88d52e0d4b4335774a91edd0cb4702653f13e90570eda886a23af1fcd14f4",
                "md5": "c76c54527296da05e181e90e6effd6bf",
                "sha256": "7c59283b06c1dc69edcfc1e3cebcecc6c0af56965ddd62dd02e3edfa9397e2be"
            },
            "downloads": -1,
            "filename": "fontquery-1.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c76c54527296da05e181e90e6effd6bf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 27415,
            "upload_time": "2024-04-02T03:47:51",
            "upload_time_iso_8601": "2024-04-02T03:47:51.142468Z",
            "url": "https://files.pythonhosted.org/packages/9e/c8/8d52e0d4b4335774a91edd0cb4702653f13e90570eda886a23af1fcd14f4/fontquery-1.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c1031b1c61b391df3af38377f968721c522312b4b79fc4bc0bb3de2d5e4a83ec",
                "md5": "9bc845200d27d2e576a91508c9762797",
                "sha256": "f657a46276ba622e3aceb6ead025580c00eb781a98abdd3bae54b19fc34e32fa"
            },
            "downloads": -1,
            "filename": "fontquery-1.11.tar.gz",
            "has_sig": false,
            "md5_digest": "9bc845200d27d2e576a91508c9762797",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 20511,
            "upload_time": "2024-04-02T03:47:53",
            "upload_time_iso_8601": "2024-04-02T03:47:53.087462Z",
            "url": "https://files.pythonhosted.org/packages/c1/03/1b1c61b391df3af38377f968721c522312b4b79fc4bc0bb3de2d5e4a83ec/fontquery-1.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-02 03:47:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fedora-i18n",
    "github_project": "fontquery",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "fontquery"
}
        
Elapsed time: 0.22305s