選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

84 行
2.8 KiB

  1. var car;
  2. function transcrire() {
  3. car = document.conversion.saisie.value.toLowerCase();
  4. car = car.replace(/a1/g, "ā");
  5. car = car.replace(/a2/g, "á");
  6. car = car.replace(/a3/g, "ǎ");
  7. car = car.replace(/a4/g, "à");
  8. car = car.replace(/e1/g, "ē");
  9. car = car.replace(/e2/g, "é");
  10. car = car.replace(/e3/g, "ě");
  11. car = car.replace(/e4/g, "è");
  12. car = car.replace(/i1/g, "ī");
  13. car = car.replace(/i2/g, "í");
  14. car = car.replace(/i3/g, "ǐ");
  15. car = car.replace(/i4/g, "ì");
  16. car = car.replace(/o1/g, "ō");
  17. car = car.replace(/o2/g, "ó");
  18. car = car.replace(/o3/g, "ǒ");
  19. car = car.replace(/o4/g, "ò");
  20. car = car.replace(/u1/g, "ū");
  21. car = car.replace(/u2/g, "ú");
  22. car = car.replace(/u3/g, "ǔ");
  23. car = car.replace(/u4/g, "ù");
  24. car = car.replace(/ü1/g, "ǖ");
  25. car = car.replace(/ü2/g, "ǘ");
  26. car = car.replace(/ü3/g, "ǚ");
  27. car = car.replace(/ü4/g, "ǜ");
  28. car = car.replace(/an1/g, "ān");
  29. car = car.replace(/an2/g, "án");
  30. car = car.replace(/an3/g, "ǎn");
  31. car = car.replace(/an4/g, "àn");
  32. car = car.replace(/ang1/g, "āng");
  33. car = car.replace(/ang2/g, "áng");
  34. car = car.replace(/ang3/g, "ǎng");
  35. car = car.replace(/ang4/g, "àng");
  36. car = car.replace(/en1/g, "ēn");
  37. car = car.replace(/en2/g, "én");
  38. car = car.replace(/en3/g, "ěn");
  39. car = car.replace(/en4/g, "èn");
  40. car = car.replace(/eng1/g, "ēng");
  41. car = car.replace(/eng2/g, "éng");
  42. car = car.replace(/eng3/g, "ěng");
  43. car = car.replace(/eng4/g, "èng");
  44. car = car.replace(/in1/g, "īn");
  45. car = car.replace(/in2/g, "ín");
  46. car = car.replace(/in3/g, "ǐn");
  47. car = car.replace(/in4/g, "ìn");
  48. car = car.replace(/ing1/g, "īng");
  49. car = car.replace(/ing2/g, "íng");
  50. car = car.replace(/ing3/g, "ǐng");
  51. car = car.replace(/ing4/g, "ìng");
  52. car = car.replace(/ong1/g, "ōng");
  53. car = car.replace(/ong2/g, "óng");
  54. car = car.replace(/ong3/g, "ǒng");
  55. car = car.replace(/ong4/g, "òng");
  56. car = car.replace(/un1/g, "ūn");
  57. car = car.replace(/un2/g, "ún");
  58. car = car.replace(/un3/g, "ǔn");
  59. car = car.replace(/un4/g, "ùn");
  60. car = car.replace(/er2/g, "ér");
  61. car = car.replace(/er3/g, "ěr");
  62. car = car.replace(/er4/g, "èr");
  63. car = car.replace(/aō/g, "āo");
  64. car = car.replace(/aó/g, "áo");
  65. car = car.replace(/aǒ/g, "ǎo");
  66. car = car.replace(/aò/g, "ào");
  67. car = car.replace(/oū/g, "ōu");
  68. car = car.replace(/oú/g, "óu");
  69. car = car.replace(/oǔ/g, "ǒu");
  70. car = car.replace(/où/g, "òu");
  71. car = car.replace(/aī/g, "āi");
  72. car = car.replace(/aí/g, "ái");
  73. car = car.replace(/aǐ/g, "ǎi");
  74. car = car.replace(/aì/g, "ài");
  75. car = car.replace(/eī/g, "ēi");
  76. car = car.replace(/eí/g, "éi");
  77. car = car.replace(/eǐ/g, "ěi");
  78. car = car.replace(/eī/g, "èi");
  79. document.conversion.saisie.value=car;
  80. var obj=document.conversion.saisie;
  81. obj.focus();
  82. obj.scrollTop=obj.scrollHeight;
  83. }