Pages: [1]
Print
Author Topic: Using accents and other special characters in text  (Read 3040 times)
richgriswold
Newbie
*
Posts: 7


View Profile WWW
« on: December 10, 2009, 09:27:02 PM »

I´m trying to label a drawing in Spanish, and I cannot figure out how to enter accented characters.  For example, if I type "Almacén" in the "Edit Text:" dialog box, it comes up as "Almacn" in the drawing.  I tried typing "Almacén" in my text editor and copying it into the edit text dialog box, but the results were even worse, since it came up as "Almacén".  Apparently CYCAS doesn´t handle UTF-8.

For a word like Almacén, I could simply leave the accent off and be okay, but for a word Baño, it´s a little more difficult.  Is there some way to enter characters like é and ñ in CYCAS?  I´m using CYCAS39 on Linux.

Thanks!
-Richard
Logged
richgriswold
Newbie
*
Posts: 7


View Profile WWW
« Reply #1 on: December 10, 2009, 09:50:06 PM »

Just after posting this, I figured out the problem.  The default font doesn´t have glyphs for letters like é and ñ.  I imported the FreeSans true type font and switch to it, and it´s working fine now.
Logged
Blackhawke
Jr. Member
**
Posts: 54



View Profile
« Reply #2 on: December 16, 2009, 08:12:50 PM »

Thanks for that. I´ve been using Cycas for 3, going on 4 years and I didn´t know that.  Smiley
Logged
serviteur
Jr. Member
**
Posts: 91


Newcreationfr
View Profile
« Reply #3 on: March 08, 2010, 09:37:50 PM »

Hi richgriswold ,

How did you imported FreeSans the true type font so that it works well.
Give me more detail please.

Serviteur

                                       


                       GOD BLESS YOU!
Logged

"... A servant is not greater than his Master ..." Jhon. 13:16
" I am crucified with Christ and I am a new creation " GAL2: 20, 2Cor5:17,  Rom 6:6-7
HP xw4600 Workstation: Intel Core 2 Quad Q9300 @ 4x2.50 GHz, 4 GB RAM, Nvidia Geforce 8400 GS
richgriswold
Newbie
*
Posts: 7


View Profile WWW
« Reply #4 on: March 09, 2010, 06:55:18 PM »

Go to "Project → Import → TrueType Font", navigate to /usr/share/fonts/truetype/freefont, and select FreeSans.ttf.  Hope this helps.
Logged
serviteur
Jr. Member
**
Posts: 91


Newcreationfr
View Profile
« Reply #5 on: March 20, 2010, 09:36:43 PM »

Thank you richgriswold

I used police Verdana.ttf which I believe the same thing FreeSans.ttf

But I have a problem to add  special characters, how you brought in the cycas?


GOD BLESS U !!!
Logged

"... A servant is not greater than his Master ..." Jhon. 13:16
" I am crucified with Christ and I am a new creation " GAL2: 20, 2Cor5:17,  Rom 6:6-7
HP xw4600 Workstation: Intel Core 2 Quad Q9300 @ 4x2.50 GHz, 4 GB RAM, Nvidia Geforce 8400 GS
steve
Sr. Member
****
Posts: 261



View Profile
« Reply #6 on: March 21, 2010, 08:22:53 PM »

serviteur, you could try copy and paste characters from a text file or a character map into cycas text box...

i have tried this but when i close the text dialog box, it causes cycas to crash...
Logged
richgriswold
Newbie
*
Posts: 7


View Profile WWW
« Reply #7 on: March 21, 2010, 10:41:03 PM »

I´m running Cycas on Linux (Ubuntu 9.10).  Inputting accented characters into Cycas is a little difficult, since most applications on Ubuntu use UTF-8, but Cycas does not.  Another application that does not use UTF-8 is NEdit (www.nedit.org).  Here´s a somewhat easy way to generate all printable "high" ASCII characters (above 127) using Perl and NEdit:

1.  In an xterm, use Perl to generate a list of printable high ASCII characters:

perl -e ´for(0xA0..0xFF){$c=chr($_); printf "0x%02X %03d $c
", $_, $_}´ > /tmp/hiascii

2.  Open the file with NEdit:

nedit /tmp/hiascii

Now you can double-click on the character in NEdit to select it, and middle-click in the text box in Cycas to paste it.  It´s a pain, but until Cycas get UTF-8 support, it´s the best solution I´ve found.

Remember to use a font that has the proper glyphs for the character to show up.
Logged
richgriswold
Newbie
*
Posts: 7


View Profile WWW
« Reply #8 on: March 21, 2010, 10:48:16 PM »

After submitting this, I realized that you can generate the list of high ASCII characters directly in NEdit.  Open the "Execute Command" dialog (Shell→Execute Command... or ALT-x), enter the following command (you need to use two percent signs to escape them), and click OK:

perl -e ´for(0xA0..0xFF){$c=chr($_); printf "0x%%02X %%03d $c
", $_, $_}´

Anyway, hope this helps.
Logged
Pages: [1]
Print
Jump to: