-
-
Notifications
You must be signed in to change notification settings - Fork 274
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
It is not clear how to write a multipoint entity in your entity list #737
Comments
The conversion from codepoint to character string is done like this:
This will create the correct string representation for any Unicode codepoint. So as long as the entity consists of a single code point, this will work. Does that clear it up? |
I apologize. That isn't what I meant.
...
Please pretend for a moment that there was no dedicated capital-O umlaut In Unicode, there is a dedicated combining diaresis, and you can attach it to other characters to construct the character you need. As such, you could make the character with capital O So for a moment, pretend please that I want to rewrite your Ouml rule to emit two codepoints, and construct the Ö instead of using the real one. In this case it's silly, but this is legitimately how quite a few entities (particularly in math) are written. By example, And that's hard to think about, so we're lying, and talking about O umlaut. If for some stupid reason I wanted to emit |
I see. This is not possible with how the entities are implemented in kramdown though it is easily doable by just doing As far as I can see, however, all the HTML5 entities are just single-codepoint entities? So this should not be a problem here. Edit: Sorry, I just looked at the PR and not at the original issue - there you also listed entities with two codepoints. Supporting those entails revamping the entity implementation. |
There are a few.
There are 65 other than these three. |
❤️ ❤️ ❤️ Thank you |
Some HTML entities, such as
nsubE
, are represented as multiple unicode characters (in this caseU+2AC5
U+0338
.) This is particularly common in math symbols using the slash to strike through symbols.It is not immediately clear to me how to represent that in the kramdown entity list.
If you could tell me how to represent that one case please, I would happily extend it to the remainder.
The text was updated successfully, but these errors were encountered: