GLA11Y(1)

πŸ“¦
version 0.4 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’– NAME πŸ’–

okay bestie, meet gla11y β€” a User Command (formally GLA11Y(1), if we're being ✨proper✨ at the function) that checks the accessibility of glade .ui files. it literally reads your UI files and goes "girl… where is the label tho?" πŸ’… no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

gla11y [-p] [-g SUPPR_FILE] [-s SUPPR_FILE] [-f SUPPR_FILE] [-P PREFIX]
[-o LOG_FILE] [file ...]

🌸 DESCRIPTION 🌸

gla11y checks accessibility of glade .ui files. that's the whole assignment. slay. ✨

here's the rundown of everything it takes, and yes we're doing all of them, i'm not skipping a single one:

  • -p β€” print the XML class path instead of the line number. like, give me the whole lineage instead of just the address, iykyk.
  • -g SUPPR_FILE β€” generate a suppression file called SUPPR_FILE. you're making the list, bestie.
  • -s SUPPR_FILE β€” suppress the warnings that SUPPR_FILE tells you about, but still count them. muted, not deleted. πŸ™ˆ
  • -f SUPPR_FILE β€” suppress the warnings given by SUPPR_FILE completely. not just muted β€” fully ghosted. πŸ’€
  • -P PREFIX β€” remove PREFIX from file names in warnings. a little path glow-up, we love to see it. πŸŽ€
  • -o LOG_FILE β€” also prints errors and warnings to the given file. so you get the receipts. 🧾
  • --widgets-FOO [+][CLASS1[,CLASS2[,...]]] β€” give or extend one of the lists of widget classes, where FOO can be:
    • toplevel β€” widgets to be considered toplevel windows
    • ignored β€” widgets which do not need labelling (e.g. GtkBox)
    • suffixignored β€” suffixes of widget classes which do not need labelling
    • needlabel β€” widgets which always need labelling (e.g. GtkEntry)
    • buttons β€” widgets which need their own label but not more (e.g. GtkButton)
    • labels β€” widgets which provide labels (e.g. GtkLabel)
  • --widgets-print β€” print default widgets lists
  • --enable-all β€” enable all warnings/dofatals. this is the default, bestie, it's already on. πŸ‘‘
  • --disable-all β€” disable all warnings/dofatals
  • --fatal-all β€” make all warnings dofatals
  • --not-fatal-all β€” do not make all warnings dofatals (also the default)
  • --enable-type=TYPE β€” enable warning/fatal type TYPE
  • --disable-type=TYPE β€” disable warning/fatal type TYPE
  • --fatal-type=TYPE β€” make warning type TYPE a fatal
  • --not-fatal-type=TYPE β€” make warning type TYPE not a fatal
  • --enable-widgets=CLASS β€” enable warning/fatal type CLASS
  • --disable-widgets=CLASS β€” disable warning/fatal type CLASS
  • --fatal-widgets=CLASS β€” make warning type CLASS a fatal
  • --not-fatal-widgets=CLASS β€” make warning type CLASS not a fatal
  • --enable-specific=TYPE.CLASS β€” enable warning/fatal type TYPE for widget class CLASS
  • --disable-specific=TYPE.CLASS β€” disable warning/fatal type TYPE for widget class CLASS
  • --fatal-specific=TYPE.CLASS β€” make warning type TYPE a fatal for widget class CLASS
  • --not-fatal-specific=TYPE.CLASS β€” make warning type TYPE not a fatal for widget class CLASS
  • --disable-orphan-labels β€” only warn about orphan labels when there are orphan widgets in the same context. like, if nobody's around, the label can just vibe. πŸ¦‹
ok so important lore: by default, all warnings are considered fatal, except a few kinds (duplicate-mnemonic, labelled-by-and-mnemonic, orphan-label) which could be only doubtful. those ones are just like… maybe? possibly? we don't know her. πŸ’…

🫢 REPORTING BUGS 🫢

found something cursed? report bugs to <bugs@hypra.fr> πŸ’Œ


and that's the page, bestie!! this was gla11y 0.4, from July 2023, and honestly? iconic. periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from