x00.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. $base = array(
  3. // Note: to save memory plain ASCII mappings have been left out.
  4. 0x80 => '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  5. 0x90 => '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '',
  6. 0xA0 => ' ', '!', 'C/', 'PS', '$?', 'Y=', '|', 'SS', '"', '(c)', 'a', '<<', '!', '', '(r)', '-',
  7. 0xB0 => 'deg', '+-', '2', '3', '\'', 'u', 'P', '*', ',', '1', 'o', '>>', '1/4', '1/2', '3/4', '?',
  8. 0xC0 => 'A', 'A', 'A', 'A', 'A', 'A', 'AE', 'C', 'E', 'E', 'E', 'E', 'I', 'I', 'I', 'I',
  9. 0xD0 => 'D', 'N', 'O', 'O', 'O', 'O', 'O', 'x', 'O', 'U', 'U', 'U', 'U', 'Y', 'Th', 'ss',
  10. 0xE0 => 'a', 'a', 'a', 'a', 'a', 'a', 'ae', 'c', 'e', 'e', 'e', 'e', 'i', 'i', 'i', 'i',
  11. 0xF0 => 'd', 'n', 'o', 'o', 'o', 'o', 'o', '/', 'o', 'u', 'u', 'u', 'u', 'y', 'th', 'y',
  12. );
  13. // Overrides for Danish input.
  14. $variant['da'] = array(
  15. 0xC5 => 'Aa',
  16. 0xD8 => 'Oe',
  17. 0xE5 => 'aa',
  18. 0xF8 => 'oe',
  19. );
  20. // Overrides for German input.
  21. $variant['de'] = array(
  22. 0xC4 => 'Ae',
  23. 0xD6 => 'Oe',
  24. 0xDC => 'Ue',
  25. 0xE4 => 'ae',
  26. 0xF6 => 'oe',
  27. 0xFC => 'ue',
  28. 0xDF => 'ss',
  29. );
  30. // Overrides for Spanish input.
  31. $variant['es'] = array(
  32. 0xE1 => 'a',
  33. 0xE9 => 'e',
  34. 0xED => 'i',
  35. 0xF3 => 'o',
  36. 0xFA => 'u',
  37. 0xF1 => 'n',
  38. );