POV-Ray : Newsgroups : povray.general : ATTN Gilles Tran: your Library includes crash POV Server Time
18 Nov 2024 07:17:27 EST (-0500)
  ATTN Gilles Tran: your Library includes crash POV (Message 1 to 10 of 26)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Timothy R  Cook
Subject: ATTN Gilles Tran: your Library includes crash POV
Date: 21 Sep 2002 16:57:16
Message: <3d8cdd2c@news.povray.org>
following causes a parse error: illegal escape sequence in string
with the default "fonts.txt" file...

// =========================================
// Initialises the font list
// -----------------------------------------
#declare nFonts=0;
#fopen fFonts "fonts.txt" read
#while (defined(fFonts))
         #read(fFonts,dummy)      // <-- this line while parsing gives
                      // #read(tFonts,dummy"C:\windows\fonts\times.ttf"
                      // parse error: illegal escape sequence in string
         #declare nFonts=nFonts+1;
#end
#fclose fFonts
#declare bookFonts=array[nFonts]
#declare i=0;
#fopen fFonts "fonts.txt" read
#while (defined(fFonts))
         #read(fFonts,dummy)
         #declare bookFonts[i]=dummy
         #declare i=i+1;
#end
#fclose fFonts

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Christoph Hormann
Subject: Re: ATTN Gilles Tran: your Library includes crash POV
Date: 21 Sep 2002 17:09:33
Message: <3D8CE00D.EC83202A@gmx.de>
"Timothy R. Cook" wrote:
> 
> following causes a parse error: illegal escape sequence in string
> with the default "fonts.txt" file...
> 

That include file probably neither designed nor updated for POV-Ray 3.5 so
you should expect to have to apply certain changes like to all other
script files made for earlier versions of POV-Ray.  

In this case it's probably sufficient to change the backslashes in
fonts.txt into double backslashes or forward shashes (or even better: not
to use explicit path names at all).

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Timothy R  Cook
Subject: Re: ATTN Gilles Tran: your Library includes crash POV
Date: 21 Sep 2002 17:38:17
Message: <3d8ce6c9$1@news.povray.org>
Christoph Hormann wrote:
> In this case it's probably sufficient to change the backslashes in
> fonts.txt into double backslashes or forward shashes (or even better: not
> to use explicit path names at all).

Woohoo, that worked (and I fixed the other minor errors POV was
complaining about ALL BY MYSELF.  ain't I cool)

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Timothy R  Cook
Subject: Re: ATTN Gilles Tran: your Library includes crash POV
Date: 21 Sep 2002 18:05:38
Message: <3d8ced32@news.povray.org>
I now have the following problem:

how do I move the output of the macro around? O.o

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: ATTN Gilles Tran: your Library includes crash POV
Date: 21 Sep 2002 19:57:04
Message: <3d8d0750$1@news.povray.org>
In article <3d8cdd2c@news.povray.org> , "Timothy R. Cook" 
<tim### [at] scifi-fantasycom> wrote:

> following causes a parse error: illegal escape sequence in string
> with the default "fonts.txt" file...

Please note:  An error reported by POV-Ray is *not* a crash!!!

It is extremely important to use the correct terminology in this case as
using the wrong terminology will cause confusion sooner or later!

    Thorsten


Post a reply to this message

From: Gilles Tran
Subject: Re: ATTN Gilles Tran: your Library includes crash POV
Date: 21 Sep 2002 20:34:40
Message: <3d8d1020@news.povray.org>

news: 3d8cdd2c@news.povray.org...
> following causes a parse error: illegal escape sequence in string
> with the default "fonts.txt" file...

Well, sorry about that. As Christoph said some of the POV-Ray 3.1 code has
some (minor) problems with 3.5. I did update all the Megapov objects, scenes
and macros to 3.5 but I somehow didn't think that 3.1 scenes would have
problems too. I'll look into that and correct it. The fact is that the
MakeLibrary suite would benefit a lot from 3.5 features so that I wanted to
improve it a little instead of just fixing it.

>I now have the following problem:
>how do I move the output of the macro around?

object{ TheMacro(blah,blah,blah,blah) translate blah blah blah}

(see the library_new.pov and library_old.pov if you missed them)

G.
--
**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Timothy R  Cook
Subject: Re: ATTN Gilles Tran: your Library includes crash POV
Date: 21 Sep 2002 20:41:58
Message: <3d8d11d6$1@news.povray.org>
Thorsten Froehlich wrote:
> Please note:  An error reported by POV-Ray is *not* a crash!!!
> It is extremely important to use the correct terminology in this case as
> using the wrong terminology will cause confusion sooner or later!

Gomen!  You're right, it wasn't a crash... ^_^;

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Timothy R  Cook
Subject: Re: ATTN Gilles Tran: your Library includes crash POV
Date: 21 Sep 2002 20:48:02
Message: <3d8d1342@news.povray.org>
Gilles Tran wrote:
> object{ TheMacro(blah,blah,blah,blah) translate blah blah blah}
> (see the library_new.pov and library_old.pov if you missed them)

Ooh, thankee!

By the way, some of the book patterns aren't exactly what I'd call
compatible with text on the spine...and the book generator only puts
one title per book type??(??) so you get a lot of duplicate books
with the same pattern and title instead of same pattern, different
title...might be something I overlooked, but there it is.

Plus I don't think POV likes unicode-format text files O.o
*sigh* Unicode is such a cool idea!  Why doesn't more software support
it?!

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Christopher James Huff
Subject: Re: ATTN Gilles Tran: your Library includes crash POV
Date: 21 Sep 2002 22:28:44
Message: <chrishuff-0CB658.22264421092002@netplex.aussie.org>
In article <3d8d1342@news.povray.org>,
 "Timothy R. Cook" <tim### [at] scifi-fantasycom> wrote:

> Plus I don't think POV likes unicode-format text files O.o
> *sigh* Unicode is such a cool idea!  Why doesn't more software support
> it?!

Did you bother to check the documentation?

http://www.povray.org/documentation/view/365/
"Any ASCII or Unicode character, depending on the charset setting in 
global_settings."


http://www.povray.org/documentation/view/219/
"The option utf8 is a special Unicode text encoding and it allows you to 
specify characters of nearly all languages in use today."

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Timothy R  Cook
Subject: Re: ATTN Gilles Tran: your Library includes crash POV
Date: 21 Sep 2002 23:18:29
Message: <3d8d3685@news.povray.org>
Christopher James Huff wrote:
> Did you bother to check the documentation?
> http://www.povray.org/documentation/view/365/
> "Any ASCII or Unicode character, depending on the charset setting in 
> global_settings."

File: MakeBook.inc  Line: 33
#while (defined(fTitles)) // read once to get the number of titles



Parse Error: Illegal character in input file, value is ef.

Returned from renderer with error status

The input file in question is as follows (the file is encoded with utf8:
"\u3061\u3087\u3073\u3064\u30C4",
"\u30D5\u30EB\u30E0\u30FC\u30F3\u6E80\U6708\u3092\u2055\u304C\u3057\u3066"
EOF

But wait, it gets even better!  When I save the file with ansi encoding,
it does, in fact, render...

...but...

the fonts I wish to use are "C:\\windows\\fonts\\msgothic.ttc" and
"C:\\windows\\fonts\\msmincho.ttc"

which should interpret the above listed utf8 codes as (in this order)

double quote, hiragana chi, hiragana small yo, hiragana bi, hirigana
tsu, katakana tsu, double quote, comma, katakana fu, katkana ru,
katakana mu, hiragana/katakana prolonged sond mark, katakana n, unified
CJK ideograph 'full', unified CJK ideograph 'moon', hiragana wo,
hiragana sa, hiragana ga, hiragana shi, hiragana te, double quote
EOF

guess what it doesn't do.  try it yourself.  then tell me again how
POV supports unicode.

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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