charsets(tools)
charsets()所属R语言包:tools
Conversion Tables between Character Sets
字符集之间的转换表
译者:生物统计家园网 机器人LoveR
描述----------Description----------
charset_to_Unicode is a matrix of Unicode points with columns for the common 8-bit encodings.
charset_to_Unicode是一种常见的8位编码的Unicode分列的矩阵。
Adobe_glyphs is a dataframe which gives Adobe glyph names for Unicode points. It has two character columns, "adobe" and "unicode" (a 4-digit hex representation).
Adobe_glyphs是dataframe的提供;字形名称为Unicode点。它有两个字符列,"adobe"和"unicode"(4位十六进制表示)。
用法----------Usage----------
charset_to_Unicode
Adobe_glyphs
Details
详情----------Details----------
charset_to_Unicode is an integer matrix of class c("noquote", "hexmode") so prints in hexadecimal. The mappings are those used by libiconv: there are differences in the way quotes and minus/hyphen are mapped between sources (and the postscript encoding files use a different mapping).
charset_to_Unicode类c("noquote", "hexmode")所以十六进制打印整数矩阵。映射是那些使用libiconv:有不同的方式报价和减号/连字符源之间的映射(和编码的PostScript文件使用不同的映射)。
Adobe_glyphs include all the Adobe glyph names which correspond to single Unicode characters. It is sorted by Unicode point and within a point alphabetically on the glyph (there can be more than one name for a Unicode point). The data are in the file "<VAR>R_HOME</VAR>/share/encodings/Adobe_glyphlist".
Adobe_glyphs包括所有的Adobe字形名称对应于单一的Unicode字符。它由Unicode点和内点按字母顺序排列的字形排序(可能有多个名称的Unicode点)。数据文件<VAR>R_HOME</VAR>/share/encodings/Adobe_glyphlist。
源----------Source----------
http://partners.adobe.com/public/developer/en/opentype/glyphlist.txt
举例----------Examples----------
## find Adobe names for ISOLatin2 chars.[#找到;名ISOLatin2字符。]
latin2 <- charset_to_Unicode[, "ISOLatin2"]
aUnicode <- as.numeric(paste("0x", Adobe_glyphs$unicode, sep=""))
keep <- aUnicode %in% latin2
aUnicode <- aUnicode[keep]
aAdobe <- Adobe_glyphs[keep, 1]
## first match[#第一场比赛]
aLatin2 <- aAdobe[match(latin2, aUnicode)]
## all matches[#所有比赛]
bLatin2 <- lapply(1:256, function(x) aAdobe[aUnicode == latin2[x]])
format(bLatin2, justify="none")
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|