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

current "Single Codepoint Template" is incorrect and produces poor rendering #347

Open
TallTed opened this issue Jan 4, 2024 · 0 comments

Comments

@TallTed
Copy link
Member

TallTed commented Jan 4, 2024

I've come here because some advice given here is incorrect, and it led to some problematic markup and rendering in recent drafts and PRs on vc-di-bbs, especially PR#15.

An example of what I consider better markup (though it does not yet fully conform with my suggestion below, which I've based on your existing advice) and rendering is currently seen in the last paragraph of Appendix C. Security Considerations in the latest ED of Turtle 1.2

Here is the markup from your Example 4 (which is regrettably not directly linkable):

<span class="codepoint" translate="no">
  <bdi lang="fr">&#x00E9;</bdi>
  <code class="uname">U+00E9 LATIN SMALL LETTER E WITH ACUTE</code>
</span>

Example 4 (and the current template) treats the rendered glyph (e.g., é, &#x00E9; in markup) as the "codepoint", but that's not correct. The code point is little more than U+ and the hex address (e.g., U+00E9).

Example 4 (and the current template) treats a combination of the code point and the character name (e.g., U+00E9 LATIN SMALL LETTER E WITH ACUTE) as the "uname", but that's not correct. The character name (e.g., LATIN SMALL LETTER E WITH ACUTE) does not include the code point (e.g., U+00E9).

Also, the glyph will often not be rendered clearly in the bold face of the typically proportional "body" font (e.g., é), though it usually will be rendered clearly in the bold face of the typically monospaced "code" font (e.g., é).

I therefore suggest and request that the template be revised such that it produces the following example (note that there is no reason for bdi to specify French, as the example character is also used in English, and both languages are ltr ... so it could be kept as fr but I think that likely to be more confusing than not, since everything else in the vicinity is English) —

<span class="codepoint" translate="no">
  <bdi lang="en"><code title="LATIN SMALL LETTER E WITH ACUTE">&#x00E9;</code></bdi>
  <code class="codepoint">U+00E9</code>
  <code class="uname">LATIN SMALL LETTER E WITH ACUTE</code>
</span>

That renders (here, without the full W3 CSS, so the colors are missing, among other possibly unexpected visual aspects) as —

é U+00E9 LATIN SMALL LETTER E WITH ACUTE

I'm happy to add screenshots if that would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant