The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniWeb Bug Reports (http://forums.omnigroup.com/forumdisplay.php?f=27)
-   -   OmniWeb insists on saving plain-text files as web archives (http://forums.omnigroup.com/showthread.php?t=1386)

vocaro 2006-08-11 01:31 PM

OmniWeb insists on saving plain-text files as web archives
 
In past versions of OmniWeb, if I browsed to a plain text file, such as [url=http://doc.ece.uci.edu/~tharmon/files/bibliography.bib]this one[/url], I could then save the file as-is to my hard drive. In 5.5b2, however, when I try to save the file, OmniWeb insists on saving it as a web archive. Needless to say, this makes the file useless to me. OmniWeb should only save HTML documents as web archives, not all documents.

Forrest 2006-08-11 02:18 PM

You can change the pulldown to "source."

vocaro 2006-08-11 02:40 PM

[QUOTE=Forrest]You can change the pulldown to "source."[/QUOTE]

Ah, forgot about that. But surely that should be the default for plain-text files...

Forrest 2006-08-11 02:49 PM

In that case, here's a couple other related threads:
[url]http://forums.omnigroup.com/showthread.php?t=949[/url]
[url]http://forums.omnigroup.com/showthread.php?t=989[/url]

In your case, it's a .bib file. AFAICT, that's not always text. I'm sure there's more to this.

vocaro 2006-08-11 02:58 PM

[QUOTE=Forrest]In your case, it's a .bib file. AFAICT, that's not always text. I'm sure there's more to this.[/QUOTE]

No, BibTeX files are always plain-text. Or do you mean .bib could be a completely different (possibly binary) format? Even then, I don't see how it would matter. WebArchive files are for web files only. That is, anything HTML. So, OmniWeb doesn't have to know whether a file is binary or text or whatever; it just has to check whether the file is HTML or not, and that should be easy enough.

Forrest 2006-08-11 03:21 PM

[QUOTE=vocaro]No, BibTeX files are always plain-text. Or do you mean .bib could be a completely different (possibly binary) format?[/quote]

I searched for files that use the .bib extension, there are more than BibTeX.

[quote]WebArchive files are for web files only. That is, anything HTML.[/quote]

There's so much more on the web than HTML.

vocaro 2006-08-11 06:53 PM

[QUOTE=Forrest]I searched for files that use the .bib extension, there are more than BibTeX.[/QUOTE]

As I stated earlier, an extension of .bib may indeed be binary, yes. Or it might be plain text. It doesn't matter. If WebKit doesn't know how to render it, then it makes no sense to save it as a WebArchive file.

[QUOTE=Forrest]There's so much more on the web than HTML.[/QUOTE]

You can find a gazillion file formats on the web, but WebArchives are intended for only one, and that's HTML. If it's not HTML, it should be saved as source, not as a WebArchive. Otherwise, you're locking up the file into a format that only WebKit knows how to read, preventing you from doing anything with it in other applications.

Forrest 2006-08-11 08:05 PM

[QUOTE=vocaro]If WebKit doesn't know how to render it, then it makes no sense to save it as a WebArchive file.[/quote]

Unfortunately, that's completely subjective. I can make a .bib file that displays perfectly fine as a web page. The content/mime type of the file also comes into play.

[quote]WebArchives are intended for only one, and that's HTML.[/quote]

I disagree. There are multiple file formats commonly used on the web that are very useful being saved as webarchive.

Overall, I think the saving options need some work, though I still disagree with your reasons on how it should be changed. To me it doesn't seem like the way it's supposed to be working is working (as noted in one of the posts I linked to above.) Hopefully someone who has a reproducible example of it not working correctly has sent in a bug report.

[i]Added two new defaults to OmniWeb to track whether the user prefers to save 'simple' documents (those without sub-resources), and 'complex' documents (those with sub-resources), as webarchives, or as source. The defaults are 'OWSaveTypeForComplexDocument' and 'OWSaveTypeForSimpleDocument', and valid entries are 'webarchive' and 'source'.
These are automatically written with whichever option you choose each time you save, so that OmniWeb will remember your last choice for each save type.[/i]

vocaro 2006-08-11 08:48 PM

[QUOTE=Forrest]I disagree. There are multiple file formats commonly used on the web that are very useful being saved as webarchive.[/QUOTE]

Such as...?

Forrest 2006-08-11 09:07 PM

[QUOTE=vocaro]Such as...?[/QUOTE]

XHTML for one. Pages can also be completely comprised of JavaScript too, though that should be avoided. Flash is another one. If it's saved just as the swf, it can be missing linked files which is one of the advantages of a webarchive. SMIL is another than can be, though typically requires a plugin and that should really be embedded in HTML, but isn't always.


All times are GMT -8. The time now is 08:41 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.