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

Incorect quote marks in code section-headers in PDF version of docs #62377

Closed
icedream91 mannequin opened this issue Jun 10, 2013 · 6 comments
Closed

Incorect quote marks in code section-headers in PDF version of docs #62377

icedream91 mannequin opened this issue Jun 10, 2013 · 6 comments
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@icedream91
Copy link
Mannequin

icedream91 mannequin commented Jun 10, 2013

BPO 18177
Nosy @akuchling, @birkenfeld, @ezio-melotti, @bitdancer

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2013-10-12.16:26:00.036>
created_at = <Date 2013-06-10.02:03:00.730>
labels = ['type-feature', 'invalid', 'docs']
title = 'Incorect quote marks in code section-headers in PDF version of docs'
updated_at = <Date 2013-10-12.16:26:00.035>
user = 'https://bugs.python.org/icedream91'

bugs.python.org fields:

activity = <Date 2013-10-12.16:26:00.035>
actor = 'georg.brandl'
assignee = 'docs@python'
closed = True
closed_date = <Date 2013-10-12.16:26:00.036>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2013-06-10.02:03:00.730>
creator = 'icedream91'
dependencies = []
files = []
hgrepos = []
issue_num = 18177
keywords = []
message_count = 6.0
messages = ['190882', '190908', '190910', '199354', '199433', '199591']
nosy_count = 7.0
nosy_names = ['akuchling', 'georg.brandl', 'ezio.melotti', 'r.david.murray', 'docs@python', 'tshepang', 'icedream91']
pr_nums = []
priority = 'normal'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue18177'
versions = ['Python 2.7', 'Python 3.3', 'Python 3.4']

@icedream91
Copy link
Mannequin Author

icedream91 mannequin commented Jun 10, 2013

In library.pdf file(Release 3.3.2, June 09, 2013), I found a typo in page 149: I think the quotation marks are wrong in "datetime.isoformat(sep=’T’)" sentence, they should both be "'".
But it's right in online documents (http://docs.python.org/3/library/datetime.html#datetime.datetime.isoformat).

Thanks.

@icedream91 icedream91 mannequin assigned docspython Jun 10, 2013
@icedream91 icedream91 mannequin added the docs Documentation in the Doc dir label Jun 10, 2013
@akuchling
Copy link
Member

Confirmed. I think this is a general typographic issue in the PDF documentation. If I cut-and-paste the datetime.isoformat(sep='T') line from the PDF, the single quotes are pasted as U+2019 RIGHT SINGLE QUOTE.

Looking at the library.tex file built by "make pdflatex", it contains the ASCII single quotes, so LaTeX is responsible for turning the quotes into smart quotes.

I don't know if this is worth fixing and can see arguments both ways. The smart quotes are readable and I doubt a reader will be confused and try to actually type them in their source code. OTOH it's annoying that cut-and-pasting code from the PDFs won't work.

@bitdancer
Copy link
Member

I presume that tex doesn't do quote-transformation on code blocks (it is not really smart quotes, since IIRC in tex you actually have to specify ` and ' in the correct places yourself). So perhaps the problem is that the function headers &c aren't being properly marked up as code in the latex output engine of Sphinx?

@bitdancer bitdancer changed the title Typo in Documents Incorect quote marks in code section-headers in PDF version of docs Jun 10, 2013
@ezio-melotti ezio-melotti added the type-feature A feature request or enhancement label Jun 15, 2013
@tshepang
Copy link
Mannequin

tshepang mannequin commented Oct 9, 2013

A work-around: http://stackoverflow.com/a/16164658/321731.

@ezio-melotti
Copy link
Member

Should this be moved to the Sphinx bug tracker?

@birkenfeld
Copy link
Member

Yes, there is already one or two issues there (e.g. number 1239).

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

4 participants