Re: [gs-cvs] gs/lib

"Igor V. Melichev" <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
A problem with NOSUB is an unobvious meaning of the SUB .
Here is a quote from http://www.webster.com/cgi-bin/dictionary :

[beg quote]
Main Entry: sub-
Function: prefix
Etymology: Middle English, from Latin, under, below, secretly, from below,
up, near, from sub under, close to -- more at UP
1 : under : beneath : below <subsoil> <subaqueous>
2 a : subordinate : secondary : next lower than or inferior to <substation>
<subeditor> b : subordinate portion of : subdivision of <subcommittee>
<subspecies> c : with repetition (as of a process) so as to form, stress, or
deal with subordinate parts or relations <sublet> <subcontract>
3 : less than completely, perfectly, or normally : somewhat <subacute>
<subclinical>
4 a : almost : nearly <suberect> b : falling nearly in the category of and
often adjoining : bordering on <subarctic>
subВ·adВ·oВ·lesВ·cent subВ·agenВ·cy subВ·agent subВ·alВ·loВ·caВ·tion subВ·arВ·ea
subВ·auВ·diВ·ble subВ·avВ·erВ·age subВ·baseВ·ment subВ·baВ·sin subВ·block subВ·branch
subВ·caste subВ·catВ·eВ·goВ·riВ·zaВ·tion subВ·catВ·eВ·goВ·rize subВ·catВ·eВ·goВ·ry
subВ·ceilВ·ing subВ·celВ·lar subВ·chapВ·ter subВ·chief subВ·clan subВ·clusВ·ter
subВ·code subВ·colВ·lecВ·tion subВ·colВ·lege subВ·colВ·leВ·giate subВ·colВ·oВ·ny
subВ·comВ·misВ·sion subВ·comВ·poВ·nent subВ·corВ·date subВ·coВ·riВ·aВ·ceous subВ·counВ·ty
subВ·cult subВ·cuВ·raВ·tive subВ·dean subВ·deВ·ciВ·sion subВ·deВ·partВ·ment
subВ·deВ·velВ·opВ·ment subВ·diВ·aВ·lect subВ·diВ·recВ·tor subВ·disВ·ciВ·pline
subВ·disВ·trict subВ·econВ·oВ·my subВ·erect subВ·file subВ·frame subВ·genВ·erВ·aВ·tion
subВ·genre subВ·goal subВ·govВ·ernВ·ment subВ·huВ·mid subВ·inВ·dusВ·try
subВ·inВ·hibВ·iВ·toВ·ry subВ·lanВ·guage subВ·levВ·el subВ·liВ·brarВ·iВ·an subВ·liВ·cense
subВ·litВ·erВ·aВ·cy subВ·litВ·erВ·ate subВ·lot subВ·manВ·agВ·er subВ·marВ·ket
subВ·maxВ·iВ·mal subВ·menu subВ·minВ·iВ·mal subВ·minВ·isВ·ter subВ·naВ·tionВ·al
subВ·netВ·work subВ·niche subВ·opВ·tiВ·mal subВ·opВ·tiВ·miВ·zaВ·tion subВ·opВ·tiВ·mize
subВ·opВ·tiВ·mum subВ·orВ·bicВ·uВ·lar subВ·orВ·gaВ·niВ·zaВ·tion subВ·panВ·el subВ·par
subВ·paraВ·graph subВ·parВ·alВ·lel subВ·part subВ·peВ·riВ·od subВ·phase subВ·priВ·mate
subВ·proВ·cess subВ·prodВ·uct subВ·projВ·ect subВ·proВ·leВ·tarВ·iВ·at subВ·raВ·tioВ·nal
subВ·satВ·uВ·ratВ·ed subВ·satВ·uВ·raВ·tion subВ·scale subВ·science subВ·sea
subВ·secВ·reВ·tary subВ·secВ·tor subВ·segВ·ment subВ·seiВ·zure subВ·sense
subВ·senВ·tence subВ·seВ·ries subВ·site subВ·skill subВ·soВ·ciВ·ety subВ·speВ·cialВ·ist
subВ·speВ·cialВ·ize subВ·speВ·cialВ·ty subВ·state subВ·sysВ·tem subВ·task subВ·taxВ·on
subВ·test subВ·theme subВ·therВ·aВ·peuВ·tic subВ·topВ·ic subВ·treaВ·sury subВ·trend
subВ·tribe subВ·type subВ·unit subВ·vaВ·riВ·ety subВ·vasВ·sal subВ·visВ·iВ·ble
subВ·viВ·suВ·al subВ·world subВ·writВ·er subВ·zeВ·ro subВ·zone
[end quote]

What is SUBDEVICE ? A device subordinate, i.e. fdev->target ?
I conclude that noone can guess the Dan's meaning without reading Use.htm .
My rule is : if an object has no a self-explanatory name, the object must
not exist.
I believe that 'KEEP' is self-explanatory.
If the 'NO' logic is important, the keyword should be NOSUBSTDEVCOLOR.
>From another view, a symmetry with -dUseCIEColor gives -dUseDeviceColor.
Also I'm unclear why do we need all-uppercase here.

Igor.


----- Original Message ----- 
From: "Dan Coby" <[email protected]>
To: <[email protected]>
Sent: Wednesday, October 15, 2003 11:50 AM
Subject: [gs-cvs] gs/lib


> Update of /cvs/ghostscript/gs/lib
> In directory casper:/tmp/cvs-serv23742/lib
>
> Modified Files:
> gs_init.ps gs_devcs.ps
> Log Message:
> Change the name of NOSUBCOLORSPACES to NOSUBDEVICECOLORS.
>
> DETAILS:
>
> In a code review for the NOSUBCOLORSPACES switch, Igor suggested changing
> the name to KEEPDEVICECOLORS.  I still prefer NOSUB instead of KEEP.
> Basically I prefer that switches which stop an action begin with NO.
> However changing COLORSPACES to DEVICECOLORS is a definite improvement
> since COLORSPACES is overly general and thus inaccurate.  The only
> color spaces which are substituted are the device colors.
>
>
> Index: gs_init.ps
> ===================================================================
> RCS file: /cvs/ghostscript/gs/lib/gs_init.ps,v
> retrieving revision 1.97
> retrieving revision 1.98
> diff -u -d -r1.97 -r1.98
> --- gs_init.ps 9 Oct 2003 00:13:30 -0000 1.97
> +++ gs_init.ps 15 Oct 2003 07:50:31 -0000 1.98
> @@ -146,7 +146,7 @@
>  currentdict /NOPROMPT known   /NOPROMPT exch def
>  currentdict /NOTRANSPARENCY known   /NOTRANSPARENCY exch def
>  currentdict /DOPS known   /DOPS exch def
> -currentdict /NOSUBCOLORSPACES known   /NOSUBCOLORSPACES exch def
> +currentdict /NOSUBDEVICECOLORS known   /NOSUBDEVICECOLORS exch def
>  % The default value of ORIENT1 is true, not false.
>  currentdict /ORIENT1 known not { /ORIENT1 true def } if
>  currentdict /OSTACKPRINT known   /OSTACKPRINT exch def
>
> Index: gs_devcs.ps
> ===================================================================
> RCS file: /cvs/ghostscript/gs/lib/gs_devcs.ps,v
> retrieving revision 1.3
> retrieving revision 1.4
> diff -u -d -r1.3 -r1.4
> --- gs_devcs.ps 14 Oct 2003 15:00:50 -0000 1.3
> +++ gs_devcs.ps 15 Oct 2003 07:50:31 -0000 1.4
> @@ -65,7 +65,7 @@
>  % <color_space> <color_space_name> ..includecolorspace <color_space1>
<color_space2>
>  /cs_substitute_generic
>  { .getuseciecolor
> -    { NOSUBCOLORSPACES
> +    { NOSUBDEVICECOLORS
>          { //..includecolorspace exec dup }
>          { /ColorSpace findresource }
>        ifelse
>
> _______________________________________________
> gs-cvs mailing list
> [email protected]
> http://www.ghostscript.com/mailman/listinfo/gs-cvs
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.