After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 329685 - Add Meta Tags to HTML export for encoding, etc
Add Meta Tags to HTML export for encoding, etc
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
0.1.x
Other All
: Normal minor
: ---
Assigned To: F-spot maintainers
F-spot maintainers
: 335929 345098 350650 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-02-02 23:40 UTC by Vitaliy Ischenko
Modified: 2006-08-11 15:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch adding some useful stuff to the html output (1.53 KB, patch)
2006-03-01 17:57 UTC, Thomas PARIS
none Details | Review
revised patch (2.56 KB, patch)
2006-03-27 11:43 UTC, Jean-Christophe Dubacq
committed Details | Review

Description Vitaliy Ischenko 2006-02-02 23:40:07 UTC
Please describe the problem:
If gallery have been exported to local folder, then it should contain meta tag
with Content-Type field.

It's not a problem for server-side viewing, but it is for local viewing of galleries

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />



Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Thomas PARIS 2006-03-01 17:57:36 UTC
Created attachment 60415 [details] [review]
patch adding some useful stuff to the html output

Hi,

I've written a simple patch to fix this. My patch also adds language info, based on the current locale.

My fix assumes the HTML is always UTF8-encoded because as I understand it the assumption is right. But as I couldn't find any documentation for this topic, I'm not 100% sure. So this may need to be improved.
Comment 2 Gabriel Burt 2006-03-27 02:46:12 UTC
*** Bug 335929 has been marked as a duplicate of this bug. ***
Comment 3 Gabriel Burt 2006-03-27 02:49:12 UTC
Changing the title to be more findable.  Thomas, can you check the patch
attached to the duplicate bug and see if there's anything to integrate into
yours?  Thanks guys!
Comment 4 Jean-Christophe Dubacq 2006-03-27 07:13:51 UTC
I confirm that this is a duplicate, that the patch is mostly OK and better than the patch submitted with #335929.
However, locales can be of the form fr_FR@euro (variant, but no charset given), so the patch should also trim the @... part to give LANG info correctly:

+			if (language.IndexOf('@') >= 0)
+				language = language.Substring(0,language.IndexOf('@'));

should be added to the patch
Comment 5 Jean-Christophe Dubacq 2006-03-27 11:41:42 UTC
I cleaned up the match, so that it compiles properly against CVS, added the @ treatement, made it global to all galeries (not specific to html gallery), made so that language is not computed for every page (it does not change for one gallery).

Patch follows.
Comment 6 Jean-Christophe Dubacq 2006-03-27 11:43:52 UTC
Created attachment 62107 [details] [review]
revised patch
Comment 7 Thomas PARIS 2006-06-03 17:06:44 UTC
Hi,

Sorry for the late reply but I had not seen the activity here (partly because I was not in the Cc list and partly because I was far away from my computer for over  a month).

Jean-Christophe's patch looks fine to me and seeing as it is a rather minor change but an important one for anybody needing more than us-ascii, I would really like to see it taken into use. Anything we can do to help that happen?
Comment 8 Bengt Thuree 2006-06-05 12:23:48 UTC
Just did a quick visual inspection of this patch, and it looks good.
Just one comment

+if (language.IndexOf('@') >= 0)
+	language = language.Substring(0,language.IndexOf('.'));

Is this correct? Should it not be IndexOf('@') instead?
Comment 9 Stephane Delcroix 2006-07-19 09:14:30 UTC
*** Bug 345098 has been marked as a duplicate of this bug. ***
Comment 10 Stephane Delcroix 2006-08-10 07:10:22 UTC
*** Bug 350650 has been marked as a duplicate of this bug. ***
Comment 11 Gabriel Burt 2006-08-11 15:19:53 UTC
I fixed the small error that Bengt caught and committed to HEAD.  Thanks guys!