[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

525.0. "Announcing the CARDBUILD utility" by ORCAS::HORMAN (E pur si muove) Mon Apr 03 1989 15:57

    
    CARDBUILD is a utility to convert a textfile to CARDFILER format.
    It can be used to migrate a database to OOTB CARDFILE. The next reply 
    contains a full description as well as kit info.
     
    I am not making the source code available at this time, because
    I am going out of town tomorrow for one week, and I'd like to 
    maintain one working copy. Any suggestions for enhancements or 
    fixed should be sent to ORCAS::HORMAN.
    
    Thanks
    Craig 
    

T.RTitleUserPersonal
Name
DateLines
525.1CARDBUILD.DOCORCAS::HORMANE pur si muoveMon Apr 03 1989 16:59101
	

			CARDBUILD Utility V1.0


OVERVIEW.

The CARDBUILD utility will translate a text file into a format readable
by the DECWindows OOTB CARDFILER application. The purpose of this utility
is to allow quick migration from an existing database to CARDFILE format.

This is no limit on the size of the input file; there are, however, certain
limitations on the size of each text line within the input file. There are 
also certain delimiters that are required, so that CARDBUILD can differentiate 
between the title and the text of a card.

The input file must consist of alternating title and text lines (you can 
have more than one line of text, but each text block must be preceded
by a title line). For best results, you will want to make sure that the 
input is in ascending order by title (this is strongly suggested, but not 
required). 

THE INPUT FILE.

Here are the rules for the input text file:

>	The Card Title:

	o Must be preceded by an "&" (ampersand).
	o Must be less than 40 characters (actually, it can be up to
	  eighty, but will be truncated at 40).
	o Must be followed by at least one text line.

>	The Card Text:

	o Must be preceded by a "|"
	o Can be up to eighty bytes per line. Please note, however, that the 
	  default width of text displayed by CARDFILER is 38 bytes. Text longer
	  than this will wrap onto the next line. You can resize the window
	  within CARDFILER manually after loading the newly-created cardfile.
	o Can consist of multiple lines, as long as each is preceded by the
	  text delimiter ("|") and the entire text block is preceded by 
	  a title line.
	o NEWLINEs are imported into the cardfile. This is the only way to
	  provide the user with some formatting capability.
	o CANNOT BE BLANK. At this time you cannot use CARDBUILD to create
	  a cardfile consisting of titles without text.


>	PLEASE NOTE:
	o Results will be unpredictable if each title is not following by 
	  one of more lines of text - i.e. there should be a 1:1 
	  correspondence between titles and text.
	o NO BLANK LINES in the input file. 


HOW TO RUN CARDBUILD.

> 	Installation:

	o @ORCAS::CARDBUILD_INSTALL

	  This procedure will copy CARDBUILD.EXE, CARDBUILD.OBJ, 
	  CARDBUILD.DOC (this help file), and CARDBUILD.SAMPLE
	  (a sample input file).  The executable is linked under
	  SDC V5.1; the object is provided if you need to relink. 

>	Invocation:

	o CARD*BUILD:==$your_dev:[your_directory]CARDBUILD

	  You must define a foreign command to invoke CARDBUILD.

	o $ CARD textfile cardfile
                                   
	  You must specify the textfile following by the cardfile.
	  Please specify full filenames, as CARDBUILD will not supply
	  the default .CARD extension for the output file.

>	Build the sample cardfile (if you wish):

	o $ CARD CARDBUILD.SAMPLE CARDBUILD.CARD
	    Creating the cardfile...
	    Records processed: 5

SUPPORT:

	Like many other utilities, CARDBUILD is a midnight hack. Support
	and maintenance, therefore, are at the mercy of my normal workday
	schedule. I will endeavor to make changes and enhancements as
	required by popular demand. Please send suggestions or questions
	to ORCAS::HORMAN.

	Thanks! I hope you find CARDBUILD a useful utility.

	Craig Horman
	ORCAS::HORMAN


    

525.2And furthermore...ORCAS::HORMANE pur si muoveMon Apr 03 1989 18:2912
    
    I should add that a large file will take a long time to load. A
    cardfile with 500 cards, each with 5 lines of text, took 3-4 minutes
    on my VS2000 (6 MB). Once it is loaded, of course, you can navigate
    within it at a rapid rate.
    
    To amend my base note: I will monitor this topic for feedback,
    so respond here as well as via E-mail with suggestions, etcetera...
         
    Craig
    

525.3Source code needed -- ULTRIX cannot run your images!GILDOR::avolioI was ULTRIX when ULTRIX wasn't *cool*Tue Apr 04 1989 09:265
We need the soruce code!  Some of us run a different operating
system than you do.

Fred

525.4Not again! Please!LESLIE::LESLIEAndy ��� Leslie, CSSETue Apr 04 1989 10:406
    Lets not go down THAT rathole again, please. 
    
    Please do as suggested in .0 and take it to mail.
    
    Andy (Co-Moderator)

525.5In the toolshed if you need itSCCAT::HORMANWestern Area Software SupportWed Nov 01 1989 14:166
    
    CARDBUILD has been in the toolshed for quite a while. I should have
    indicated that long before now, as it has been gone from ORCAS for
    months. Sorry about that.
    
    METOO::SW_TOOLS_CATALOG (SELECT, or KP7 on vintage terminals)