Hi, I just remembered we had some code in place to test the perl module Unicode::Collate [1]. You need to edit XmlClean.pm (either in the source and rebuild or you can just do it where it's installed) and change:

-my $test_collate = undef;
+my $test_collate = 1;

Unicode::Collate is part of core perl on most platforms.

That will enable Glossary sorting, which is run during the build, so the output will be sorted but the source won't be touched.

If you run clean_ids the Glossary source will be sorted.

It's only set-up to sort glosslist, but very similar code could be used to do other types of lists or with some extra work more complex glossary structures.

Unicode::Collate has built in functionality to allow overriding the default sorting algorithms, but I've not had time to play with them :(

Cheers, Jeff.

1: http://search.cpan.org/~sadahiro/Unicode-Collate-0.87/

--
"Reply All" why you shouldn't use it: http://www.emailreplies.com/#12replytoall

_______________________________________________
publican-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/publican-list
Wiki: https://fedorahosted.org/publican

Reply via email to