NoteWorthy Software, Inc.
2014-04-20 10:32 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Licensed NWC2 users can upgrade their community membership [more]
 
   Home   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Possible additions to nwc2clips.inc  (Read 6945 times)
Randy Williams
Virtuoso
« on: 2009-11-12 02:31 PM »

To my knowledge, nobody has written a set of PHP include files to help with processing entire NWCTXT files, similar to the set that does exist to help with processing "clips" (the User Tools suite).  Perhaps instead of writing a new suite, the existing one can become a superset for both?  I haven't worked out all the details yet for other files, but I thought I'd throw out these possible additions to just nwc2clips.inc, to start a discussion.

In function NWC2ClassifyOptTag, before the final return:
Code:   [Select · Download]
if ($ObjType == "SongInfo") return NWC2OPT_TEXT;
if (($ObjType == "Font") && ($Tag == "Typeface")) return NWC2OPT_TEXT;
if (($ObjType == "AddStaff") && ($Tag == "Group")) return NWC2OPT_TEXT;
I expect there are other song/staff option tags that are possibly needed here too.

Global constants, alongside the comparable "clip" constants:
Code:   [Select · Download]
define("NWC2_STARTSONG","!NoteWorthyComposer");
define("NWC2_ENDSONG","!NoteWorthyComposer-End");
Logged
Rick G.
Virtuoso
« Reply #1 on: 2009-11-12 03:22 PM »

I'm glad to see someone has an interest in this area.

I would be more inclined to agree with you if a User Tool could receive nwctxt on STDIN, and NWC2 would process nwctxt if the tool wrote it to STDOUT. As it is now, User Tools and nwctxt processors are separate entities. This would argue for separate libraries. Most of my code is in VBScript, so I don't feel strongly one way or the other.
Logged

Registered user since 1996
NoteWorthy Online
Admin


« Reply #2 on: 2009-11-13 05:19 PM »

The official support for this is currently pending an official way for licensed users to automatically process a *.nwc file as text, and then restore it to the binary *.nwc file (via scripting). I will see what we can do to facilitate this here in the forum pending the general release.
« Last Edit: 2009-11-13 05:40 PM by NoteWorthy Online » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
Page created in 0.051 seconds with 18 queries.

Copyright © 2014 Noteworthy Software, Inc.