<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Jivespace: Message List - Alphabetical Ordering of Chinese Characters</title>
    <link>http://www.jivesoftware.com/jivespace/community/support?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Fri, 21 Nov 2008 16:27:13 GMT</pubDate>
    <generator>Jive SBS 3.0.8 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-11-21T16:27:13Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Alphabetical Ordering of Chinese Characters</title>
      <link>http://www.jivesoftware.com/jivespace/message/144387?tstart=0#144387</link>
      <description>&lt;!-- [DocumentBodyStart:747f5a23-bb57-4010-9c40-41edba99b0ca] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hey Rob,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Using the list you've attached our engineer was able to validate his fix. He's checked those fixes into 2.5.5 which will be released Dec. 15th. However this fixes won't encompass all cases where items can be sorted lexicographically. Specifically the cases that require the DB to do the sorting are cases where a fix was too large in scope for a point release. If this site is set to be a single locale site, setting the collation on the database might provide the correct sorting order. However this order would be incorrect for any characters that are not Chinese.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:747f5a23-bb57-4010-9c40-41edba99b0ca] --&gt;</description>
      <pubDate>Fri, 21 Nov 2008 16:27:12 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/144387?tstart=0#144387</guid>
      <dc:date>2008-11-21T16:27:12Z</dc:date>
      <clearspace:dateToText>1 year, 6 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Alphabetical Ordering of Chinese Characters</title>
      <link>http://www.jivesoftware.com/jivespace/message/143711?tstart=0#143711</link>
      <description>&lt;!-- [DocumentBodyStart:0b0b9354-6eaf-438a-b76a-57a392add4e7] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi Sean -&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks so much for keeping on this with us. I've attached an excel spreadsheet with a listing of six usernames and their corresponding romanization in Chinese, in their original ordering from Clearspace. Two more columns show the correct order (alphabetical by pronunciation), with the corresponding romanization.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I hope this helps your engineers! Thanks, as always!&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-Rob-&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:0b0b9354-6eaf-438a-b76a-57a392add4e7] --&gt;</description>
      <pubDate>Thu, 20 Nov 2008 10:03:23 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/143711?tstart=0#143711</guid>
      <dc:date>2008-11-20T10:03:23Z</dc:date>
      <clearspace:dateToText>1 year, 1 day ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Alphabetical Ordering of Chinese Characters</title>
      <link>http://www.jivesoftware.com/jivespace/message/143500?tstart=0#143500</link>
      <description>&lt;!-- [DocumentBodyStart:bcd29588-03a7-4ec8-85c8-93b2cfb47e43] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hey Chad,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;One of our core engineers believes he has a fix for some of these issues however he'd rather not check them in until he can validate them. Unfortunately no one here speaks or reads Chinese, so we're unable to validate. Would it be possible for you to provide us with a list of names in Chinese that are sorted by unicode value ( as our instance does now ) as well as sorted by pinyin ( the way it should be ). This would hep us validate the changes we've made.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The changes that we're trying to test only effect the sorting of content based on Lucene. If the content is to be sorted by the database ( as mentioned above ) the only way to handle that currently is to set the DB to the proper locale and collation. The problem with this approach is that if it's a multi-locale instance, all users will be effected. We realize this is a less than ideal solution but the scope of the issue is so large that we cannot make these changes in a point release.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:bcd29588-03a7-4ec8-85c8-93b2cfb47e43] --&gt;</description>
      <pubDate>Wed, 19 Nov 2008 19:19:07 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/143500?tstart=0#143500</guid>
      <dc:date>2008-11-19T19:19:07Z</dc:date>
      <clearspace:dateToText>1 year, 2 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Alphabetical Ordering of Chinese Characters</title>
      <link>http://www.jivesoftware.com/jivespace/message/142286?tstart=0#142286</link>
      <description>&lt;!-- [DocumentBodyStart:309815e9-5ffb-4f9f-aaf1-40fb1ea6125f] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Thanks Sean.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:309815e9-5ffb-4f9f-aaf1-40fb1ea6125f] --&gt;</description>
      <pubDate>Mon, 17 Nov 2008 03:05:39 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/142286?tstart=0#142286</guid>
      <dc:date>2008-11-17T03:05:39Z</dc:date>
      <clearspace:dateToText>1 year, 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Alphabetical Ordering of Chinese Characters</title>
      <link>http://www.jivesoftware.com/jivespace/message/140836?tstart=0#140836</link>
      <description>&lt;!-- [DocumentBodyStart:9c0293d0-7a00-4211-8a15-9eb724705a9b] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hey Chad,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Just wanted to add a bit more information on the bug I filed. The ID for this issue is CS-9813, and I've requested that it be fixed for CS 2.5.5, which is scheduled to be released Dec. 15th.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you have any other questions let me know.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9c0293d0-7a00-4211-8a15-9eb724705a9b] --&gt;</description>
      <pubDate>Tue, 11 Nov 2008 22:13:28 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/140836?tstart=0#140836</guid>
      <dc:date>2008-11-11T22:13:28Z</dc:date>
      <clearspace:dateToText>1 year, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>4</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Alphabetical Ordering of Chinese Characters</title>
      <link>http://www.jivesoftware.com/jivespace/message/140215?tstart=0#140215</link>
      <description>&lt;!-- [DocumentBodyStart:2a340d2e-338c-4eab-b72a-b8811c418109] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hey Chad,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I've actually filed this as a bug on our end. I just thought you'd like to know where the customizations would take place, in case you didn't want to wait for them to be implemented in a bug-fix release.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:2a340d2e-338c-4eab-b72a-b8811c418109] --&gt;</description>
      <pubDate>Mon, 10 Nov 2008 15:48:59 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/140215?tstart=0#140215</guid>
      <dc:date>2008-11-10T15:48:59Z</dc:date>
      <clearspace:dateToText>1 year, 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Alphabetical Ordering of Chinese Characters</title>
      <link>http://www.jivesoftware.com/jivespace/message/140116?tstart=0#140116</link>
      <description>&lt;!-- [DocumentBodyStart:88376876-e5b2-4f8e-81b1-7da49ed737f0] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Sean,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you for your very detailed research and response.&amp;#160;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;But I find it surprising that you are suggesting that we do this work.&amp;#160; We expect that a full localization is provided by Jive software which means that all functions of the english version are already working in the local language, in this case Chinese.&amp;#160;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:88376876-e5b2-4f8e-81b1-7da49ed737f0] --&gt;</description>
      <pubDate>Sat, 08 Nov 2008 07:03:34 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/140116?tstart=0#140116</guid>
      <dc:date>2008-11-08T07:03:34Z</dc:date>
      <clearspace:dateToText>1 year, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Alphabetical Ordering of Chinese Characters</title>
      <link>http://www.jivesoftware.com/jivespace/message/139996?tstart=0#139996</link>
      <description>&lt;!-- [DocumentBodyStart:176a2efa-7934-4e2a-afb6-2d2968931cad] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hey Chad,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I've traced through our source for the use cases you metioned above: People lists, Blog lists, and Group lists. The ordering of these elements in a list is done in a different location for each feature.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For people lists, we use a Lucene SortComparator. Lucene is an indexing API we use to index all of our content. &lt;a class="jive-link-external-small" href="http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/SortComparatorSource.html"&gt;&lt;span class="active_link"&gt;SortComparatorSource&lt;/span&gt;&lt;/a&gt; is an interface that only has one method called &lt;strong&gt;newComparator&lt;/strong&gt; which will return an object that can be used to compare two elements. For a example of this interface being implemented, have a look at a class named &lt;a class="jive-link-external-small" href="http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/SortComparator.html"&gt;SortComparator&lt;/a&gt; in the Lucene source. We use Lucene's default SortComparator, which utilizes String.compareTo(), which as I mentioned above, doesn't handle chinese characters correctly. In order to get the people list sorting correctly, you'll need to implement your own PeopleAction, which will extend the default PeopleAction. The main thing you'd want to change is the getSortOrder() method. Here you'll want to return your own Lucene Sort object that will use a SortComparator that uses RuleBasedCollector to compare, instead of String.compareTo().&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For Blog lists, we also use Lucene, but in a different way. We use the DbSearchQueryManager to ultimately query Lucene. The object you'll ultimately want to modify is the SearchQueryResultRelevenceComparator. By default this class's compare() method uses String.compareTo() to compare objects. You'll want to modify this to use your RuleBasedCollector.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Finally, group lists don't actually use Lucene, they query the database directly. That means the sort order is ultimately determined by SQL. So inorder for groups to be sorted by pinyin, your database is going to need to be able to use the 'SORT BY' SQL keywords to sort by pinyin. I'm not sure if this is possible in any database, but that is a different discussion. If there's need to modify the query that returns these items, it can be found in SocialGroupDAOImpl on line 500.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:176a2efa-7934-4e2a-afb6-2d2968931cad] --&gt;</description>
      <pubDate>Fri, 07 Nov 2008 23:17:43 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/139996?tstart=0#139996</guid>
      <dc:date>2008-11-07T23:17:43Z</dc:date>
      <clearspace:dateToText>1 year, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Alphabetical Ordering of Chinese Characters</title>
      <link>http://www.jivesoftware.com/jivespace/message/139778?tstart=0#139778</link>
      <description>&lt;!-- [DocumentBodyStart:cd394b35-cf82-4a4c-8d87-de7d2f4f5d11] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;No problem.&amp;#160; We are working with 2.5.3 at the moment.&amp;#160;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:cd394b35-cf82-4a4c-8d87-de7d2f4f5d11] --&gt;</description>
      <pubDate>Fri, 07 Nov 2008 17:21:25 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/139778?tstart=0#139778</guid>
      <dc:date>2008-11-07T17:21:25Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>8</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Alphabetical Ordering of Chinese Characters</title>
      <link>http://www.jivesoftware.com/jivespace/message/139762?tstart=0#139762</link>
      <description>&lt;!-- [DocumentBodyStart:77d6707e-64d6-4e4d-895c-ca193f8ba2a0] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hey Chad,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Sorry for the back and forth here, I should have asked this earlier. Could you tell me which version of Clearspace you're currently using or plan to go live on?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:77d6707e-64d6-4e4d-895c-ca193f8ba2a0] --&gt;</description>
      <pubDate>Fri, 07 Nov 2008 16:59:04 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/139762?tstart=0#139762</guid>
      <dc:date>2008-11-07T16:59:04Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>9</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

