GNU bug report logs - #40530
feature proposal: coreutils -> sort: adding sorting ability for Hebrew numerals

Previous Next

Package: coreutils;

Reported by: Zeev Pekar <z.pekar <at> gmail.com>

Date: Thu, 9 Apr 2020 22:07:03 UTC

Severity: normal

To reply to this bug, email your comments to 40530 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#40530; Package coreutils. (Thu, 09 Apr 2020 22:07:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zeev Pekar <z.pekar <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 09 Apr 2020 22:07:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Zeev Pekar <z.pekar <at> gmail.com>
To: bug-coreutils <at> gnu.org
Cc: assafgordon <at> gmail.com
Subject: feature proposal: coreutils -> sort: adding sorting ability for
 Hebrew numerals
Date: Fri, 10 Apr 2020 00:23:58 +0300
Hello,

it would be nice to be able to sort (coreutils -> sort) Hebrew numerals:
https://en.wikipedia.org/wiki/Hebrew_numerals#Cardinal_Values
https://en.wikipedia.org/wiki/Hebrew_numerals#Calculations

Normal alphabetic sort, almost does the job, except for values:

15, 16, 115, 116, 215, 216 and so on...

The reason for this is here:
https://en.wikipedia.org/wiki/Hebrew_numerals#Key_exceptions

Thank you!
Zeev






Information forwarded to bug-coreutils <at> gnu.org:
bug#40530; Package coreutils. (Fri, 10 Apr 2020 01:37:01 GMT) Full text and rfc822 format available.

Message #8 received at 40530 <at> debbugs.gnu.org (full text, mbox):

From: Assaf Gordon <assafgordon <at> gmail.com>
To: Zeev Pekar <z.pekar <at> gmail.com>
Cc: 40530 <at> debbugs.gnu.org
Subject: Re: bug#40530: feature proposal: coreutils -> sort: adding sorting
 ability for Hebrew numerals
Date: Thu, 9 Apr 2020 19:36:20 -0600
[Message part 1 (text/plain, inline)]
Hello,

> On Apr 9, 2020, at 3:23 PM, Zeev Pekar <z.pekar <at> gmail.com> wrote:
> 
> it would be nice to be able to sort (coreutils -> sort) Hebrew numerals:

An interesting idea, but I think it is a bit too niche to be included in the coreutils “sort” program (tradeoff of usefulness vs bloat).

However, such functionality is very suitable to an old idea of an auxiliary “decorate” program that will allow many more sorting options when used in tandem with “sort”.

I’ve started writing such program some time ago, based on  Pádraig's idea (never completed, but perhaps these days are perfect opportunity to complete it):
https://lists.gnu.org/archive/html/coreutils/2019-03/msg00056.html

Would you like to try your hand at coding the sorting rules for such Hebrew-numerals sort?

regards,
 - Assaf

[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#40530; Package coreutils. (Fri, 10 Apr 2020 12:11:02 GMT) Full text and rfc822 format available.

Message #11 received at 40530 <at> debbugs.gnu.org (full text, mbox):

From: Zeev Pekar <z.pekar <at> gmail.com>
To: Assaf Gordon <assafgordon <at> gmail.com>
Cc: 40530 <at> debbugs.gnu.org
Subject: Re: bug#40530: feature proposal: coreutils -> sort: adding sorting
 ability for Hebrew numerals
Date: Fri, 10 Apr 2020 15:09:57 +0300
Hello Assaf,

thank you for your quick response!

> 
> > it would be nice to be able to sort (coreutils -> sort) Hebrew
> > numerals:
> > 
> 
> An interesting idea, but I think it is a bit too niche to be included
> in the coreutils “sort” program (tradeoff of usefulness vs bloat).

Roman numerals (like Hebrew ones) also rely on the additive principle.
So maybe together it will be enough of use case domain for sort? Anyway,
you know better where to put the functionality.

> 
> However, such functionality is very suitable to an old idea of an
> auxiliary “decorate” program that will allow many more sorting options
> when used in tandem with “sort”.
> 
> 
> I’ve started writing such program some time ago, based on  Pádraig's
> idea (never completed, but perhaps these days are perfect opportunity
> to complete it):
> https://lists.gnu.org/archive/html/coreutils/2019-03/msg00056.html
> 
> 
> Would you like to try your hand at coding the sorting rules for such
> Hebrew-numerals sort?

Luckily, my company enabled work from home so these days for me (in
terms of work load) continue as usual. Perhaps, with the difference,
that I have to get my job done with 5 kids behind my back :)

I needed the ability to sort Hebrew numerals while trying to concatenate
different chapters of books which are stored as files with Hebrew
numerals names. Here is the project:

https://pninim.org
(not so good) English translation:
https://pninim.org/en/
Project’s books repository:
https://gitlab.com/pninim.org/pninim

I launched it some time ago, and now with unemployment above 20%, Bnei
Brak in lockdown and many other negative consequences of the pandemic
there are many people who face shortage in basic food[^1]. So I try to
put my energy there. If I had spare time to code I would have probably
started with some other urgent issues that we have:

https://gitlab.com/pninim.org/pninim/-/issues
https://gitlab.com/pninim.org/dar/dar-syntax/-/issues

Best regards,
Zeev


[^1] In parallel I try to develop and document an extremely easy DIY
hydroponic system so kids and their parents can have some creative
occupation during isolation. And actually grow some vegetables even
indoors :)





This bug report was last modified 4 years and 16 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.