Calibre OPDS (and HTML) PHP Server : web-based light alternative to Calibre content server / Calibre2OPDS to serve ebooks (epub, mobi, pdf, ...) http://blog.slucas.fr/en/oss/calibre-opds-php-server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.3KB

  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. 0xC6 => 'Ae',
  17. 0xD8 => 'Oe',
  18. 0xE5 => 'aa',
  19. 0xE6 => 'ae',
  20. 0xF8 => 'oe',
  21. );
  22. // Overrides for German input.
  23. $variant['de'] = array(
  24. 0xC4 => 'Ae',
  25. 0xD6 => 'Oe',
  26. 0xDC => 'Ue',
  27. 0xE4 => 'ae',
  28. 0xF6 => 'oe',
  29. 0xFC => 'ue',
  30. 0xDF => 'ss',
  31. );
  32. // Overrides for Spanish input.
  33. $variant['es'] = array(
  34. 0xE1 => 'a',
  35. 0xE9 => 'e',
  36. 0xED => 'i',
  37. 0xF3 => 'o',
  38. 0xFA => 'u',
  39. 0xF1 => 'n',
  40. );