broken jsmath image fonts with Sage 4.3

4 views
Skip to first unread message

ma...@mendelu.cz

unread,
Dec 27, 2009, 5:06:32 PM12/27/09
to sage-devel
Dear Sage devel

jsmath image fonts seem to be broken for Sage 4.3 (jsmath-image-
fonts-1.4.p2). Any idea what hapened?

Robert Marik

ma...@mendelu.cz

unread,
Dec 27, 2009, 7:01:33 PM12/27/09
to sage-devel

O.K. I found the source problem. There is bad path. The install script
has the following lines

if [ ! -d "$SAGE_ROOT/local/lib/python2.6/site-packages/sagenb" ];
then
# user is using an old version of sage before the new notebook.
install_dir="$SAGE_ROOT/local/notebook/javascript/jsmath"
else
if [ ! -d "$SAGE_ROOT/local/lib/python2.6/site-packages/sagenb/
data/jsmath" ]; then
# pre-#7196 new notebook
install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb/data/javascript/jsmath"
else
install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb/data/jsmath"
fi
fi

but the path for sage notebook changed from
/local/lib/python2.6/site-packages/sagenb/
to
/local/lib/python2.6/site-packages/sagenb-0.4.8-py2.6.egg/sagenb/

So perhaps the lines should look like

CASE 1:

if [ ! -d "$SAGE_ROOT/local/lib/python2.6/site-packages/sagenb-0.4.8-
py2.6.egg/sagenb" ]; then
# user is using an old version of sage before the new notebook.
install_dir="$SAGE_ROOT/local/notebook/javascript/jsmath"
else
if [ ! -d "$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb-0.4.8-py2.6.egg/sagenb/data/jsmath" ]; then
# pre-#7196 new notebook
install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb-0.4.8-py2.6.egg/sagenb/data/javascript/jsmath"
else
install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb-0.4.8-py2.6.egg/sagenb/data/jsmath"
fi
fi

or simply (if we prefer the latest version)

CASE 2:

install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
sagenb-0.4.8-py2.6.egg/sagenb/data/jsmath/"

Are there any suggestions from developers? Which case should be used
in new spkg? Case 1 or case 2?

Thanks
Robert

Pat LeSmithe

unread,
Dec 28, 2009, 1:13:04 AM12/28/09
to sage-...@googlegroups.com
On 12/27/2009 04:01 PM, ma...@mendelu.cz wrote:
> On 27 pro, 23:06, "ma...@mendelu.cz" <ma...@mendelu.cz> wrote:
> CASE 1:

> or simply (if we prefer the latest version)
> CASE 2:
> install_dir="$SAGE_ROOT/local/lib/python2.6/site-packages/
> sagenb-0.4.8-py2.6.egg/sagenb/data/jsmath/"
>
> Are there any suggestions from developers? Which case should be used
> in new spkg? Case 1 or case 2?

Do we allow Python (sub-)scripts in spkg-install? There's a trial spkg at

http://trac.sagemath.org/sage_trac/ticket/7778

Reply all
Reply to author
Forward
0 new messages