From be645c2c9856b3723ba1192132d2947d4f13eb9a Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 24 Jan 2020 17:58:05 -0500 Subject: Add support for dashes --- ext/mixed/js/japanese.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/mixed/js/japanese.js b/ext/mixed/js/japanese.js index d299dfe9..0cbaa723 100644 --- a/ext/mixed/js/japanese.js +++ b/ext/mixed/js/japanese.js @@ -385,6 +385,8 @@ function jpConvertAlphabeticToKana(text, sourceMapping) { c += (0x61 - 0xff21); } else if (c >= 0xff41 && c <= 0xff5a) { // ['a', 'z'] fullwidth c += (0x61 - 0xff41); + } else if (c === 0x2d || c === 0xff0d) { // '-' or fullwidth dash + c = 0x2d; // '-' } else { if (part.length > 0) { result += jpToHiragana(part, sourceMapping, result.length); -- cgit v1.2.3