Skip to content
Hexo tag "pinyin". A wheel that converts "Hanyu pinyin tone numbers" to "tone marks".
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
CHANGELOG.md
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

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

You can’t perform that action at this time.