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

Apostrophe in italics turns into bold #47

Open
Daniel-Mietchen opened this issue Sep 9, 2014 · 1 comment
Open

Apostrophe in italics turns into bold #47

Daniel-Mietchen opened this issue Sep 9, 2014 · 1 comment
Assignees

Comments

@Daniel-Mietchen
Copy link
Member

Search for
"homies" in
https://en.wikisource.org/w/index.php?title=Wikisource:WikiProject_Open_Access/Programmatic_import_from_PubMed_Central/The_Biodiversity_of_the_Mediterranean_Sea_Estimates_Patterns_and_Threats&oldid=5034390
and
http://dx.doi.org/10.1371/journal.pone.0011842

Not sure we can fix this algorithmically, though - it is encoded in a really strange fashion:

<italic>Prud</italic>'<italic>homies</italic>

http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pmc&id=PMC2914016

@Klortho
Copy link
Member

Klortho commented Sep 13, 2014

That really looks like a data error, in my estimation. Why would they italicize the word, but leave the apostrophe inside the word non-italicized? Anyway, I was able to make this work with the following wikitext:

Here's an italic word with a non-italic apostrophe:  ''Prud''&#39;''homies''

which suggests that the solution is to always escape apostrophes as numeric character references. But that makes the wikitext pretty ugly, unfortunately. On the other hand, I don't see any other way to robustly differentiate apostrophes-as-markup vs apostrophes-as-content.

What do you think?

@tcatapano tcatapano added the ready label Feb 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants