[sage-support] Re: jsMath issue and solution with error code -7

2008-12-02 Thread Pierre

Here's a solution to my problem -- I'm pretty sure it could be useful
to other people. Trying to follow the instructions above, I
misinterpreted "unzip the .zip here" (i *always* get these things
wrong).

the way i understood it, i ended up with files like /home/
foobar/.fonts/cmr10.ttf. However, one must keep the folder that's
created when you unzip the archive ! so you really need files such as

/home/foobar/.fonts/Tex-fonts-15/cmr10.ttf

Now it works...


On Dec 2, 4:33 pm, mabshoff <[EMAIL PROTECTED]
dortmund.de> wrote:
> On Dec 2, 6:55 am, dpvc <[EMAIL PROTECTED]> wrote:
>
> 
>
> Hi Davide,
>
> > > I'm pretty sure we don't use the easy/load.js (and I'm not sure why).
>
> > Probably because it didn't exist when jsMath support was added to
> > sage.  The easy/load.js file was a relatively late addition to jsMath,
> > but certainly makes things easier for people.  You might consider
> > whether you want to use that instead.
>
> For the record: I have made this #4674.
>
> > > For references on the optional spkg, see the discussion from
>
> > >http://groups.google.com/group/sage-support/browse_thread/thread/e186...
>
> > Thanks, I was part of that discussion.  :-)
>
> > Davide
>
> Cheers,
>
> Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: jsMath issue and solution with error code -7

2008-12-02 Thread mabshoff



On Dec 2, 6:55 am, dpvc <[EMAIL PROTECTED]> wrote:



Hi Davide,

> > I'm pretty sure we don't use the easy/load.js (and I'm not sure why).
>
> Probably because it didn't exist when jsMath support was added to
> sage.  The easy/load.js file was a relatively late addition to jsMath,
> but certainly makes things easier for people.  You might consider
> whether you want to use that instead.

For the record: I have made this #4674.

> > For references on the optional spkg, see the discussion from
>
> >http://groups.google.com/group/sage-support/browse_thread/thread/e186...
>
> Thanks, I was part of that discussion.  :-)
>
> Davide

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: jsMath issue and solution with error code -7

2008-12-02 Thread dpvc

> We have an optional sage package for the
> image fonts that is easy to install.  You're right, we decided to not
> make it standard because of the size.

OK, sounds good.

> Currently, if the jsmath image fonts are not installed, we add the
> following code to the header of the page:
>
>  src="/javascript/jsmath/plugins/noImageFonts.js">
>
> and then later, we have:
>
> 

[sage-support] Re: jsMath issue and solution with error code -7

2008-12-02 Thread Pierre

are you able to select "native tex fonts" in the jsmaths preferences ?
i can only use "unicode fonts", they look okay but they're not the
usual Tex fonts, that's for sure.

On Dec 1, 5:17 pm, Jason Grout <[EMAIL PROTECTED]> wrote:
> dpvc wrote:
> > The real problem is not the missing fonts, but the fact that sage
> > doesn't include the jsMath image fonts that are supposed to be used
> > when the jsMath TeX fonts aren't available.  I'm sure this was not
> > included because it was considered to be too large a component, but it
> > really should be, as it would have avoided this problem that so many
> > of you are having.  On the other hand, if you choose not to install
> > the image fonts, there is a noImageFonts plugin that should be used so
> > that jsMath knows about the fact that you don't have the image fonts,
> > and will not try to use them when they aren't there (which is what is
> > causing the warning message).  If sage uses the jsMath/easy/load.js
> > file (and I don't whether it does or not), then there is a
> > "noImageFonts" setting that should be changed to 1 if you don't have
> > the image fonts.  That will cause the noImageFonts plugin to be loaded
> > at the proper time.  The best solution is to install the image fonts
> > available from
>
> >http://sourceforge.net/project/showfiles.php?group_id=172663
>
> > but if you don't want to do that, then using the noImageFonts plugin
> > is the next best thing.
>
> > Davide
>
> Thanks for your reply, Davide.  We have an optional sage package for the
> image fonts that is easy to install.  You're right, we decided to not
> make it standard because of the size.
>
> Currently, if the jsmath image fonts are not installed, we add the
> following code to the header of the page:
>
>  src="/javascript/jsmath/plugins/noImageFonts.js">
>
> and then later, we have:
>
> 

[sage-support] Re: jsMath issue and solution with error code -7

2008-12-01 Thread Jason Grout

dpvc wrote:
> The real problem is not the missing fonts, but the fact that sage
> doesn't include the jsMath image fonts that are supposed to be used
> when the jsMath TeX fonts aren't available.  I'm sure this was not
> included because it was considered to be too large a component, but it
> really should be, as it would have avoided this problem that so many
> of you are having.  On the other hand, if you choose not to install
> the image fonts, there is a noImageFonts plugin that should be used so
> that jsMath knows about the fact that you don't have the image fonts,
> and will not try to use them when they aren't there (which is what is
> causing the warning message).  If sage uses the jsMath/easy/load.js
> file (and I don't whether it does or not), then there is a
> "noImageFonts" setting that should be changed to 1 if you don't have
> the image fonts.  That will cause the noImageFonts plugin to be loaded
> at the proper time.  The best solution is to install the image fonts
> available from
> 
> http://sourceforge.net/project/showfiles.php?group_id=172663
> 
> but if you don't want to do that, then using the noImageFonts plugin
> is the next best thing.
> 
> Davide


Thanks for your reply, Davide.  We have an optional sage package for the 
image fonts that is easy to install.  You're right, we decided to not 
make it standard because of the size.


Currently, if the jsmath image fonts are not installed, we add the 
following code to the header of the page:




and then later, we have:


[sage-support] Re: jsMath issue and solution with error code -7

2008-12-01 Thread dpvc

The real problem is not the missing fonts, but the fact that sage
doesn't include the jsMath image fonts that are supposed to be used
when the jsMath TeX fonts aren't available.  I'm sure this was not
included because it was considered to be too large a component, but it
really should be, as it would have avoided this problem that so many
of you are having.  On the other hand, if you choose not to install
the image fonts, there is a noImageFonts plugin that should be used so
that jsMath knows about the fact that you don't have the image fonts,
and will not try to use them when they aren't there (which is what is
causing the warning message).  If sage uses the jsMath/easy/load.js
file (and I don't whether it does or not), then there is a
"noImageFonts" setting that should be changed to 1 if you don't have
the image fonts.  That will cause the noImageFonts plugin to be loaded
at the proper time.  The best solution is to install the image fonts
available from

http://sourceforge.net/project/showfiles.php?group_id=172663

but if you don't want to do that, then using the noImageFonts plugin
is the next best thing.

Davide
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: jsMath issue and solution with error code -7

2008-10-10 Thread mabshoff



On Oct 10, 1:55 pm, Jason Grout <[EMAIL PROTECTED]> wrote:



> We really ought to include these fonts with Sage and have the error
> message say: "Here are some fonts.  Install them.  If you want darker or
> lighter variations, go here (link to the website)"

#1608 :)

> Jason

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: jsMath issue and solution with error code -7

2008-10-10 Thread Jason Grout

Doug Bradshaw wrote:
> Thanks!
> 
> On Aug 24, 8:46 am, "Philippe Saade" <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> i post this here for future newbies who might encounter the same problem...
>>
>> ** on Linux/Ubuntu 8.04, under Firefox 2 or 3, with all TexFonts
>> installed, i kept having this error message :
>>
>> It looks like jsMath failed to set up properly (error code -7)
>>
>> for a single
>> sage : show(x^2)
>>
>> command.
>>
>> My solution was to :
>>
>> * mkdir -p /home/foobar/.fonts   (for user foobar)
>> * download on of the zip file here 
>> :http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html
>> (the TeX-fonts-15.zip looks not too dark.)
>> * unzip the .zip
>> * restart firefox
>> * (adjust scale size in the options of jsMaths control panel to suit my 
>> taste)
>>


We really ought to include these fonts with Sage and have the error 
message say: "Here are some fonts.  Install them.  If you want darker or 
lighter variations, go here (link to the website)"

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: jsMath issue and solution with error code -7

2008-10-10 Thread Doug Bradshaw

Thanks!

On Aug 24, 8:46 am, "Philippe Saade" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> i post this here for future newbies who might encounter the same problem...
>
> ** on Linux/Ubuntu 8.04, under Firefox 2 or 3, with all TexFonts
> installed, i kept having this error message :
>
> It looks like jsMath failed to set up properly (error code -7)
>
> for a single
> sage : show(x^2)
>
> command.
>
> My solution was to :
>
> * mkdir -p /home/foobar/.fonts   (for user foobar)
> * download on of the zip file here 
> :http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html
> (the TeX-fonts-15.zip looks not too dark.)
> * unzip the .zip
> * restart firefox
> * (adjust scale size in the options of jsMaths control panel to suit my taste)
>
> Philippe

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: jsMath issue and solution with error code -7

2008-09-02 Thread mitch_feaster

Thanks a lot!  Worked perfectly for me.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: jsMath issue and solution with error code -7

2008-08-24 Thread Timothy Clemans

I've been seeing this with the last few releases.

On Sun, Aug 24, 2008 at 10:46 AM, Philippe Saade <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> i post this here for future newbies who might encounter the same problem...
>
> ** on Linux/Ubuntu 8.04, under Firefox 2 or 3, with all TexFonts
> installed, i kept having this error message :
>
> It looks like jsMath failed to set up properly (error code -7)
>
> for a single
> sage : show(x^2)
>
> command.
>
> My solution was to :
>
> * mkdir -p /home/foobar/.fonts   (for user foobar)
> * download on of the zip file here :
> http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html
> (the TeX-fonts-15.zip looks not too dark.)
> * unzip the .zip
> * restart firefox
> * (adjust scale size in the options of jsMaths control panel to suit my taste)
>
> Philippe
>
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---