DictatorGUI for dict |
Dictator is a simple GUI that allows access to a dict dictionary client. Primarily for users of unix & Linux operating systems.
Dictator runs using Xdialog, over the dict command line application, which in turn connects to a dictd dictionary daemon.
Dictator is a short and sweet shell script that uses Xdialog to interface with the user, scoop dict information and pass that back to Xdialog to present.

Dictator - User Input

Dictator - Display
Dictator is available as is with no warranty implied. The copyright remains the copyright of the copyright holder. You are a free to extend it as you like, as long as the copyright and name remains intact.
The code is offered because the author couldn't find a simple GUI dialog for dict, and it is quite a straight forward task to wrap a GUI around for basic access to dict.
#!/bin/sh #----------------------------------------------------------- # _ _ _ _ # __| (_)__| |_ __ _| |_ ___ _ _ # / _` | / _| _/ _` | _/ _ \ '_| # \__,_|_\__|\__\__,_|\__\___/_| # #----------------------------------------------------------- # File : dictator # Author : Richard Lewis # Project : proj/dictator/ # Syntax : ksh # Date : Sat 06 Sep 2008 # Copyright : Richard Lewis 2008 #----------------------------------------------------------- # dictator - dictator dictionary lookup #----------------------------------------------------------- main() { retval=0 while [ "${retval}" = "0" ] do word=$( \ Xdialog \ --title "Dictator - dict lookup" \ --under-mouse \ --stdout \ --buttons-style icon \ --no-cancel \ --inputbox "Enter Word" 7 60) retval=${?} if [ "${retval}" != "0" ] then break fi result=$(dict -P - "${word}") Xdialog \ --title "Dictator - ${word}" \ --screen-center \ --wrap \ --no-cancel \ --msgbox "${result}" 0 0 retval=${?} done } main #-----------------------------------------------------------
Copyright Poised Solutions 2008 ©
Site Designed & Developed by Poised
Solutions
If you wish to discuss hiring Poised
Solutions for an IT project
please get in contact or visit the Poised Solutions IT Consultancy
Website.
Poised Solutions is based in the
Thames Valley area of the United Kingdom. Offering a
range of bespoke software and web development solutions, with unix & linux administration.