Re: [Tracker] i18n sorting
- From: Aleksander Morgado <aleksander lanedo com>
- To: "Chen, Zhenqiang" <zhenqiang chen intel com>
- Cc: "'tracker-list gnome org'" <tracker-list gnome org>
- Subject: Re: [Tracker] i18n sorting
- Date: Thu, 27 May 2010 11:53:47 +0200
Hi Chen,
I tried to sort some Chinese files in a Chinese system. The output order is based on the UTF code. But
I expect they are ordered by Chinese "Pinyin".
Correct me if wrong, but Pinyin is not a valid encoding type, so there's
no clear conversion from a chinese symbol to its romanization in Pinyin
(maybe there is?). Thus, if any order to be applied to the output search
results, it should be in a valid encoding like one of the GBs or Big5,
which can be converted from UTF-8 .
Does tracker support sorting based on the locale custom? Or how to configure it?
Not supported I believe. If sorted, it will be ordered by the UTF-8
representation of the chinese word. An additional processing would be
needed over the search results in order to convert the results to the
user's desired encoding and re-sort those results afterwards.
Cheers!
--
Aleksander
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]