显示Unicode字符信息的工具。

uctools的Python项目详细描述


显示Unicode字符信息的工具(UTF-8)。

版权所有?2018,Luís Gomes<;luismsgomes@gmail.com>;。

提供了以下命令行工具:

ucinfo
writes on stdout the name of each unicode character read from stdin
ucenum
enumerates on stdout all unicode characters of a chosen category

ucinfo

ucinfo工具从stdin读取utf-8文本并写入stdout信息 关于每个字符,每行一个。 输出有5个制表符分隔的列:

  1. the character itself, if printable, or an escaped representation of it
  2. the decimal codepoint of the character
  3. the number of bytes that the character occupies
  4. the Unicode category of the character
  5. the Unicode name of the character

ucenum

ucenum工具以类别缩写作为参数并输出列表

属于该类别的所有字符。分类如下:

Lu
Letter, Uppercase
Ll
Letter, Lowercase
Lt
Letter, Titlecase
Lm
Letter, Modifier
Lo
Letter, Other
Mn
Mark, Nonspacing
Mc
Mark, Spacing Combining
Me
Mark, Enclosing
Nd
Number, Decimal Digit
Nl
Number, Letter
No
Number, Other
Pc
Punctuation, Connector
Pd
Punctuation, Dash
Ps
Punctuation, Open
Pe
Punctuation, Close
Pi
Punctuation, Initial quote (may behave like Ps or Pe depending on usage)
Pf
Punctuation, Final quote (may behave like Ps or Pe depending on usage)
Po
Punctuation, Other
Sm
Symbol, Math
Sc
Symbol, Currency
Sk
Symbol, Modifier
So
Symbol, Other
Zs
Separator, Space
Zl
Separator, Line
Zp
Separator, Paragraph
Cc
Other, Control
Cf
Other, Format
Cs
Other, Surrogate
Co
Other, Private Use
Cn
Other, Not Assigned

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Android Studio:我的短信应用程序不是默认短信应用程序的选项之一   java处理字符串问题   java为什么我的程序打印“null”而不是字符串?   java为什么要创建一个无限循环?   java循环在一段时间后将布尔值更改为false?   java Android Rest Api Post 400错误请求   java调用另一个方法以获取resultset并正确关闭连接?   java我想在2d数组中添加一行   Java:我需要从outputstream中获取字节数组   C语言中Java元注释的等价物#   java如何在从web下载图像时保持原始图像的dpi?   java中基于输入值的spring boot动态值   java从请求中获取主机名   java可以复制Swing代码并在intelliJ中的designer中查看它吗   spring如何使用java配置多个ldap   安卓如何在Java中使用具有多个类似参数的JSON请求/响应循环?   java LIbGDX如何在语言更改时翻译所有文本?