UNIGENWIDTH(1)
π UNIGENWIDTH(1) π
okay bestie, so this is a page from the General Commands Manual, and it's literally all about unigenwidth. sit down, grab a boba, we're generating some C code π§
β¨ NAME β¨
unigenwidth β generate C code for POSIX wcwidth and wcswidth functions
like, it makes the C code. that's the whole gig. slay.
πΈ SYNOPSIS πΈ
unigenwidth unifont.hex combining.txt > wccode.c
π DESCRIPTION π
okay so here's the vibe: unigenwidth reads a whole collection of glyphs in Unifont's .hex format, and then it reads a list of combining characters as a hexadecimal list. two files in, magic out π
from these two files it produces C code to implement the POSIX wcwidth(3) and wcswidth(3) functions. and the format of these definitions? it's based upon POSIX 1003.1-2008 System Interfaces, pages 2251 and 2241, respectively. no cap, that's literally the spec pages it's pulling from π
π¦ EXAMPLE π¦
sample usage, bestie, here it is:
unigenwidth unifont.hex combining.txt > wccode.c
it's giving "one line and you're done" energy fr fr β¨
π FILES π
*.hexfiles β for Unifont glyph data πcombining.txtβ for combining code points π
π SEE ALSO π
your girl's whole friend group, periodt:
bdfimplode(1)hex2bdf(1)hex2otf(1)hex2sfd(1)hexbraille(1)hexdraw(1)hexkinya(1)hexmerge(1)johab2syllables(1)johab2ucs2(1)unibdf2hex(1)unibmp2hex(1)unibmpbump(1)unicoverage(1)unidup(1)unifont(5)unifont-johab631(5)unifont-viewer(1)unifont1per(1)unifontchojung(1)unifontksx(1)unifontpic(1)unigen-hangul(1)unigencircles(1)unihex2bmp(1)unihex2png(1)unihexfill(1)unihexgen(1)unihexpose(1)unihexrotate(1)unijohab2html(1)unipagecount(1)unipng2hex(1)
π AUTHOR π
unigenwidth was written by Paul Hardy. king behavior tbh π
π LICENSE π
unigenwidth is Copyright Β© 2013 Paul Hardy.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
like yes, free software, we love to see it π«Ά
π BUGS π
No known real bugs exist, except that this software does not perform extensive error checking on its input files.
bestie. listen. it does NOT do extensive error checking on its input files. so if you feed it something cursed, it's not gonna catch you. you have been warned π
and that's the whole page! this one's from 2013 Sep 10 β shoutout to the General Commands Manual for hosting it, mwah π β¨π¦πΈ
π¦ where this page comes from
- alpine 3.22: unifont-doc 16.0.03-r0 Β· GFDL-1.3-or-later GPL-2.0-or-later WITH Font-exception-2.0
- alpine 3.23: unifont-doc 17.0.03-r0 Β· GFDL-1.3-or-later GPL-2.0-or-later WITH Font-exception-2.0
- alpine 3.24: unifont-doc 17.0.04-r0 Β· GFDL-1.3-or-later GPL-2.0-or-later WITH Font-exception-2.0
- debian trixie: unifont-bin 1:15.1.01-1 Β· GPL-2.0-or-later
- fedora 43: unifont 16.0.01-6.fc43 Β· GPL-2.0-or-later AND OFL-1.1 AND GFDL-1.3-or-later
- fedora 44: unifont 16.0.01-7.fc44 Β· GPL-2.0-or-later AND OFL-1.1 AND GFDL-1.3-or-later
- nixpkgs unstable: unifont 18.0.01
- ubuntu noble: unifont-bin 1:15.1.01-1build1 Β· GPL-2.0-or-later
- ubuntu questing: unifont-bin 1:16.0.04-1
- ubuntu resolute: unifont-bin 1:16.0.04-1build1 Β· GPL-2.0-or-later
- ubuntu stonking: unifont-bin 1:16.0.04-1build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms