Bug 79984 - Add more default sort lists for HR (croatian) locale
Summary: Add more default sort lists for HR (croatian) locale
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Localization (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: 79983
Blocks: Options-Dialog-Calc
  Show dependency treegraph
 
Reported: 2014-06-13 13:56 UTC by Mikeyy - L10n HR
Modified: 2019-10-11 20:22 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Patch!? :) (920 bytes, text/plain)
2015-11-10 08:41 UTC, Mikeyy - L10n HR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mikeyy - L10n HR 2014-06-13 13:56:19 UTC
Option is question is:
Tools / Options / LibreOffice Calc / Sort Lists

I would like to add more sort lists that ship as default with LibreOffice. Difference from already present sort lists would be in case (upper or lower).

This depends on bug 79983. If behaviour is changed then I can add more. If not, then there is no point.

I would like to add:
pon	uto	sri	čet	pet	sub	ned
PON	UTO	SRI	ČET	PET	SUB	NED
ponedjeljak	utorak	srijeda	četvrtak	petak	subota	nedjelja
PONEDJELJAK	UTORAK	SRIJEDA	ČETVRTAK	PETAK	SUBOTA	NEDJELJA
Sij	Velj	Ožu	Tra	Svi	Lip	Srp	Kol	Ruj	Lis	Stu	Pro
SIJ	VELJ	OŽU	TRA	SVI	LIP	SRP	KOL	RUJ	LIS	STU	PRO
Siječanj	Veljača	Ožujak	Travanj	Svibanj	Lipanj	Srpanj	Kolovoz	Rujan	Listopad	Studeni	Prosinac
SIJEČANJ	VELJAČA	OŽUJAK	TRAVANJ	SVIBANJ	LIPANJ	SRPANJ	KOLOVOZ	RUJAN	LISTOPAD	STUDENI	PROSINAC
Comment 1 Kevin Suo 2014-06-29 15:51:28 UTC
This is an enhancement request. Change importance field accordingly.
Althrough the bug reporter should not mark his own bug to NEW, I think this one is reasonable, so I retain its status as NEW.
Comment 2 Mikeyy - L10n HR 2015-11-10 06:13:46 UTC
Can I get a pointer to whom I can send new calc sort lists for HR locale?
Comment 3 Mikeyy - L10n HR 2015-11-10 08:41:50 UTC
Created attachment 120440 [details]
Patch!? :)

Found out that sort lists are stored in \AppData\Roaming\LibreOfficeDev\4\user\registrymodifications.xcu

I edited that line, added new entries and sorted them. You can find everything in attached file. Just need a dev to add it to source. :)

It's for croatian language, HR locale.
Comment 4 Eike Rathke 2015-11-10 18:02:55 UTC
registrymodifications.xcu is generated during runtime, there is no point we could stick that "patch" in. Specifically, the default sort lists are locale dependent and are generated from the locale data's day and month names.

Are you saying that for all day and month names, abbreviated and full names, you additionally want also uppercase lists?
Comment 5 Eike Rathke 2015-11-10 18:14:56 UTC
Or even worse ;) for all entries have the defined entry, an uppercase entry, a lowercase entry and a capitalized entry..
Comment 6 Mikeyy - L10n HR 2015-11-10 18:15:50 UTC
(In reply to Eike Rathke from comment #4)
> registrymodifications.xcu is generated during runtime, there is no point we
> could stick that "patch" in. Specifically, the default sort lists are locale
> dependent and are generated from the locale data's day and month names.
> 
> Are you saying that for all day and month names, abbreviated and full names,
> you additionally want also uppercase lists?

Not just uppercase, sometime lowercase is missing, or first capital letter missing.

I want to have everything is 3 lists, first capital letter, upper case, lower case:
Pon,Uto,...
PON,UTO,...
pon,uto,...

And like this for every day/month name, abbreviated or full. It covers all normal use cases.

So you're saying I can't prepare list for you in any way because it's code generated. :(
Comment 7 Eike Rathke 2015-11-10 19:08:50 UTC
Not as is. The best/cleanest we could do is extend the locale data format to allow additional lists and add a new interface to obtain all lists.

The hacked way would be to generate also the capital, upper and lower case variants from the already defined ones, if different. Sooner or later that would be wrong for some locale, e.g. if lower case names are not used at all.
Comment 8 Mikeyy - L10n HR 2015-11-10 19:39:11 UTC
Well, current sort list are already wrong (probably for more then one locale).
In croatian, you never write day or month name with first capital letter, except for "beauty" reasons of some kind, and that sort list is default (and only option) right now. :)
Comment 9 Eike Rathke 2015-11-11 14:17:07 UTC
Then that would be wrong already in i18npool/source/localedata/data/hr_HR.xml where day names start with a capital letter.
Comment 10 Mikeyy - L10n HR 2015-11-11 14:38:23 UTC
(In reply to Eike Rathke from comment #9)
> Then that would be wrong already in
> i18npool/source/localedata/data/hr_HR.xml where day names start with a
> capital letter.

Yes, I edited that some time ago (bug 66376). Since it was already with capital letter from OO time, I though that was requirement of some kind and just left it like that.

Should we start moving this in some kind of direction or close it?
I agree that putting it into i18npool would be best. But I don't have anything against auto generated (and don't think other locales should also) since it will only appear if you spell something EXACTLY like that and then pull it into neighburing cells.

If you write every time as locale default, you will never know that different sort exist.