POV-Ray : Newsgroups : povray.general : Use of characters like =FC,=E4,=F6 Server Time
26 Nov 2024 16:30:00 EST (-0500)
  Use of characters like =FC,=E4,=F6 (Message 1 to 9 of 9)  
From: DH0909
Subject: Use of characters like =FC,=E4,=F6
Date: 3 Jun 2010 12:00:01
Message: <web.4c07d0d41487e7f59cec162a0@news.povray.org>
Hi!
This question has two parts:

The text (TheText) runs through a loop where all letters are checked like:
#local b=substr(TheText,I+1,1);
#if (strcmp(b," ")!=0)


Is that right? How could I circumvent this?
(I render text currently using TIMESBD.TTF. I will use another font anyway
later, but it hasn't to do anything with the font used for rendering.)

2. The same when I try to write the text in a text file with #write:
#write(fileHandle,
        concat("rename \"vorlage 0001.png\" ",
        TheText, ".png\"",
        "\n")
      )



Part 1 is much more important to me, as part 2 I can easily handle with a
workaround.

Greetings
DH =)


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Use of characters like =FC,=E4,=F6
Date: 3 Jun 2010 12:11:33
Message: <4c07d435@news.povray.org>
On 03.06.10 17:57, DH0909 wrote:
> Hi!
> This question has two parts:

> The text (TheText) runs through a loop where all letters are checked like:
> #local b=substr(TheText,I+1,1);
> #if (strcmp(b," ")!=0)
>

> Is that right? How could I circumvent this?
> (I render text currently using TIMESBD.TTF. I will use another font anyway
> later, but it hasn't to do anything with the font used for rendering.)

You need to read the documentation or search the newsgroups before posting. 
This question has been answered dozens of times. You need to set the charset.

For example, see this thread:
From: "Silverlight2009" <nomail@nomail>
Date: Wed,  7 Apr 2010 11:26:17 EDT
Newsgroups: povray.newusers
Message-ID: <web.4bbca419deecc5cc5371ddf10@news.povray.org>


Post a reply to this message

From: Jim Holsenback
Subject: Re: Use of characters like =FC,=E4,=F6
Date: 3 Jun 2010 17:06:52
Message: <4c08196c$1@news.povray.org>
On 06/03/2010 01:11 PM, Thorsten Froehlich wrote:
> You need to read the documentation or search the newsgroups before
> posting. This question has been answered dozens of times. You need to
> set the charset.

now you can just point them here:
http://wiki.povray.org/content/Knowledgebase:Language_Questions_and_Tips#Topic_32


Post a reply to this message

From: Alain
Subject: Re: Use of characters like =FC,=E4,=F6
Date: 3 Jun 2010 17:34:24
Message: <4c081fe0$1@news.povray.org>

> Hi!
> This question has two parts:

> The text (TheText) runs through a loop where all letters are checked like:
> #local b=substr(TheText,I+1,1);
> #if (strcmp(b," ")!=0)
>

> Is that right? How could I circumvent this?
> (I render text currently using TIMESBD.TTF. I will use another font anyway
> later, but it hasn't to do anything with the font used for rendering.)
>
> 2. The same when I try to write the text in a text file with #write:
> #write(fileHandle,
>          concat("rename \"vorlage 0001.png\" ",
>          TheText, ".png\"",
>          "\n")
>        )
>

>
> Part 1 is much more important to me, as part 2 I can easily handle with a
> workaround.
>
> Greetings
> DH =)
>
>
Add:
global_settings{charset utf8}
Then use "\u00fc", "\u00e4" or "\u00f6" in your strings.


Alain


Post a reply to this message

From: DH0909
Subject: Re: Use of characters like =3DFC,=3DE4,=3DF6
Date: 4 Jun 2010 02:45:00
Message: <web.4c089efbc120ee6ca6964d150@news.povray.org>
Thank you for the helpful answers.

Greetings
DH


Post a reply to this message

From: DH0909
Subject: Re: Use of characters like =3DFC,=3DE4,=3DF6
Date: 4 Jun 2010 06:45:00
Message: <web.4c08d889c120ee6c3d03c1ca0@news.povray.org>
Alain <aze### [at] qwertyorg> wrote:
> Add:
> global_settings{charset utf8}
> Then use "\u00fc", "\u00e4" or "\u00f6" in your strings.
>
>
> Alain


Ty!  =)

Is there any sense nowadays not to use utf8? Are there any possible
disadvanteges when using utf8?

Greetings
DH


Post a reply to this message

From: DH0909
Subject: Re: Use of characters like =3DFC,=3DE4,=3DF6
Date: 4 Jun 2010 08:15:01
Message: <web.4c08ed42c120ee6c6c34a2550@news.povray.org>
Jim Holsenback <jho### [at] povrayorg> wrote:
> On 06/03/2010 01:11 PM, Thorsten Froehlich wrote:
> > You need to read the documentation or search the newsgroups before
> > posting. This question has been answered dozens of times. You need to
> > set the charset.
>
> now you can just point them here:
> http://wiki.povray.org/content/Knowledgebase:Language_Questions_and_Tips#Topic_32


I care :P

No need to remove it.

Greetings =)


Post a reply to this message

From: Alain
Subject: Re: Use of characters like =3DFC,=3DE4,=3DF6
Date: 4 Jun 2010 11:53:14
Message: <4c09216a$1@news.povray.org>

> Alain<aze### [at] qwertyorg>  wrote:
>> Add:
>> global_settings{charset utf8}
>> Then use "\u00fc", "\u00e4" or "\u00f6" in your strings.
>>
>>
>> Alain
>
>
> Ty!  =)
>
> Is there any sense nowadays not to use utf8? Are there any possible
> disadvanteges when using utf8?
>
> Greetings
> DH
>
>

There are no disavantage to use utf8, but, unless you actualy use text 
object or use some other text output, there is no point in using it.

It could be interesting that future versions default to utf8 charset.


Alain


Post a reply to this message

From: Jim Holsenback
Subject: Re: Use of characters like =3DFC,=3DE4,=3DF6
Date: 4 Jun 2010 16:52:20
Message: <4c096784@news.povray.org>
On 06/04/2010 09:10 AM, DH0909 wrote:
> No need to remove it.

ha-ha ... guess i had second thoughts about it being necessary


Post a reply to this message

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