sK1 Project :: OpenSource Solutions for Prepress
View Thread
 Print Thread
Translate to HPGL dies with 'Slim' missing
andycowley
#1 Print Post
Posted on 04-02-2011 18:32
Member

Posts: 4
Joined: 04.02.11

Platform: 2.6.34.7-61.fc13.x86_64
Software: Inkscape 0.47 r22583 (Jan 20 2010)
I can't get Uniconvertor to give me a version number.

I have tried to convert from SVG, PS and AI file to HPGL both with Uniconvertor and Inkscape.

Uniconvertor gives
uniconvertor 0-12-270deg-scale.svg test02.plt
/usr/lib64/python2.6/site-packages/uniconvertor/app/utils/locale_utils.py:9: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
from popen2 import popen2
I can't find font 'MyriadPro-BoldCond'. I'll use Slim instead
I can't find font Slim. I'll use Slim instead
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 980, in Load
xml_reader.parse(input_source)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 311, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 338, in startElement
getattr(self, method)(attrs)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 890, in begin_text
self.try_add_style(key,value)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 422, in try_add_style
self.style.font = GetFont(str(val))
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 425, in GetFont
return GetFont(config.preferences.fallback_font)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 426, in GetFont
raise ValueError, 'Cannot find font %s.' % fontname
ValueError: Cannot find font Slim.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/uniconvertor/__init__.py", line 82, in uniconv
doc = load.load_drawing(input_file)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/io/load.py", line 364, in load_drawing
return load_drawing_from_file(file, filename)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/io/load.py", line 337, in load_drawing_from_file
doc = loader.Load()
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 980, in Load
xml_reader.parse(input_source)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 311, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 338, in startElement
getattr(self, method)(attrs)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 890, in begin_text
self.try_add_style(key,value)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 422, in try_add_style
self.style.font = GetFont(str(val))
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 425, in GetFont
return GetFont(config.preferences.fallback_font)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 426, in GetFont
raise ValueError, 'Cannot find font %s.' % fontname
ValueError: Cannot find font Slim.


Inkscape gives the same.

SVG attached :-
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 14.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 43363) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="141.73px" height="141.73px" viewBox="0 0 141.73 141.73" enable-background="new 0 0 141.73 141.73" xml:space="preserve">
<g>
<line fill="none" stroke="#000000" stroke-width="3" x1="70.527" y1="18.278" x2="70.527" y2="130.778"/>
<line fill="none" stroke="#000000" stroke-width="3" x1="49.001" y1="22.56" x2="92.053" y2="126.496"/>
<line fill="none" stroke="#000000" stroke-width="3" x1="92.054" y1="22.56" x2="49" y2="126.496"/>
<line fill="none" stroke="#000000" stroke-width="3" x1="110.302" y1="34.914" x2="30.753" y2="114.463"/>
<line fill="none" stroke="#000000" stroke-width="3" x1="30.753" y1="34.753" x2="110.302" y2="114.303"/>
<line fill="none" stroke="#000000" stroke-width="3" x1="18.559" y1="53.163" x2="122.495" y2="96.215"/>

<line fill="none" stroke="#000000" stroke-width="3" x1="122.495" y1="53.163" x2="18.559" y2="96.215"/>
<line fill="none" stroke="#000000" stroke-width="3" x1="14.278" y1="74.689" x2="126.776" y2="74.689"/>
<ellipse fill="#FFFFFF" stroke="#FFFFFF" cx="70.527" cy="74.528" rx="44.655" ry="45.176"/>
<rect x="45.121" y="109.122" fill="#FFFFFF" stroke="#FFFFFF" width="50.536" height="30"/>
<text transform="matrix(1 0 0 1 8.0278 103.0488)" font-family="'MyriadPro-BoldCond'" font-size="12">1</text>
<text transform="matrix(1 0 0 1 2.0854 78.2285)" font-family="'MyriadPro-BoldCond'" font-size="12">2</text>
<text transform="matrix(1 0 0 1 20.1211 125.3359)" font-family="'MyriadPro-BoldCond'" font-size="12">0</text>

<text transform="matrix(1 0 0 1 6.9912 53.7637)" font-family="'MyriadPro-BoldCond'" font-size="12">3</text>
<text transform="matrix(1 0 0 1 20.1211 32.1577)" font-family="'MyriadPro-BoldCond'" font-size="12">4</text>
<text transform="matrix(1 0 0 1 41.728 16.7856)" font-family="'MyriadPro-BoldCond'" font-size="12">5</text>
<text transform="matrix(1 0 0 1 67.0854 11.4429)" font-family="'MyriadPro-BoldCond'" font-size="12">6</text>
<text transform="matrix(1 0 0 1 93.3359 15.5503)" font-family="'MyriadPro-BoldCond'" font-size="12">7</text>
<text transform="matrix(1 0 0 1 115.4785 31.7627)" font-family="'MyriadPro-BoldCond'" font-size="12">8</text>

<text transform="matrix(1 0 0 1 127.4424 53.0503)" font-family="'MyriadPro-BoldCond'" font-size="12">9</text>
<text transform="matrix(0.89 0 0 1 131.7705 78.0508)" font-family="'MyriadPro-BoldCond'" font-size="12">10</text>

<text transform="matrix(0.89 0 0 1 128.2695 103.3584)" font-family="'MyriadPro-BoldCond'" font-size="12" letter-spacing="-1.124">11</text>

<text transform="matrix(0.89 0 0 1 114.7207 125.4648)" font-family="'MyriadPro-BoldCond'" font-size="12" letter-spacing="-1.124">12</text>
<circle fill="none" stroke="#000000" cx="70.527" cy="74.528" r="7.166"/>
</g>
</svg>
 
andycowley
#2 Print Post
Posted on 04-02-2011 19:12
Member

Posts: 4
Joined: 04.02.11

I tried changing the font in Inkscape.now I get from uniconvertor


uniconvertor t02.svg t03.plt
/usr/lib64/python2.6/site-packages/uniconvertor/app/utils/locale_utils.py:9: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
from popen2 import popen2
I can't find font Bitstream Vera Sans. I'll use Slim instead
I can't find font Slim. I'll use Slim instead
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 980, in Load
xml_reader.parse(input_source)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 311, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 338, in startElement
getattr(self, method)(attrs)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 905, in begin_text
self.parse_style(style)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 384, in parse_style
self.try_add_style(key, val)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 422, in try_add_style
self.style.font = GetFont(str(val))
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 425, in GetFont
return GetFont(config.preferences.fallback_font)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 426, in GetFont
raise ValueError, 'Cannot find font %s.' % fontname
ValueError: Cannot find font Slim.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib64/python2.6/site-packages/uniconvertor/__init__.py", line 82, in uniconv
doc = load.load_drawing(input_file)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/io/load.py", line 364, in load_drawing
return load_drawing_from_file(file, filename)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/io/load.py", line 337, in load_drawing_from_file
doc = loader.Load()
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 980, in Load
xml_reader.parse(input_source)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 109, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 216, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib64/python2.6/site-packages/_xmlplus/sax/expatreader.py", line 311, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 338, in startElement
getattr(self, method)(attrs)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 905, in begin_text
self.parse_style(style)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 384, in parse_style
self.try_add_style(key, val)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/plugins/Filters/svgloader.py", line 422, in try_add_style
self.style.font = GetFont(str(val))
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 425, in GetFont
return GetFont(config.preferences.fallback_font)
File "/usr/lib64/python2.6/site-packages/uniconvertor/app/Graphics/font.py", line 426, in GetFont
raise ValueError, 'Cannot find font %s.' % fontname
ValueError: Cannot find font Slim.
 
igor
#3 Print Post
Posted on 05-02-2011 15:40
User Avatar

Super Administrator

Posts: 220
Joined: 09.02.09

To close the thread:

As we have discussed with Andy this issue has been fixed in UniConvertor 1.1.5
Regards,

Igor Novikov
sK1 Project
 
Jump to Forum: