-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Add \textquotesingle to the html conversion table #3487
Conversation
Add one more symbol. Related to #3307 |
@@ -475,6 +475,7 @@ | |||
{"36", "dollar", "\\$"}, // Dollar | |||
{"37", "#37", "\\%"}, // Percent (% is not displayed correctly in the entry preview) | |||
{"39", "apos", "'"}, // Apostrophe | |||
{"39", "apos", "{\\textquotesingle}"}, // Apostrophe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but I don't think this is going to work this way. This clashes with the already existing mapping for unicode value 39 in the line above and will lead to unpredictable results later.
I think it would be better to add the conversion as part of the "manual additions" to LATEX_HTML_CONVERSION_MAP
and LATEX_UNICODE_CONVERSION_MAP
, like for the relax
term. This should have the same effect, but it avoids the clash for the other maps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So how can it be done? I just do not know the details. I think of {\textquotesingle}
as an alias of '
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have a look at lines 897 and 898 in the same class. You can add the symbol in the very same way.
Move the addition to "manual additions" part.
Thanks, perfect now :) I'll merge directly. |
LaTex
use various escape strings to denote certain symbols. Here I add {\textquotesingle} to the html conversion table, which represents apostrophe (').gradle localizationUpdate
?