// $XFree86: xc/programs/xkbcomp/symbols/pc/yu,v 1.6 2004/06/19 13:53:47 pascal Exp $
// Serbian XKB keyboard mapping (derived from "Danube" D.2)
//
// Danube D.2 from 2003-05-12 is available at http://srpski.org/dunav/
//
// Original authors:
//  Danilo Segan (Данило Шеган) <dsegan@gmx.net>
//  Chusslove Illich (Часлав Илић) <chaslav@sezampro.yu>
//
// Modified for inclusion in XFree86 by Danilo Segan <dsegan@gmx.net>
//  
//

default partial alphanumeric_keys
xkb_symbols "default" {

  name[Group1]= "Serbian Latin";

  include "pc/sr(level3)"
  include "pc/sr(common)"
  include "pc/sr(latalpha)"
  include "level3(ralt_switch_multikey)"
};

partial alphanumeric_keys
xkb_symbols "unicode" {
  // This mapping supports the Unicode characters 0x1c4-0x1cc (dz, lj, and nj
  // as single character). You get the title form with AltGr+Shift.

  name[Group1]= "Serbian Latin Unicode";

  include "pc/yu(default)"
  include "pc/sr(twoletter)"
};

partial alphanumeric_keys
xkb_symbols "yz" {
  // For those who insist on using "english-position" Z and Y.

  name[Group1]= "Serbian Latin (swap Y, Z)";

  include "pc/yu(default)"

  key <AD06> {   [ y,                   Y,             any,any ]   }; // y
  key <AB01> {   [ z,                   Z,             any,any ]   }; // z
};

partial alphanumeric_keys
xkb_symbols "unicodeyz" {
  // Unicode, ZHE and Z swapped.

  name[Group1]= "Serbian Latin Unicode (swap ZHE, Z)";

  include "pc/yu(unicode)"

  key <AD06> {   [ zcaron,              Zcaron,        any,any ]   }; // y
  key <AB01> {   [ z,                   Z,             any,any ]   }; // z
};

xkb_symbols "alternatequotes" {
  // Another acceptable »pair of quotes« for Serbian 

  name[Group1]= "Serbian Latin with alternate quotes";

  include "pc/yu(default)"

  key <AC02> {   [ any,any,     guillemotright, NoSymbol ]   }; // s
  key <AC03> {   [ any,any,     guillemotleft,  NoSymbol ]   }; // d
};
