如果OneNote中的图像还没有添加替代文本,则似乎添加了一个机器生成的alt属性。以下是下载的HTML REST内容中出现的一个实际(且相当令人担忧)的示例:
<img alt="FucK [T,you credit Matthew Airbnb C: 2016 " ...
有没有一种方法可以在没有用户输入的替代文本的情况下覆盖这种机器生成?
按要求编辑,这是为其生成上述alt文本的图像:
发布于 2016-12-06 03:18:36
有三种方式可以实现。我将报告以上内容,感谢您的反馈。
1. The client ran OCR in that image and added this data, offline, in the local machine
2. The server ran OCR in that image and added this data, online
3. The user added this in the client via UI.
您可以通过使用PATCH ~/pages/id/content请求对其进行编程更改,如下所示:
<img alt="Chicharito 14" width="624" height="351" src="https://www.onenote.com/api/beta/resources/0-8120f2b0ec124d64b076876abe6a285e!1-BA887C20112899C4!164/$value" data-src-type="image/jpeg" data-fullres-src="https://www.onenote.com/api/beta/resources/0-8120f2b0ec124d64b076876abe6a285e!1-BA887C20112899C4!164/$value" data-fullres-src-type="image/jpeg" />
或者作为用户通过OneNote客户端(右键单击图像-> alt text)。
https://stackoverflow.com/questions/40969835
复制相似问题