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

New Type TextPronunciation #2352

Merged
merged 2 commits into from Jan 2, 2020
Merged

New Type TextPronunciation #2352

merged 2 commits into from Jan 2, 2020

Conversation

RichardWallis
Copy link
Contributor

@RichardWallis RichardWallis commented Sep 29, 2019

Implements proposal in issue (#2108 - Schema for specifying how to pronounce text) - see issue for discussion.

Adds new Type TextPronunciation and associated properties phoneticText, speechToTextMarkup and textValue.

Defined as a subtype of Text it could be used on any property that currently expects a Text value. Most common usage will probably be as additional values for name properties.

image

Examples include:

{
  "@context": "http://schema.org/",
  "@type": "City",
  "name": {
    "@type": "TextPronunciation",
    "inLanguage": "en-US",
    "textValue": "Worcester",
    "speechToTextMarkup": "IPA",
    "phoneticText": "/ˈwʊstɚ/"
  }
{
  "@context": "http://schema.org/",
  "@type": "RadioStation",
  "name": ["WKRP",
      {
        "@type": "TextPronunciation",
        "textValue": "WKRP",
        "speechToTextMarkup": "SSML",
        "phoneticText": "<speak><say-as interpret-as=\"characters\">WKRP</say-as>"
      }
  ]
}

@RichardWallis
Copy link
Contributor Author

@RichardWallis RichardWallis commented Nov 11, 2019

Snippet for Pending section of releases.html:

<li id="2108"><a href="https://github.com/schemaorg/schemaorg/issues/2108">Issue #2108</a>:
(implemented in <a href="https://github.com/schemaorg/schemaorg/pull/2352">PR #2352</a>):
Introduced new pending type <a href="/TextPronunciation">TextPronunciation</a> enabling phonetic markup of text values.
</li>

@RichardWallis RichardWallis merged commit fd796f8 into master Jan 2, 2020
2 checks passed
@danbri
Copy link
Contributor

@danbri danbri commented Jan 2, 2020

thanks for the fix @RichardWallis :)

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

Successfully merging this pull request may close these issues.

None yet

3 participants