-----------------------------------------------------------------------
--         FILE:  xindex-DIN2.lua
--  DESCRIPTION:  configuration file for xindex.lua
-- REQUIREMENTS:  
--       AUTHOR:  Herbert Voß
--      LICENSE:  LPPL1.3
--
-- $Id: xindex-DIN2.lua 8 2026-04-09 18:49:35Z herbert $
-----------------------------------------------------------------------

if not modules then modules = { } end modules ['xindex-DIN2'] = {
      version = 1.06,
      comment = "configuration to xindex.lua",
       author = "Herbert Voss",
    copyright = "Herbert Voss",
      license = "LPPL 1.3"
}

--UCA language = "de_din2" -- 
languages.de = function(collator_obj)
  local function tailor(a, b, tbl) 
    local autf = collator_obj:string_to_codepoints(a)
    local butf = collator_obj:string_to_codepoints(b)
    collator_obj:tailor(autf,butf, tbl) 
  end
  local tailoring = function(s) collator_obj:tailor_string(s) end
  tailoring("&Ö=Oe")
  tailoring("&ö=oe")
  tailoring("&Ä=Ae")
  tailoring("&ä=ae")
  tailoring("&Ü=Ue")
  tailoring("&ü=ue")
  tailoring("&ß=ss")
  return collator_obj
end

