-
Notifications
You must be signed in to change notification settings - Fork 40
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
What are "CSS character escape sequences"? #352
Comments
I think that's a good idea. Maybe this is the best place to link to for the explanation: https://www.w3.org/International/questions/qa-escapes |
I think that's an excellent idea. A small explanation in the text would also be useful. For example, does |
Quoting from https://mathiasbynens.be/notes/css-escapes : "Basically, to escape any numeric character, just prefix it with \3 and append a space character" so it would be |
This is where I get confused. According to https://googlechrome.github.io/samples/css-escape/ - it should be So, a few examples in the spec would be helpful. |
yeah, I'm confused also :-) |
There should be no confusion. If you want to encode "123" it's one of:
Or
Or
But definitely not:
The advice that you can follow It's a good idea to have an example like 123 as the label so that you can show one of the valid sequences. It also suggests that the qa-escapes article could use a sequence example. |
Thanks for clarifying! Easy to add an example - and yes, the qa-escapes article could do with one also. :-) |
shouldn't we link to the CSS clause and let/ask them do the appropriate examples? |
I think having a few examples in the document would be helpful. If this is going to confuse people used to SRT files, then the more in-line examples the better. |
Evidently there is confusion... ^_^
|
Yeah, I confused myself in the end, so agree with @edent to just add another example. |
Or, is it possible to not use CSS Escaping? Seems like such an obscure requirement. |
Nope, your stylesheet will not work to style cues without the escaping. |
Ok, i did it in the lower part of the section at http://w3c.github.io/i18n-drafts/questions/qa-escapes.en#cssescapes Please could you take a look, and if you're happy with it, i'll publish to the /International site. Thanks. |
@r12a I think the example is "okay" but confusing because there is something missing from the article, example-wise. I would suggest adding an example of a multi-character escape, e.g. ‘日本語‘ -> Otherwise the number (123 -> \31 23) example is confusing. |
@aphillips why would you need to do multiple escaping here? Or are you talking about a different use case? |
@r12a You don't need it here. I'm suggesting you need it in the article. In the article you only ever show one character being escaped in a row, with the édition/émotion examples. The above thread represents confusion about how additional characters work. If you only show one-in-a-row, it's less clear how the escapes work. |
@r12a does the article say that non-ASCII has to be escaped in CSS? It does not. |
PR: #356 |
Ok, new text at http://w3c.github.io/i18n-drafts/questions/qa-escapes.en.html#cssescapes including the feedback above. Please review. Thanks. (I also made additional edits to other parts of the article, including a new quick answer section.) |
@r12a LGTM. |
Re Example 6 https://www.w3.org/TR/2017/WD-webvtt1-20170808/#introduction-other-features
Would it be possible to link the text "CSS character escape sequences" to an explanation?
It took me a while to realise that
\31
related to the Unicode code point of1
.https://github.com/w3c/webvtt/blob/gh-pages/index.bs#L394
The text was updated successfully, but these errors were encountered: