MusicBrainz: Paste-A-Date!

By stars Last update Apr 12, 2014 — Installed 1,255 times.

FIXED. fullwidth numbers

in
Subscribe to FIXED. fullwidth numbers 2 posts, 1 voice



jesus2099 Scriptwright
OperaWindows

« 1969年7月15日 » as in « 1969年7月15日生まれ。 » currently doesn’t work. :)

edit:

Here is a working solution.
Either you change line #109 to :

var str = document.getElementById(id).value.replace(/[0-9]/g, function(a) { return String.fromCharCode(a.charCodeAt(0)-("0".charCodeAt(0)-"0".charCodeAt(0))); });

It replaces fullwidth 0123456789 by halfwidth 0123456789 (it works).
Or alternatively you can use the fw2hw function from JASRAC work importer scrupt of mine (but it’s not specialised in numbers).

 
jesus2099 Scriptwright
OperaWindows

Fixed in version 2013-02-08 YAY(o)Y

IT’S OMG EXCEEDINGLY SUPERB WORK OF ARTS® !