search for: u4f60

Displaying 8 results from an estimated 8 matches for "u4f60".

2010 Jun 30
2
plain text in Chinese can not be set
...ing code, the font to use for Latin text is correct. I also tested postscript(), and it did as what was expected. Any suggestions? Thanks in advance! Regards, Jinsong ### the code to reproduce my question ### pdf("test_0.pdf", fonts = c("GB1")) plot(1:10) text(5,4, "\u4F60\u597D", family="GB1", font = 0) ## bold text(5,5, "is 'hello' in Chinese", font = 0) ## normal dev.off() pdf("test_1.pdf", fonts = c("GB1")) plot(1:10) text(5,4, "\u4F60\u597D", family="GB1", font = 1) ## bold text(5,5, &quot...
2011 Apr 21
0
automatic font selection, please help
...-EUC-H", "GBK", "") postscriptFonts(song = song) postscript("test.ps", height = 7, width =7, family = "Times", fonts = c("song"), horizontal = FALSE, onefile = FALSE, paper = "special") plot(1:10, xlab = "") mtext("\u4F60\u597D", family="song", font = 1, side = 1, line = 2) text(1,1, "\u4F60\u597D", family="song", font = 1) text(3,1, "\u4F60\u597D", family="song", font = 2) text(5,1, "\u4F60\u597D", family="song", font = 3) text(7,1, "\...
2010 Jun 29
5
More than two font in a plot
...hinese character in a plot, and than save it in PostScript format. I have read the article titled "Non-Standard Fonts in PostScript and PDF Graphics", especially the section about CJK fonts. I also tried the code: > pdf("chinese.pdf", width=3, height=1) > grid.text("\u4F60\u597D", y=2/3, gp=gpar(fontfamily="CNS1")) > grid.text("is 'hello' in (Traditional) Chinese", y=1/3) > dev.off() however, it's not valid with postscript(). It seems that postscript() need to set family in postscirpt(..., family = "CNS1"). Then a...
2018 Mar 08
2
[Bug report] Chinese characters are not handled correctly in Rterm for Windows
...Chinese characters in the startup banner are missing 3. > Sys.getlocale() [1] "LC_COLLATE=Chinese (Simplified)_China.936;LC_CTYPE=Chinese (Simplified) _China.936;LC_MONETARY=Chinese (Simplified)_China.936;LC_NUMERIC=C;LC_ TIME=Chinese (Simplified)_China.936" 4. > print("ABC\u4f60\u597dDEF") [1] "ABCDEF" (Unicode code points for "???") 5. Use Microsoft Pinyin IME to type "???" into the console. An error message appeared: > invalid multibyte character in mbcs_get_next Then the program crashed. My debugger reported a heap corruption, disp...
2018 Apr 28
2
[Bug report] Chinese characters are not handled correctly in Rterm for Windows
...Tomas, Sorry for the delayed response. I have tested the problem on the latest R-devel build (2018-04-27 r74651), and it still exists. RGui is always fine with Chinese characters, but some IDEs rely on the CLI version of R (e.g. Visual Studio Code with R plugin). >Your example print("ABC\u4f60\u597dDEF") is printing two Chinese characters, right? Yes. U+4F60, U+597D or C4E3, BAC3 in CP936. >Could you reproduce the problem with printing just one of the characters, say print("ABC\u4f60DEF") ? Yes. The console output is pasted in [ https://paste.ubuntu.com/p/TYgZWhdgXK/ ]...
2018 Apr 05
0
[Bug report] Chinese characters are not handled correctly in Rterm for Windows
...re what is going wrong, we may have to rely on your help to debug this (I do not have a system to reproduce on). A user-targeted advice would be to use RGui (Rgui.exe). Does the problem also exist in R-devel? https://cran.r-project.org/bin/windows/base/rdevel.html Your example? print("ABC\u4f60\u597dDEF") is printing two Chinese characters, right? The first one is C4E3 in CP936 (4F60 in Unicode) and the second one is BAC3 in CP936 (597D in Unicode)? Could you reproduce the problem with printing just one of the characters, say print("ABC\u4f60DEF") ? As a sanity check -...
2018 May 04
0
[Bug report] Chinese characters are not handled correctly in Rterm for Windows
...orry for the delayed response. I have tested the problem on the latest R-devel build (2018-04-27 r74651), and it still exists. RGui is always fine with Chinese characters, but some IDEs rely on the CLI version of R (e.g. Visual Studio Code with R plugin). > >> Your example print("ABC\u4f60\u597dDEF") is printing two Chinese characters, right? > Yes. U+4F60, U+597D or C4E3, BAC3 in CP936. > >> Could you reproduce the problem with printing just one of the characters, say print("ABC\u4f60DEF") ? > Yes. The console output is pasted in [ https://paste.ubuntu....
2011 Oct 22
3
Sweave, cairo_pdf, CJK, ghostscript
I have had some fun in the last few days trying to put together an annotated map of China with R and some public GIS data: http://sourceforge.net/projects/outmodedbonsai/files/snpMatrix%20next/1.17.7.11/China_Choropleth_Maps.pdf/download It is done, and rather nice... there are a few issues: - the default pdf() device cannot do CJK with embedded fonts - and cairo_pdf() is not hooked up to