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
preferredUsername and natural language support #395
Comments
In a sense, But yes, I don't believe the property is actually intended to have language-tagged values, and agree with you that the note may be an erratum. Moreover, I wonder if the term (and perhaps |
Yes, I was referring to language maps.. The "name": "as:name",
"nameMap": {
"@id": "as:name",
"@container": "@language"
},
"summary": "as:summary",
"summaryMap": {
"@id": "as:summary",
"@container": "@language"
}, The |
So, the problem we have here is that the ActivityPub specification says to use the We have two remedies for this:
Which of these we choose depends on how important i18n of usernames is for ActivityPub. In discussion on the issue triage call, we felt that having an exact match for If supporting multiple usernames in the future is necessary, for i18n or any other reasons, this would be a good topic for a vocabulary extension. For this reason, I proposed an erratum to the AP document that specifies not to use the -Map property that doesn't exist. https://www.w3.org/wiki/ActivityPub_errata/Proposed
|
In #395 (comment), I wrote:
because of its real-world usage as a WebFinger identifier. However, this is not quite obvious on reflection, considering the fact that neither Today, it seems that the majority (if not all) of usernames are ASCII-only in Fediverse, but as a real-world example in a traditional (centralized) social media platform, non-ASCII identifiers are commonly used in Weibo to mention accounts. For example, you can write something like But it's true that having multiple representations of (For context, a new implementation, Kitsune, is considering non-ASCII username support:
This is a nitpick, but the This implies that it's not that the AS2 specs defined the Footnotes
|
I think an update to the AP Note text (or a clarification in the Errata) is sufficient. I don't think a JSON-LD |
There are countless materials on it out there, but if I have to pick one, see the W3C article Why use the language attribute? for details (sorry if you didn't mean that in this way). Most importantly, it's crucial for assistive technologies, like screen readers for selecting the language to speak the text as, or braille displays for selecting the braille system to transliterate the text to.
So you agree with me that
Yes, that would work semantically, but without a language map term, there would be multiple ways to express the same semantics in the compacted form. Unfortunately, only few, if any, consumers process Activity Streams documents as JSON-LD, and the intention of AS specs, IIUC, is that they don't even need to do so. Otherwise, you wouldn't need language map terms like (Well, in #395 (comment), I was talking in terms of theories (which I believe a discussion on formal specs like this needs to consider to some extent) rather than practicalities, but it may well have sounded like I was advocating for interpreting real-world documents that way, and I'm sorry about that. Now I'm talking in terms of practicality.) Let me put it another way: my personal rule of thumb is that a JSON-LD |
I don't think this follows. Putting a the only question I think that remains in my mind is whether specifying the language on the root actor level is enough for most users in most cases, or whether it's necessary to require . To me, requiring all JSON processors to look for In either situation, I think we need to make it clear that |
For current usage (i.e. mapping to Webfinger acct), maybe... but for the given definition ( |
@nightpool — Please edit your #395 (comment) and codefence every instance of any |
There doesn't appear to be
preferredUsername
language map support in the JSON-LD context. Furthermore, the defacto (Mastodon) usage ofpreferredUsername
would not interoperate with a language map since it's used as an account or login name.For at least those reasons, I think we should update the note to remove
preferredUsername
from the set of properties having natural language support.The text was updated successfully, but these errors were encountered: