WebVTT: Escape NOTE in subtitle for Firefox 87.0 - webvtt

In an application I generate Web VTT video subtitle files using input from users and other data sources.
Generally this works fine, but I can't figure out how to show a subtitle line in Firefox starting with the string "NOTE". Example:
00:00.000 --> 00:02.000
NOTE A
This should show the subtitle "NOTE A" for the first two seconds. In Chromium 89.0 this works fine, but Firefox 87.0 doesn't show anything.
I also can't find a hint for escaping "NOTE" here: https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API

Related

WebVTT: Escape & in subtitle for Firefox 87.0

I'd like to generate Web VTT subtitle files for a video about HTML.
But I can't figure out how to show the string & in Firefox. This works fine in Chromium 89.0 (it shows &):
00:00.000 --> 00:02.000
&
But Firefox 87.0 shows just &.

A pdf in an iframe is displayed differently depending on browser

I want to show a pdf document within an iframe, (that's a client request not to leave the page).
This pdf document is a fictional form that has notes in order to explain to user how to fill it later.
You can see it here:
http://www.ideforce.fr/?q=content/processus-dinscription-chsct (click the “Example” button)
It works in Firefox (pdf shows up, notes are displayed on hover). In Opera pdf shows up, but I can't show the notes. In Chrome and Safari, the pdf displays ridiculously tiny, but I can zoom it, then the text in the notes misses the apostrophes and accentuated letters disappear (you'll have notice the site is french…)
Does the problem come from the web browser? Below is how I've implemented the iframe.
<iframe class="affichage-pdf" src="/sites/default/files/bi_cdt_test.pdf" frameborder="0"></iframe>
Or does the problem come from the pdf generated?
I would love to understand what is wrong.
NB:
In Opera I get the notes, but without the accents still.
Please tryout these two codes:
<object class="affichage-pdf" data="/sites/default/files/bi_cdt_test.pdf"></object>
<object data="/sites/default/files/bi_cdt_test.pdf"></object>
One of them should be working absolutely fine. Instead of iframe try with object as it is more powerful tag than iframe.

Embedded PDF contents when performing a File->print

I have a PDF file embedded into a standard html web page.
<h3>Foo</h3>
<object id="foo" data="bigboundingbox.pdf"
type="application/pdf"
classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"> </object>
This currently renders in Internet Explorer using the Adobe Reader plugin on windows. Firefox and Chrome appear to be using their internal PDF rendering engines.
In all 3 cases the page displays with the Foo header visible above the contents of the PDF.
When a user tries to print the page (File->print), the PDF being rendered does not display in the resulting printed document in Internet Explorer or Chrome.
Firefox appears to display correctly.
I have tried using PDFObject in order to embed this with the same result
There are other posts recommending using PDF.js etc.. however I must support IE 7 and IE 8 and PDF.js will not work at all with 7 and works with limited success with 8.
Does anyone know why this happens and if there is anything i can modify so that it will print ?
You can use fpdf for that. Have a look at fpdf here

Links to PDF and other file formats generate "Page can not be displayed"

I just created this site and because I am using a Mac, I do not have IE. I have had a few people tell me that they are not able to download PDF files. That is to say, when they click on a link that is supposed to display a PDF file in a new tab, they get a "This page can not be displayed" error. I can take the same file and put it on a different website, create a link and it works fine in IE.
The link to this page is www.dallascameraclub.org. Try clicking on any Newsletter as they are all PDF's. They will produce an error in IE. Works fine in Safari, Firefox, and Chrome.
This is a wordpress site and I have never heard nor had this problem before. I have no idea why this would be the case.
Research seems to always blame IE for something or another but there are several people complaining of this when this issue never happened on the older site. Same links, same PDF's and other document types. I am a bit perplexed.
Any ideas?
Many thanks,
Houston

How can I preset a filename for saving a html page?

I have a webpage like e.g. www.example.com/NYSE/rates. If the user decides to save the html she sees on her local disk, I want to preset the filename she gets, when she clicks "Save as", with NYSE_rates_09_12_2011.html. (Which obviously will be different tomorrow or for a different stock exchange.) Now I always get rates.html as default.
How can I do that?
It appears that in at least the latest version of the most popular web browsers on Windows (Internet Explorer, Firefox, Chrome, Safari and Opera) the default filename filled in when saving a webpage is taken from the page's <title> tag, so simply making sure the date appears in there should put you right.
As I found out, this is a known problem with Firefox, that stems from the days of Netscape Navigator. And there is an add-on "File Title" that fixes it.