hexo-pinyin-ruby-marks

1.0.0 • Public • Published

hexo-pinyin-ruby-marks

  • A plugin for Hexo, which converts Hanyu pinyin tone numbers to tone symbols. A pinyin tag allows users to quickly and easily insert <ruby> snippets containing pinyin tone symbols into their posts.

  • Hexopinyin标签。一个将汉语拼音“声调数字”转换成“声调符号”的轮子。 pinyin标签允许用户快速简单地在文章中插入含有拼音符号的<ruby>代码片段。

Setup

  • via npm. In your hexo project folder, run:
  • 通过NPM安装。在您的Hexo项目目录,运行:
$ npm install hexo-pinyin-ruby-marks

Usage

  • CONFLICT with other hexo plugins that have regitered pinyin tag.

  • 与其他注册了pinyin标签的Hexo插件冲突

  • In your new posts,

  • 在您的新文章里,

{% pinyin 初音未来|chu1 yin1 wei4 lai2 %}
  • after run $ hexo generate, ↓ ↓ ↓
  • 在运行$ hexo generate后,↓ ↓ ↓
<ruby><rb>初音未来</rb><rp>(</rp><rt>chū yīn wèi lái</rt><rp>)</rp></ruby>
  • which looks like: 初音未来(chū yīn wèi lái)
  • 看起来像:初音未来(chū yīn wèi lái)

Tests

  • these are no tests yet.
  • 尚未有测试。

Changelog

Issues

License

MIT ©Futaba Isshiki

Package Sidebar

Install

npm i hexo-pinyin-ruby-marks

Weekly Downloads

6

Version

1.0.0

License

MIT

Unpacked Size

4.97 kB

Total Files

5

Last publish

Collaborators

  • futaba_isshiki
  • sakunahime