POV-Ray : Newsgroups : povray.newusers : Special letters Server Time
24 Nov 2024 04:36:13 EST (-0500)
  Special letters (Message 1 to 8 of 8)  
From: Silverlight2009
Subject: Special letters
Date: 7 Apr 2010 11:30:01
Message: <web.4bbca419deecc5cc5371ddf10@news.povray.org>
Hello!

How can I use fonts in POV-Ray, that consist special characters, like with


Post a reply to this message

From: Alain
Subject: Re: Special letters
Date: 7 Apr 2010 17:58:46
Message: <4bbd0016$1@news.povray.org>

> Hello!
>
> How can I use fonts in POV-Ray, that consist special characters, like with

>
>

Add:
global_settings{char_set utf8}

Then, for most characters, you will need to use chr(Char_Number)

concat(Start_Of_String, chr(Char_Nubber), Rest_Of_String)


Alain


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Special letters
Date: 8 Apr 2010 03:02:06
Message: <4bbd7f6e$1@news.povray.org>
On 07.04.10 23:58, Alain wrote:

>> Hello!
>>
>> How can I use fonts in POV-Ray, that consist special characters, like
>> with

>
> Add:
> global_settings{char_set utf8}

Correct.

> Then, for most characters, you will need to use chr(Char_Number)

Actually, that is not correct. One can either use an editor capable of 
editing UTF-8 files (see 
<http://www.povray.org/documentation/view/3.6.1/263/>) and things will "just 
work", or use the backslask-u encoding, which for some reason ended up being 
described in <http://www.povray.org/documentation/view/3.6.1/242/>, but 
nonetheless is handled correctly for all strings.

For the umlaut-o the code would be "\u00F6". What needs to be remebered 
though is that POV-Ray only supports the "Basic Multilingual Plane" of 
Unicode (see details about Unicode i.e. at 
<http://en.wikipedia.org/wiki/Universal_Character_Set> or of course in the 
Unicode standard). This limitation is mainly due to the TrueType font 
handling code not being able to handle more than UCS-2 correctly.

	Thorsten, POV-Team


Post a reply to this message

From: Silverlight2009
Subject: Re: Special letters
Date: 8 May 2010 15:35:00
Message: <web.4be5bc05e619788355d0e72e0@news.povray.org>
Sorry for the incovinience. So, can I do that in the built-in editor of the
POV-Ray? And, if yes, how. I added the neccessary statement to the
global_settings, but it didn't help.


Post a reply to this message

From: Friedrich Lohmüller
Subject: Re: Special letters
Date: 8 May 2010 16:28:47
Message: <4be5c97f$1@news.povray.org>
Silverlight2009 schrieb:
> Sorry for the incovinience. So, can I do that in the built-in editor of the
> POV-Ray? And, if yes, how. I added the neccessary statement to the
> global_settings, but it didn't help.
> 
> 
This may help:
http://www.f-lohmueller.de/pov_tut/all_shapes/shapes604e.htm

Friedrich

//-----------------------------------------
email:  Fri### [at] t-onlinede
homepage: http://www.f-lohmueller.de/
//-----------------------------------------


Post a reply to this message

From: Alain
Subject: Re: Special letters
Date: 8 May 2010 16:29:02
Message: <4be5c98e$1@news.povray.org>

> Sorry for the incovinience. So, can I do that in the built-in editor of the
> POV-Ray? And, if yes, how. I added the neccessary statement to the
> global_settings, but it didn't help.
>
>

The builtin editor presently don't handle extended ASCII nor unicode 
properly.
You need to use string functions, starting with concat(...) and 
str(Char_code)



Alain


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Special letters
Date: 9 May 2010 03:48:33
Message: <4be668d1$1@news.povray.org>
On 08.05.10 22:29, Alain wrote:

>> Sorry for the incovinience. So, can I do that in the built-in editor
>> of the
>> POV-Ray? And, if yes, how. I added the neccessary statement to the
>> global_settings, but it didn't help.
>
> The builtin editor presently don't handle extended ASCII nor unicode
> properly.

The POV-Ray for Windows editor does handle extended ASCII just fine, it is 
just that POV-Ray will ignore them.

> You need to use string functions, starting with concat(...) and
> str(Char_code)

Hmm, did you actually *read* my post? - He can use the backslash-u construct 
to encode Unicode characters with any editor, including the internal editor.

	Thorsten, POV-Team


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Special letters
Date: 9 May 2010 03:53:12
Message: <4be669e8$1@news.povray.org>
On 08.05.10 21:31, Silverlight2009 wrote:
> Sorry for the inconvenience. So, can I do that in the built-in editor of the
> POV-Ray? And, if yes, how. I added the necessary statement to the
> global_settings, but it didn't help.

The internal POV-Ray for Windows editor (currently) does not support UTF-8 
encoding as far as I know. You can use the backslash-u encoding with it 
though. It requires looking up the correct encoding in one of the many 
Unicode tables you can find with Google.

If you want full Unicode support naively, I think newer versions of WordPad 
or even Notepad as standard Windows editors support optional UTF-8 output. 
Still, remember that we do not support surrogates (supplementary characters) 
for the POV-Ray "text" object.

	Thorsten, POV-Team


Post a reply to this message

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