Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typesetting backticks ` and straight single quote ' #3476

Open
seisman opened this issue Oct 1, 2024 · 0 comments · May be fixed by #3105
Open

Typesetting backticks ` and straight single quote ' #3476

seisman opened this issue Oct 1, 2024 · 0 comments · May be fixed by #3105
Labels
discussions Need more discussion before taking further actions
Milestone

Comments

@seisman
Copy link
Member

seisman commented Oct 1, 2024

Backtick (or grave accent) ` and straight single quote ' are ASCII characters and can be typed using a normal keyboard.

If you compare the Adobe ISOLatin1+ encoding, and the ISO 8859-1 encoding, you will see that,

  • code 027 is ' in ISO 8859-1, and is in Adobe ISOLatin1+
  • code 060 is ` in ISO 8859-1, and is in Adobe ISOLatin1+

There must be some historical or typographic reasons behind the differences. Due to the above differences, typesetting `' in PostScript results in ‘’, which means users have to use octal codes if they need the `' characters.

Here is a minimal example to reproduce the issue:

import pygmt

label = "A ` ' \" “ ” ‘ ’ B"
fig = pygmt.Figure()
fig.basemap(region=[0, 10, 0, 5], frame=True, projection="x1c")
fig.text(x=5, y=2, text=label, font="50p")
fig.show()

The script produces the following image:

quotes

It's possible to patch the ISOLatin1+ encoding mapping table so that `' are displayed like `', rather than ‘’. But it's a breaking change. So, do we want to break it or not?

@seisman seisman added the discussions Need more discussion before taking further actions label Oct 1, 2024
@seisman seisman added this to the 0.14.0 milestone Dec 3, 2024
@seisman seisman removed this from the 0.14.0 milestone Dec 24, 2024
@seisman seisman added this to the 0.15.0 milestone Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussions Need more discussion before taking further actions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant