Replied: Wed, 28 Feb 90 16:04:12 PST
Replied: "Mark Moraes <moraes@csri.toronto.edu> "
Return-Path: moraes@church.csri.toronto.edu
Delivery-Date: Mon, 19 Feb 90 23:20:56 PST
From moraes@church.csri.toronto.edu Mon Feb 19 23:20:47 1990
Received: from hplms2.hpl.hp.com by hplnpm.HPL.HP.COM; Mon, 19 Feb 90 23:20:47 pst
Received: from church.csri.toronto.edu by hplms2.hpl.hp.com with SMTP
	(15.11.1.3/15.5+IOS 3.20) id AA28454; Mon, 19 Feb 90 23:20:41 pst
Received: by church.csri.toronto.edu id 1012; Tue, 20 Feb 90 02:20:02 EST
From: Mark Moraes <moraes@csri.toronto.edu>
To: mayer@hplnpm.hpl.hp.com
Subject: R4 xwebster fix
Cc: moraes@csri.toronto.edu
Message-Id: <90Feb20.022002est.1012@church.csri.toronto.edu>
Date: 	Tue, 20 Feb 90 02:19:47 EST

xrdb doesn't seem to like comments in defaults files starting with #.
(Possibly a bug in Hence this fix.  I also fixed the Xw widgets to
stop Xt whining everytime xwebster tries to change the titlebar.  (see
fixes on expo) (It doesn't matter when Xwebster.ad is installed in
LIBDIR/app-defaults, but since I test the program by xrdb'ing the
app-defaults file and then running the program, it didn't work then)

*** #Xwebster.ad~	Mon Feb 19 23:57:14 1990
--- Xwebster.ad	Mon Feb 19 23:57:14 1990
***************
*** 1,3 ****
--- 1,4 ----
+ /*
  ################################################################################
  #
  # File:         Xwebster
***************
*** 31,36 ****
--- 32,38 ----
  ##
  ## this is the help display that comes up initially when you run Xwebster.
  ##
+ */
  *helpText: WELCOME TO XWEBSTER, by Niels Mayer (mayer@hplabs.hp.com)\n\n\
      Webster's 7th Collegiate Dictionary, Copyright (C) 1963 by Merriam-Webster,\n\
      Inc.  No part of this information may be copied or reprinted without the\n\
***************
*** 55,60 ****
--- 57,63 ----
  while the '*' matches zero or more characters.  If wildcards are used, the\n\
  program will return either "No match" or a browser of matching words.\n
  
+ /*
  ##
  ## The following are parameters for accessing the webster server. Note that
  ## hostAddrList is a list of internet adresses that are tried in succession
***************
*** 68,83 ****
--- 71,90 ----
  ## (or look at the source  code). Webster servers tend to be located on port 
  ## 103 or 2627.)
  ##
+ */
  *hostAddrList: 26.0.0.73 10.0.0.51 26.0.0.73 10.0.0.51 26.0.0.73 10.0.0.51 26.0.0.73 10.0.0.51 26.0.0.73 10.0.0.51
  *hostPort: 103
  *hostServiceName: webster
  
+ /*
  ##
  ## This is the width of the wordinput widget. I figure that most words are
  ## less than 30 characters long.
  ##
+ */
  *wordInputWidgetWidth: 30
  
+ /*
  ##
  ## if useEditorAsDisplay is true, then a TextEdit widget is used to display,
  ## definitions.
***************
*** 98,105 ****
--- 105,114 ----
  ##         the definition. The TexEdit widget doesn't have a scrollbar, so it's
  ##         not visually obvious that part of the definition may be off-screen.
  ##
+ */
  *useEditorAsDisplay: FALSE
  
+ /*
  ##
  ## The following control the size of the pane that display's word definitions.
  ## The webster server formats it's output for 80-column wide displays, and 
***************
*** 107,115 ****
--- 116,126 ----
  ## of this implementation and the Xwidgets, "85" width allows for a scrollbar
  ## to fit in the display pane without covering up 80-column wide text.
  ##
+ */
  *displayWidth: 85
  *displayHeight: 10
  
+ /*
  ##
  ## When a long list of words is being sent by the server (eg, list endings of
  ## all words beginning with "a"), the wordlist display is updated every 
***************
*** 120,132 ****
--- 131,147 ----
  ## the words in the wordlist arrive from the server incementally or if you want
  ## to reduce the amount of display updating.
  ## 
+ */
  *numWordsBeforeRefresh: 10
  
+ /*
  ###############################################################################
  # *panel -- XwvPanedWidgetClass.
  #
+ */
  *panel.sashIndent: -20
  
+ /*
  ###############################################################################
  ##
  ## *panel.display_scroller and *panel.display_scroller.display below only
***************
*** 151,156 ****
--- 166,172 ----
  #
  # *panel.display_scroller.display -- XwstaticTextWidgetClass
  #
+ */
  *panel.display_scroller.display.borderWidth: 0
  *panel.display_scroller.display.shadowOn: no
  *panel.display_scroller.display.alignment: Left
***************
*** 157,166 ****
--- 173,185 ----
  *panel.display_scroller.display.gravity: CenterGravity
  *panel.display_scroller.display.wrap: FALSE
  *panel.display_scroller.display.strip: FALSE
+ /*
  # it would be very silly to use proportional fonts here, since the webster
  # server formats the text output for fixed width fonts.
+ */
  *display_scroller.display.font: 6x13
  
+ /*
  ###############################################################################
  ##
  ## *panel.display below only counts if "*useEditorAsDisplay" resource is true.
***************
*** 180,193 ****
  # *panel.display.max: 10000
  # *panel.display.allowResize: FALSE
  # *panel.display.skipAdjust: FALSE
! 
  *panel.display.wrap: wrapoff
  ## it would be very silly to use proportional fonts here, since the webster
  ## server formats the text output for fixed width fonts.
  *panel.display.font: 6x13
  ## this is the default TextEdit txlation table with all bindings that alter 
  ## the editor's text removed. In addition, backspace and space move to 
  ## previous and next pages, respectively. 
  *panel.display.translations: \
       <Key>BackSpace:		previous-page() \n\
       Ctrl<Key>H:		previous-page() \n\
--- 199,216 ----
  # *panel.display.max: 10000
  # *panel.display.allowResize: FALSE
  # *panel.display.skipAdjust: FALSE
! */
  *panel.display.wrap: wrapoff
+ /*
  ## it would be very silly to use proportional fonts here, since the webster
  ## server formats the text output for fixed width fonts.
+ */
  *panel.display.font: 6x13
+ /*
  ## this is the default TextEdit txlation table with all bindings that alter 
  ## the editor's text removed. In addition, backspace and space move to 
  ## previous and next pages, respectively. 
+ */
  *panel.display.translations: \
       <Key>BackSpace:		previous-page() \n\
       Ctrl<Key>H:		previous-page() \n\
***************
*** 236,241 ****
--- 259,265 ----
       <EnterWindow>:		enter() \n\
       <LeaveWindow>:		leave()
  
+ /*
  ###############################################################################
  # *panel.titlebar -- XwtitlebarWidgetClass
  #
***************
*** 247,259 ****
  ## preset: *panel.titlebar.max == *panel.titlebar.height
  # *panel.titlebar.allowResize: FALSE
  # *panel.titlebar.skipAdjust: FALSE
! 
  *panel.titlebar.titlePrecedence: 0
  *panel.titlebar.titleRegion: Center
  
  #
  # *panel.titlebar.StaticText -- the label text on the titlebar panel
  #
  *panel.titlebar.StaticText.gravity: CenterGravity
  *panel.titlebar.StaticText.borderWith: 0
  *panel.titlebar.StaticText.shadowOn: no
--- 271,285 ----
  ## preset: *panel.titlebar.max == *panel.titlebar.height
  # *panel.titlebar.allowResize: FALSE
  # *panel.titlebar.skipAdjust: FALSE
! */
  *panel.titlebar.titlePrecedence: 0
  *panel.titlebar.titleRegion: Center
  
+ /*
  #
  # *panel.titlebar.StaticText -- the label text on the titlebar panel
  #
+ */
  *panel.titlebar.StaticText.gravity: CenterGravity
  *panel.titlebar.StaticText.borderWith: 0
  *panel.titlebar.StaticText.shadowOn: no
***************
*** 261,285 ****
  *panel.titlebar.wrap: FALSE
  *panel.titlebar.font: variable
  
  #
  # *panel.titlebar.PushButton -- XwpushButtonWidgetClass
  #
  *panel.titlebar.PushButton.traversalType: highlight_enter
  *panel.titlebar.PushButton.highlightThickness: 1
  ## color display users might want to uncomment the following line and set
  ## .highlightTile to foreground as well. 
  # *panel.titlebar.PushButton.highlightColor: white
  *panel.titlebar.PushButton.highlightTile: 50_foreground
  *panel.titlebar.PushButton.font: variable
  
  *panel.titlebar.quit_button.label: Quit
  *panel.titlebar.quit_button.region: Left
  # *panel.titlebar.quit_button.lPadding: 2
  # *panel.titlebar.quit_button.rPadding: 2
  # *panel.titlebar.quit_button.precedence: 1
! 
  *panel.titlebar.help_button.label: Help
  *panel.titlebar.help_button.region: Right
  # *panel.titlebar.help_button.lPadding: 2
  # *panel.titlebar.help_button.rPadding: 2
  # *panel.titlebar.help_button.precedence: 1
--- 287,317 ----
  *panel.titlebar.wrap: FALSE
  *panel.titlebar.font: variable
  
+ /*
  #
  # *panel.titlebar.PushButton -- XwpushButtonWidgetClass
  #
+ */
  *panel.titlebar.PushButton.traversalType: highlight_enter
  *panel.titlebar.PushButton.highlightThickness: 1
+ /*
  ## color display users might want to uncomment the following line and set
  ## .highlightTile to foreground as well. 
  # *panel.titlebar.PushButton.highlightColor: white
+ */
  *panel.titlebar.PushButton.highlightTile: 50_foreground
  *panel.titlebar.PushButton.font: variable
  
  *panel.titlebar.quit_button.label: Quit
  *panel.titlebar.quit_button.region: Left
+ /*
  # *panel.titlebar.quit_button.lPadding: 2
  # *panel.titlebar.quit_button.rPadding: 2
  # *panel.titlebar.quit_button.precedence: 1
! */
  *panel.titlebar.help_button.label: Help
  *panel.titlebar.help_button.region: Right
+ /*
  # *panel.titlebar.help_button.lPadding: 2
  # *panel.titlebar.help_button.rPadding: 2
  # *panel.titlebar.help_button.precedence: 1
***************
*** 287,294 ****
--- 319,328 ----
  ###############################################################################
  # *panel.wordlist_scroller -- XwswindowWidgetClass
  #
+ */
  *panel.wordlist_scroller.height: 100
  
+ /*
  ## Constraint resources added by VerticallyPanedWidget (XwvPanedWidgetClass):
  # *panel.wordlist_scroller.min: 1
  # *panel.wordlist_scroller.max: 10000
***************
*** 298,303 ****
--- 332,338 ----
  #
  # *panel.wordlist_scroller.wordlist -- XwrowColWidgetClass
  #
+ */
  *panel.wordlist_scroller.wordlist.hSpace: 2
  *panel.wordlist_scroller.wordlist.vSpace: 2
  *panel.wordlist_scroller.wordlist.layoutType: requested_columns
***************
*** 307,325 ****
--- 342,365 ----
  *panel.wordlist_scroller.wordlist.mode: n_of_many
  *panel.wordlist_scroller.wordlist.borderWidth: 0
  
+ /*
  #
  # *panel.wordlist_scroller.wordlist.word -- XwpushButtonWidgetClass
  # ??? for some reason, I must spec this as *panel.wordlist_scroller*wordlist...
  # ??? rather than panel.wordlist_scroller.wordlist... even though
  # ??? wordlist_scroller is the parent of wordlist -- an Xtk bug, perhaps?
+ */
  *panel.wordlist_scroller*wordlist.word.font: 6x13
  *panel.wordlist_scroller*wordlist.word.traversalType: highlight_enter
  *panel.wordlist_scroller*wordlist.word.highlightThickness: 1
+ /*
  ## color display users might want to uncomment the following line and set
  ## .highlightTile to foreground as well. 
  # *panel.wordlist_scroller*wordlist.word.highlightColor: white
+ */
  *panel.wordlist_scroller*wordlist.word.highlightTile: 50_foreground
  
+ /*
  ###############################################################################
  # *panel.control_panel -- XwtitlebarWidgetClass
  
***************
*** 332,342 ****
--- 372,385 ----
  #
  # *panel.control_panel.PushButton -- XwpushButtonWidgetClass
  #
+ */
  *panel.control_panel.PushButton.traversalType: highlight_enter
  *panel.control_panel.PushButton.highlightThickness: 1
+ /*
  ## color display users might want to uncomment the following line and set
  ## .highlightTile to foreground as well. 
  # *panel.control_panel.PushButton.highlightColor: white
+ */
  *panel.control_panel.PushButton.highlightTile: 50_foreground
  *panel.control_panel.PushButton.font: variable
  
***************
*** 343,360 ****
  *panel.control_panel.define_button.label: Define <ret>
  *panel.control_panel.define_button.region: Center
  *panel.control_panel.define_button.precedence: 0
  # *panel.control_panel.define_button.lPadding: 2
  # *panel.control_panel.define_button.rPadding: 2
! 
  *panel.control_panel.complete_button.label: Complete <esc>
  *panel.control_panel.complete_button.region: Center
  *panel.control_panel.complete_button.precedence: 1
  # *panel.control_panel.complete_button.lPadding: 2
  # *panel.control_panel.complete_button.rPadding: 2
! 
  *panel.control_panel.endings_button.label: Endings <?>
  *panel.control_panel.endings_button.region: Center
  *panel.control_panel.endings_button.precedence: 1
  # *panel.control_panel.endings_button.lPadding: 2
  # *panel.control_panel.endings_button.rPadding: 2
  
--- 386,406 ----
  *panel.control_panel.define_button.label: Define <ret>
  *panel.control_panel.define_button.region: Center
  *panel.control_panel.define_button.precedence: 0
+ /*
  # *panel.control_panel.define_button.lPadding: 2
  # *panel.control_panel.define_button.rPadding: 2
! */
  *panel.control_panel.complete_button.label: Complete <esc>
  *panel.control_panel.complete_button.region: Center
  *panel.control_panel.complete_button.precedence: 1
+ /*
  # *panel.control_panel.complete_button.lPadding: 2
  # *panel.control_panel.complete_button.rPadding: 2
! */
  *panel.control_panel.endings_button.label: Endings <?>
  *panel.control_panel.endings_button.region: Center
  *panel.control_panel.endings_button.precedence: 1
+ /*
  # *panel.control_panel.endings_button.lPadding: 2
  # *panel.control_panel.endings_button.rPadding: 2
  
***************
*** 365,389 ****
--- 411,442 ----
  ## preset: *word_input.width = wordInputWidgetWidth*fontheight where by default
  ## *wordInputWidgetWidth: 30
  #
+ */
  *panel.control_panel.word_input.traversalType: highlight_enter
  *panel.control_panel.word_input.highlightThickness: 1
+ /*
  ## color display users might want to uncomment the following line and set
  ## .highlightTile to foreground as well. 
  # *panel.control_panel.word_input.highlightColor: white
+ */
  *panel.control_panel.word_input.highlightTile: 50_foreground
  *panel.control_panel.word_input.font: 6x13
  
  *panel.control_panel.word_input.region: Center
  *panel.control_panel.word_input.precedence: 0
+ /*
  # *panel.control_panel.word_input.lPadding: 2
  # *panel.control_panel.word_input.rPadding: 2
+ */
  *panel.control_panel.word_input.shadowOn: FALSE
  
+ /*
  ## TextEdit's default translation table that has been munged so that
  ## (1) ?, <esc> and <return> call endings, complete, and define.
  ## (2) since the word_input widget is only for a single line of text, all
  ## keystrokes from the default TextEdit table that deal with multiline text
  ## have been rebound to webster-no-op(), a function that just beeps.
+ */
  *panel.control_panel.word_input.translations: \
       <Key>Return:		webster-define-word() \n\
       <Key>Escape:		webster-complete-word() \n\
