Conversation
…isit-dav/visit into doc-mcm86-11mar26-codex-spelling-fixes
cyrush
left a comment
There was a problem hiding this comment.
This is a nice pass to fix spelling and consistency issues.
I found some cases where file system paths where change from plugin to plug-in, which I don't think we want to change. I added those cases I found as suggestions that can be committed via this PR.
| A dictionary containing a key/value mapping to set options needed by the | ||
| database exporter. The default values can be obtained in the appropriate | ||
| format using GetExportOptions('plugin'). | ||
| format using GetExportOptions('plug-in'). |
There was a problem hiding this comment.
I think this change is ok b/c it is notional?
There was a problem hiding this comment.
If we are refererencing plugins in VisIt, I think we should consistently use plugin and not plug-in', as the latter has never been used and is not used within our code either.
There was a problem hiding this comment.
Ok, I reverted this too. I also found a couple of other places in docs that "plugins" is used as a python dict key and so "plug-ins" won't do there either. Fixed now.
There was a problem hiding this comment.
If we are refererencing plugins in VisIt, I think we should consistently use
pluginand notplug-in', as the latter has never been used and is not used within our code either.
@biagas, I wasn't seeing this before...I understand your remark is targetted specifically at documentation about the python CLI or examples of CLI. But, I wonder now...should our prose in the main docs just use the un-hyphenated version too? Hmmm...I am wondering what that means for other terms that were adjusted for stylistic reasons here now too.
There was a problem hiding this comment.
I just refreshed and am still seeing a lot of plug-in. Were you intending to revert it everywhere?
There was a problem hiding this comment.
Well, no. Just where it is programmatically relevant in python CLI code examples.
There was a problem hiding this comment.
Why is plug-in better than plugin? Should we also adjust all our comments (which is prose) in our code base to change use of plugin?
There was a problem hiding this comment.
Well, Google's style guide uses "plugin". Microsoft uses "plug-in". So does Chicago manual of style. I think I am fine with either. But, not being an English major, I chose to trust what the AI believes is proper style.
But, more importantly, I think what we decide for one term like plugin shoud maybe then applied to all similar terms such as metadata, timestep, thirdparty, high-level, problem-sized, zone-centered? I worry it can get away from us quickly. That said, current docs are not consistent in usage of several of these terms.
There was a problem hiding this comment.
I vote we use plugin universally if it means making less changes than switching to plug-in universally. There is nothing wrong with plugin and we use it extensively, both programmatically and in our documentation.
There was a problem hiding this comment.
I am going to do another commit that deals with hyphenations. Here is a proposed accepted style list for common hyphenations...
- plugin
- metadata
- timestep
- timestamp
- datatype
- dataset
- filesystem
- workload
- workflow
- multidimensional
- nonlinear
- precompute
- reopen, restart, rebuild, rewrite, redo
- command-line
- run-time
- time-state
- high-level
- low-level
- third-party
- problem-sized
- zone-centered, node-centered, edge-centered, face-centered, vertex-centered, point-centered, cell-centered
- staggered-grid
- block-structured
- patch-based
- multi-resolution, multi-block, multi-domain
Co-authored-by: Cyrus Harrison <cyrush@llnl.gov>
Co-authored-by: Cyrus Harrison <cyrush@llnl.gov>
Co-authored-by: Cyrus Harrison <cyrush@llnl.gov>
…isit-dav/visit into doc-mcm86-11mar26-codex-spelling-fixes
JustinPrivitera
left a comment
There was a problem hiding this comment.
We need to be careful about codex making changes that we don't want.
| }, | ||
| { | ||
| "path": "VisIt.dmg/VisIt.app/Contents/MacOS/VisIt", | ||
| "path": "VisIt.dmg/VisIt.app/Contents/macOS/VisIt", |
There was a problem hiding this comment.
did this get caught by a previous review? Do we want to change the path here?
There was a problem hiding this comment.
I missed this, -- lowercase start here is incorrect
There was a problem hiding this comment.
So, on disk, Apple indeed uses MacOS in the pathnames. So, this needs to be fixed.
| macOS only | ||
| """"""""""" |
There was a problem hiding this comment.
the ~~~ line needs one less ~ now that you removed the space.
| Finally, ``xml2cmake`` created *CMakeLists.txt* file that CMake can use to generate a build system for your plug-in. | ||
| If you run ``cmake .`` at the command prompt and you are on a UNIX system such as Linux or MacOS X, CMake will generate a Makefile for your plug-in. | ||
| Finally, ``xml2cmake`` created a *CMakeLists.txt* file that CMake can use to generate a build system for your plug-in. | ||
| If you run ``cmake .`` at the command prompt and you are on a UNIX system such as Linux or macOS, CMake will generate a Makefile for your plug-in. |
There was a problem hiding this comment.
Why make the change from MacOS X to macOS? Are we losing information here? Why change from Mac OS to macOS? Linux, Windows, and UNIX all start with capital letters. Why should macOS not be capitalized?
There was a problem hiding this comment.
I think we should change to macOS, as that's Apple's name for OS.
However there are a few cases were changes keep the X (macOS X), which we don't want.
So we need to be careful.
There was a problem hiding this comment.
@cyrush convinced me that macOS is the right way. So please ignore my comments about changing it for stylistic reasons. But any time we are changing a path or a URL we need to be careful. There are also many cases where we include the X still after codex made changes, like Cyrus pointed out.
| If you type: ``find ~/.visit -name "*.so"`` into your command window, you will be able to locate the *libE*, *libI*, and *libM* files that make up your compiled plug-in (see :numref:`Figure %s <pluginbuildresults>`). | ||
|
|
||
| If you develop for MacOS X, you should substitute ``*.dylib`` for ``*.so`` in the previous command because shared libraries on MacOS X have a *.dylib* file extension instead of a *.so* file extension. | ||
| If you develop for macOS X, you should substitute ``*.dylib`` for ``*.so`` in the previous command because shared libraries on macOS X have a *.dylib* file extension instead of a *.so* file extension. |
|
|
||
| It is recommended that while you develop your plug-ins, you only install them in your *~/.visit* directory so other VisIt_ users will not be affected. | ||
| However, if you develop your plug-in on MacOS X, you will have to make sure that your plug-ins are installed publicly so that they can be loaded at runtime. | ||
| However, if you develop your plug-in on macOS X, you will have to make sure that your plug-ins are installed publicly so that they can be loaded at runtime. |
| * ``VUSER_HOME/<visit-version>/<visit-arch>/plugins/operators/`` | ||
| * ``VUSER_HOME/<visit-version>/<visit-arch>/plugins/databases/`` | ||
| * ``VUSER_HOME/<visit-version>/<visit-arch>/plugins/plots/`` | ||
| * ``VUSER_HOME/<visit-version>/<visit-arch>/plug-ins/operators/`` | ||
| * ``VUSER_HOME/<visit-version>/<visit-arch>/plug-ins/databases/`` | ||
| * ``VUSER_HOME/<visit-version>/<visit-arch>/plug-ins/plots/`` |
There was a problem hiding this comment.
this change needs to be reverted.
| Choosing email notification | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
There was a problem hiding this comment.
remove a ~ from the line below
| If you type: ``find ~/.visit -name "*.so"`` into your command window, you will be able to locate the *libE*, *libI*, and *libM* files that make up your compiled plug-in (see :numref:`Figure %s <pluginbuildresults>`). | ||
|
|
||
| If you develop for MacOS X, you should substitute ``*.dylib`` for ``*.so`` in the previous command because shared libraries on MacOS X have a *.dylib* file extension instead of a *.so* file extension. | ||
| If you develop for macOS X, you should substitute ``*.dylib`` for ``*.so`` in the previous command because shared libraries on macOS X have a *.dylib* file extension instead of a *.so* file extension. |
There was a problem hiding this comment.
If we change to macOS, we need to drop the X
There was a problem hiding this comment.
My understanding is OSX is outdated. Its called macOS now.
…isit-dav/visit into doc-mcm86-11mar26-codex-spelling-fixes
Description
Uses Codex to fix various minor issues in docs. Each bullet below cooresponds to one of the commits here. I did examine very carefully spelling and mechanics changes and was fine with what Codex did. I spent less time evaluating the style changes Codex did. So, @biagas and @JustinPrivitera, I am fine if you choose to focus only on the style commits. Go to the Commits tab and then select the style commits page and you can add review comments specific to those changes.
Noe that the change from "plugin" to "plug-in" caused issues for example python code because
plug-inin Python means the difference after subtractininfromplugvariables andinis a python keyword. So, it took me a bit to track down some problems this was causing in CLI doc regen.Type of change
How Has This Been Tested?
I examined all spelling changes closely and most of the syntax, mechanics changes but not all. The docs may fail a regen here due to possible diffs in Section underlining lengths. Will fix after I see what we get.
Reminders:
Checklist:
[ ] I have commented my code where applicable.[ ] I have updated the release notes.[ ] I have added debugging support to my changes.[ ] I have added tests that prove my fix is effective or that my feature works.[ ] I have confirmed new and existing unit tests pass locally with my changes.[ ] I have added new baselines for any new tests to the repo.