-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Apple Safari, as well as some other browsers that have followed suit, have "data detectors" which will look for certain patterns in text and convert them to links. For example, dates and phone numbers (among other things). We don't want this to happen within books. The phone number detection can be triggered by any series of digits; for example, I've seen it trigger on patent numbers.
Adding this to the <head> disables these detectors. Browsers and other clients that don't understand this tag will ignore it (as is standard for meta tags).
<meta name="format-detection" content="telephone=no,date=no,address=no,email=no,url=no">This is now included in the Guiguts 2 default HTML header. I've also PR'd it for ppgen, although that is still pending merge.
My proposal is we add it to all books. It may not be useful or needed in EPUBs but for the HTML file it would be useful.
As I mentioned, this is included by default for Guiguts users as of a couple releases back; it may begin to show up in ppgen output at some point. So if this were added, there would need to be code included to detect its presence and either leave it in place, or remove it and re-add (as seems to happen with some other head tags already).
(Note: I made an attempt to add this to HTMLWriter.py, although I haven't been able to get ebookmaker to install, either on my Mac or in a Docker container, so I couldn't test it.)