Administrator
|
Can I e.g. paste Chinese characters from a web page and save as data? I don't need to be able to use Chinese characters for code. I see pasting creates a wide string but the characters do not display. I assume this is because my font does not support them, but in the Settings Browser I only see 3 choices on Mac, none of which seem to display them.
Cheers,
Sean |
On Tue, Aug 18, 2015 at 4:17 AM, Sean P. DeNigris <[hidden email]> wrote: Can I e.g. paste Chinese characters from a web page and save as data? I don't This may be due to FreeType not really being loaded? Try unchecking and then checking again "Use free type...". But apart from fonts, CJK content should work. However I don't quite understand why would I need to change font so CJK characters are displayed. Because no matter what font I pick, there will be language whose characters are not supported... and why do I need to select the font in the first place? My linux terminal has DejaVu Sans Mono font and yet it displays CJK characters just fine, so surely we can do better than a stupid urxvt terminal? Peter |
Le 18/08/2015 12:52, Peter Uhnák a écrit :
> On Tue, Aug 18, 2015 at 4:17 AM, Sean P. DeNigris > <[hidden email] > <mailto:[hidden email]>> wrote: > > Can I e.g. paste Chinese characters from a web page and save as > data? I don't > need to be able to use Chinese characters for code. I see pasting > creates a > wide string but the characters do not display. I assume this is > because my > font does not support them, but in the Settings Browser I only see > 3 choices > on Mac, none of which seem to display them. > > > This may be due to FreeType not really being loaded? Try unchecking > and then checking again "Use free type...". > But apart from fonts, CJK content should work. > > However I don't quite understand why would I need to change font so > CJK characters are displayed. > Because no matter what font I pick, there will be language whose > characters are not supported... > and why do I need to select the font in the first place? My linux > terminal has DejaVu Sans Mono font and yet it displays CJK characters > just fine, > so surely we can do better than a stupid urxvt terminal? > > Peter Does FreeType manages fonts? Selecting an alternate font when the asked glyph is absent? No idea, and I am curious to know how it is managed at the OS level. For DrGeo, at startup time, I load different font depending on the language of the OS host, about copy pasting chinese text it does not work for me. I got unicode values: \u81fa\u5317\u5e02 and not 臺北市. But may be a problem of my host. Hilaire -- Dr. Geo http://drgeo.eu http://google.com/+DrgeoEu DrGeoChinese.png (76K) Download Attachment |
Good questions! On Linux this is managed system-wide with fontconfig, however I have no idea how it is actually implemented (and thus if Pharo could reuse it or if it would have to implement it on its own).
But may be a problem of my host. What OS? Because Linux VM by default is NOT set to Unicode, which does cause issues. in any case, default font: CJK-friendly font: Peter |
In reply to this post by Sean P. DeNigris
Yes, it should work with the right font:
On 18 Aug 2015, at 04:17, Sean P. DeNigris <[hidden email]> wrote: |
In reply to this post by Peter Uhnak
Le 18/08/2015 15:06, Peter Uhnák a écrit :
> > What OS? Because Linux VM by default is NOT set to Unicode, which does > cause issues. > With DrGeo (Linux Pharo 3.0 based with utf8 encoding set in the VM parameters) with chinese GUI, copying pasting in the workspace does not work. Hilaire -- Dr. Geo http://drgeo.eu http://google.com/+DrgeoEu |
In reply to this post by Peter Uhnak
Le 18/08/2015 15:06, Peter Uhnák a
écrit :
With DrGeo (Linux Pharo 3.0 based with utf8 encoding set in the VM parameters) with chinese GUI, copying pasting in the workspace does not work. Hilaire -- Dr. Geo http://drgeo.eu http://google.com/+DrgeoEu |
Administrator
|
In reply to this post by Sven Van Caekenberghe-2
Thanks to all! Yes, changing the "default" font to e.g. "Arial Unicode MS" did the trick for e.g. GT Inspector display, and changing the "code" font to same made pasting work as expected.
Cheers,
Sean |
Free forum by Nabble | Edit this page |