switching to HTML instead of XHTML

Asked by Mike

Hi there,

the galleries produces by gThumb are pretty nice. Unfortunately, my provider doesn't support XHTML and so I'd like gThumb to create ordinary HTML files. But I didn't find the magic button so far ...

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gthumb Edit question
Assignee:
No assignee Edit question
Solved by:
Mike
Solved:
Last query:
Last reply:
Revision history for this message
Wrwrwr (wrwrwr) said :
#1

Your provider doesn't support xhtml?? Many free hosting offers have way more than good old xhtml. I doubt there's an option to produce html, xhtml is just html with less freedom really (properly formatted, without ambiguities etc.).

If you really want to, open index.html in a text editor, remove xhtml header and put html doctype instead:

Replace:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">

With:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">
<html>

A good chance that the document is also a proper html, so that should be enough.

It may also be enough to remove the first, encoding line "<?xml version="1.0" encoding="utf-8"?>".

Revision history for this message
Mike (399953d4d28e) said :
#2

Thanks for your reply. Unfortunately, it doesn't help very much. I don't have the privileges to change my providers (X)HTML settings and editing every file by hand is something I already did to get it running. But ... there's supposed to be another reasonable approach. Do I really have to switch to another program just because of something like that?

Revision history for this message
Wrwrwr (wrwrwr) said :
#3

If you have a lot of albums maybe change the template then, almost the same change just in another file, for example for BestFit theme: sudo gedit /usr/share/gthumb/albumthemes/BestFit/index.gthtml.

Revision history for this message
Mike (399953d4d28e) said :
#4

That's it!