CYCAS user forum    
  Forum | Register | Login | Ranking | Search | FAQ | Imprint
Username: Password:
 
 
Forum » Drawing and Construction » Using accents and other special characters in text 1
Answer
10.12.09 21:27
richgriswold


Using accents and other special characters in text

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

10.12.09 21:50
richgriswold


Re: Using accents and other special characters in text

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.

16.12.09 20:12
Blackhawke


Re: Using accents and other special characters in text

Thanks for that. I've been using Cycas for 3, going on 4 years and I didn't know that.

08.03.10 21:37
serviteur


Re: Using accents and other special characters in text

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!

09.03.10 18:55
richgriswold


Re: Using accents and other special characters in text

Go to "Project → Import → TrueType Font", navigate to /usr/share/fonts/truetype/freefont, and select FreeSans.ttf. Hope this helps.

20.03.10 21:36
serviteur


Re: Using accents and other special characters in text

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 !!!

21.03.10 20:22
steve



Re: Using accents and other special characters in text

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...

21.03.10 22:41
richgriswold


Re: Using accents and other special characters in text

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\n", $_, $_}' > /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.

21.03.10 22:48
richgriswold


Re: Using accents and other special characters in text

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\n", $_, $_}'

Anyway, hope this helps.

Answer 1
 
  © 2010 Verlag A.C.Frese  

Php ForumDeafPump partsbackenCuboro für KinderDatenrettung LeitfadenVersicherungsvergleichRentenversicherung