|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | 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
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | 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
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | 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
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | 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] hotmail com> 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
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | 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
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | 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
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | 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
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  | 
|  |  | 
|  |  | Thanks for this precision...
I had stopped searching for a long time... ;o)
Sincerly
Lionel
Thorsten Froehlich <tho### [at] trf de> 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
 |  | 
|  |  | 
|  |  | 
|  |  |  |  | 
|  |  |