GenericMappingTools / pygmt

A Python interface for the Generic Mapping Tools.
https://www.pygmt.org
BSD 3-Clause "New" or "Revised" License
758 stars 220 forks source link

Change non-ASCII quotes “ to ASCII quotes " #1130

Closed seisman closed 3 years ago

seisman commented 3 years ago

The following files use non-ASCII double quotes “”, but ideally we should use ASCII double quotes "":

examples/gallery/lines/linestyles.py:Giving “dotted” or “.” yields a dotted line, whereas a dashed pen is requested
examples/gallery/lines/linestyles.py:with “dashed” or “-”. Also combinations of dots and dashes, like “.-” for a
examples/projections/misc/misc_robinson.py:the world map “look” right 22. The scale is true along latitudes 38. The projection was
examples/projections/misc/misc_sinusoidal.py:“Equal-area Mercator” projection. The central meridian is a straight line; all other
examples/projections/misc/misc_winkel_tripel.py:German word “tripel” refers to this junction of where each of these elements are least
examples/projections/misc/misc_winkel_tripel.py:and Son started to use it in its world-renowned “The Times Atlas of the World” in the
pygmt/src/coast.py:        Select filling or clipping of “dry” areas.
pygmt/src/coast.py:        Select filling or clipping of “wet” areas.
pygmt/src/grdtrack.py:    ``interpolation``; Default uses “natural” conditions (second partial
shahid-0 commented 3 years ago

i will ready to take this issue

seisman commented 3 years ago

@shahid-0 Thanks for your help! Let us know if you need help.

adii095 commented 3 years ago

Can we create a new python file that goes through all the above files in the directory and then replaces occurrences of non-ASCII double quotes to ASCII as requested? Is that the way to do it? Actually a shell script would do the job

seisman commented 3 years ago

The easiest way is to edit the above files manually. Of course, you can write a simple Python or Shell script to do the job automatically.

shahid-0 commented 3 years ago

Hi I create the python file and change the code but when I push the file to the repository this will me this issue "error: failed to push some refs" so as a beginner I don't know how to resolve this issue can you please help me what is the issue

core-man commented 3 years ago

Hi I create the python file and change the code but when I push the file to the repository this will me this issue "error: failed to push some refs" so as a beginner I don't know how to resolve this issue can you please help me what is the issue

Could you present the git commands you use? Or you could refer to Aaron Meurer's tutorial on the git workflow.