Skip to content

Commit

Permalink
Merge pull request #512 from henryso/fix-511
Browse files Browse the repository at this point in the history
Added case to handle horizontal episema over salicus.
  • Loading branch information
rpspringuel committed Jul 5, 2015
2 parents 6f83e9f + 23d136b commit d9d88b5
Show file tree
Hide file tree
Showing 17 changed files with 79 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gregorio-version
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
3.0.2
3.0.3

*** Do not modify this file. ***
Use VersionManager.py to change the version.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
All notable changes to this project will be documented in this file.
As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/). It follows [some conventions](http://keepachangelog.com/).

## [3.0.3] - 2015-07-01
### Fixed
- Horizontal episemae on salicus figures now render correctly (See [#511](https://github.com/gregorio-project/gregorio/issues/511)).

## [3.0.2] - 2015-06-01
### Fixed
- Prevented the default small font of the above lines text from leaking into the lyrics.
Expand All @@ -10,7 +14,6 @@ As of v3.0.0 this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
- Windows Installer is now compatible with MiKTeX. See [#355](https://github.com/gregorio-project/gregorio/issues/355).


## [3.0.0] - 2015-05-14
### Changed
- [New website](http://gregorio-project.github.io) containing instructions only for new versions of Gregorio starting with this release, in English only.
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

AC_INIT([gregorio],[3.0.2],[[email protected]])
FILENAME_VERSION="3_0_2"
AC_INIT([gregorio],[3.0.3],[[email protected]])
FILENAME_VERSION="3_0_3"
AC_SUBST(FILENAME_VERSION)
AC_PREREQ(2.59)
AC_CONFIG_SRCDIR([src/gregorio-utils.c])
Expand Down
2 changes: 1 addition & 1 deletion doc/GregorioRef.tex
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

\vspace{1cm}

\large Version \textbf{3.0.2}, 01/06/15 %% PARSE_VERSION_DATE
\large Version \textbf{3.0.3}, 01/07/15 %% PARSE_VERSION_DATE

\vspace{1cm}

Expand Down
2 changes: 1 addition & 1 deletion macosx/Gregorio.pkgproj
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@
<key>OVERWRITE_PERMISSIONS</key>
<false/>
<key>VERSION</key>
<string>3.0.2</string><!--GREGORIO_VERSION-->
<string>3.0.3</string><!--GREGORIO_VERSION-->
</dict>
<key>UUID</key>
<string>74692645-8112-42EB-8FFC-2CBE2CEDE9FB</string>
Expand Down
36 changes: 36 additions & 0 deletions plugins/gregoriotex/gregoriotex-write.c
Original file line number Diff line number Diff line change
Expand Up @@ -3371,6 +3371,42 @@ gregoriotex_find_sign_number (gregorio_glyph *current_glyph,
break;
}
break;
case T_SALICUS:
case T_SALICUS_LONGQUEUE:
switch (i)
{
case 1:
if (current_note->next && current_note->next->next
&& current_note->h_episemus_top_note < current_note->next->next->pitch)
{
current_note->h_episemus_top_note = current_note->next->next->pitch;
}
*number = 6;
normal_height_bottom ();
break;
case 2:
if (current_note->next
&& current_note->h_episemus_top_note < current_note->next->pitch)
{
current_note->h_episemus_top_note = current_note->next->pitch;
}
if (current_note->next
&& current_note->next->pitch - current_note->pitch == 1)
{
*number = 29;
}
else
{
*number = 28;
}
normal_height ();
break;
default:
*number = 0;
normal_height ();
break;
}
break;
case T_ANCUS:
case T_ANCUS_LONGQUEUE:
switch (i)
Expand Down
2 changes: 1 addition & 1 deletion plugins/gregoriotex/gregoriotex.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#ifndef GREGORIOTEX_H
#define GREGORIOTEX_H

#define GREGORIO_VERSION "3.0.2"
#define GREGORIO_VERSION "3.0.3"

#define NO_FUSION 0
#define FUSION 1
Expand Down
4 changes: 3 additions & 1 deletion tex/gregoriotex-chars.tex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
\gre@declarefileversion{gregoriotex-chars.tex}{3.0.2}% GREGORIO_VERSION
\gre@declarefileversion{gregoriotex-chars.tex}{3.0.3}% GREGORIO_VERSION

\def\gregoriocharoffset#1{\the\numexpr 161 + #1 \relax}
\def\gregoriostylecharoffset#1{\the\numexpr 66 + #1 \relax}
Expand Down Expand Up @@ -39,6 +39,8 @@
\xdef\gre@char@flexusdeminutus{\gregoriocharoffset{5250}}%
\xdef\gre@char@flexusaltone{\gregoriocharoffset{5633}}%
\xdef\gre@char@flexusalt{\gregoriocharoffset{5634}}%
\xdef\gre@char@oriscusflexus{\gregoriocharoffset{6659}}%
\xdef\gre@char@oriscusflexusone{\gregoriocharoffset{6657}}%
\xdef\gre@char@torculus{\gregoriocharoffset{15371}}%
\xdef\gre@char@torculusdeminutus{\gregoriocharoffset{15884}}%
\xdef\gre@char@porrectus@one{\gregoriocharoffset{11270}}%
Expand Down
19 changes: 18 additions & 1 deletion tex/gregoriotex-signs.tex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

% this file contains definitions of signs (bar, episemus, punctum, alterations)

\gre@declarefileversion{gregoriotex-signs.tex}{3.0.2}% GREGORIO_VERSION
\gre@declarefileversion{gregoriotex-signs.tex}{3.0.3}% GREGORIO_VERSION

\def\greusestylecommon{%
\ifnum\greusestylefont=0\relax %
Expand Down Expand Up @@ -747,6 +747,8 @@
%% 25: the last note, if it is a bar
%% 26: the last note, if it is a virgula
%% 27: the last note, if it is a divisio finalis
%% 28: the middle note of a salicus with second ambitus of at least two
%% 29: idem with second ambitus of one

% a function to typeset a vertical episemus or a rare accent (like accentus, circulus, etc.). The firts argument is the letter of the height of the episemus (not the height of the note it corresponds to. This function must be called after a call to \greglyph. The second argument is the type of glyph it was, more precisely the kind of space there is between the end (or in special cases the beginning) of the glyph and the place where we will typeset the episemus. The values are described in the commentary just above.
% the third argument is the glyph number in the font
Expand Down Expand Up @@ -868,6 +870,12 @@
\or%
%case 27
\grevepisemusorrareaux{0}{\gredivisiofinalissymbol}{1}{0}{#3}{#4}{#5}%
\or%
%case 28
\grevepisemusorrareaux{\char \gre@char@oriscusflexus}{\char \gre@char@oriscus}{2}{0}{#3}{#4}{#5}%
\or%
%case 29
\grevepisemusorrareaux{\char \gre@char@oriscusflexusone}{\char \gre@char@oriscus}{2}{0}{#3}{#4}{#5}%
\fi%
\relax%
}%
Expand Down Expand Up @@ -1189,6 +1197,15 @@
\or%
%case 24
\grehepisorlineaux{\char \gre@char@pesinitauctusone}{\gre@char@he@punctum}{1}{#4}%the episemus is not quite long enough so I assumed a different width for now...
\or% case 25
\or% case 26
\or% case 27
\or%
%case 28
\grehepisorlineaux{\char \gre@char@oriscusflexus}{\gre@char@he@oriscus}{2}{#4}%
\or%
%case 29
\grehepisorlineaux{\char \gre@char@oriscusflexusone}{\gre@char@he@oriscus}{2}{#4}%
\fi%
\relax%
}%
Expand Down
2 changes: 1 addition & 1 deletion tex/gregoriotex-spaces.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

% this file contains definitions of spaces

\gre@declarefileversion{gregoriotex-spaces.tex}{3.0.2}% GREGORIO_VERSION
\gre@declarefileversion{gregoriotex-spaces.tex}{3.0.3}% GREGORIO_VERSION

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% macros for tuning penalties
Expand Down
2 changes: 1 addition & 1 deletion tex/gregoriotex-syllable.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

% this file contains definitions of the glyphs and the syllables

\gre@declarefileversion{gregoriotex-syllable.tex}{3.0.2}% GREGORIO_VERSION
\gre@declarefileversion{gregoriotex-syllable.tex}{3.0.3}% GREGORIO_VERSION

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% macros for the typesetting of the different glyphs
Expand Down
2 changes: 1 addition & 1 deletion tex/gregoriotex-symbols.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

% this file contains definitions of the symbols

\gre@declarefileversion{gregoriotex-symbols.tex}{3.0.2}% GREGORIO_VERSION
\gre@declarefileversion{gregoriotex-symbols.tex}{3.0.3}% GREGORIO_VERSION

% a temp counter
\newcount\gretempfactor %
Expand Down
6 changes: 3 additions & 3 deletions tex/gregoriotex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ local hpack, traverse_id, has_attribute, count, remove, insert_after, copy = nod
gregoriotex = gregoriotex or {}
local gregoriotex = gregoriotex

local internalversion = '3.0.2' -- GREGORIO_VERSION (comment used by VersionManager.py)
local internalversion = '3.0.3' -- GREGORIO_VERSION (comment used by VersionManager.py)

local err, warn, info, log = luatexbase.provides_module({
name = "gregoriotex",
version = '3.0.2', -- GREGORIO_VERSION
version = '3.0.3', -- GREGORIO_VERSION
greinternalversion = internalversion,
date = "2015/06/01", -- GREGORIO_DATE_LTX
date = "2015/07/01", -- GREGORIO_DATE_LTX
description = "GregorioTeX module.",
author = "The Gregorio Project (see CONTRIBUTORS.md)",
copyright = "2008-2015 - The Gregorio Project",
Expand Down
2 changes: 1 addition & 1 deletion tex/gregoriotex.sty
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{gregoriotex}%
[2015/06/01 v3.0.2 GregorioTeX system.]% PARSE_VERSION_DATE_LTX
[2015/07/01 v3.0.3 GregorioTeX system.]% PARSE_VERSION_DATE_LTX
\RequirePackage{xcolor}

\input gregoriotex.tex
Expand Down
2 changes: 1 addition & 1 deletion tex/gregoriotex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

% The version of gregorio. All gregoriotex*.tex files must have the same.
% All gtex files must also have the same version.
\xdef\gre@gregorioversion{3.0.2}% GREGORIO_VERSION - VersionManager.py
\xdef\gre@gregorioversion{3.0.3}% GREGORIO_VERSION - VersionManager.py

% first some macros to allow checks for version:
% Tests that all gregoriotex files are of the same version.
Expand Down
4 changes: 2 additions & 2 deletions windows/gregorio-resources.rc
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "Gregorio project"
VALUE "FileDescription", "Gregorio"
VALUE "FileVersion", "3.0.2"
VALUE "FileVersion", "3.0.3"
VALUE "InternalName", "gregorio"
VALUE "LegalCopyright", "See COPYING in the installation directory."
VALUE "OriginalFilename", "gregorio.exe"
VALUE "ProductName", "Gregorio"
VALUE "ProductVersion", "3.0.2"
VALUE "ProductVersion", "3.0.3"
END
END

Expand Down
4 changes: 2 additions & 2 deletions windows/gregorio.iss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Setup]
AppName=gregorio
AppVersion=3.0.2
AppVersion=3.0.3
DefaultDirName={pf}\gregorio
DefaultGroupName=gregorio
SetupIconFile=gregorio.ico
Expand Down Expand Up @@ -53,7 +53,7 @@ Source: "../README.md"; DestDir: "{app}";
Source: "../CONTRIBUTORS.md"; DestDir: "{app}";
Source: "../UPGRADE.md"; DestDir: "{app}";
; PARSE_VERSION_FILE_NEXTLINE
Source: "../doc/GregorioRef-3_0_2.pdf"; DestDir: "{app}";
Source: "../doc/GregorioRef-3_0_3.pdf"; DestDir: "{app}";
Source: "../COPYING.md"; DestDir: "{app}";
Source: "../contrib/900_gregorio.xml"; DestDir: "{app}\contrib";
Source: "../contrib/system-setup.bat"; DestDir: "{app}";
Expand Down

0 comments on commit d9d88b5

Please sign in to comment.