Skip to content

Minor revison of long-option items - #5592

Merged
PaulWessel merged 14 commits into
masterfrom
longcommon-update
Feb 23, 2022
Merged

PaulWessel merged 14 commits into
masterfrom
longcommon-update

Conversation

@PaulWessel

Copy link
Copy Markdown
Contributor

After reviewing the current gmt_common_longoptions.h table, Meghan and I made a few changes:

  1. Only use underscores to separate twowords that are hard to read otherwise (e.g., splitting two vowels)
  2. Changed the single modifier name starting with uppercase to be lowercase
  3. Renamed the long modifiers for +L, +s, +S in -B axis
  4. Improved the -j words. --distance is better but still looking for a "family" name for spherical, ellipsoidal, flatearth. @WalterHFSmith ?

After reviewing the current gmt_common_longoptions.h table, Meghan and I made a few changes.
@PaulWessel
PaulWessel requested review from a team August 4, 2021 20:29
@PaulWessel PaulWessel self-assigned this Aug 4, 2021
Comment thread src/gmt_common_longoptions.h Resolved
Comment thread src/gmt_common_longoptions.h Resolved
Comment thread src/gmt_common_longoptions.h Resolved
@PaulWessel

Copy link
Copy Markdown
Contributor Author

Wonder if in -q the words perset,perfile,persegment would be better as byset,byfile,bysegment?

@maxrjones

Copy link
Copy Markdown
Member

Wonder if in -q the words perset,perfile,persegment would be better as byset,byfile,bysegment?

Yes to me for byset, etc.

@PaulWessel

Copy link
Copy Markdown
Contributor Author

Given the general complication with keywords that are composed of two logical words (e.g., "by segment" becoming either bysegment or by_segment but not by-segment, for instance [since these may be variables in Julia]), I think we should always try really, really hard to come up with synonyms or other roundabout phrases that reduces to a single logical word. Surely this must be possible so we can avoid or at least minimize the two-word problem?

Looking at just the common option table, the candidates for hard thinking are
-B+s: currently alt_label.
-b: big_endian, little_endian
-j: flatearth
-q: byset, byfile, bysegment

For instance, while "Flat Earth" may tell us something, is that generally a good term for what -jf does? Might there be a better term? Big and little endian is very tricky since we are so used to the endian which derives from Gulliver's travels...

@PaulWessel PaulWessel modified the milestones: 6.3.0, Future release Nov 18, 2021
@PaulWessel

Copy link
Copy Markdown
Contributor Author

Let's approve this one, @meghanrjones - it has no affect on anyone.

@PaulWessel
PaulWessel merged commit ba0ae77 into master Feb 23, 2022
@PaulWessel
PaulWessel deleted the longcommon-update branch February 23, 2022 18:14
@seisman

seisman commented Feb 24, 2022

Copy link
Copy Markdown
Member

@PaulWessel It seems you also need to update the test test/modern/longbasemap.sh

Warning: ING]: Long-modifier form WSne+fill=lightgreen+obliquepole=60/20 for option -B not recognized!
/usr/local/bin/gm compare: image difference exceeds limit (0.0506297 > 0.003).
ERROR: gmtest:167
memtrack errors: 0
exit status: 1
test/modern/longbasemap.ps: RMS Error = 0.0506 [FAIL]
memtrack errors: 0
exit status: 1

PaulWessel added a commit that referenced this pull request Feb 24, 2022
Following #5592, needed to update longbasemap.sh modifiers.
PaulWessel added a commit that referenced this pull request Feb 24, 2022
Following #5592, needed to update longbasemap.sh modifiers.
@seisman seisman removed this from the Future release milestone Jan 7, 2024

This branch was previously deployed

1 inactive deployment
Preview — 546a0915 Deployed Feb 23, 2022 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants