To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.mlcadOpen lugnet.cad.mlcad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / MLCad / 2068
2067  |  2069
Subject: 
Re: Trouble creating building instructions using lpub and mpd file
Newsgroups: 
lugnet.cad, lugnet.cad.mlcad
Date: 
Fri, 8 Apr 2005 16:58:59 GMT
Viewed: 
1104 times
  
In lugnet.cad, Don Heyse wrote:
In lugnet.cad, Kevin L. Clague wrote:
I decided to take the pragmatic way
out, and adjust my parsing to support file names with blanks.

  I think that warnings will lead to just as many emails as the current
situation (not a lot, but still.... ;^).  The content will change to "MLCad
handles this.  Why not LPub?".  Rather than spout statements from the spec,
I'd rather the issue just go away.

  So you get blanks in file names!  Yay!

I think you made the right decision, but I have a question.  Do the
filenames with embedded spaces have quotes around them, or do they just
use up all the space to the end of the LDRAW type 1 command line?  The
reason I ask is because I seem to recall some programs treating extra
stuff after the end of the LDRAW commands as comments.  It's briefly
mentioned here.

  http://news.lugnet.com/cad/dev/?n=7696

FWIW Ldlite has allowed file names with embedded spaces for years
as long as they're "in quotes".  Unfortunately for me, the l3 parser
in ldglite only allows this on the command line, not inside the files.

Hi Don,

  Using MLCad as a benchmark, the name with blanks is *not* enclosed in quotes.
I use the remainder of the line, sans end of line as the file name.

Alas, my efforts are for naught.  L3P quietly ignores the lines that have names
with blanks in them, so I added a check to LPub to flag this as an error and
stop processing.

If the new L3P allows blanks in file names, I can easily remove the check.  It
is only in one place in the code.  Once removed, the rest of the code is ready
for blanks in file names.


Don

Kevin



Message has 1 Reply:
  Re: Trouble creating building instructions using lpub and mpd file
 
(...) I am currently going through the L3P code and I have now added support for filenames with spaces, both in linetype 1 and in "0 FILE xxx". It now uses the rest of the line as the filename. It also accepts filenames in double-quotes. /Lars (20 years ago, 10-Apr-05, to lugnet.cad, lugnet.cad.mlcad)

Message is in Reply To:
  Re: Trouble creating building instructions using lpub and mpd file
 
(...) I think you made the right decision, but I have a question. Do the filenames with embedded spaces have quotes around them, or do they just use up all the space to the end of the LDRAW type 1 command line? The reason I ask is because I seem to (...) (20 years ago, 8-Apr-05, to lugnet.cad, lugnet.cad.mlcad)

17 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR