Skip to content

[FR] Add html to identify text-to-read to Google read mode #2618

Open

Description

@roberthadow

If I knit a dcoument to html, then subsequently push it to the Chrome browser, I have two options for text-to-speech:

(1) from the kebab menu, More tools > Reading mode
(2) right click the article text. Select: Open in reading mode.

In both cases, I get this warning: "Highlight the text you want to open in reading mode. Reading mode can't find the main content on this page."

If I open a wikipedia page and use either technique, the article reformats with the player control in the upper right corner. No highlighting is necessary.

Gemini tells me: Google's Reader/Reading Mode (powered by the Chromium project's DOM Distiller) analyzes a webpage's structure and uses a scoring algorithm to separate the main article from website clutter (ads, footers, navigation menus).

In the best case, add the secret html to knitr output.

In the alternative, publish the secret html one should add to the R code to excite the Google reader.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions