sort-lan.lua nitpicks and sorting
Hi again, 1. In sort-lan.lua, line 101 should read «['r'] = "r"», and line 144 «['r'] = 26, -- r». 2. Although I read the disclaimer about said file being “preliminary and incomplete” -- is there some rationale behind the range of integers for each language mapping? The mapping for English goes from 1 to 51, interleaving 2 integers for each letter (which is odd because it should start from index 3 with “a”, shouldn't it?), while the Czech one goes from 1 to 40 without skipping, Finnish and Austrian from 1 to 58. What about mapping them onto a larger but common scale that would alleviate multilingual sorting so that the alphabetical representation of the phoneme /a/ maps to the same value over different languages?† E.g. ["a"] = 3, -- in a Latin mapping, ["α"] = 3, -- in Greek mapping, ["а"] = 3, -- in a Russian mapping. 3. Is it intended that the digraph “ch” resolves (temporarily) to http://www.fileformat.info/info/unicode/char/ff01/index.htm according to line 72? Feel free to state more general opinions on the sorting topic as I am playing with different ways of sorting my bibliography. I will be glad about any advice, Philipp † I know this is impractical for many writing systems and even within the set of Latin or Greek based alphabets it largely depends on a given purpose how much precision you need in sorting. -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
On 2010-05-02 <15:59:53>, Philipp Gesang wrote:
Hi again,
1. In sort-lan.lua, line 101 should read «['r'] = "r"», and line 144 «['r'] = 26, -- r».
In lines 152 and 109 concerning the character “ů” (uring in unicode speak) there's a typo, the key should be “uc(0x016F)” instead of “uc(0x01F6)”. The long quantities “ó” and “ý” are missing as well. They belong after their short counterparts. I append a diff for the file. Philipp -- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
On 2-5-2010 3:59, Philipp Gesang wrote:
1. In sort-lan.lua, line 101 should read «['r'] = "r"», and line 144 «['r'] = 26, -- r».
i patched the file
2. Although I read the disclaimer about said file being “preliminary and incomplete” -- is there some rationale behind the range of integers for each language mapping? The mapping for English goes from 1 to 51, interleaving 2 integers for each letter (which is odd because it should start from index 3 with “a”, shouldn't it?), while the Czech one goes from 1 to 40 without skipping, Finnish and Austrian from 1 to 58.
some old (ruby) code was used etc etc
What about mapping them onto a larger but common scale that would alleviate multilingual sorting so that the alphabetical representation of the phoneme /a/ maps to the same value over different languages?† E.g. ["a"] = 3, -- in a Latin mapping, ["α"] = 3, -- in Greek mapping, ["а"] = 3, -- in a Russian mapping.
hm, interesting ... feel free to reshuffle and provide patches
† I know this is impractical for many writing systems and even within the set of Latin or Greek based alphabets it largely depends on a given purpose how much precision you need in sorting.
indeed but we can have multiple variants and are not bound to specific conventions Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Philipp Gesang