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