`fsbi` renames font files in a compact, well alphabetically ordered way rather than the usual long and disordered notation.
`fsbi -r` restores the original notation.
# Help
usage: fsbi [-lrsw] [file] ...
positional arguments:
file file or dir [*]
options:
-l list [default]
-r restore
-s stretch 5 if normal
-w write
# Compact
fsbi -s
Barlow-Bold.ttf -> Barlow-57.ttf
Barlow-BoldItalic.ttf -> Barlow-57i.ttf
BarlowCondensed-ExtraLight.ttf -> Barlow-32.ttf
BarlowCondensed-ExtraLightItalic.ttf -> Barlow-32i.ttf
# Restore
fsbi -r
Barlow-32.ttf -> BarlowCondensed-ExtraLight.ttf
Barlow-32i.ttf -> BarlowCondensed-ExtraLightItalic.ttf
Barlow-57.ttf -> Barlow-Bold.ttf
Barlow-57i.ttf -> Barlow-BoldItalic.ttf
# Python
import fsbi
fsbi.compact(font, stretch=False)
fsbi.expand(font)
fsbi.fsbi(files, list=False, restore=False, stretch=False, write=False)
# Values
| | Stretch | Weight
| :-: | :-: | :-:
| 0 | | Hairline
| 1 | UltraCondensed | Thin
| 2 | ExtraCondensed | ExtraLight
| 3 | Condensed | Light
| 4 | SemiCondensed | Regular
| 5 | Normal | Medium
| 6 | SemiExtended | SemiBold
| 7 | Extended | Bold
| 8 | ExtraExtended | ExtraBold
| 9 | UltraExtended | Black
# Changelog
- 2024.04.01 – **0.4** – Parse `Expanded` keyword as `Extended`
- 2024.03.31 – **0.3** – Add `stretch` parameter and `-s` argument
- 2024.03.31 – **0.2** – Bug fix
- 2024.03.30 – **0.1**
Raw data
{
"_id": null,
"home_page": "http://phyl.io/?page=fsbi.html",
"name": "fsbi",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "font",
"author": "Philippe Kappel",
"author_email": "philippe.kappel@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/0f/b7/4d15c462850056103e6ee3135bb65c256140123ac2fc02b762af83029586/fsbi-0.4.tar.gz",
"platform": null,
"description": "`fsbi` renames font files in a compact, well alphabetically ordered way rather than the usual long and disordered notation.\r\n\r\n`fsbi -r` restores the original notation.\r\n\r\n# Help\r\n\r\n\tusage: fsbi [-lrsw] [file] ...\r\n\t\r\n\tpositional arguments:\r\n\t file file or dir [*]\r\n\t\r\n\toptions:\r\n\t -l list [default]\r\n\t -r restore\r\n\t -s stretch 5 if normal\r\n\t -w write\r\n\r\n# Compact\r\n\r\n\tfsbi -s\r\n\r\n\tBarlow-Bold.ttf -> Barlow-57.ttf\r\n\tBarlow-BoldItalic.ttf -> Barlow-57i.ttf\r\n\tBarlowCondensed-ExtraLight.ttf -> Barlow-32.ttf\r\n\tBarlowCondensed-ExtraLightItalic.ttf -> Barlow-32i.ttf\r\n\r\n# Restore\r\n\r\n\tfsbi -r\r\n\r\n\tBarlow-32.ttf -> BarlowCondensed-ExtraLight.ttf\r\n\tBarlow-32i.ttf -> BarlowCondensed-ExtraLightItalic.ttf\r\n\tBarlow-57.ttf -> Barlow-Bold.ttf\r\n\tBarlow-57i.ttf -> Barlow-BoldItalic.ttf\r\n\r\n# Python\r\n\r\n\timport fsbi\r\n\tfsbi.compact(font, stretch=False)\r\n\tfsbi.expand(font)\r\n\tfsbi.fsbi(files, list=False, restore=False, stretch=False, write=False)\r\n\r\n# Values\r\n\r\n| | Stretch | Weight\r\n| :-: | :-: | :-:\r\n| 0 | | Hairline\r\n| 1 | UltraCondensed | Thin\r\n| 2 | ExtraCondensed | ExtraLight\r\n| 3 | Condensed | Light\r\n| 4 | SemiCondensed | Regular\r\n| 5 | Normal | Medium\r\n| 6 | SemiExtended | SemiBold\r\n| 7 | Extended | Bold\r\n| 8 | ExtraExtended | ExtraBold\r\n| 9 | UltraExtended | Black\r\n\r\n# Changelog\r\n\r\n- 2024.04.01 \u2013 **0.4** \u2013 Parse `Expanded` keyword as `Extended`\r\n- 2024.03.31 \u2013 **0.3** \u2013 Add `stretch` parameter and `-s` argument\r\n- 2024.03.31 \u2013 **0.2** \u2013 Bug fix\r\n- 2024.03.30 \u2013 **0.1**\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Font Stretch Bold Italic",
"version": "0.4",
"project_urls": {
"Homepage": "http://phyl.io/?page=fsbi.html"
},
"split_keywords": [
"font"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b8c78b6ffca4e85c93c0a831bcff84cfca790809b36091818baba478abe3868b",
"md5": "4df10a61416ed4f238b790a70f6b8df1",
"sha256": "5f64d2851e16832a3557dbf221ba95cda5c978deefa4bc938aaab51a60b76988"
},
"downloads": -1,
"filename": "fsbi-0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4df10a61416ed4f238b790a70f6b8df1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 3287,
"upload_time": "2024-04-01T11:18:38",
"upload_time_iso_8601": "2024-04-01T11:18:38.430613Z",
"url": "https://files.pythonhosted.org/packages/b8/c7/8b6ffca4e85c93c0a831bcff84cfca790809b36091818baba478abe3868b/fsbi-0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0fb74d15c462850056103e6ee3135bb65c256140123ac2fc02b762af83029586",
"md5": "15618d557920277a70731a148d1c2dcc",
"sha256": "1219add8c6a0c70fa0f5393248f71c3ceba1755c17af8ba18911d6e625d8ab70"
},
"downloads": -1,
"filename": "fsbi-0.4.tar.gz",
"has_sig": false,
"md5_digest": "15618d557920277a70731a148d1c2dcc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3120,
"upload_time": "2024-04-01T11:18:39",
"upload_time_iso_8601": "2024-04-01T11:18:39.480535Z",
"url": "https://files.pythonhosted.org/packages/0f/b7/4d15c462850056103e6ee3135bb65c256140123ac2fc02b762af83029586/fsbi-0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-01 11:18:39",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "fsbi"
}