POV-Ray : Newsgroups : povray.advanced-users : Non ascii characters Server Time
31 Oct 2024 14:12:15 EDT (-0400)
  Non ascii characters (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: benahpets
Subject: Non ascii characters
Date: 14 Sep 2005 08:35:01
Message: <web.432818c5c895b29ca14d5b880@news.povray.org>


with a space character):

example:

without the utf8 option i've the following errors:

File: etat.txt  Line: 4
Possible Parse Error: Non-ASCII character has been replaced by space
character.
File: etat.txt  Line: 4
Possible Parse Error: Non-ASCII character has been replaced by space
character.

with the option, the precedent errors disappear, but i've got new ones:

File: titreSimulation.pov  Line: 7
Parse Warning: Character 105 (0x8C69) not found in ariblk.ttf
File: titreSimulation.pov  Line: 7
Parse Warning: Character 47 (0x8B2F) not found in ariblk.ttf
File: titreSimulation.pov  Line: 7
Parse Warning: Character 47 (0x8B2F) not found in ariblk.ttf

Thanks for your help

Regards,

ben


Post a reply to this message

From: Florian Brucker
Subject: Re: Non ascii characters
Date: 14 Sep 2005 11:32:58
Message: <432842aa$1@news.povray.org>
> with the option, the precedent errors disappear, but i've got new ones:
> 
> File: titreSimulation.pov  Line: 7
> Parse Warning: Character 105 (0x8C69) not found in ariblk.ttf

It seems that the font you are using does not include this letter. Each 
font does only provide graphics (they're called glyphs IIRC) for a 
limited subset of all letters. You'll have to choose a different font or 
letter to solve the problem...

To see which glyphs your font provides, use the font-viewer of your 
operating system.


HTH,
Florian


Post a reply to this message

From: Patrick Elliott
Subject: Re: Non ascii characters
Date: 14 Sep 2005 17:28:32
Message: <MPG.1d9242dafcfb98ec989df2@news.povray.org>
In article <432842aa$1@news.povray.org>, tor### [at] torfboldcom says...
> > with the option, the precedent errors disappear, but i've got new ones:
> > 
> > File: titreSimulation.pov  Line: 7
> > Parse Warning: Character 105 (0x8C69) not found in ariblk.ttf
> 
> It seems that the font you are using does not include this letter. Each 
> font does only provide graphics (they're called glyphs IIRC) for a 
> limited subset of all letters. You'll have to choose a different font or 
> letter to solve the problem...
> 
> To see which glyphs your font provides, use the font-viewer of your 
> operating system.
> 
> 
> HTH,
> Florian
> 
Was going to suggest checking with UnicodeView http://www.lischke-
online.de/FontViewer.php then realized that since UTF8 is supported, but 
Unicode isn't (I think), it probably doesn't do any good at all. :( 
Still, useful gadget to have around.

-- 
void main () {

    call functional_code()
  else
    call crash_windows();
}


Post a reply to this message

From: tom
Subject: Re: Non ascii characters
Date: 15 Sep 2005 00:00:00
Message: <web.4328f0c359bee683b0677c700@news.povray.org>
"benahpets" <ben### [at] hotmailcom> wrote:


> with a space character):
>
> example:
>
> without the utf8 option i've the following errors:
>
> File: etat.txt  Line: 4
> Possible Parse Error: Non-ASCII character has been replaced by space
> character.
> File: etat.txt  Line: 4
> Possible Parse Error: Non-ASCII character has been replaced by space
> character.
>
> with the option, the precedent errors disappear, but i've got new ones:
>
> File: titreSimulation.pov  Line: 7
> Parse Warning: Character 105 (0x8C69) not found in ariblk.ttf
> File: titreSimulation.pov  Line: 7
> Parse Warning: Character 47 (0x8B2F) not found in ariblk.ttf
> File: titreSimulation.pov  Line: 7
> Parse Warning: Character 47 (0x8B2F) not found in ariblk.ttf
>
> Thanks for your help
>
> Regards,
>
> ben


That's odd. I vaguely remember using non-standard characters before using
[alt + ####]. Alt-130 shows the character in the text editor, but it
doesn't render. Try just putting a ' over an e.


Post a reply to this message

From: benahpets
Subject: Re: Non ascii characters
Date: 15 Sep 2005 04:45:00
Message: <web.432933be59bee683a14d5b880@news.povray.org>


global_settings{

}

#declare title = "Su00e9rie";


And as suggested by Florian, i've changed my font to Arial.ttf then it
works...

Thanks for your help


Post a reply to this message

From: Frango com Nata
Subject: Re: Non ascii characters
Date: 26 Nov 2005 13:00:00
Message: <web.4388a0eb59bee683c181fd400@news.povray.org>
I've always been able to create text objects including letters with marks
like accents, tildes, diaeresis, etc., just denoting them with their

"charset" sentence in "global_settings"...
Moreover, I've written an include file declaring string variables, each one
containing a single Unicode character.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Non ascii characters
Date: 26 Nov 2005 13:20:51
Message: <4388a783$1@news.povray.org>
Patrick Elliott wrote:
> Was going to suggest checking with UnicodeView http://www.lischke-
> online.de/FontViewer.php then realized that since UTF8 is supported, but 
> Unicode isn't (I think), it probably doesn't do any good at all. :( 

FYI, UFT8 *is* an Unicode encoding.

	Thorsten


Post a reply to this message

From: Patrick Elliott
Subject: Re: Non ascii characters
Date: 26 Nov 2005 16:02:55
Message: <MPG.1df27b12119b6afd989e80@news.povray.org>
In article <4388a783$1@news.povray.org>, tho### [at] trfde says...
> Patrick Elliott wrote:
> > Was going to suggest checking with UnicodeView http://www.lischke-
> > online.de/FontViewer.php then realized that since UTF8 is supported, but 
> > Unicode isn't (I think), it probably doesn't do any good at all. :( 
> 
> FYI, UFT8 *is* an Unicode encoding.
> 
> 	Thorsten

How can it be, given that it doesn't allow access to all unicode 
characters? It by definition can't, since true unicode requires a 
'section' code, followed by a 'character' code, of *always* two bytes. 
UTF8 treats only specific characters as a 'section' code, so part of the 
unicode set if unavailable. Unless I am completely missing something... 
But I have seen people complain before about how they can't use some 
character with POV-Ray and the reason always given is that UTF8 doesn't 
support them. If I am wrong, then why does this problem crop up all the 
time?

-- 
void main () {

    call functional_code()
  else
    call crash_windows();
}


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Non ascii characters
Date: 26 Nov 2005 16:31:24
Message: <4388d42c$1@news.povray.org>
Patrick Elliott wrote:
  > How can it be, given that it doesn't allow access to all unicode
> characters? It by definition can't, since true unicode requires a 
> 'section' code, followed by a 'character' code, of *always* two bytes. 
> UTF8 treats only specific characters as a 'section' code, so part of the 
> unicode set if unavailable. Unless I am completely missing something... 

There is no such thing as a "section code" in Unicode. Unicode defines one 
continuous set of character codes. UTF8 is an encoding of Unicode, providing 
access to all Unicode character codes. You definition is clearly wrong; I 
suspect you are confusing Unicode with "code pages" from long forgotten DOS 
and early Windos times.

> But I have seen people complain before about how they can't use some 
> character with POV-Ray and the reason always given is that UTF8 doesn't 
> support them. If I am wrong, then why does this problem crop up all the 
> time?

Because* people do not realise that most editors, including those included 
with POV-Ray for Windows and POV-Ray for Macintosh do *not* save text files 
in UTF8 but ISO-8859-1 and MacRoman respectively.  As such, entering any 
character outside the ASCII range and setting "charset" to "utf8" causes 
POV-Ray to try to interpret those an UTF8 sequences, which they are not. 
This of course yields all kinds of strange errors, with POV-Ray rejecting 
characters many times, or replacing them with blanks after issuing a warning 
(it depends).

	Thorsten


* This applies to POV-Ray 3.5 and later only.


Post a reply to this message

From: Patrick Elliott
Subject: Re: Non ascii characters
Date: 27 Nov 2005 15:48:22
Message: <MPG.1df3c8fc63d04152989e81@news.povray.org>
In article <4388d42c$1@news.povray.org>, tho### [at] trfde says...
> Patrick Elliott wrote:
>   > How can it be, given that it doesn't allow access to all unicode
> > characters? It by definition can't, since true unicode requires a 
> > 'section' code, followed by a 'character' code, of *always* two bytes. 
> > UTF8 treats only specific characters as a 'section' code, so part of the 
> > unicode set if unavailable. Unless I am completely missing something... 
> 
> There is no such thing as a "section code" in Unicode. Unicode defines one 
> continuous set of character codes. UTF8 is an encoding of Unicode, providing 
> access to all Unicode character codes. You definition is clearly wrong; I 
> suspect you are confusing Unicode with "code pages" from long forgotten DOS 
> and early Windos times.
> 
No, I am not confusing them, I just don't know the right term, so guessed 
at one. But to be clear, what would this $2039 be in UTF8? Would it be a 
space and a 0, or the 0/00 symbol? If the later, then Ok, sorry for the 
confusion. If that is the case, then we need to fix the editor so it 
correctly supports the characters.

> > But I have seen people complain before about how they can't use some 
> > character with POV-Ray and the reason always given is that UTF8 doesn't 
> > support them. If I am wrong, then why does this problem crop up all the 
> > time?
> 
> Because* people do not realise that most editors, including those included 
> with POV-Ray for Windows and POV-Ray for Macintosh do *not* save text files 
> in UTF8 but ISO-8859-1 and MacRoman respectively.  As such, entering any 
> character outside the ASCII range and setting "charset" to "utf8" causes 
> POV-Ray to try to interpret those an UTF8 sequences, which they are not. 
> This of course yields all kinds of strange errors, with POV-Ray rejecting 
> characters many times, or replacing them with blanks after issuing a warning 
> (it depends).
>
Sounds like there are serious bugs in the support.. Maybe a binary field 
type would be useful, like the html # numbers? It seems quite ridiculous 
to support it, but have that support be effectively broken.

-- 
void main () {

    call functional_code()
  else
    call crash_windows();
}


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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