Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Not using ICU sorting in the alphabetical index (OOo uses worng language setting?) | ||||||
---|---|---|---|---|---|---|---|
Product: | Writer | Reporter: | ooo | ||||
Component: | code | Assignee: | eric.savary | ||||
Status: | CLOSED FIXED | QA Contact: | issues@sw <issues> | ||||
Severity: | Trivial | ||||||
Priority: | P2 | CC: | issues, stp | ||||
Version: | 680m85 | Keywords: | oooqa | ||||
Target Milestone: | --- | ||||||
Hardware: | PC | ||||||
OS: | Linux, all | ||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||
Developer Difficulty: | --- | ||||||
Attachments: |
|
Description
ooo
2005-03-16 11:22:48 UTC
Created attachment 23894 [details]
Example document showing the wrong sorting order in the alphabetical index
confirming issue. OOo does not respect the language settings. Just compare the result of "Tools|Sort" (with language set to danish) and then the sorting in the index (with language set to danish) -> different results. The language set in the properties of the index does make a difference (compare the result with language set to german vs the result with language set to french vs the result with language set to danish) but it doesn't seem to use the same sorting as e.g. Tools|Sort this was already reported as issue 22921 which was marked as duplicate of issue 25323. As it turns out, it is not a duplicate. Please have a look. Justification of P2: An alphabetical index is useless without the correct alphabetical sorting -> leaving as P2 (basic functionality not working correctly/functional area lost) Reassigned to ES. ES->KHONG: please have a look. The problem is in IndexKey defined in Danish locale data, http://l10n.openoffice.org/source/browse/l10n/i18npool/source/localedata/data/da_DK.xml I remember I took the list from IBM web page, http://oss.software.ibm.com/icu/charts/collation/ but they have re-arranged their web site, the link is not valid now. I may made mistake. According icu collation data for Danish, the list in OOo locale data is not right, it should be <æ<<<Æ<<ä<<<Ä<<Ä™<<<Ę<ø<<<Ø<<ö<<<Ö<<Å‘<<<Å<<Å“<<<Å’<Ã¥<<<Ã…<<< I will update it. Please note that Tools|Sort already uses the correct sorting. So if you write the index uses the algorithm for danish, this means that OOo applies two different sorting-algorithms. So please do not "fix" the data for danish, but use the same sorting-mechanism for the index as is used for the rest of OOo (tables, Tools|Sort). The new location can be found here: http://icu.sourceforge.net/userguide/Collate_Intro.html (use the left navbar to jump to the specific pages) The online-demo-sorting can be found here: http://www-950.ibm.com/software/globalization/icu/demo/locales Cloph, Please note that index title sorting is not necessarily identical to general sorting (collation), it depends on the locale. That's why we introduced the element in locale data. Eike The index key defined in da_DK.xml is correct. I was wrong in my previous comment. From the icu tailoring for Danish, <æ<<<Æ<<ä<<<Ä<<Ä™<<<Ę<ø<<<Ø<<ö<<<Ö<<Å‘<<<Å<<Å“<<<Å’<Ã¥<<<Ã…<<< only 3 primary different letter groups, and they are correctly defined in da_DK.xml as Æ Ø Ã… in right order. The problem of this issue is index grouping is not using primary collation, but secondary, which causes Ä is not grouped under Æ. The root cause is we don't have primary collation in OO.o, we only have ignore case, which is mapped to secondary. I will add new collation option called ignore accent, which will map to primary collation in icu to solve the problem. ready for QA. re-open issue and reassign to oc@openoffice.org reassign to oc@openoffice.org reset resolution to FIXED Ready for QA. re-open issue and reassign to oc@openoffice.org reassign to oc@openoffice.org reset resolution to FIXED Hi Eric, please take over re-open issue and reassign to es@openoffice.org reassign to es@openoffice.org reset resolution to FIXED Verified in CWS i18n20 Ok in src680m135 |