[publican-list] sortable lists, esp. glossaries
Fred Dalrymple
fdalrymple at redhat.com
Thu Feb 2 13:52:33 UTC 2012
Cool, I'll take a look as I proceed.
thanks --
Fred
----- Original Message -----
> 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
> publican-list at redhat.com
> https://www.redhat.com/mailman/listinfo/publican-list
> Wiki: https://fedorahosted.org/publican
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/publican-list/attachments/20120202/5d448ef7/attachment.htm>
More information about the publican-list
mailing list