aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-24 17:58:05 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-01-24 20:15:25 -0500
commitbe645c2c9856b3723ba1192132d2947d4f13eb9a (patch)
tree9fa43bbcc0d7eb048eddfcbc9cc7e98cbc99974b /ext
parent46e3d72641bee767f5d54e8778597549df85bdb3 (diff)
Add support for dashes
Diffstat (limited to 'ext')
-rw-r--r--ext/mixed/js/japanese.js2
1 files changed, 2 insertions, 0 deletions
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);