texlive[46254] Build/source/utils: m-tx 0.63

commits+kakuto at tug.org commits+kakuto at tug.org
Tue Jan 9 04:41:12 CET 2018


Revision: 46254
          http://tug.org/svn/texlive?view=revision&revision=46254
Author:   kakuto
Date:     2018-01-09 04:41:12 +0100 (Tue, 09 Jan 2018)
Log Message:
-----------
m-tx 0.63

Modified Paths:
--------------
    trunk/Build/source/utils/README
    trunk/Build/source/utils/m-tx/ChangeLog
    trunk/Build/source/utils/m-tx/TLpatches/ChangeLog
    trunk/Build/source/utils/m-tx/TLpatches/TL-Changes
    trunk/Build/source/utils/m-tx/TLpatches/patch-01-write-bin
    trunk/Build/source/utils/m-tx/configure
    trunk/Build/source/utils/m-tx/mtx-src/AUTHORS
    trunk/Build/source/utils/m-tx/mtx-src/Bugs
    trunk/Build/source/utils/m-tx/mtx-src/COPYING
    trunk/Build/source/utils/m-tx/mtx-src/ChangeLog
    trunk/Build/source/utils/m-tx/mtx-src/Corrections
    trunk/Build/source/utils/m-tx/mtx-src/INSTALL
    trunk/Build/source/utils/m-tx/mtx-src/Makefile.am
    trunk/Build/source/utils/m-tx/mtx-src/Makefile.orig
    trunk/Build/source/utils/m-tx/mtx-src/Makefile.p2c
    trunk/Build/source/utils/m-tx/mtx-src/NEWS
    trunk/Build/source/utils/m-tx/mtx-src/analyze.c
    trunk/Build/source/utils/m-tx/mtx-src/analyze.pas
    trunk/Build/source/utils/m-tx/mtx-src/configure.ac
    trunk/Build/source/utils/m-tx/mtx-src/globals.c
    trunk/Build/source/utils/m-tx/mtx-src/globals.h
    trunk/Build/source/utils/m-tx/mtx-src/globals.pas
    trunk/Build/source/utils/m-tx/mtx-src/libp2c/p2clib.c
    trunk/Build/source/utils/m-tx/mtx-src/mtx.c
    trunk/Build/source/utils/m-tx/mtx-src/mtx.pas
    trunk/Build/source/utils/m-tx/mtx-src/mtx.test
    trunk/Build/source/utils/m-tx/mtx-src/mtxline.c
    trunk/Build/source/utils/m-tx/mtx-src/mtxline.pas
    trunk/Build/source/utils/m-tx/mtx-src/preamble.c
    trunk/Build/source/utils/m-tx/mtx-src/preamble.pas
    trunk/Build/source/utils/m-tx/mtx-src/prepmx.c
    trunk/Build/source/utils/m-tx/mtx-src/prepmx.pas
    trunk/Build/source/utils/m-tx/mtx-src/status.c
    trunk/Build/source/utils/m-tx/mtx-src/status.pas
    trunk/Build/source/utils/m-tx/mtx-src/strings.h
    trunk/Build/source/utils/m-tx/mtx-src/version.ac
    trunk/Build/source/utils/m-tx/tests/mozart.pmx
    trunk/Build/source/utils/m-tx/version.ac

Removed Paths:
-------------
    trunk/Build/source/utils/m-tx/TLpatches/patch-02-malloc
    trunk/Build/source/utils/m-tx/TLpatches/patch-03-different-size

Modified: trunk/Build/source/utils/README
===================================================================
--- trunk/Build/source/utils/README	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/README	2018-01-09 03:41:12 UTC (rev 46254)
@@ -17,7 +17,7 @@
 
 lacheck - maintained here, by us
 
-m-tx 0.62 - checked 10feb16
+m-tx 0.63 - checked 09jan18
   http://ctan.org/pkg/m-tx/
 
 pmx 2.7.6 - checked 09dec16

Modified: trunk/Build/source/utils/m-tx/ChangeLog
===================================================================
--- trunk/Build/source/utils/m-tx/ChangeLog	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/ChangeLog	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,3 +1,7 @@
+2018-01-09  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	* Import m-tx 0.63.
+
 2016-02-10  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	* Import m-tx 0.62.

Modified: trunk/Build/source/utils/m-tx/TLpatches/ChangeLog
===================================================================
--- trunk/Build/source/utils/m-tx/TLpatches/ChangeLog	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/TLpatches/ChangeLog	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,3 +1,8 @@
+2018-01-09  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
+
+	* patch-01-write-bin: Update for 0.63.
+	* patch-02-malloc, patch-03-different-size: Remove.
+
 2016-02-10  Akira Kakuto  <kakuto at fuk.kindai.ac.jp>
 
 	* patch-01-write-bin, patch-02-malloc, patch-03-different-size:

Modified: trunk/Build/source/utils/m-tx/TLpatches/TL-Changes
===================================================================
--- trunk/Build/source/utils/m-tx/TLpatches/TL-Changes	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/TLpatches/TL-Changes	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,4 +1,4 @@
-Changes applied to the mtx-0.62 tree as obtained from:
+Changes applied to the mtx-0.63 tree as obtained from:
 	http://www.ctan.org/tex-archive/support/m-tx/
 
 Remove:
@@ -8,6 +8,7 @@
 	depcomp
 	install-sh
 	missing
+	test-driver
 
 Move to top directory:
 	tests/*

Modified: trunk/Build/source/utils/m-tx/TLpatches/patch-01-write-bin
===================================================================
--- trunk/Build/source/utils/m-tx/TLpatches/patch-01-write-bin	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/TLpatches/patch-01-write-bin	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,7 +1,7 @@
-diff -ur mtx-0.62.orig/globals.c mtx-0.62/globals.c
---- mtx-0.62.orig/globals.c	Tue Feb 09 05:51:40 2016
-+++ mtx-0.62/globals.c	Thu Feb 11 01:50:54 2016
-@@ -223,7 +223,7 @@
+diff -ur mtx-0.63.orig/globals.c mtx-0.63/globals.c
+--- mtx-0.63.orig/globals.c	Tue Jan 09 01:39:42 2018
++++ mtx-0.63/globals.c	Tue Jan 09 08:46:40 2018
+@@ -230,7 +230,7 @@
      if (outfile != NULL)
        fclose(outfile);
      outfile = NULL;

Deleted: trunk/Build/source/utils/m-tx/TLpatches/patch-02-malloc
===================================================================
--- trunk/Build/source/utils/m-tx/TLpatches/patch-02-malloc	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/TLpatches/patch-02-malloc	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,12 +0,0 @@
-diff -ur mtx-0.62.orig/multfile.c mtx-0.62/multfile.c
---- mtx-0.62.orig/multfile.c	Tue Feb 09 05:52:29 2016
-+++ mtx-0.62/multfile.c	Thu Feb 11 01:52:08 2016
-@@ -61,7 +61,7 @@
-     printf("===! Ignoring recursive include of file %s\n", filename);
-     return;
-   }
--  newnode = malloc(sizeof(filenode));
-+  newnode = Malloc(sizeof(filenode));
-   newnode->actualfile = NULL;
-   strcpy(newnode->name, filename);
-   newnode->prev = current;

Deleted: trunk/Build/source/utils/m-tx/TLpatches/patch-03-different-size
===================================================================
--- trunk/Build/source/utils/m-tx/TLpatches/patch-03-different-size	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/TLpatches/patch-03-different-size	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,16 +0,0 @@
-diff -ur mtx-0.62.orig/libp2c/p2c.h mtx-0.62/libp2c/p2c.h
---- mtx-0.62.orig/libp2c/p2c.h	Tue Feb 09 05:23:09 2016
-+++ mtx-0.62/libp2c/p2c.h	Thu Feb 11 01:54:30 2016
-@@ -428,10 +428,10 @@
- 
- /* Memory allocation */
- #ifdef __GCC__
--# define Malloc(n)  (malloc(n) ?: (Anyptr)_OutMem())
-+# define Malloc(n)  (malloc(n) ?: (Anyptr)(size_t)_OutMem())
- #else
- extern Anyptr __MallocTemp__;
--# define Malloc(n)  ((__MallocTemp__ = malloc(n)) ? __MallocTemp__ : (Anyptr)_OutMem())
-+# define Malloc(n)  ((__MallocTemp__ = malloc(n)) ? __MallocTemp__ : (Anyptr)(size_t)_OutMem())
- #endif
- #define FreeR(p)    (free((Anyptr)(p)))    /* used if arg is an rvalue */
- #define Free(p)     (free((Anyptr)(p)), (p)=NULL)

Modified: trunk/Build/source/utils/m-tx/configure
===================================================================
--- trunk/Build/source/utils/m-tx/configure	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/configure	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for m-tx (TeX Live) 0.62.
+# Generated by GNU Autoconf 2.69 for m-tx (TeX Live) 0.63.
 #
 # Report bugs to <tex-k at tug.org>.
 #
@@ -580,8 +580,8 @@
 # Identity of this package.
 PACKAGE_NAME='m-tx (TeX Live)'
 PACKAGE_TARNAME='m-tx--tex-live-'
-PACKAGE_VERSION='0.62'
-PACKAGE_STRING='m-tx (TeX Live) 0.62'
+PACKAGE_VERSION='0.63'
+PACKAGE_STRING='m-tx (TeX Live) 0.63'
 PACKAGE_BUGREPORT='tex-k at tug.org'
 PACKAGE_URL=''
 
@@ -1275,7 +1275,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures m-tx (TeX Live) 0.62 to adapt to many kinds of systems.
+\`configure' configures m-tx (TeX Live) 0.63 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1341,7 +1341,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of m-tx (TeX Live) 0.62:";;
+     short | recursive ) echo "Configuration of m-tx (TeX Live) 0.63:";;
    esac
   cat <<\_ACEOF
 
@@ -1438,7 +1438,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-m-tx (TeX Live) configure 0.62
+m-tx (TeX Live) configure 0.63
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1861,7 +1861,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by m-tx (TeX Live) $as_me 0.62, which was
+It was created by m-tx (TeX Live) $as_me 0.63, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -3784,7 +3784,7 @@
 
 # Define the identity of the package.
  PACKAGE='m-tx--tex-live-'
- VERSION='0.62'
+ VERSION='0.63'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -5868,7 +5868,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by m-tx (TeX Live) $as_me 0.62, which was
+This file was extended by m-tx (TeX Live) $as_me 0.63, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -5925,7 +5925,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-m-tx (TeX Live) config.status 0.62
+m-tx (TeX Live) config.status 0.63
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 

Modified: trunk/Build/source/utils/m-tx/mtx-src/AUTHORS
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/AUTHORS	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/AUTHORS	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1 +1 @@
-Dirk Laurie (dpl at sun.ac.za)
+Dirk Laurie (dirk.laurie at gmail.com)

Modified: trunk/Build/source/utils/m-tx/mtx-src/Bugs
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/Bugs	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/Bugs	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,3 +1,8 @@
+From Bob Tennent (e-mail on 2015-12-30):
+  Dirk: I suggest you experiment to see whether the 1st argument is 
+  sufficient for your purposes with the new pmx and musixtex, or whether 
+  other modifications are needed.
+
 Lyrics lines when not from same paragraph don't join neatly.
 Problem has been discussed on mailing list and Rainer gave
 a solution. This still (TeXLive 2013) seems to be a little 
@@ -6,4 +11,7 @@
 Rest in dot and comma shortcuts gives error at PMX stage.
 Not recently (2015-08-04) checked.
 
+-----
 
+Warning for unbalanced braces in the first line a lyrics paragraph.
+

Modified: trunk/Build/source/utils/m-tx/mtx-src/COPYING
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/COPYING	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/COPYING	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,340 +1,20 @@
-		    GNU GENERAL PUBLIC LICENSE
-		       Version 2, June 1991
+The MIT License (MIT)
 
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-     51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
+Copyright (c) 2014 Dirk Laurie <dirk.laurie at gmail.com>
 
-			    Preamble
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
 
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users.  This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it.  (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.)  You can apply it to
-your programs, too.
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
 
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-this service if you wish), that you receive source code or can get it
-if you want it, that you can change the software or use pieces of it
-in new free programs; and that you know you can do these things.
-
-  To protect your rights, we need to make restrictions that forbid
-anyone to deny you these rights or to ask you to surrender the rights.
-These restrictions translate to certain responsibilities for you if you
-distribute copies of the software, or if you modify it.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have.  You must make sure that they, too, receive or can get the
-source code.  And you must show them these terms so they know their
-rights.
-
-  We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-  Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software.  If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, so
-that any problems introduced by others will not reflect on the original
-authors' reputations.
-
-  Finally, any free program is threatened constantly by software
-patents.  We wish to avoid the danger that redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary.  To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-

-		    GNU GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License.  The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language.  (Hereinafter, translation is included without limitation in
-the term "modification".)  Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-  1. You may copy and distribute verbatim copies of the Program's
-source code as you receive it, in any medium, provided that you
-conspicuously and appropriately publish on each copy an appropriate
-copyright notice and disclaimer of warranty; keep intact all the
-notices that refer to this License and to the absence of any warranty;
-and give any other recipients of the Program a copy of this License
-along with the Program.
-
-You may charge a fee for the physical act of transferring a copy, and
-you may at your option offer warranty protection in exchange for a fee.
-
-  2. You may modify your copy or copies of the Program or any portion
-of it, thus forming a work based on the Program, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
-    a) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any
-    part thereof, to be licensed as a whole at no charge to all third
-    parties under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a
-    notice that there is no warranty (or else, saying that you provide
-    a warranty) and that users may redistribute the program under
-    these conditions, and telling the user how to view a copy of this
-    License.  (Exception: if the Program itself is interactive but
-    does not normally print such an announcement, your work based on
-    the Program is not required to print an announcement.)
-

-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Program,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works.  But when you
-distribute the same sections as part of a whole which is a work based
-on the Program, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) Accompany it with the complete corresponding machine-readable
-    source code, which must be distributed under the terms of Sections
-    1 and 2 above on a medium customarily used for software interchange; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your
-    cost of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer
-    to distribute corresponding source code.  (This alternative is
-    allowed only for noncommercial distribution and only if you
-    received the program in object code or executable form with such
-    an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it.  For an executable work, complete source
-code means all the source code for all modules it contains, plus any
-associated interface definition files, plus the scripts used to
-control compilation and installation of the executable.  However, as a
-special exception, the source code distributed need not include
-anything that is normally distributed (in either source or binary
-form) with the major components (compiler, kernel, and so on) of the
-operating system on which the executable runs, unless that component
-itself accompanies the executable.
-
-If distribution of executable or object code is made by offering
-access to copy from a designated place, then offering equivalent
-access to copy the source code from the same place counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-

-  4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License.  Any attempt
-otherwise to copy, modify, sublicense or distribute the Program is
-void, and will automatically terminate your rights under this License.
-However, parties who have received copies, or rights, from you under
-this License will not have their licenses terminated so long as such
-parties remain in full compliance.
-
-  5. You are not required to accept this License, since you have not
-signed it.  However, nothing else grants you permission to modify or
-distribute the Program or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-  6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program subject to
-these terms and conditions.  You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties to
-this License.
-
-  7. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Program at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Program by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Program.
-
-If any portion of this section is held invalid or unenforceable under
-any particular circumstance, the balance of the section is intended to
-apply and the section as a whole is intended to apply in other
-circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system, which is
-implemented by public license practices.  Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-

-  8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program under this License
-may add an explicit geographical distribution limitation excluding
-those countries, so that distribution is permitted only in or among
-countries not thus excluded.  In such case, this License incorporates
-the limitation as if written in the body of this License.
-
-  9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-Each version is given a distinguishing version number.  If the Program
-specifies a version number of this License which applies to it and "any
-later version", you have the option of following the terms and conditions
-either of that version or of any later version published by the Free
-Software Foundation.  If the Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-  10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, write to the author
-to ask for permission.  For software which is copyrighted by the Free
-Software Foundation, write to the Free Software Foundation; we sometimes
-make exceptions for this.  Our decision will be guided by the two goals
-of preserving the free status of all derivatives of our free software and
-of promoting the sharing and reuse of software generally.
-
-			    NO WARRANTY
-
-  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
-OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
-TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
-REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
-INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
-OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
-TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
-YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
-		     END OF TERMS AND CONDITIONS
-

-	    How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
-    Gnomovision version 69, Copyright (C) year  name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-  <signature of Ty Coon>, 1 April 1989
-  Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Library General
-Public License instead of this License.
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Modified: trunk/Build/source/utils/m-tx/mtx-src/ChangeLog
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/ChangeLog	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/ChangeLog	2018-01-09 03:41:12 UTC (rev 46254)
@@ -3,6 +3,35 @@
    
 Newest items at top. You might also want to look at file `MAINTENANCE`.
 
+Version 0.63
+------------
+
+1. `Space` can put in optional extra space between title block and 
+    first stave.
+2. Multibar rest may appear after comment lines in its paragraph. (Thanks
+   to Christian Mondrup for finding the bug.)
+3. Spurious error message when using `][` corrected. (Thanks
+   to Christian Mondrup for finding the bug.)
+4. Pickup consisting of rests allowed with multibar rest. (Feature requested
+   by  Christian Mondrup.)
+5. Also recognizes `F` as doubling duration in multiplet. (Feature requested
+   by  Christian Mondrup.)
+6. No longer adds an undesired duration to rests in a multiplet.  (Thanks
+   to Christian Mondrup for finding the bug.)
+
+Version 0.62c
+-------------
+
+1. Emit one `rmN` per stave, rather than only one. This error was
+  introduced in Version 0.61a when the multibar coding was streamlined.
+
+Version 0.62b
+-------------
+
+1. An error is raised if a cumulative preamble command like TeX grows 
+   too long.
+2. Typo corrected in Makefile item README.md.
+
 Version 0.62a
 -------------
 

Modified: trunk/Build/source/utils/m-tx/mtx-src/Corrections
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/Corrections	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/Corrections	2018-01-09 03:41:12 UTC (rev 46254)
@@ -3,6 +3,59 @@
    
 Newest items at top. You might also want to look at file `MAINTENANCE`.
 
+Version 0.63
+------------
+
+1. `Space` can put in optional extra space between title block and 
+first stave.
+2. Multibar rest may appear after comment lines in its paragraph. (Thanks
+to Christian Mondrup for finding the bug.)
+3. Spurious error message when using `][` corrected. (Thanks
+to Christian Mondrup for finding the bug.)
+4. Pickup consisting of rests allowed with multibar rest. (Feature requested
+by  Christian Mondrup.)
+5. Also recognizes `F` as doubling duration in multiplet. (Feature requested
+by  Christian Mondrup.)
+6. No longer adds an undesired duration to rests in a multiplet.  (Thanks
+to Christian Mondrup for finding the bug.)
+
+Version 0.62c
+-------------
+
+1. Emit one `rmN` per stave, rather than only one. This error was
+  introduced in Version 0.61a when the multibar coding was streamlined.
+
+Version 0.62b
+-------------
+
+1. An error is raised if a cumulative preamble command like TeX grows 
+  too long.
+2. Typo corrected in Makefile item README.md.
+
+Version 0.62a
+-------------
+
+1. Fonts bigtype and BIgtype, needed because PMX header font sizes
+were made smaller in July 2015, added to \mtxPalatino. Also, for
+completeness, \mtxbigsf and \mtxBIGsf. This version tagged on GitHub
+as 0.62.
+
+Version 0.62
+------------
+
+1. `\mtxlatex` command no longer needed.
+2. Various subtleties in the code have been commented.
+
+Version 0.61a
+-------------
+
+1. Special code for multi-bar rests removed, taking advantage of
+upstream improvements. 
+2. MusiXTeX 1.21 and PMX 2.71 required in `mtx.tex`.
+3. When the last line of a file does not have an end-of-line,
+its line number in comments and error messages was 0. Corrected now. 
+(This bug was almost 11 years old.)
+
 Version 0.61
 ------------
 
@@ -206,3 +259,11 @@
     preamble.pas: added trailing backslash to \mtxTenorClef
     mtx.tex: changed \mtxmtxNormalSize to \mtxNormalSize 
 
+Changes since 0.52b, undated.
+   Uses mtx.tex file
+   More than one # or % per word treated correctly in uptext
+   Better way of handling line numbers in lyrics
+
+For earlier history, see comments in prepmx.pas of 0.52b.
+
+

Modified: trunk/Build/source/utils/m-tx/mtx-src/INSTALL
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/INSTALL	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/INSTALL	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,8 +1,8 @@
 Installation Instructions
 *************************
 
-Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
-2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
+Inc.
 
    Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright
@@ -226,6 +226,11 @@
 
 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
 
+   HP-UX `make' updates targets which have the same time stamps as
+their prerequisites, which makes it generally unusable when shipped
+generated files such as `configure' are involved.  Use GNU `make'
+instead.
+
    On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
 parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
 a workaround.  If GNU CC is not installed, it is therefore recommended
@@ -304,9 +309,10 @@
 overridden in the site shell script).
 
 Unfortunately, this technique does not work for `CONFIG_SHELL' due to
-an Autoconf bug.  Until the bug is fixed you can use this workaround:
+an Autoconf limitation.  Until the limitation is lifted, you can use
+this workaround:
 
-     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
+     CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
 
 `configure' Invocation
 ======================
@@ -362,4 +368,3 @@
 
 `configure' also accepts some other, not widely useful, options.  Run
 `configure --help' for more details.
-

Modified: trunk/Build/source/utils/m-tx/mtx-src/Makefile.am
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/Makefile.am	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/Makefile.am	2018-01-09 03:41:12 UTC (rev 46254)
@@ -35,6 +35,7 @@
 	prepmx.c \
 	status.c \
 	status.h \
+##      strings.c \  ## p2c generated, replaced by cfuncs.c
 	strings.h \
 	uptext.c \
 	uptext.h \

Modified: trunk/Build/source/utils/m-tx/mtx-src/Makefile.orig
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/Makefile.orig	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/Makefile.orig	2018-01-09 03:41:12 UTC (rev 46254)
@@ -9,7 +9,7 @@
 	fpc -g -B -vn -So prepmx -T$(SYSTEM)
 
 README.md: README.txt
-	pandoc -s -t markdown_githum README.txt
+	pandoc -s -t markdown_github README.txt
 
 commit: $(pasfiles) $(sfiles) README.txt README.md
 	make -C doc commit

Modified: trunk/Build/source/utils/m-tx/mtx-src/Makefile.p2c
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/Makefile.p2c	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/Makefile.p2c	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,12 +1,8 @@
 all: globals.c mtx.c preamble.c lyrics.c analyze.c mtxline.c\
-  status.c uptext.c prepmx.c files.c notes.c multfile.c utility.c control.c
+  status.c uptext.c prepmx.c files.c notes.c multfile.c utility.c control.c strings.c
 
-multfile.c: multfile.pas
-	p2c -a -LTurbo multfile.pas -o temp.c
-	sed -e "s/Malloc/malloc/" < temp.c > multfile.c
-	rm temp.c
-	
 %.c: %.pas 
 	p2c -a -LTurbo $*.pas
 	cp $*.c $*.c.orig
+	sed -e "s/#include <p2c\/p2c.h>/#include \"p2c.h\"/" < $*.c.orig > $*.c
 

Modified: trunk/Build/source/utils/m-tx/mtx-src/NEWS
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/NEWS	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/NEWS	2018-01-09 03:41:12 UTC (rev 46254)
@@ -3,6 +3,35 @@
    
 Newest items at top. You might also want to look at file `MAINTENANCE`.
 
+Version 0.63
+------------
+
+1. `Space` can put in optional extra space between title block and 
+    first stave.
+2. Multibar rest may appear after comment lines in its paragraph. (Thanks
+   to Christian Mondrup for finding the bug.)
+3. Spurious error message when using `][` corrected. (Thanks
+   to Christian Mondrup for finding the bug.)
+4. Pickup consisting of rests allowed with multibar rest. (Feature requested
+   by  Christian Mondrup.)
+5. Also recognizes `F` as doubling duration in multiplet. (Feature requested
+   by  Christian Mondrup.)
+6. No longer adds an undesired duration to rests in a multiplet.  (Thanks
+   to Christian Mondrup for finding the bug.)
+
+Version 0.62c
+-------------
+
+1. Emit one `rmN` per stave, rather than only one. This error was
+  introduced in Version 0.61a when the multibar coding was streamlined.
+
+Version 0.62b
+-------------
+
+1. An error is raised if a cumulative preamble command like TeX grows 
+   too long.
+2. Typo corrected in Makefile item README.md.
+
 Version 0.62a
 -------------
 

Modified: trunk/Build/source/utils/m-tx/mtx-src/analyze.c
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/analyze.c	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/analyze.c	2018-01-09 03:41:12 UTC (rev 46254)
@@ -85,7 +85,7 @@
   if (top > bottom)
     return;
   pickup = 0;
-  multi_bar_rest = false;
+  *multi_bar_rest = '\0';
   FORLIM = bottom;
   for (voice = top; voice <= FORLIM; voice++) {
     mus = musicLineNo(voice);
@@ -93,7 +93,7 @@
       nv++;
       line_no = orig_line_no[mus-1];
       scanMusic(voice, &l);
-      if (multi_bar_rest && nv > 1)
+      if (*multi_bar_rest != '\0' && nv > 1)
 	error("Multi-bar rest allows only one voice", print);
       if (!pmx_preamble_done) {
 	if (voice == top)
@@ -103,7 +103,7 @@
       }
       nbar = numberOfBars(voice);
       extra = ExtraLength(voice);
-      if (multi_bar_rest && (nbar > 0 || extra > 0))
+      if (*multi_bar_rest != '\0' && (nbar > 0 || extra > 0))
 	error3(voice, "Multi-bar rest allows no other rests or notes");
       if (nbar > nbars || nbar == nbars && extra > nleft) {
 	nbars = nbar;

Modified: trunk/Build/source/utils/m-tx/mtx-src/analyze.pas
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/analyze.pas	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/analyze.pas	2018-01-09 03:41:12 UTC (rev 46254)
@@ -32,13 +32,13 @@
       extra, l, nbar: integer;
 begin
   nbars:=0; pickup:=0; nleft:=0; if top>bottom then exit;
-  pickup:=0;  nv:=0;  leader:=0;  multi_bar_rest := false;
+  pickup:=0;  nv:=0;  leader:=0;  multi_bar_rest := '';
   for voice:=top to bottom do
   begin mus:=musicLineNo(voice);
     if mus>0 then   {* -------------- Voice is present  ---- }
     begin  inc(nv); line_no:=orig_line_no[mus];
       scanMusic(voice,l);
-      if multi_bar_rest and (nv>1) then error(
+      if (multi_bar_rest<>'') and (nv>1) then error(
         'Multi-bar rest allows only one voice',print);
       if not pmx_preamble_done then
       if voice=top then pickup:=l
@@ -45,7 +45,7 @@
         else if pickup<>l then
         error3(voice,'The same pickup must appear in all voices');
       nbar := numberOfBars(voice);  extra := extraLength(voice);
-      if multi_bar_rest and ((nbar>0) or (extra>0)) then error3(voice,
+      if (multi_bar_rest<>'') and ((nbar>0) or (extra>0)) then error3(voice,
         'Multi-bar rest allows no other rests or notes');
       if (nbar>nbars) or (nbar=nbars) and (extra>nleft) then
       begin nbars:=nbar; nleft:=extra; leader:=voice; end;

Modified: trunk/Build/source/utils/m-tx/mtx-src/configure.ac
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/configure.ac	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/configure.ac	2018-01-09 03:41:12 UTC (rev 46254)
@@ -8,10 +8,11 @@
 dnl
 m4_include([version.ac])[] dnl define mtx_version
 AC_INIT([mtx], mtx_version, [rdt at cs.queensu.ca])
-AC_PREREQ([2.63])
+AC_PREREQ([2.69])
 AC_CONFIG_SRCDIR([analyze.c])
+AC_CONFIG_AUX_DIR([.])
 
-AM_INIT_AUTOMAKE(mtx, mtx_version)
+AM_INIT_AUTOMAKE
 
 dnl Check compiler and flags
 AC_PROG_CC

Modified: trunk/Build/source/utils/m-tx/mtx-src/globals.c
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/globals.c	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/globals.c	2018-01-09 03:41:12 UTC (rev 46254)
@@ -88,16 +88,23 @@
 void setSpace(Char *line_)
 {
   Char line[256];
-  short i = 0;
+  short i;
   Char word[256];
+  Char STR1[256];
 
   strcpy(line, line_);
+  i = pos1(';', line);
+  if (i > 0) {
+    getNum(substr_(STR1, line, 1, i - 1), nspace);
+    predelete(line, i);
+  }
+  i = 0;
   while (i < ninstr) {
     GetNextWord(word, line, blank, dummy);
     if (*word == '\0')
       return;
     i++;
-    getNum(word, &nspace[i-1]);
+    getNum(word, &nspace[i]);
   }
 }
 

Modified: trunk/Build/source/utils/m-tx/mtx-src/globals.h
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/globals.h	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/globals.h	2018-01-09 03:41:12 UTC (rev 46254)
@@ -109,7 +109,8 @@
 vextern Char clef[maxstaves];
 vextern voice_index0 instr[maxstaves], stave[maxstaves],
 		     first_on_stave[maxstaves], number_on_stave[maxstaves];
-vextern short nspace[maxstaves], stave_size[maxstaves];
+vextern short stave_size[maxstaves];
+vextern short nspace[maxstaves + 1];
 vextern voice_index0 nvoices, nstaves, ninstr, bottom, top;
 vextern short one_beat, full_bar, line_no, short_note, musicsize, meternum,
 	      meterdenom, pmnum, pmdenom, paragraph_no, bar_no, pickup, nbars,
@@ -120,9 +121,10 @@
 vextern line_nos orig_line_no;
 vextern FILE *infile, *outfile, *stylefile;
 vextern Char default_duration;
-vextern Char fracindent[256], this_version[256], this_version_date[256];
+vextern Char fracindent[256], this_version[256], this_version_date[256],
+	     multi_bar_rest[256];
 vextern boolean pmx_preamble_done, first_paragraph, final_paragraph,
-		must_respace, must_restyle, multi_bar_rest, some_vocal;
+		must_respace, must_restyle, some_vocal;
 vextern Char infile_NAME[_FNSIZE];
 vextern Char outfile_NAME[_FNSIZE];
 vextern Char stylefile_NAME[_FNSIZE];

Modified: trunk/Build/source/utils/m-tx/mtx-src/globals.pas
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/globals.pas	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/globals.pas	2018-01-09 03:41:12 UTC (rev 46254)
@@ -83,7 +83,8 @@
      clef: array[stave_index] of char;
      instr, stave, first_on_stave, number_on_stave:
        array[stave_index] of voice_index0;
-     nspace, stave_size: array[stave_index] of integer;
+     stave_size: array[stave_index] of integer;
+     nspace: array[stave_index0] of integer;
      nvoices, nstaves, ninstr, bottom, top: voice_index0;
      one_beat, full_bar, line_no, short_note, musicsize,
        meternum, meterdenom, pmnum, pmdenom, paragraph_no,
@@ -94,9 +95,9 @@
      orig_line_no: line_nos;
      infile, outfile, stylefile: text;
      default_duration: char;
-     fracindent, this_version, this_version_date: string;
+     fracindent, this_version, this_version_date, multi_bar_rest: string;
      pmx_preamble_done, first_paragraph, final_paragraph, must_respace,
-       must_restyle, multi_bar_rest, some_vocal: boolean;
+       must_restyle, some_vocal: boolean;
 
 procedure error(message: string; printLine: boolean);
 procedure fatalerror(message: string);
@@ -150,7 +151,14 @@
 procedure setSpace(line: string);
   var i: integer;
       word: string;
-  begin  i:=0;
+  begin 
+    i := pos1(';',line);   
+    if i>0 then
+    begin
+      getNum(substr(line,1,i-1),nspace[0]);      
+      predelete (line,i)
+    end;
+    i:=0;
     while i<ninstr do
     begin  word:=GetNextWord(line,blank,dummy);
       if word='' then exit;

Modified: trunk/Build/source/utils/m-tx/mtx-src/libp2c/p2clib.c
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/libp2c/p2clib.c	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/libp2c/p2clib.c	2018-01-09 03:41:12 UTC (rev 46254)
@@ -87,7 +87,6 @@
     return d;
 }
 
-
 #ifdef __STDC__
 Anyptr my_memcpy(Anyptr d, Const Anyptr s, size_t n)
 #else
@@ -102,6 +101,7 @@
     return d;
 }
 
+
 #ifdef __STDC__
 int my_memcmp(Const Anyptr s1, Const Anyptr s2, size_t n)
 #else

Modified: trunk/Build/source/utils/m-tx/mtx-src/mtx.c
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/mtx.c	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/mtx.c	2018-01-09 03:41:12 UTC (rev 46254)
@@ -212,9 +212,9 @@
     return false;
   if (rest_[1] != 'm')
     return false;
-  if (multi_bar_rest)
+  if (*multi_bar_rest != '\0')
     error("Only one multibar rest allowed per line", print);
-  multi_bar_rest = true;
+  strcpy(multi_bar_rest, rest_);
   return true;
 }
 
@@ -384,7 +384,7 @@
     V.count = 0;
     /*    if isNoteOrRest(note) and not (isPause(note) or isMultibarRest(note))
           then note:=toStandard(note); */
-    V.doublex = (pos1('D', V.note) > 0);
+    V.doublex = (pos1('D', V.note) > 0 || pos1('F', V.note) > 0);
     if (nscan == mword) {
       if (*V.note == '\0')
 	error3(V.voice, "You may not end a line with a meter change");
@@ -393,7 +393,9 @@
       else
 	V.bar = barLength(V.note);
     } else if (nscan == rword) {
-      if (!(isPause(V.note) || isMultiBarRest(V.note))) {
+      if (!(isPause(V.note) || isMultiBarRest(V.note) ||
+	    V.ngrace + V.nmulti > 0))
+      {   /*0.63: allow rests in xtuples*/
 	processNote(V.note, xnote, dur1, &lastdur, &V.count);
 	checkSticky(V.note, rest_attrib[V.voice-1]);
       }
@@ -404,7 +406,7 @@
     if (nscan == macro || nscan == endmacro)
       examineMacro(&V);
     if (nscan == abcdefg) {
-      if (!multi_bar_rest && V.ngrace + V.nmulti == 0) {
+      if (*multi_bar_rest == '\0' && V.ngrace + V.nmulti == 0) {
 	processNote(enote, xnote, dur1, &lastdur, &V.count);
 	if (*xnote != '\0') {
 	  checkSticky(enote, note_attrib[V.voice-1]);
@@ -426,7 +428,7 @@
 	markBar(V.voice);
       else if (numberOfBars(V.voice) == 0 && V.bar_length < V.bar) {
 	if (has_next)
-	  has_next = false;   /*Should check whether pickups are equal*/
+	  has_next = false;   /*TODO Should check whether pickups are equal*/
 	else if (*left_over > 0)
 	  error3(V.voice, "Bar is too short");
 	*left_over = V.bar_length;
@@ -441,7 +443,7 @@
       has_next = true;
     } else if (isPause(V.note))
       V.bar_length += V.bar;
-    else if (!multi_bar_rest) {   /*do nothing*/
+    else if (*multi_bar_rest == '\0') {   /*do nothing*/
       if (!done && isNoteOrRest(V.note))
 	countIt(&V);
       else
@@ -453,7 +455,7 @@
 	printf("%d %d\n", V.voice, V.bar_length);
       barForward(V.voice, V.bar_length / V.bar);
       V.bar_length %= V.bar;
-/* p2c: mtx.pas, line 268:
+/* p2c: mtx.pas, line 269:
  * Note: Using % for possibly-negative arguments [317] */
     }
   } while (!done);

Modified: trunk/Build/source/utils/m-tx/mtx-src/mtx.pas
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/mtx.pas	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/mtx.pas	2018-01-09 03:41:12 UTC (rev 46254)
@@ -114,9 +114,9 @@
 function isMultiBarRest(rest: string): boolean;
 begin  isMultibarRest:=false;  if length(rest)<3 then exit;
   if rest[2]<>'m' then exit;
-  if multi_bar_rest then error(
+  if multi_bar_rest<>'' then error(
     'Only one multibar rest allowed per line',print);
-  multi_bar_rest := true; isMultibarRest:=true;
+  multi_bar_rest := rest; isMultibarRest:=true;
 end;
 
 { Double-length in xtuplet detected by a brute search for D anywhere.
@@ -211,7 +211,7 @@
   repeat  GetNextMusWord(buf,note,nscan);  if length(note)=0 then break; count:=0;
 {    if isNoteOrRest(note) and not (isPause(note) or isMultibarRest(note))
       then note:=toStandard(note); }
-    doublex := pos1('D',note)>0; 
+    doublex := (pos1('D',note)>0) or (pos1('F',note)>0); 
     if nscan=mword then
     begin 
       if length(note)=0 then 
@@ -221,7 +221,8 @@
       else bar:=barLength(note);
     end
     else if nscan=rword then
-      if not (isPause(note) or isMultiBarRest(note)) then
+      if not (isPause(note) or isMultiBarRest(note) 
+        or (ngrace + nmulti > 0)) then  {0.63: allow rests in xtuples}
       begin
         processNote(note,xnote,dur1,lastdur,count);
         checkSticky(note,rest_attrib[voice]);
@@ -230,7 +231,7 @@
     enote := note;
     if (nscan=macro) or (nscan=endMacro) then examineMacro;
     if nscan=abcdefg then
-      if (not multi_bar_rest) and (ngrace + nmulti = 0) then
+      if (multi_bar_rest='') and (ngrace + nmulti = 0) then
       begin
         processNote(enote,xnote,dur1,lastdur,count);
         if xnote<>'' then
@@ -249,7 +250,7 @@
     else if bar_length=0 then markBar(voice)
     else if (numberOfBars(voice)=0) and (bar_length<bar) then
     begin  if has_next then
-      has_next:=false  {Should check whether pickups are equal}
+      has_next:=false  {TODO Should check whether pickups are equal}
       else if left_over>0 then error3(voice,'Bar is too short');
       left_over:=bar_length;  bar_length := 0;
     end;
@@ -258,7 +259,7 @@
       else barForward(voice,-1);  has_next := true;
     end
     else  if isPause(note) then  inc(bar_length,bar)
-    else  if multi_bar_rest then {do nothing}
+    else  if multi_bar_rest<>'' then {do nothing}
     else if not done and isNoteOrRest(note) then countIt
       else maybeGroup;
     dur1:=lastdur; 

Modified: trunk/Build/source/utils/m-tx/mtx-src/mtx.test
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/mtx.test	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/mtx.test	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,6 +1,6 @@
 #! /bin/sh -vx
-# Copyright 2017 Karl Berry <tex-live at tug.org>
-# Copyright 2012 Peter Breitenlohner <tex-live at tug.org>
+
+# Copyright (C) 2012 Peter Breitenlohner <tex-live at tug.org>
 # You may freely use, modify and/or distribute this file.
 
 rm -f mozart*

Modified: trunk/Build/source/utils/m-tx/mtx-src/mtxline.c
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/mtxline.c	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/mtxline.c	2018-01-09 03:41:12 UTC (rev 46254)
@@ -667,7 +667,10 @@
     break;
 
   case ']':
-    *nscan = rbrac;
+    if (!strcmp(V.note, "]["))
+      *nscan = other;
+    else
+      *nscan = rbrac;
     break;
 
   case '@':

Modified: trunk/Build/source/utils/m-tx/mtx-src/mtxline.pas
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/mtxline.pas	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/mtxline.pas	2018-01-09 03:41:12 UTC (rev 46254)
@@ -377,7 +377,7 @@
 ')':    if pos1('(',note)=0 then nscan:=rparen else nscan:=rlparen;
 '}':    if pos1('{',note)=0 then nscan:=rparen else nscan:=rlparen;
 '[':    nscan:=lbrac;
-']':    nscan:=rbrac;
+']':    if note='][' then nscan:=other else nscan:=rbrac;
 '@':    nscan:=atword;
 'm':    nscan:=mword;
 'r':    nscan:=rword;

Modified: trunk/Build/source/utils/m-tx/mtx-src/preamble.c
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/preamble.c	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/preamble.c	2018-01-09 03:41:12 UTC (rev 46254)
@@ -564,36 +564,38 @@
 Static void setRange(Char *line_)
 {
   Char line[256];
-  short v, p, FORLIM;
-  Char STR1[256];
-  Char STR2[256];
+  short v, p;
+  Char vl[256];
+  short FORLIM;
+  Char STR1[256], STR2[256];
 
   strcpy(line, line_);
   line_no = orig_range_line;
   FORLIM = nvoices;
   for (v = 1; v <= FORLIM; v++) {
-    sprintf(STR1, "%s=", voice_label[v-1]);
+    strcpy(vl, voice_label[v-1]);
+    sprintf(STR1, "%s=", vl);
     p = strpos2(line, STR1, 1);
     if (p > 0) {
       if (strlen(line) < p + 6) {
-	sprintf(STR2, "At least five characters must follow \"%s=\"",
-		voice_label[v-1]);
+	sprintf(STR2, "At least five characters must follow \"%s=\"", vl);
 	error(STR2, print);
       }
-      defineRange(v, substr_(STR2, line, p + 2, 5));
-    } else
+      defineRange(v, substr_(STR2, line, p + strlen(vl) + 1, 5));
+    } else {
+      sprintf(STR2, "No range defined for voice %s", vl);
+      warning(STR2, print);
       defineRange(v, "");
+    }
   }
 }
 
 
+/* TODO: This procedure should test for assertions in a comment
+ or be removed */
 Static boolean isAssertion(Char *line)
 {
-  boolean Result;
-
-/* p2c: preamble.pas, line 369:
- * Note: Attempting to EXIT beyond this function [188] */
-  return Result;
+  return false;
 }
 
 
@@ -604,7 +606,9 @@
   Char command[256];
   command_type last_command;
   boolean starts_with_note;
-  Char STR1[256], STR3[256];
+  Char STR1[256];
+  Char STR3[70];
+  Char STR4[256];
 
   strcpy(line, line_);
   if (line[0] == comment && !isAssertion(line))
@@ -622,14 +626,20 @@
     else if (last_command == range)
       orig_range_line = line_no;
     if (last_command != none) {
-      if (mustAppend(last_command) && redefined[(long)last_command])
+      if (mustAppend(last_command) && redefined[(long)last_command]) {
+	if (strlen(cline[(long)last_command]) + strlen(line) > 254) {
+	  sprintf(STR3,
+		  "Total length of preamble command %s must not exceed 255",
+		  commands[(long)last_command]);
+	  error(STR3, !print);
+	}
 	sprintf(cline[(long)last_command] + strlen(cline[(long)last_command]),
 		"\n%s", line);
-      else {
+      } else {
 	strcpy(cline[(long)last_command], line);
 	if (warn_redefine && redefined[(long)last_command]) {
-	  sprintf(STR3, "You have redefined preamble command %s", command);
-	  warning(STR3, print);
+	  sprintf(STR4, "You have redefined preamble command %s", command);
+	  warning(STR4, print);
 	}
       }
       if (last_command == start)
@@ -638,8 +648,8 @@
       return Result;
     }
     Result = colon_line;
-    sprintf(STR3, "%s%c %s", command, colon_, line);
-    addStyle(STR3);
+    sprintf(STR4, "%s%c %s", command, colon_, line);
+    addStyle(STR4);
     orig_style_line[known_styles-1] = line_no;
     return Result;
   } else if (starts_with_note)
@@ -787,10 +797,12 @@
   style_supplied = false;
   for (i = 1; i <= maxvoices; i++)
     setVocal(i, false);
-  for (i = 0; i <= maxstaves - 1; i++) {
+  for (i = 0; i <= maxstaves - 1; i++)
+    stave_size[i] = unspec;
+  for (i = 0; i <= maxstaves; i++)
     nspace[i] = unspec;
-    stave_size[i] = unspec;
-  }
+  nspace[i] = unspec;
+  stave_size[i-1] = unspec;
   n_pages = 1;
   n_systems = 1;
   readStyles();
@@ -928,14 +940,14 @@
 
   for (i = ninstr; i >= 2; i--) {
     j = ninstr - i + 1;
-    if (nspace[j-1] != unspec) {
+    if (nspace[j] != unspec) {
       sprintf(STR3, "\\mtxInterInstrument{%s}{%s}",
-	      toString(STR1, i - 1), toString(STR2, nspace[j-1]));
+	      toString(STR1, i - 1), toString(STR2, nspace[j]));
       TeXtype2(STR3);
     }
   }
-  if (nspace[ninstr-1] != unspec) {
-    sprintf(STR3, "\\mtxStaffBottom{%s}", toString(STR1, nspace[ninstr-1]));
+  if (nspace[ninstr] != unspec) {
+    sprintf(STR3, "\\mtxStaffBottom{%s}", toString(STR1, nspace[ninstr]));
     TeXtype2(STR3);
   }
   must_respace = false;
@@ -951,6 +963,7 @@
 Static short clefno(Char cl)
 {
   short Result;
+  Char STR2[44];
 
   switch (cl) {
 
@@ -997,7 +1010,8 @@
     break;
 
   default:
-    warning("Unknown clef code - replaced by treble", print);
+    sprintf(STR2, "Unknown clef code \"%c\" - replaced by treble", cl);
+    warning(STR2, print);
     Result = 0;
     break;
   }
@@ -1095,8 +1109,7 @@
   static Char clefcode[9] = "0123456";
   short i, j;
   Char clefs[256];
-  Char STR1[256];
-  Char STR2[256];
+  Char STR1[256], STR2[256];
   Char STR3[58];
   short FORLIM;
   Char STR5[256];
@@ -1157,14 +1170,17 @@
     putLine("Ti");
     putLine(part_line);
   }
-  if (*title_line != '\0') {
-    putLine("Tt");
-    putLine("\\mtxTitle");
-  }
   if (*composer_line != '\0') {
     putLine("Tc");
     putLine("\\mtxPoetComposer");
   }
+  if (*title_line != '\0') {
+    fprintf(outfile, "Tt");
+    if (nspace[0] != unspec)
+      fputs(toString(STR1, nspace[0]), outfile);
+    putc('\n', outfile);
+    putLine("\\mtxTitle");
+  }
   if (*pmx_line != '\0')
     putLine(pmx_line);
   doTenorClefs();

Modified: trunk/Build/source/utils/m-tx/mtx-src/preamble.pas
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/preamble.pas	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/preamble.pas	2018-01-09 03:41:12 UTC (rev 46254)
@@ -349,24 +349,31 @@
 
 procedure setRange(line: string);
   var v,p: integer;
+      vl: string;
 begin 
   line_no := orig_range_line;
   for v:=1 to nvoices do 
-  begin p:=pos(voice_label[v]+'=',line);
+  begin vl := voice_label[v];
+    p:=pos(vl+'=',line);
     if p>0 then
     begin
       if length(line)<p+6 then
-        error('At least five characters must follow "'+voice_label[v]+'="',
+        error('At least five characters must follow "'+vl+'="',
         print);
-      defineRange(v,substr(line,p+2,5));
+      defineRange(v,substr(line,p+1+length(vl),5));
     end
-    else defineRange(v,'');
+    else begin
+      warning('No range defined for voice '+vl,print);
+      defineRange(v,'');
+    end
   end;
 end;
 
+{ TODO: This procedure should test for assertions in a comment
+ or be removed }
 function isAssertion(var line: string): boolean;
 begin 
-  exit(false)
+  isAssertion := false
 end;  
 
 function doCommand(line: string): line_type;
@@ -387,7 +394,12 @@
     if last_command<>none then
     begin 
       if mustAppend(last_command) and redefined[last_command] then
-        cline[last_command]:=cline[last_command]+#10+line
+        begin
+          if length(cline[last_command])+length(line)>254 then
+          error('Total length of preamble command '+commands[last_command]+
+            ' must not exceed 255',not print);
+          cline[last_command]:=cline[last_command]+#10+line
+        end
       else 
       begin cline[last_command]:=line;
         if warn_redefine and redefined[last_command] then
@@ -487,7 +499,8 @@
   some_vocal:=false; ngroups:=0;
   style_supplied := false; 
   for i:=1 to maxvoices do setVocal(i,false);
-  for i:=1 to maxstaves do
+  for i:=1 to maxstaves do stave_size[i]:=unspec;
+  for i:=0 to maxstaves do nspace[i]:=unspec;
   begin  nspace[i]:=unspec;  stave_size[i]:=unspec;  end;
   n_pages:=1; n_systems:=1;
   readStyles; old_known_styles := known_styles;
@@ -588,7 +601,7 @@
 'F','b','6': clefno:=6;
 'C': clefno:=3;
     else
-    begin  warning('Unknown clef code - replaced by treble',print);
+    begin  warning('Unknown clef code "' + cl + '" - replaced by treble',print);
       clefno:=0;
     end;
   end
@@ -667,10 +680,14 @@
       '\\mtxSetSize{'+toString(ninstr+1-j)+'}{'+sizecode(stave_size[j])+'}\');
   if part_line <> '' then
   begin putLine('Ti'); putLine(part_line); end;
-  if title_line <> '' then
-  begin putLine('Tt'); putLine('\mtxTitle'); end;
   if composer_line <> '' then
   begin putLine('Tc'); putLine('\mtxPoetComposer'); end;
+  if title_line <> '' then
+  begin write(outfile,'Tt'); 
+    if nspace[0] <> unspec then write(outfile,toString(nspace[0]));
+    writeln(outfile);
+    putLine('\mtxTitle'); 
+  end;
   if pmx_line <> '' then putLine(pmx_line);
   doTenorClefs;
   if cline[width] <> '' then putLine(cline[width]);

Modified: trunk/Build/source/utils/m-tx/mtx-src/prepmx.c
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/prepmx.c	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/prepmx.c	2018-01-09 03:41:12 UTC (rev 46254)
@@ -66,14 +66,12 @@
 
 /** M-Tx preprocessor to PMX     Dirk Laurie */
 
-#define version         "0.62"
-#define version_date    "<08 February 2016>"
+#define version         "0.63"
+#define version_date    "<7 January 2018>"
 
-/** See file "Corrections" for updates later than those listed below
-*/
+/** See file "Corrections" for updates */
 
 /** To do next:
-   Take notice of recent improvements in musixtex, pmx and musixlyr
 {* Current bugs:
 {* Old bugs:
    Does not check PMX syntax
@@ -363,7 +361,7 @@
 	    processOther(STR2, getMusicWord(STR3, LINK->voice), LINK));
 }
 
-Local void processNote_(struct LOC_processLine *LINK)
+Local void processUsual(struct LOC_processLine *LINK)
 {
   if (hasVerseNumber(LINK->voice))
     strcat(LINK->pretex, "\\mtxVerse");
@@ -418,7 +416,7 @@
     switch (thisNote(V.voice)) {
 
     case rword:
-      if (multi_bar_rest) {
+      if (*multi_bar_rest != '\0') {
 	if (uptextOnRests())
 	  addUptext(V.voice, &V.no_uptext, V.pretex);
       } else {
@@ -431,13 +429,14 @@
 	}
 	if (uptextOnRests())
 	  addUptext(V.voice, &V.no_uptext, V.pretex);
-	if (!isPause(V.note))
-	  resetDuration(V.voice, durationCode(V.note));
+	if (!(isPause(V.note) || V.in_group))
+	      /*0.63: allow rests in xtuples*/
+		resetDuration(V.voice, durationCode(V.note));
       }
       break;
 
     case abcdefg:
-      processNote_(&V);
+      processUsual(&V);
       break;
 
     case barword:
@@ -579,17 +578,23 @@
 
 Local void processMBR(struct LOC_musicParagraph *LINK)
 {
-  short bars_of_rest;
+  short s, bars_of_rest;
   Char mbr[256];
+  short FORLIM;
   Char STR1[256];
   Char STR3[256];
 
-  strcpy(mbr, P[0]);
+  strcpy(mbr, multi_bar_rest);
   predelete(mbr, 2);
   getNum(mbr, &bars_of_rest);
   bar_no += bars_of_rest;
-  sprintf(STR3, "rm%s /", toString(STR1, bars_of_rest));
-  putLine(STR3);
+  FORLIM = nstaves;
+  for (s = 1; s <= FORLIM; s++) {
+    if (pickup > 0)
+      put(rests(STR1, pickup, meterdenom, visible), nospace);
+    sprintf(STR3, "rm%s /", toString(STR1, bars_of_rest));
+    putLine(STR3);
+  }
   putLine("");
 }
 
@@ -661,7 +666,7 @@
     putMeter(meterChange(STR2, beatsPerLine(), meterdenom, true), &V);
   if (nleft > 0)
     nbars++;
-  if (nbars == 0 && multi_bar_rest)
+  if (nbars == 0 && *multi_bar_rest != '\0')
     processMBR(&V);
   else {
     FORLIM1 = nbars;
@@ -753,7 +758,7 @@
 Static void topOfPMXfile(void)
 {
   Char STR2[24];
-  Char STR3[34];
+  Char STR3[32];
 
   putLine("---");
   sprintf(STR2, "\\def\\mtxversion{%s}", version);

Modified: trunk/Build/source/utils/m-tx/mtx-src/prepmx.pas
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/prepmx.pas	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/prepmx.pas	2018-01-09 03:41:12 UTC (rev 46254)
@@ -5,14 +5,12 @@
 { CMO: addition/change by Christian Mondrup }
 
 {* M-Tx preprocessor to PMX     Dirk Laurie }
-const version = '0.62';
-      version_date = '<08 February 2016>';
+const version = '0.63';
+      version_date = '<7 January 2018>';
 
-{* See file "Corrections" for updates later than those listed below
-}
+{* See file "Corrections" for updates }
 
 {* To do next:
-   Take notice of recent improvements in musixtex, pmx and musixlyr
 {* Current bugs:
 {* Old bugs:
    Does not check PMX syntax
@@ -163,7 +161,7 @@
  var l: integer;
      in_group: boolean;
 
-  procedure processNote;
+  procedure processUsual;
   begin  
     begin if hasVerseNumber(voice) then pretex:=pretex+'\mtxVerse';
       l := pos1(multi_group,note);  
@@ -188,7 +186,7 @@
   repeat note:=getMusicWord(voice);  if note='' then exit;
     { if debugMode then writeln(voice,' ',note); }
     case thisNote(voice) of
-  rword: begin if multi_bar_rest then
+  rword: begin if multi_bar_rest<>'' then
            begin if uptextOnRests then
                addUptext(voice, no_uptext, pretex);
            end
@@ -198,10 +196,11 @@
              if nmulti>0 then begin in_group:=true; dec(nmulti);  end;
              if uptextOnRests then
                addUptext(voice, no_uptext, pretex);
-             if not isPause(note) then resetDuration(voice,durationCode(note));
+             if not (isPause(note) or in_group) {0.63: allow rests in xtuples}
+               then resetDuration(voice,durationCode(note));
            end
          end;
-  abcdefg: processNote;
+  abcdefg: processUsual;
   barword: begin
       if voice=nvoices then
       if endOfBar(voice,bar_no) then repeat_sign := note
@@ -287,13 +286,18 @@
   end;
 
   procedure processMBR;
-  var bars_of_rest: integer;
+  var s, bars_of_rest: integer;
       mbr: string;
   begin  
-    mbr := P[1];
+    mbr := multi_bar_rest;  
     predelete(mbr,2); getNum(mbr,bars_of_rest);
     bar_no := bar_no + bars_of_rest;
-    putLine('rm' + toString(bars_of_rest) + ' /'); putLine('')
+    for s:=1 to nstaves do 
+    begin
+      if pickup>0 then put(rests(pickup,meterdenom,visible),nospace);
+      putLine('rm' + toString(bars_of_rest) + ' /')
+    end;
+    putLine('')
   end;
 
 begin
@@ -328,7 +332,7 @@
   if must_respace then respace;
   if (meternum=0) then putMeter(meterChange(beatsPerLine,meterdenom,true));
   if nleft > 0 then inc(nbars);
-  if (nbars=0) and multi_bar_rest then 
+  if (nbars=0) and (multi_bar_rest<>'') then 
     processMBR
   else for bar_of_line:=1 to nbars do
     processOneBar;

Modified: trunk/Build/source/utils/m-tx/mtx-src/status.c
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/status.c	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/status.c	2018-01-09 03:41:12 UTC (rev 46254)
@@ -72,6 +72,7 @@
 void checkRange(short voice, Char *note_)
 {
   Char note[256];
+  Char orig_note[256];
   Char STR1[4];
   Char STR3[256];
 
@@ -78,6 +79,7 @@
   strcpy(note, note_);
   if (*voice_range[voice-1] == '\0')
     return;
+  strcpy(orig_note, note);
   if (strlen(note) > 2) {   /* assume usual PMX form with octave */
     sprintf(STR1, "%c%c", note[2], note[0]);
     strcpy(note, STR1);
@@ -89,7 +91,7 @@
   if (strcmp(note, range_low[voice-1]) < 0 ||
       strcmp(note, range_high[voice-1]) > 0) {
     sprintf(STR3, "%s is out of range, specified as %s",
-	    note, voice_range[voice-1]);
+	    orig_note, voice_range[voice-1]);
     error3(voice, STR3);
   }
 }
@@ -140,7 +142,7 @@
     *lab = WITH->chord_tie_label[n-1];
   (*lab)++;
   sprintf(WITH->chord_tie_label + strlen(WITH->chord_tie_label), "%c", *lab);
-/* p2c: status.pas, line 113:
+/* p2c: status.pas, line 115:
  * Note: Possible string truncation in assignment [145] */
   n++;
   WITH->chord_tie_pitch[n-1] = WITH->chord_pitch;

Modified: trunk/Build/source/utils/m-tx/mtx-src/status.pas
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/status.pas	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/status.pas	2018-01-09 03:41:12 UTC (rev 46254)
@@ -56,9 +56,9 @@
 '7c','7d','7e','7f','7g','7a','7b');
 
 type
-  line_status = record
-    pitch, chord_pitch, octave_adjust, beam_level, 
-      slur_level, after_slur: integer;
+  line_status = 
+  record
+    pitch, chord_pitch, octave_adjust, beam_level, slur_level, after_slur: integer;
     octave, lastnote, chord_lastnote, duration, slurID, tieID: char;
     beamnext, beamed, slurnext, slurred, no_beam_melisma: boolean;
     no_slur_melisma: array[1..12] of boolean; 
@@ -74,14 +74,16 @@
 meaningful, a and b (which come after g) are translated to h and i. }
 
 procedure checkRange(voice: integer; note: string);
+  var orig_note: string;
 begin 
   if voice_range[voice]='' then exit;
+  orig_note := note;
   if length(note)>2 { assume usual PMX form with octave } then 
     note := note[3]+note[1];
   if note[2]='a' then note[2]:='h'; 
   if note[2]='b' then note[2]:='i';
-  if (note<range_low[voice]) or (note>range_high[voice]) then
-    error3(voice,note+' is out of range, specified as '+voice_range[voice])
+  if (note<range_low[voice]) or (note>range_high[voice]) then error3(voice,
+   orig_note+' is out of range, specified as '+voice_range[voice])
 end;
 
 procedure defineRange(voice: integer; range: string);

Modified: trunk/Build/source/utils/m-tx/mtx-src/strings.h
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/strings.h	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/strings.h	2018-01-09 03:41:12 UTC (rev 46254)
@@ -12,20 +12,20 @@
 /* These should be recoded in C instead of using the p2c code. */
 
 
-extern Void scan1 PP((Char *s, int p, short *n));
+extern void scan1(Char *s, short p, short *n);
 /* Read an integer at position p of s */
-extern boolean startsWith PP((Char *s1, Char *s2));
-extern short pos1 PP((int c, Char *s));
-extern short posNot PP((int c, Char *s));
-extern Void insertChar PP((int c, Char *s, int p));
-extern Char *substr_ PP((Char *Result, Char *s, int start, int count));
-extern Void getNum PP((Char *line, short *k));
-extern Void getTwoNums PP((Char *line, short *k1, short *k2));
-extern Void toUpper PP((Char *s));
-extern Void delete1 PP((Char *s, int p));
-extern Void predelete PP((Char *s, int l));
-extern Void shorten PP((Char *s, int new_length));
-extern short nextWordBound PP((Char *s, int trigger, int p));
+extern boolean startsWith(Char *s1, Char *s2);
+extern short pos1(Char c, Char *s);
+extern short posNot(Char c, Char *s);
+extern void insertChar(Char c, Char *s, short p);
+extern Char *substr_(Char *Result, Char *s, short start, short count);
+extern void getNum(Char *line, short *k);
+extern void getTwoNums(Char *line, short *k1, short *k2);
+extern void toUpper(Char *s);
+extern void delete1(Char *s, short p);
+extern void predelete(Char *s, short l);
+extern void shorten(Char *s, short new_length);
+extern short nextWordBound(Char *s, Char trigger, short p);
 /* find end of first word starting with trigger after s[p] */
 
 

Modified: trunk/Build/source/utils/m-tx/mtx-src/version.ac
===================================================================
--- trunk/Build/source/utils/m-tx/mtx-src/version.ac	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/mtx-src/version.ac	2018-01-09 03:41:12 UTC (rev 46254)
@@ -8,4 +8,4 @@
 dnl --------------------------------------------------------
 dnl
 dnl  m4-include this file to define the current mtx version
-m4_define([mtx_version], [0.62])
+m4_define([mtx_version], [0.63])

Modified: trunk/Build/source/utils/m-tx/tests/mozart.pmx
===================================================================
--- trunk/Build/source/utils/m-tx/tests/mozart.pmx	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/tests/mozart.pmx	2018-01-09 03:41:12 UTC (rev 46254)
@@ -1,6 +1,6 @@
 ---
-\def\mtxversion{0.62}
-\def\mtxdate{<08 February 2016>}
+\def\mtxversion{0.63}
+\def\mtxdate{<7 January 2018>}
 \input mtx
 \mtxComposerLine{}{W. A. Mozart (1756--1791)}
 \mtxTitleLine{Riff in C}
@@ -9,10 +9,10 @@
 
 60
 ./
+Tc
+\mtxPoetComposer
 Tt
 \mtxTitle
-Tc
-\mtxPoetComposer
 w190m
 % Paragraph 2 line 5 bar 1
  w120m

Modified: trunk/Build/source/utils/m-tx/version.ac
===================================================================
--- trunk/Build/source/utils/m-tx/version.ac	2018-01-09 01:18:02 UTC (rev 46253)
+++ trunk/Build/source/utils/m-tx/version.ac	2018-01-09 03:41:12 UTC (rev 46254)
@@ -8,4 +8,4 @@
 dnl --------------------------------------------------------
 dnl
 dnl  m4-include this file to define the current mtx version
-m4_define([mtx_version], [0.62])
+m4_define([mtx_version], [0.63])



More information about the tex-live-commits mailing list