German "Umlaute" are explained in the README textfile.

How could I accomplish SWEDISH Umlaute like "Å" / "å" ???????

Comments

bavarian’s picture

inserting following code in himuesgallery.module did not do the trick for me ...

".aring.",
".Aring.",
".szlig.",
);

"å",
"Å",
"ß",
);

using either .aring. or .Aring. in the pictures filename leaves me with "Å" in both case allthough one of these should provide "å" and the other one "Å"

what could be wrong with my approach?

bavarian’s picture

Title: More "Umlaut" ... » More "Umlaut" ... help please !

bitte bitte bitte !!!!!

himue’s picture

I'm not at home until friday evenening, so i don't know if i've time to test intensive next days.
But 1 idea:

Don't write
".aring.",
".Aring.",
".szlig.",
);

"å",
"Å",
"ß",
);
in Himuesgallery.module.
Write
".aring.",
".Aring.",
".szlig.",
);

"å",
"Å",
"ß",
);

This works for me. If it don't work for you, you maybe have a "charset-problem" (e.g. maybe you have to use utf8 for your website).

All HTML-character-replacements can be found under http://de.selfhtml.org/html/referenz/zeichen.htm

I'l include all the replacements in next Version of the gallery.

Greetings from
Himue

himue’s picture

Component: Documentation » Code
Assigned: Unassigned » himue

Sorry,

in Himuesgallery.module.
Write

".aring.",
".Aring.",
".szlig.",
);

"å",
"Å",
"ß",
);
bavarian’s picture

that's exactly what i did ...

in post#1 and post#3 it looks wrong

but in post#4 that's the way i did it

funny the "umlaute" that came with the module orignially work just fine, it's those 2 extra Umlaute "Å" and "å" that cause the problem

bavarian’s picture

when adding these extra lines ...

doing the adjustments in filename for "Å" and "å" give me both "Å"

himue’s picture

Status: Active » Postponed

O.k., I've found it ;-)

Around line 530 in himuesgallery.module you'll find the following line:

$description = str_ireplace($search, $replace, $description);

Delete the "i" in str_ireplace so you have this kine:

$description = str_replace($search, $replace, $description);

But now, you have to write the other replacements exactly as they are defined in the module. E.g. ".green." starts green text but ".Green." (uppercase letter) dosn't.

I hope this works for you. I'll see if there is a way to fix this somewhat elegant.

Greetings from
Himue

bavarian’s picture

At a first glance this seems to resolve my issue !

.red.THANK YOU !.-red.