POV-Ray : Newsgroups : povray.general : greek letters under linux? Server Time
5 Nov 2024 09:24:22 EST (-0500)
  greek letters under linux? (Message 1 to 8 of 8)  
From: Victor M  Rosas-Garcia
Subject: greek letters under linux?
Date: 4 Jun 2003 15:57:51
Message: <3ede4f3f$1@news.povray.org>
Hello,

Is it possible to use greek letters in a text object under linux? After 
  reading the documentation and the FAQ, it looks like only non-linux 
OSs can do that.

Am I missing something here?


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: greek letters under linux?
Date: 4 Jun 2003 16:22:10
Message: <3ede54f2$1@news.povray.org>
In article <3ede4f3f$1@news.povray.org> , "Victor M. Rosas-Garcia" 
<qui### [at] yahoocom> wrote:

> Am I missing something here?

You need an editor that saves your text as Unicode UTF-8.  Then use "charset
utf8" (see the manual for details).

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Victor M  Rosas-Garcia
Subject: Re: greek letters under linux?
Date: 4 Jun 2003 18:23:08
Message: <3ede714c$1@news.povray.org>
OK, so far I've got xterm and vim, both with multibyte support.  I can 
read, write and display a bunch of characters in other languages.  I 
have read sections 3.4.6, 6.11.6 and 6.1.7.3 in the manual.  Now, from 
the manual, I understand that I have to specify

global_settings { charset utf8 }

in my *.pov file but, I am confused, am I supposed to save the entire 
*.pov file encoded in utf8?  or should I only use the string function 
chr() with the appropriate utf-8 value for the character I need? Also, I 
have no ideat about the font name I should use in the text object.

Thx for you help.

Thorsten Froehlich wrote:
> You need an editor that saves your text as Unicode UTF-8.  Then use "charset
> utf8" (see the manual for details).


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: greek letters under linux?
Date: 5 Jun 2003 09:50:11
Message: <3edf4a93$1@news.povray.org>
In article <3ede714c$1@news.povray.org> , "Victor M. Rosas-Garcia" 
<qui### [at] yahoocom> wrote:

> in my *.pov file but, I am confused, am I supposed to save the entire
> *.pov file encoded in utf8?

Yes, you cannot create UTF-8 files any other way.  One property of UTF-8 is
that is leaves the ASCII character range untouched, so the charset only
matter for strings in any case, as non ASCII characters are not allowed
anywhere else anyway.

>  or should I only use the string function
> chr() with the appropriate utf-8 value for the character I need? Also, I
> have no ideat about the font name I should use in the text object.

You can always use the chr() function to create sequence of characters
regardless of the charset that you set.  It takes characters in the range
specified by the Unicode standard as UCS-2 (UCS-4 ranges are not supported).
Alternatively, simply use the \uxxxx options, where xxxx is the hexadecimal
value of the unicode character.  That way it is more convenient to generate
longer strings of Unicode characters in an ASCII text editor by hand.

Of course, it is indeed most convenient to the an UTF-8 capable editor and
set charset to utf8.  That way you do not need to mess with chr() or \u.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Stephen R  Phillips
Subject: Re: greek letters under linux?
Date: 5 Jun 2003 16:31:57
Message: <Xns9391A9221E24cybermans_pov_posts_are_here@204.213.191.226>
"Victor M. Rosas-Garcia" <qui### [at] yahoocom> wrote in
news:3ede714c$1@news.povray.org: 

> I have no ideat about the font name I should use in the text object.
> 
You can use the standard Symbol font for most greek characters although 
grave' and circumflex might be a bit of a problem, these are seperate so 
you might need 2 text objects intersected to add accent marks in other 
words.


Post a reply to this message

From: Victor M  Rosas-Garcia
Subject: Re: greek letters under linux?
Date: 5 Jun 2003 16:57:08
Message: <3edfaea4$1@news.povray.org>
Stephen R. Phillips wrote:
> You can use the standard Symbol font for most greek characters although 
> grave' and circumflex might be a bit of a problem, these are seperate so 
> you might need 2 text objects intersected to add accent marks in other 
> words.

(Sigh) So I guess I'll have to install more TrueType fonts in my linux 
box.  "Symbol" does not come by default.

Thanx


Post a reply to this message

From: Stephen R  Phillips
Subject: Re: greek letters under linux?
Date: 5 Jun 2003 17:53:59
Message: <Xns9391B70C42629cybermans_pov_posts_are_here@204.213.191.226>
"Victor M. Rosas-Garcia" <qui### [at] yahoocom> wrote in
news:3edfaea4$1@news.povray.org: 

> Stephen R. Phillips wrote:
>> You can use the standard Symbol font for most greek characters
>> although grave' and circumflex might be a bit of a problem, these are
>> seperate so you might need 2 text objects intersected to add accent
>> marks in other words.
> 
> (Sigh) So I guess I'll have to install more TrueType fonts in my linux
> box.  "Symbol" does not come by default.
> 
> Thanx
> 
> 
Well you can copy them from any handy source you have like a windows 
machine.  The location of the fonts should be the same directory as your 
POV includes. That's ALL you need to do :)

Stephen


Post a reply to this message

From: Victor M  Rosas-Garcia
Subject: Re: greek letters under linux?
Date: 9 Jun 2003 17:18:55
Message: <3ee4f9bf@news.povray.org>
Victor M. Rosas-Garcia wrote:
> Hello,
> 
> Is it possible to use greek letters in a text object under linux? After 
>  reading the documentation and the FAQ, it looks like only non-linux OSs 
> can do that.
> 
> Am I missing something here?
> 

Finally got it.  See posting on p.b.images.  The image depicts a water 
molecule with its symmmetry elements (two mirror planes and a rotation 
axis).


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.