How to use the pinyin.js function in pinyin

To help you get started, we’ve selected a few pinyin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sotch-pr35mac / syng / app / src / component / tools / pinyinify / pinyinify.vue View on Github external
convert() {
        var self = this;

        var inputPrime = self.input.replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g,"");
        inputPrime = inputPrime.replace(/\s{2,}/g," ");

        output = pinyinify(inputPrime);
        $('#output_text').html(output);
      }
    }

pinyin

汉语拼音转换工具。

MIT
Latest version published 4 months ago

Package Health Score

67 / 100
Full package analysis