https://bugzilla.wikimedia.org/show_bug.cgi?id=62870

--- Comment #11 from Rainer Rillke @commons.wikimedia 
<rainerril...@hotmail.com> ---
(In reply to Bawolff (Brian Wolff) from comment #9)
> (I have no idea how to do this on other operating systems)

You can use node.js with https://github.com/walling/unorm

C:\Users\XXX> npm install unorm

Create a script named "ps.js" at "C:\Users\XXX" with the following content

var fileName = 'sample.txt',
    fs = require('fs'),
    unorm = require('unorm');

fs.readFile(fileName, { encoding: 'utf-8' }, function (err, stData) {
  if (err) throw err;
  stData = unorm.nfc(stData);
  fs.writeFileSync(fileName, stData, { encoding: 'utf-8' })
});

(assuming that "C:\Users\XXX\sample.txt" is the file you'd like to process)

and run node.js:

C:\Users\XXX> node pr.js

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to