DICT_LOOKUP(1)

πŸ“¦
version 1.13.3 Β· 2 versions
, in arch rolling, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– dict_lookup β€” the NAME section, bestie πŸ’–

okay so this is dict_lookup, and it's literally a DICT Protocol Client ✨ that's the whole vibe. one job. iconic behavior. πŸ‘‘


🌸 SYNOPSIS 🌸

dict_lookuop [options]
🫢 bestie yes that's really how it's spelled up there, i'm not gonna "fix" it for you, we keep it exactly as it is, periodt.

✨ DESCRIPTION ✨

so here's the tea β˜•: dict_lookup reads your X selection, and then it opens up a terminal emulator and runs a dict client inside it, so you can actually scroll through the content using a pager. πŸ¦‹

and like… it genuinely makes sense to bind launching dict_lookup to a keyboard shortcut in your window manager. that's the intended main character move, no cap. πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • -h β€” displays the help message. that's it, that's the whole thing, she's helpful. πŸ™ˆ
  • -x x β€” X coordinate of the terminal emulator. (yes it's lowercase x as the value, we don't question the lore) πŸ“
  • -x Y β€” Y coordinate of the terminal emulator. (and yes, -x shows up a second time here in the original, i'm just telling you what it says, i don't make the rules 😭)
  • -s WxH β€” width and height of the terminal emulator, separated by an x. size her up. πŸ“
  • -q query β€” the query! and here's the slay part: if you specify it, the X selection is not read. skipping the whole selection step, straight to business. ⭐

🧚 ENVIRONMENT 🧚

dict_lookup recognizes these environment variables, bestie. the default value is chillin' in square brackets. 🌈

  • D_AWK_PROG β€” the AWK interpreter to use. [awk]
  • D_XCLIP_PROG β€” the xclip application. [xclip]
  • D_XTERM_PROG β€” xterm or an equivalent terminal emulator. [xterm]
  • D_UTF8_LOCALE β€” the UTF-8 locale. [en_US.UTF-8]
  • D_DICT_PROG β€” the dictionary client program. [dict]
  • D_DICT_SERVER β€” the option for the dictionary client that specifies the server. [-h dict.org]
  • D_DICT_PORT β€” the option for the dictionary client that specifies the port. [-p 2628]
  • D_DICT_DB_OPT β€” the option for the dictionary client that specifies the database. [-d foldoc]
  • D_XTERM_CLASS β€” the option for the terminal emulator that specifies the class. [-class XTerm]
  • D_XTERM_NAME β€” the option for the terminal emulator that specifies the name. [-name xterm_dict]
  • D_XTERM_TITLE β€” the option for the terminal emulator that specifies the title. [-title dict_lookup]
  • D_TEXT_WIDTH β€” the program that calculates text width for a given text. [cyrillic_text_width] 🚨 heads up though: cyrillic_text_width doesn't work correctly for Japanese, Korean, Chinese and some other languages. noted, not hidden, we tell the truth here. πŸ’€
  • D_TERM_X β€” the terminal emulator X coordinate. [+200]
  • D_TERM_Y β€” the terminal emulator Y coordinate. [+200]
  • D_TERM_H β€” the terminal emulator height. [+40]
  • D_PAGER β€” the pager. [less]

πŸ‘‘ SEE ALSO πŸ‘‘

go read these too, they're the friend group: dict(1), less(1), xterm(1), dictd(8), http://www.dict.org, and RFC 2229. πŸ”₯


πŸ’œ and that's the whole page!! this one's from 9 January 2011, and it's page DICT_LOOKUP(1) of the manual. fr fr, you understood all of it, i'm so proud of you, go look up some words bestie πŸ«Άβœ¨πŸŽ€
πŸ“¦ where this page comes from