LISTSERV mailing list manager LISTSERV 16.0

Help for SW-L Archives


SW-L Archives

SW-L Archives


SW-L@LISTSERV.VALENCIACOLLEGE.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

SW-L Home

SW-L Home

SW-L  September 2011

SW-L September 2011

Subject:

local swis2+svg image error

From:

Alan Post <[log in to unmask]>

Reply-To:

SignWriting List: Read and Write Sign Languages

Date:

Thu, 1 Sep 2011 15:18:20 -0600

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (96 lines)

Steve (and everyone!),

Last night I downloaded swis2.zip from[1]:

  http://www.signbank.org/swis2.zip

and installed it on my local apache server.  I then try to retrieve
an svg image:

  $ curl -o incorrect.svg http://localhost/swis2/glyphogram.php?style=svg&ksw=M23x20S187205xn21S20e00n8xn9S26a02n23xn16S15a36n14x8

The svg file I retrieve from this link is different from the one I
can retrieve from the swis2 server on SignPuddle.  Mine looks like
this:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="46" height="41">
<metadata>M23x20S187205xn21S20e00n8xn9S26a02n23xn16S15a36n14x8</metadata>
<g transform="translate(28,0)" ></g>
<g transform="translate(15,12)" ></g>
<g transform="translate(0,5)" ></g>
<g transform="translate(9,29)" ></g>
</svg>

Where if you inspect the same ksw code from SignPuddle:

  $ curl -o correct.svg http://signbank.org/signpuddle1.6/glyphogram.php?style=svg&ksw=M45x44S2ff00n18xn17S20500n6xn5S11a1119x5S20e006x20S26a02n21x17

It looks like this:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="66" height="61">
<metadata>M45x44S2ff00n18xn17S20500n6xn5S11a1119x5S20e006x20S26a02n21x17</metadata>
<g transform="translate(3,0)" ><g transform="scale(1.029 1)">
  <path id="path2835" d="M 17.5 0 C 7.8350169 4.7369516e-15 1.087327e-16 7.8350169 0 17.5 C 0 27.164983 7.8350169 35 17.5 35 C 27.164983 35 35 27.164983 35 17.5 C 35 7.8350169 27.164983 -3.443981e-15 17.5 0 z M 17.5 2 C 26.060414 2 33 8.9395864 33 17.5 C 33 26.060414 26.060414 33 17.5 33 C 8.9395864 33 2 26.060414 2 17.5 C 2 8.9395864 8.9395864 2 17.5 2 z " fill="#000000" />
</g></g>
<g transform="translate(15,12)" ><g>
  <path id="path2828" d="M 4 0 L 4 3.59375 L 1.8125 1.40625 L 0.40625 2.8125 L 3.09375 5.5 L 0.40625 8.1875 L 1.8125 9.59375 L 4 7.40625 L 4 11 L 6 11 L 6 7.40625 L 8.1875 9.59375 L 9.59375 8.1875 L 6.90625 5.5 L 9.59375 2.8125 L 8.1875 1.40625 L 6 3.59375 L 6 0 L 4 0 z " fill="#000000" />
</g></g>
<g transform="translate(40,22)" ><g transform="scale(0.951 0.964) translate(-4.667 6.667) rotate(315)">
  <rect id="base" x="0" y="15" width="15" height="15" fill="#000000" />
  <rect id="fill" x="2" y="17" width="6" height="11" fill="#ffffff" />
  <path id="index" d="M 3.4065,3.40625 L 15.00025,15 L 12.18775,15 L 1.969,4.8125 L 3.4065,3.40625 z" fill="#000000" />
  <rect id="middle" x="7" y="0" width="2" height="15" fill="#000000" />
</g></g>
<g transform="translate(27,37)" ><g>
  <path id="path3379" d="M 6 0 C 2.6862915 0 0 2.6862915 0 6 C 0 9.3137085 2.6862915 12 6 12 C 9.3137085 12 12 9.3137085 12 6 C 12 2.6862915 9.3137085 -1.7763568e-15 6 0 z M 6 2 C 8.209139 2 10 3.790861 10 6 C 10 8.209139 8.209139 10 6 10 C 3.790861 10 2 8.209139 2 6 C 2 3.790861 3.790861 2 6 2 z " fill="#000000" />
  <path id="path3384" d="M 6 2 C 3.790861 2 2 3.790861 2 6 C 2 8.209139 3.790861 10 6 10 C 8.209139 10 10 8.209139 10 6 C 10 3.790861 8.209139 2 6 2 z M 6 4 C 7.1045695 4 8 4.8954305 8 6 C 8 7.1045695 7.1045695 8 6 8 C 4.8954305 8 4 7.1045695 4 6 C 4 4.8954305 4.8954305 4 6 4 z " fill="#ffffff" />
  <path id="path3391" d="M 6 4 C 4.8954305 4 4 4.8954305 4 6 C 4 7.1045695 4.8954305 8 6 8 C 7.1045695 8 8 7.1045695 8 6 C 8 4.8954305 7.1045695 4 6 4 z " fill="#000000" />
</g></g>
<g transform="translate(0,34)" ><g transform="scale(0.0416666666667,0.0416666666667)">
<g transform="translate(0,648) scale(2.400000,-2.400000)">
  <path fill="#000000" d="M30 236 l-34 -36 32 -32 32 -32 -32 -33 -32 -33 37 -38 37 -37 0 33
c0 30 2 32 35 32 19 0 35 5 35 10 0 6 -16 10 -35 10 l-35 0 0 55 0 55 35 0
c19 0 35 5 35 10 0 6 -15 10 -34 10 -31 0 -35 3 -38 31 l-3 30 -35 -35z"/>
</g>
</g></g>
</svg>

Inspecting my error log, the swis2 request to my local installation
generates the following error messages:

[Thu Sep  1 06:23:12 2011] [error] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos</a>]: Offset not contained in string in /var/www/localhost/htdocs/swis2/image.php on line 112
[Thu Sep  1 06:23:12 2011] [error] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos</a>]: Offset not contained in string in /var/www/localhost/htdocs/swis2/image.php on line 112
[Thu Sep  1 06:23:12 2011] [error] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos</a>]: Offset not contained in string in /var/www/localhost/htdocs/swis2/image.php on line 112
[Thu Sep  1 06:23:12 2011] [error] PHP Warning:  strpos() [<a href='function.strpos'>function.strpos</a>]: Offset not contained in string in /var/www/localhost/htdocs/swis2/image.php on line 112

Will you help me get a local swis2 installation properly generating
svg glyphograms?

Here are my machine details:

OpenBSD 4.8:

$ httpd -v
Server version: Apache/1.3.29 (Unix)

$ php -v
PHP 5.2.13 with Suhosin-Patch 0.9.7 (cli) (built: Aug 10 2010 03:44:00) 
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH

$ convert -version
Version: ImageMagick 6.4.5 2010-08-09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC

-Alan

1: I think that path is correct, anyway
-- 
.i ma'a lo bradi cu penmi gi'e du

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010

ATOM RSS1 RSS2



LISTSERV.VALENCIACOLLEGE.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager