Name | fontquery JSON |
Version |
1.21
JSON |
| download |
home_page | None |
Summary | Query a font in Fedora release |
upload_time | 2024-09-10 08:40:06 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.11 |
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. |
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 default-fonts installed environment:
``` shell
$ fontquery -m json -t minimal
...
```
To generate html table:
``` shell
$ fontquery -m json -t minimal | fq2html -o minimal.html -
```
Or simply
``` shell
$ fontquery -m html -t minimal -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/45/29/c38bdd06ea9231ee56a5d8f7c4e1de49c625823b503561c4975ad232bf77/fontquery-1.21.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 default-fonts installed environment:\n\n``` shell\n$ fontquery -m json -t minimal\n...\n```\n\nTo generate html table:\n\n``` shell\n$ fontquery -m json -t minimal | fq2html -o minimal.html -\n```\n\nOr simply\n\n``` shell\n$ fontquery -m html -t minimal -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.21",
"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": "cf1f1a2d4ff7cd0ba4323c15ae6338f9ff1475987d7de37a59911682e8635f5e",
"md5": "fc13041a2f8140565cd908e8c8dbdeb0",
"sha256": "5deb93cee3b046b647ea7992369bb2fb97649f93b528d0423048ed6be83cc295"
},
"downloads": -1,
"filename": "fontquery-1.21-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fc13041a2f8140565cd908e8c8dbdeb0",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 32380,
"upload_time": "2024-09-10T08:40:04",
"upload_time_iso_8601": "2024-09-10T08:40:04.842608Z",
"url": "https://files.pythonhosted.org/packages/cf/1f/1a2d4ff7cd0ba4323c15ae6338f9ff1475987d7de37a59911682e8635f5e/fontquery-1.21-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4529c38bdd06ea9231ee56a5d8f7c4e1de49c625823b503561c4975ad232bf77",
"md5": "4a2e007c1512ce34a6407e3eac1b9669",
"sha256": "6cea795ea82ca2fa95abd0d386019545e3c094cdf0ef6d7a3b8f4b2d0871f4f6"
},
"downloads": -1,
"filename": "fontquery-1.21.tar.gz",
"has_sig": false,
"md5_digest": "4a2e007c1512ce34a6407e3eac1b9669",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 23959,
"upload_time": "2024-09-10T08:40:06",
"upload_time_iso_8601": "2024-09-10T08:40:06.179482Z",
"url": "https://files.pythonhosted.org/packages/45/29/c38bdd06ea9231ee56a5d8f7c4e1de49c625823b503561c4975ad232bf77/fontquery-1.21.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-10 08:40:06",
"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"
}