Skip to content

Commit e64a07c

Browse files
committed
Merge branch 'master' into uploader
2 parents 9968afa + 63dd4d5 commit e64a07c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+139
-89
lines changed

.gregorio-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
5.1.0
1+
5.1.1
22
2018
33

44
*** Do not modify this file. ***

CHANGELOG.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
All notable changes to this project will be documented in this file.
33
As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/). It follows [some conventions](http://keepachangelog.com/).
44

5-
## [Unreleased][CTAN]
5+
## [5.1.1] - 2018-03-25
6+
### Fixed
7+
- Various issues with the documentation.
68

79
## [5.1.0] - 2018-03-11
810
### Added
@@ -23,7 +25,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
2325

2426
## [5.0.1] - 2017-04-16
2527
### Fixed
26-
- Fixed a bug in the TeXLive compatibility code for Windows users. Thanks to Akira Kakuto for the catch.
28+
- Fixed a bug in the TeX Live compatibility code for Windows users. Thanks to Akira Kakuto for the catch.
2729

2830
## [5.0.0] - 2017-04-15
2931
### Fixed
@@ -81,7 +83,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
8183

8284
## [4.2.1][Unreleased]
8385
### Fixed
84-
- Debian build scripts now use directories compatible with the TeXLive 2016 packaging of Gregorio (see [#1241](https://github.com/gregorio-project/gregorio/issues/1241)).
86+
- Debian build scripts now use directories compatible with the TeX Live 2016 packaging of Gregorio (see [#1241](https://github.com/gregorio-project/gregorio/issues/1241)).
8587

8688

8789
## [4.2.0] - 2016-09-23
@@ -175,7 +177,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
175177
## [4.1.2] - 2016-05-08
176178
### Changed
177179
- The parmesan font is now called granapadano. If you were using `\gresetgregoriofont{parmesan}`, you should now use `\gresetgregoriofont{granapadano}`. See [#1075](https://github.com/gregorio-project/gregorio/issues/1075).
178-
- GregorioTeX is now compatible with TeXLive 2016
180+
- GregorioTeX is now compatible with TeX Live 2016
179181

180182

181183
## [4.1.1] - 2016-03-10
@@ -216,7 +218,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
216218
- Command line output (help message, version message, error handling) has been improved, see [#891](https://github.com/gregorio-project/gregorio/issues/891)
217219
- Windows installer no longer copies the executable into the TeX bin directory. Instead it has the option to add its own bin directory to PATH.
218220
- `system-setup.sh` has become `system-setup.command` so that it is double click executable on Mac.
219-
- Post install options for Windows installer have been simplified. There are no longer separate options for MiKTeX and TeXLive. Instead the installer will determine which you have itself and act accordingly.
221+
- Post install options for Windows installer have been simplified. There are no longer separate options for MiKTeX and TeX Live. Instead the installer will determine which you have itself and act accordingly.
220222
- Windows installer will check more locations for old installations to remove.
221223
- Height of the porrectus have been altered (first note moved up, second also moved up when second ambitus is more than one) so that they are more coherent with the punctum height. The porrectus stroke drawings have also been slightly altered to be slightly thinner and sharper around the bottom note (see [#858](https://github.com/gregorio-project/gregorio/issues/858)).
222224
- When a syllable is preceeded by a punctum mora, gregorio now ignores the punctum mora in the spacing of the syllables by default, and also adds a custom space (defaulting to 0). You can change this behavior with `\gresetshiftaftermora{}`, see GregorioRef for its arguments. To balance the output, space before a punctum mora has been made slightly thinner, more in line with old Solesmes books. (For the change requests, see [#795](https://github.com/gregorio-project/gregorio/issues/795) and [#871](https://github.com/gregorio-project/gregorio/issues/871)).
@@ -363,7 +365,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
363365
- The spacing of manual in-line custos (`(f+)` in gabc) is now consistent with the spacing of automatic in-line custos (`(z0)` in gabc). See [#642](https://github.com/gregorio-project/gregorio/issues/642).
364366
- Signs on the climacus praepunctis deminutus `(ghgf~)` neume are now positioned correctly. See [#650](https://github.com/gregorio-project/gregorio/issues/650)
365367
- Mac installer has been made SIP compliant (i.e. it now works on El Capitan).
366-
- Mac installer can now detect installations of TeXLive done with MacPorts or the command-line tool provided by TUG.
368+
- Mac installer can now detect installations of TeX Live done with MacPorts or the command-line tool provided by TUG.
367369
- Windows executable has file version information attached correctly so that the installer can properly recognize and replace the binary during an upgrade process.
368370
- Spacing was too large when alteration begins a syllable, see [#663](https://github.com/gregorio-project/gregorio/issues/663).
369371

@@ -424,7 +426,7 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
424426
- `\gredefsymbol` for (re-)defining an arbitrary non-score glyph that scales with the text
425427
- `\gredefsizedsymbol` for (re-)defining an arbitary non-score glyph that requires a point-size to be specified.
426428
See GregorioRef.pdf for full details.
427-
- Added `--with-kpathsea` option to configure script, to check input and output file against `openout_any` and `openin_any` settings of texmf.cnf (TeXLive only). Necessary to be included in `shell_escape_commands` in TeXLive.
429+
- Added `--with-kpathsea` option to configure script, to check input and output file against `openout_any` and `openin_any` settings of texmf.cnf (TeX Live only). Necessary to be included in `shell_escape_commands` in TeX Live.
428430
- Support for `lualatex -recorder`. Autocompiled gabc and gtex files will now be properly recorded so that programs like `latexmk -recorder` can detect the need to rebuild the PDF when a gabc file changes.
429431
- A vertical episema may now be forced to appear above or below a note. In gabc, use `'0` for the vertical episema to appear below and `'1` for the vertical episema to appear above (see [#385](https://github.com/gregorio-project/gregorio/issues/385)).
430432
- The first word, first syllable, and first letter of the first syllable that is *not* interpreted as the initial of the score can now be styled from TeX. Use `\grechangestyle` to modify the `firstsyllableinitial`, `firstsyllable`, and `firstword` as desired.

Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ EXTRA_DIST = README.md CHANGELOG.md CONTRIBUTING.md CONTRIBUTORS.md \
2323
UPGRADE.md COPYING.md .gregorio-version VersionManager.py \
2424
build.sh install.sh install-gtex.sh
2525

26+
MAINTAINERCLEANFILES = gregoriotex.ctan.zip
27+
2628
export TOP_LEVEL_MAKE = true
2729

2830
gregorio:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ You can also try it online [here](http://dev.illuminarepublications.com/gregorio
1414

1515
## Installation
1616

17-
You need a recent and working [TeXLive](https://www.tug.org/texlive/), on top of which you just need to install latest [Gregorio release](https://github.com/gregorio-project/gregorio/releases). See [the website](http://gregorio-project.github.io/installation.html) for more details.
17+
You need a recent and working [TeX Live](https://www.tug.org/texlive/), on top of which you just need to install latest [Gregorio release](https://github.com/gregorio-project/gregorio/releases). See [the website](http://gregorio-project.github.io/installation.html) for more details.
1818

19-
## Building for inclusion in TeXLive
19+
## Building for inclusion in TeX Live
2020

21-
When building gregorio for inclusion in TeXLive, the gregorio executable must not have the version number suffix that is used for other builds. To make this happen, run `configure` with the `--disable-version-in-exe` option, and the generated Makefile will create a gregorio executable without the version number suffix (i.e., the executable will simply be named `gregorio`).
21+
When building gregorio for inclusion in TeX Live, the gregorio executable must not have the version number suffix that is used for other builds. To make this happen, run `configure` with the `--disable-version-in-exe` option, and the generated Makefile will create a gregorio executable without the version number suffix (i.e., the executable will simply be named `gregorio`).
2222

2323
## Documentation
2424

UPGRADE.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Upgrade Manual
22

3-
This file contains instructions to upgrade to a new release of Gregorio.
3+
This file contains instructions to upgrade to a new release of Gregorio. These instructions are cumulative; meaning that you should apply the instructions from all versions between the one you are upgrading from and the current version.
4+
5+
## 5.1
6+
7+
No additional steps are needed to upgrade from 5.0 to 5.1.
48

59
## 5.0
610

@@ -18,7 +22,7 @@ To install the new versions of Gregorio (the font) and Grana Padano, unzip `supp
1822
* `system`: the appropriate font folder in `$TEXMFLOCAL`
1923
* `user`: the appropriate font folder in `$TEXMFHOME`
2024
* `<dir>`: the name of an alternate texmf root directory you want to use
21-
25+
2226
Additionally, if you are building the fonts yourself from a git clone, `install-gtex.sh` and `install_supp_fonts.lua` will install all the fonts you have built, not just the ones they are normally distributed with.
2327

2428
**Note:** All the above methods assume you only need to access the fonts from within a TeX document (and thus are designed to put them into the correct folder in a texmf tree). If you want to use the fonts in other programs, then you will need to consult the documentation appropriate to your platform and/or the program and manually move, copy, or link the fonts to the necessary location.
@@ -27,7 +31,7 @@ Additionally, if you are building the fonts yourself from a git clone, `install-
2731

2832
As of version 5.0, ledger lines are extended through notes on either side of a ledger line that crosses a stem, as long as the notes are within the same element.
2933

30-
The algorithm for this is simple so it can be predictable, and it cannot take into account spacing adjustments made it TeX. This means it may not produce the exactly desired results. In order to get the results you want, you can override the automatic behavior in gabc:
34+
The algorithm for this is simple so it can be predictable, and it cannot take into account spacing adjustments made in TeX. This means it may not produce the exactly desired results. In order to get the results you want, you can override the automatic behavior in gabc:
3135

3236
- `[oll:1]` will force an over-the-staff ledger line on a note.
3337
- `[oll:0]` will suppress an over-the-staff ledger line on a note.
@@ -113,7 +117,7 @@ Prior to version 4.2, Gregorio inconsistenly indicated style errors. Now, error
113117

114118
### Changes to texmf tree
115119

116-
To better comply with the TeXLive directory structure, the location of `gregoriotex.sty` and `gregoriosyms.sty` have changed.
120+
To better comply with the TeX Live directory structure, the location of `gregoriotex.sty` and `gregoriosyms.sty` have changed.
117121

118122
*Linux and other users installing from source:* `install-gtex.sh` should remove the old versions before installing the new one.
119123

@@ -136,7 +140,7 @@ High notes are now taken into account in vertical spacings. If you would like to
136140

137141
### Last line of score behavior
138142

139-
`\grelooseness` is now `-1` by default. This should prevent orphaned syllable at end of score. If you prefer the old behavior, use `\def\grelooseness{\looseness}` befor including your scores.
143+
`\grelooseness` is now `-1` by default. This should prevent orphaned syllable at end of score. If you prefer the old behavior, use `\def\grelooseness{\looseness}` before including your scores.
140144

141145
## 4.1
142146

VersionManager.py

Lines changed: 55 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"Makefile.am",
100100
"install.sh",
101101
"debian/copyright",
102-
"debian/copyright",
102+
"debian/manpage.xml",
103103
"doc/Command_Index_User.tex",
104104
"doc/Makefile.am",
105105
"doc/GregorioRef.tex",
@@ -319,20 +319,48 @@ def replace_version(version_obj):
319319
result.append(line)
320320
with open(myfile, 'w') as outfile:
321321
outfile.write(''.join(result))
322+
sys.exit(0)
323+
324+
def update_changelog(newver,upgradetype):
325+
today = date.today()
322326
with open('CHANGELOG.md', 'r') as infile:
323327
result = []
328+
develop = False
324329
for line in infile:
325-
if '[Unreleased][unreleased]' in line:
326-
result.append(line)
327-
result.append('\n')
328-
result.append('\n')
329-
newline = '## [' + newver + '] - ' + today.strftime("%Y-%m-%d") + '\n'
330-
result.append(newline)
330+
if upgradetype == "patch":
331+
if '[Unreleased][develop]' in line:
332+
print("Found an unreleased develop section.")
333+
print("Patch releases should be based on ctan branch.")
334+
sys.exit(1)
335+
if '[Unreleased][CTAN]' in line:
336+
result.append(line)
337+
result.append('\n')
338+
result.append('\n')
339+
newline = '## [' + newver + '] - ' + today.strftime("%Y-%m-%d") + '\n'
340+
result.append(newline)
341+
else:
342+
result.append(line)
331343
else:
332-
result.append(line)
333-
with open('CHANGELOG.md','w') as outfile:
344+
if '[Unreleased][develop]' in line:
345+
develop = True
346+
result.append(line)
347+
result.append('\n')
348+
result.append('\n')
349+
result.append('## [Unreleased][CTAN]\n')
350+
result.append('\n')
351+
result.append('\n')
352+
newline = '## [' + newver + '] - ' + today.strftime("%Y-%m-%d") + '\n'
353+
result.append(newline)
354+
elif '[Unreleased][CTAN]' in line and develop:
355+
continue
356+
else:
357+
result.append(line)
358+
if not develop and upgradetype != "patch":
359+
print("I didn't find a unreleased develop section.")
360+
print("Non-patch releases should be based on develop branch.")
361+
sys.exit(1)
362+
with open('CHANGELOG.md', 'w') as outfile:
334363
outfile.write(''.join(result))
335-
sys.exit(0)
336364

337365
def confirm_replace(oldver, newver):
338366
"Query the user to confirm action"
@@ -359,6 +387,7 @@ def release_candidate(version_obj, not_interactive):
359387
newversion = re.sub(r'-.*', '-rc1', oldversion)
360388
if (not not_interactive):
361389
confirm_replace(oldversion, newversion)
390+
update_changelog(newversion,"releasecandidate")
362391
version_obj.update_version(newversion)
363392
replace_version(version_obj)
364393

@@ -374,6 +403,7 @@ def beta(version_obj, not_interactive):
374403
sys.exit(1)
375404
if (not not_interactive):
376405
confirm_replace(oldversion, newversion)
406+
update_changelog(newversion,"beta")
377407
version_obj.update_version(newversion)
378408
replace_version(version_obj)
379409

@@ -384,6 +414,7 @@ def bump_major(version_obj, not_interactive):
384414
newversion = str(int(nums.group(1)) +1) + '.0.0-beta1'
385415
if (not not_interactive):
386416
confirm_replace(oldversion, newversion)
417+
update_changelog(newversion,"major")
387418
version_obj.update_version(newversion)
388419
replace_version(version_obj)
389420

@@ -394,6 +425,7 @@ def bump_minor(version_obj, not_interactive):
394425
newversion = nums.group(1) + str(int(nums.group(2)) +1) + '.0-beta1'
395426
if (not not_interactive):
396427
confirm_replace(oldversion, newversion)
428+
update_changelog(newversion,"minor")
397429
version_obj.update_version(newversion)
398430
replace_version(version_obj)
399431

@@ -404,6 +436,7 @@ def bump_patch(version_obj, not_interactive):
404436
newversion = nums.group(1) + str(int(nums.group(2)) +1)
405437
if (not not_interactive):
406438
confirm_replace(oldversion, newversion)
439+
update_changelog(newversion,"patch")
407440
version_obj.update_version(newversion)
408441
replace_version(version_obj)
409442

@@ -416,6 +449,7 @@ def set_manual_version(version_obj, user_version, not_interactive):
416449
newversion = user_version
417450
if (not not_interactive):
418451
confirm_replace(oldversion, newversion)
452+
update_changelog(newversion,"manual")
419453
version_obj.update_version(newversion)
420454
replace_version(version_obj)
421455

@@ -425,26 +459,33 @@ def do_release(version_obj, not_interactive):
425459
newversion = re.sub(r'([\d.]+)-?.*', r'\1', oldversion)
426460
if (not not_interactive):
427461
confirm_replace(oldversion, newversion)
462+
update_changelog(newversion,"release")
428463
version_obj.update_version(newversion)
429464
replace_version(version_obj)
430465

431466
def copyright_year():
432467
"Check and update copyright year as needed"
433468
fileyear = linecache.getline(VERSION_FILE, 2).strip()
469+
def year_range(matchobj):
470+
"Check and add a year range to the copyright"
471+
if matchobj.group(1) is not None:
472+
return re.sub(fileyear, CURRENTYEAR, matchobj.group(0))
473+
return re.sub(fileyear, fileyear+'-'+CURRENTYEAR, matchobj.group(0))
474+
434475
if int(fileyear) != int(CURRENTYEAR):
435476
print('Updating copyright year.')
436477
for myfile in COPYRIGHT_FILES:
437478
result = []
438479
with open(myfile, 'r') as infile:
439480
for line in infile:
440481
if re.search(r'[C|c]opyright.*Gregorio Project', line):
441-
result.append(re.sub(fileyear, CURRENTYEAR, line))
482+
result.append(re.sub(r'(\d{4}-)?(\d{4})', year_range, line))
442483
elif re.search(r'[C|c]opyright.*Elie Roux', line):
443-
result.append(re.sub(fileyear, CURRENTYEAR, line))
484+
result.append(re.sub(r'(\d{4}-)?(\d{4})', year_range, line))
444485
elif re.search(r'[C|c]opyright.*Richard Chonak', line):
445-
result.append(re.sub(fileyear, CURRENTYEAR, line))
486+
result.append(re.sub(r'(\d{4}-)?(\d{4})', year_range, line))
446487
elif re.search(r'[C|c]opyright.*Jakub Jelinek', line):
447-
result.append(re.sub(fileyear, CURRENTYEAR, line))
488+
result.append(re.sub(r'(\d{4}-)?(\d{4})', year_range, line))
448489
else:
449490
result.append(line)
450491
with open(myfile, 'w') as outfile:

configure.ac

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ dnl
1616
dnl You should have received a copy of the GNU General Public License
1717
dnl along with Gregorio. If not, see <http://www.gnu.org/licenses/>.
1818

19-
AC_INIT([gregorio],[5.1.0],[https://github.com/gregorio-project/gregorio/issues],[gregorio],[http://gregorio-project.github.io/])
20-
FILENAME_VERSION="5_1_0"
19+
AC_INIT([gregorio],[5.1.1],[https://github.com/gregorio-project/gregorio/issues],[gregorio],[http://gregorio-project.github.io/])
20+
FILENAME_VERSION="5_1_1"
2121
AC_SUBST(FILENAME_VERSION)
2222
AC_DEFINE_UNQUOTED(FILENAME_VERSION, "$FILENAME_VERSION", [version suitable for file names])
2323
MK=""

contrib/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@
1717

1818
SUBDIRS = TeXShop
1919

20-
EXTRA_DIST = gprocess gabc.xml gabc.lang gabc.vim 900_gregorio.xml gregorio.png gabc-syntax.plist README.md system-setup.command system-setup.bat config-texworks.command checkSyllabation.py
20+
EXTRA_DIST = gprocess gabc.xml gabc.lang gabc.vim 900_gregorio.xml gregorio.png gabc-syntax.plist contrib_README.md system-setup.command system-setup.bat config-texworks.command checkSyllabation.py

contrib/README.md renamed to contrib/contrib_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Third party scripts
22

3-
This repository contains various small scripts or modules for third-party softwares to use Gregorio.
3+
This folder contains various small scripts or modules for third-party softwares to use Gregorio.
44

55
## Scribus
66

debian/README.Debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ README file for Gregorio under DEBIAN GNU/Linux systems
33
After the installation of gregorio, if you want to benefit from the macros
44
compiling directly gabc fils in GregorioTeX (like \includescore), you
55
have to add gregorio to the list of programs allowed to run from TeX
6-
by TeXLive. To do so, you have to modify /etc/texmf/texmf.cnf and add
6+
by TeX Live. To do so, you have to modify /etc/texmf/texmf.cnf and add
77
gregorio to the list 'shell_escape_commands'.
88

0 commit comments

Comments
 (0)