Coder Social home page Coder Social logo

chinese-number's Introduction

阿拉伯数字与中文数字之间相互转换

Click here if you are English user

简介

chinese-number 是一个用来提供阿拉伯数字与(简体)中文数字之间相互转换的 elisp 包,它提供了以下特性:

  1. 将阿拉伯数字转换为中文(反向转换暂未实现)。
  2. 中文数字支持大小写。

使用

安装

chinese-number 现已收录进著名的 Emacs 包仓库 melpa,推荐通过 Emacs 自带的包管理工具来安装它。

另外 chinese-number 托管在 GitHub 上,也可以手工安装它,先使用如下 Git 命令克隆到本地:

git clone https://github.com/zhcosin/chinese-number.git

然后将目录移动到你的 emacs 配置目录:

mv chinese-number ~/.emacs.d/chinese-number

配置

chinese-number 的配置相当简单,把下面代码放置到 .emacs 文件中:

(add-to-list 'load-path "~/.emacs.d/chinese-number")
(require 'chinese-number)

阿拉伯数字与中文数字之间相互转换

要将阿拉伯数字转换为中文,可以使用如下命令:

chinese-number--convert-arabic-to-chinese

而下面这个命令则可以完成反向的转换(暂未实现)

chinese-number--convert-chinese-to-arabic

如果想要在 elisp 代码中使用这样的数字转换,可以调用如下这两个函数:

chinese-number--convert-arabic-number-to-chinese
chinese-number--convert-chinese-number-to-arabic

已知问题

文档结束处。

chinese-number's People

Contributors

zhcosin avatar syohex avatar adamniederer avatar xuchunyang avatar purcell avatar lujun9972 avatar

Watchers

Jonas Bernoulli avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.