HTML export with Hungarian collate

View: New views
2 Messages — Rating Filter:   Alert me  

HTML export with Hungarian collate

by Sandor Bodo-Merle :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A hungarian tellico user just emailed to me that when exporting to HTML, she gets a wrong sorting order of the entries.
Digging around i find it related to libxslt and particularly to bug http://bugzilla.gnome.org/show_bug.cgi?id=553560

I proposed a solution by getting a newer libxslt (actually checking out the HEAD version) - but libxslt seems to require the lang attribute of xsl:sort in the language-country format to actually work. So i had to pass "hu-hu" instead of simply "hu" as appears in $lang currently. So a new "corrected" versions of the xsl files were placed under .kde/share/apps/tellico.
(I described here, but it is in hungarian: http://sbodo.wordpress.com/2009/07/30/tellico-html-export/)

So my question is - is it ok to patch the Tellico sources to pass the $lang in the lang-country format to the tellico2html.xls ??
I have no clue what this might break so i better ask first.

Btw at the end of the generated HTML page the http://www.periapsis.org/tellico/ should be changed to reflect the new great site :)

Regards,
Sanyi

_______________________________________________
tellico-users mailing list
tellico-users@...
http://forge.novell.com/mailman/listinfo/tellico-users

Re: HTML export with Hungarian collate

by robbystephenson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 30 July 2009, Sandor Bodo-Merle wrote:

> A hungarian tellico user just emailed to me that when exporting to HTML,
> she gets a wrong sorting order of the entries.
> Digging around i find it related to libxslt and particularly to bug
> http://bugzilla.gnome.org/show_bug.cgi?id=553560
>
> I proposed a solution by getting a newer libxslt (actually checking out
> the HEAD version) - but libxslt seems to require the lang attribute of
> xsl:sort in the language-country format to actually work. So i had to
> pass "hu-hu" instead of simply "hu" as appears in $lang currently. So a
> new "corrected" versions of the xsl files were placed under
> .kde/share/apps/tellico. (I described here, but it is in hungarian:
> http://sbodo.wordpress.com/2009/07/30/tellico-html-export/)
>
> So my question is - is it ok to patch the Tellico sources to pass the
> $lang in the lang-country format to the tellico2html.xls ??
> I have no clue what this might break so i better ask first.

Sure, I can't think of anything else that needs only the 2-letter country
code in the xslt export.

Thanks for tracking it down.

Robby
_______________________________________________
tellico-users mailing list
tellico-users@...
http://forge.novell.com/mailman/listinfo/tellico-users