POV-Ray : Newsgroups : povray.windows : Accents in a string for 'uv_mapping' Server Time
23 Nov 2024 15:23:16 EST (-0500)
  Accents in a string for 'uv_mapping' (Message 1 to 9 of 9)  
From: Lionel
Subject: Accents in a string for 'uv_mapping'
Date: 1 Jun 2005 09:00:01
Message: <web.429db02b767e44eba6130c470@news.povray.org>
Hi everybody,

I'm working on windows XP, and I want to use French accents in a string with
'sys'  specific command for .bmp format in uv_mapping.

But I have some problem with it :


with acute) letter strangely
..

I read that I must specified :

global_settings {
 charset utf8
}

In order to work with special character like the French accents.

It work well for 'text' object (like in example ttf1.pov)

text { ttf "C:WINDOWSFontsarial.TTF", "Mu00e9tal" ...

But not with 'sys' command in uv_mapping !! (I have got the same problem
with 'gif' 'jpeg' and the others format.)

I have tried several things but in vain ( u00e9 ==  small letter e with
acute ) :

----------------------------------------

texture {
uv_mapping pigment {
 image_map{

 }
}

POV Ray : Parse Error : Error opening BMP image ' C:WindowsTextureM l.bmp'

Why M...l ?


-------------------------------------

texture {
uv_mapping pigment {
 image_map{
  sys "C:WindowsTextureMu00e9tal.bmp"
 }
}

POV Ray : Parse Error : Error opening BMP image
'C:WindowsTextureMu00e9l.bmp'

Ok so 'u00e9' is read as this.. But it is not what I want ...:o(

-----------------------------------

#declare Text =  "C:\Windows\Texture\Mu00e9tal.bmp"

texture {
 uv_mapping pigment {
  image_map{
  sys Text
 }
}

POV Ray : Parse Error : Error opening BMP image 'C:WindowsTextureM tal.bmp'



-----------------------------------

And at last



texture {
 uv_mapping pigment {
  image_map{
  sys Text
 }
}

POV Ray : Parse Error : Error opening BMP image 'C:WindowsTextureM l.bmp'


character ???

--------------------------------

Has someone an idea ?

Any suggest that could help me is welcome.

Lionel


Post a reply to this message

From: Mike Raiford
Subject: Re: Accents in a string for 'uv_mapping'
Date: 1 Jun 2005 09:37:43
Message: <429dba27$1@news.povray.org>
Lionel wrote:
> Hi everybody,
> 
> I'm working on windows XP, and I want to use French accents in a string with
> 'sys'  specific command for .bmp format in uv_mapping.
> 
> But I have some problem with it :
> 

> with acute) letter strangely
> ..
> 
> I read that I must specified :
> 
> global_settings {
>  charset utf8
> }
> 
> In order to work with special character like the French accents.
> 
> It work well for 'text' object (like in example ttf1.pov)
> 
> text { ttf "C:WINDOWSFontsarial.TTF", "Mu00e9tal" ...
> 
> But not with 'sys' command in uv_mapping !! (I have got the same problem
> with 'gif' 'jpeg' and the others format.)
> 
> I have tried several things but in vain ( u00e9 ==  small letter e with
> acute ) :
> 
> ----------------------------------------
> 
> texture {
> uv_mapping pigment {
>  image_map{

>  }
> }
> 
> POV Ray : Parse Error : Error opening BMP image ' C:WindowsTextureM l.bmp'
> 
> Why M...l ?

> 
> -------------------------------------
> 
> texture {
> uv_mapping pigment {
>  image_map{
>   sys "C:WindowsTextureMu00e9tal.bmp"
>  }
> }
> 
> POV Ray : Parse Error : Error opening BMP image
> 'C:WindowsTextureMu00e9l.bmp'
> 
> Ok so 'u00e9' is read as this.. But it is not what I want ...:o(
> 
> -----------------------------------
> 
> #declare Text =  "C:\Windows\Texture\Mu00e9tal.bmp"
> 
> texture {
>  uv_mapping pigment {
>   image_map{
>   sys Text
>  }
> }
> 
> POV Ray : Parse Error : Error opening BMP image 'C:WindowsTextureM tal.bmp'
> 

> 
> -----------------------------------
> 
> And at last
> 

> 
> texture {
>  uv_mapping pigment {
>   image_map{
>   sys Text
>  }
> }
> 
> POV Ray : Parse Error : Error opening BMP image 'C:WindowsTextureM l.bmp'
> 

> character ???
> 
> --------------------------------
> 
> Has someone an idea ?
> 
> Any suggest that could help me is welcome.
> 
> Lionel
> 
> 

Try charset ISO-8859-1 (Western) ... This may or may not solve the 
problem, but its worth a shot, since I believe this is the charset most 
windows files are saved in. It could also be a limitation of POV-Ray in 
and of itself. Question: Does it work on PNG or JPG files? If so, it 
could be a limitation of the BMP library POV-Ray is using.

-- 
~Mike

Things! Billions of them!


Post a reply to this message

From: Mike Raiford
Subject: Re: Accents in a string for 'uv_mapping'
Date: 1 Jun 2005 09:38:18
Message: <429dba4a$1@news.povray.org>
Mike Raiford wrote:
> Lionel wrote:
> 
>> Hi everybody,
>>
>> I'm working on windows XP, and I want to use French accents in a 
>> string with
>> 'sys'  specific command for .bmp format in uv_mapping.
>>
>> But I have some problem with it :
>>

>> letter e
>> with acute) letter strangely
>> ..
>>
>> I read that I must specified :
>>
>> global_settings {
>>  charset utf8
>> }
>>
>> In order to work with special character like the French accents.
>>
>> It work well for 'text' object (like in example ttf1.pov)
>>
>> text { ttf "C:WINDOWSFontsarial.TTF", "Mu00e9tal" ...
>>
>> But not with 'sys' command in uv_mapping !! (I have got the same problem
>> with 'gif' 'jpeg' and the others format.)
>>
>> I have tried several things but in vain ( u00e9 ==  small letter e with
>> acute ) :
>>
>> ----------------------------------------
>>
>> texture {
>> uv_mapping pigment {
>>  image_map{

>>  }
>> }
>>
>> POV Ray : Parse Error : Error opening BMP image ' C:WindowsTextureM 
>> l.bmp'
>>
>> Why M...l ?

>>
>> -------------------------------------
>>
>> texture {
>> uv_mapping pigment {
>>  image_map{
>>   sys "C:WindowsTextureMu00e9tal.bmp"
>>  }
>> }
>>
>> POV Ray : Parse Error : Error opening BMP image
>> 'C:WindowsTextureMu00e9l.bmp'
>>
>> Ok so 'u00e9' is read as this.. But it is not what I want ...:o(
>>
>> -----------------------------------
>>
>> #declare Text =  "C:\Windows\Texture\Mu00e9tal.bmp"
>>
>> texture {
>>  uv_mapping pigment {
>>   image_map{
>>   sys Text
>>  }
>> }
>>
>> POV Ray : Parse Error : Error opening BMP image 'C:WindowsTextureM 
>> tal.bmp'
>>

>>
>> -----------------------------------
>>
>> And at last
>>

>>
>> texture {
>>  uv_mapping pigment {
>>   image_map{
>>   sys Text
>>  }
>> }
>>
>> POV Ray : Parse Error : Error opening BMP image 'C:WindowsTextureM l.bmp'
>>

>> character ???
>>
>> --------------------------------
>>
>> Has someone an idea ?
>>
>> Any suggest that could help me is welcome.
>>
>> Lionel
>>
>>
> 
> Try charset ISO-8859-1 (Western) ... This may or may not solve the 
> problem, but its worth a shot, since I believe this is the charset most 
> windows files are saved in. It could also be a limitation of POV-Ray in 
> and of itself. Question: Does it work on PNG or JPG files? If so, it 
> could be a limitation of the BMP library POV-Ray is using.
> 

BTW, do not include (Western), just ISO-8859-1 :)

-- 
~Mike

Things! Billions of them!


Post a reply to this message

From: Lionel
Subject: Re: Accents in a string for 'uv_mapping'
Date: 1 Jun 2005 10:40:00
Message: <web.429dc7d151f18563a6130c470@news.povray.org>
Hi Mike,

Thank you for this answer.

You propose to use charset ISO-8859-1, but is it for global_settings ? Like
this ;

global_settings {
  charset ISO-8859-1
}

or in a .ini file or other ?

Because in POV Ray for Windows Help in section 3.3.3.6  Charset

There exist only three type:

-"ascii only standard ASCII character codes in the range from 0 to 127 are
valid".
 This set is to restricted for me.

 -"utf8 is a special Unicode text encoding and it allows you to specify
characters of nearly all languages in use today. We suggest you use a text
editor with the capability to export text to UTF8 to generate input files."
 This doesn't work...

- The last possible option is to use a system specific character set. For
details about the sys character set option refer to the platform specific
documentation.
 Well, I don't know where I could find informations on it. Perhaps it is the
solution..

And no ISO-8859-1. (I tried it nevertheless, but a parse error occurs)
That's sad because it is certainly what I'm looking for !!
ISO-8859-1 contains, a priori, all character that I could find on French
Windows system file.

It is the same problem for jpeg & gif...

Sincerly,

Lionel


Mike Raiford <mra### [at] hotmailcom> wrote:

> > Try charset ISO-8859-1 (Western) ... This may or may not solve the
> > problem, but its worth a shot, since I believe this is the charset most
> > windows files are saved in. It could also be a limitation of POV-Ray in
> > and of itself. Question: Does it work on PNG or JPG files? If so, it
> > could be a limitation of the BMP library POV-Ray is using.
> >
>
> BTW, do not include (Western), just ISO-8859-1 :)
>
> --
> ~Mike
>
> Things! Billions of them!


Post a reply to this message

From: Lionel
Subject: Re: Accents in a string for 'uv_mapping'
Date: 2 Jun 2005 10:15:00
Message: <web.429f131651f18563a6130c470@news.povray.org>
Hi Mike,

Well,

The same problem occurs when I try to include a file with accents in its
name ...



works well



So it is not the call to the different image libraries but a specific
connection between POV Ray and Windows.

It seems that characters in a string representing a file name were not
interpreted or parsed with the charset specified in global_settings. It is
certainly not that ... :o(


static array of char, when it is searching for windows file (searching,
reading, etc...)

I will continue searching for it.

Sincerely

Lionel


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Accents in a string for 'uv_mapping'
Date: 19 Jul 2005 22:40:10
Message: <42ddb98a@news.povray.org>
#debug doesn't work with accents either.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Accents in a string for 'uv_mapping'
Date: 20 Jul 2005 02:30:51
Message: <42ddef9b$1@news.povray.org>
Lionel wrote:
> Hi everybody,
> 
> I'm working on windows XP, and I want to use French accents in a string with
> 'sys'  specific command for .bmp format in uv_mapping.
> 
> But I have some problem with it :
> 

> with acute) letter strangely
> ..
> 
> I read that I must specified :
> 
> global_settings {
>  charset utf8
> }

The "charset" keyword is for use with text strings only.  It is not for any 
path or filenames.  All path or filenames should be in ASCII format.

     Thorsten Froehlich, POV-Team


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Accents in a string for 'uv_mapping'
Date: 20 Jul 2005 02:32:39
Message: <42ddf007$1@news.povray.org>
Nicolas Alvarez wrote:
> #debug doesn't work with accents either.


That is the correct behavior.  Output streams only support ASCII characters. 
  Unsupported characters are replaced by whitespace characters.

	Thorsten Froehlich, POV-Team


Post a reply to this message

From: Lionel
Subject: Re: Accents in a string for 'uv_mapping'
Date: 20 Jul 2005 05:35:00
Message: <web.42de19b051f18563a6130c470@news.povray.org>
Thanks for this precision...

I had stopped searching for a long time... ;o)

Sincerly

Lionel

Thorsten Froehlich <tho### [at] trfde> wrote:
> Nicolas Alvarez wrote:
> > #debug doesn't work with accents either.

>
> That is the correct behavior.  Output streams only support ASCII characters.
>   Unsupported characters are replaced by whitespace characters.
>
>  Thorsten Froehlich, POV-Team


Post a reply to this message

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