2018-07-13 20:35:27 +08:00
|
|
|
---
|
2020-09-14 22:47:49 +08:00
|
|
|
title: "messletters API"
|
2018-09-25 22:09:28 +08:00
|
|
|
description: "messletters API provides some basic functions for generating messletters"
|
2018-07-13 20:35:27 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
# [Available APIs](../) >> messletters
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc GFM -->
|
|
|
|
|
|
|
|
- [Intro](#intro)
|
|
|
|
- [Functions](#functions)
|
|
|
|
|
|
|
|
<!-- vim-markdown-toc -->
|
|
|
|
|
|
|
|
## Intro
|
|
|
|
|
|
|
|
This api provides some basic Functions for generating messletters.
|
|
|
|
|
|
|
|
```vim
|
|
|
|
let s:PW = SpaceVim#api#import('messletters')
|
|
|
|
let messletters = s:PW.circled_num(1, 2)
|
|
|
|
" generate circled number 1, all available types:
|
2019-01-07 21:15:22 +08:00
|
|
|
" 0: 1 ➛ ➊
|
2018-07-13 20:35:27 +08:00
|
|
|
" 1: 1 ➛ ➀
|
|
|
|
" 2: 1 ➛ ⓵
|
|
|
|
echom messletters
|
|
|
|
" you should see a string like `⓵`
|
|
|
|
```
|
|
|
|
|
|
|
|
## Functions
|
|
|
|
|
|
|
|
| function name | description |
|
|
|
|
| ------------------------ | ------------------------- |
|
|
|
|
| `circled_num(num, type)` | generating circled number |
|