On Tue, Apr 14, 2015 at 02:17:47PM -0400, Henry So Jr. wrote:
> One last-ditch check.  Does
> 
> kpsewhich -all greciliae.ttf
> 
> ...return only one font or multiple?  I think you've checked this
> before, but I'm double-checking just in case.  In the likely case that
> there is only one font, let me know, and I will open an issue on GitHub
> to discuss whether we should roll back the font change.
> 
> If there are multiple, please delete all gregorio fonts (greciliae.ttf,
> gregorio.ttf, parmesan.ttf, gresym.ttf, greextra.ttf) EXCEPT those in
> /usr/share/texlive/texmf-local/fonts/truetype/public/gregoriotex and try
> again.

So, I've tried to update the Fedora 21 spec file for the current release-3.0
branch, but even on a very simple testcase I have around it creates bogus
output.  I can confirm that the new fontforge returns lots of warnings when
creating the fonts, but even if I create them on Fedora 20 (2012-ish
fontforge, no warnings), the problem described below happens too.

https://www.dropbox.com/s/ug06749koj5f96e/gregorio-3.0-issues.tar.bz2?dl=0
contains a tarball with hopefully all relevant info.

git clone https://github.com/gregorio-project/gregorio.git
cd gregorio
git archive origin/release-3.0 --prefix=gregorio-20150413/ | bzip2 -9 > 
~/rpmbuild/SOURCES/gregorio-20150413.tar.bz2

is how I've created the tarball, then rpmbuild -ba -v gregorio.spec
using attached spec file.

In the tarball, there are rpms for what I've been using until now (nabc
gregorio branch as of 20141229) and in the 20141229 subdir is
*.gabc file (same as in 20150413/) and very similar *main.tex file
(the only difference is
--- 20141229/annuntiatiomain.tex        2014-12-30 11:50:58.000000000 +0100
+++ 20150413/annuntiatiomain.tex        2015-04-14 22:09:53.249130986 +0200
@@ -30,8 +30,8 @@
 
 % Here we set the space around the initial.
 % Please report to http://home.gna.org/gregorio/gregoriotex/details for
 % more details and options
-\setspaceafterinitial{1mm plus 0em minus 0em}
-\setspacebeforeinitial{1mm plus 0em minus 0em}
+\setspaceafterinitial{1mm}{1}
+\setspacebeforeinitial{1mm}{1}
 
 % Emit R/, V/, A/ and + in red
 \let\oldrbar\Rbar
otherwise new gregoriotex chokes on it).
Then there is annuntiatio.tex generated by the two versions of gregorio,
and *.pdf created by running lualatex twice.
The 20141229 one is as intended, the gregorio 3.0-rc2 generated pdf
contains different glyphs at various places from the expected ones.

I've tried rm -rf ~/.texlive* and rerunning lualatex twice, but it made no
difference.  develop branch rpm behaves the same as release-3.0 one.

        Jakub
Summary: Command-line tool to typeset Gregorian chant
Name: gregorio
Version: 3.0
%global gitdate 20150413
%global _texdir %{_datadir}/texlive
Release: 1.%{gitdate}git%{?dist}
License: GPLv3+ and OFL
Group: Applications/Publishing
URL: http://home.gna.org/gregorio/
# git clone https://github.com/gregorio-project/gregorio.git
# cd gregorio
# git archive origin/release-3.0 --prefix=%{name}-%{gitdate}/ | bzip2 -9 > 
%{name}-%{gitdate}.tar.bz2
Source: %{name}-%{gitdate}.tar.bz2
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: libxml2-devel, flex, bison, tex-omegaware, autoconf, automake
BuildRequires: gettext-devel, libtool, libtool-ltdl-devel, tex(latex), 
tex-luatex
BuildRequires: perl-Digest-MD5, fontforge

%description
Gregorio is a project with a lot of functionalities.  The main interest is gabc,
a very simple and fast language to describe a Gregorian chant score.
The project is for now a command-line tool to convert gabc files into real
score, like for example OpusTeX or GregorioTeX. But it also handles a XML
format: GregorioXML.  You can use the tool to read or write gabc and
GregorioXML, and to write OpusTeX and GregorioTeX.

%package -n gregoriotex
Summary: LuaTeX style for Gregorian chant scores
Requires: tex-luatex, tex(latex), tex-lualibs, tex(eu2enc.def), 
texlive-luatextra
Requires: tex(fullpage.sty), tex(luainputenc.sty), texlive-times, gregorio
Requires: perl-Digest-MD5
BuildArch: noarch

%description -n gregoriotex
GregorioTeX is a Omega/LuaTeX style for writing Gregorian chant scores.
The code to write for a score is quite complex and should be written directly
by the gregorio software.

%prep
%setup -q -n %{name}-%{gitdate}

autoreconf -f -i
%configure --enable-all-static

%build
make %{?_smp_mflags}
make -C fonts fonts
mkdir -p rpmdocdir/{examples,fonts}
cp -a examples/*.gabc examples/*.tex rpmdocdir/examples/
cp -a fonts/*.md rpmdocdir/fonts/

%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install
rm -rf %{buildroot}%{_includedir}/gregorio %{buildroot}%{_libdir}/pkgconfig
mkdir -p 
%{buildroot}%{_texdir}/texmf-dist/{fonts/truetype/public/gregoriotex,tex/luatex/gregoriotex}
cp -a tex/*.tex tex/*.lua tex/*.sty 
%{buildroot}%{_texdir}/texmf-dist/tex/luatex/gregoriotex/
cp -a fonts/*.ttf 
%{buildroot}%{_texdir}/texmf-dist/fonts/truetype/public/gregoriotex/

%clean
rm -rf %{buildroot}

%post -n gregoriotex
if [ $1 -gt 0 ] ; then
sed -i 's/^shell_escape_commands =.*$/&\ngregorio,\\/' 
%{_texdir}/texmf-dist/web2c/texmf.cnf
sed -i '/^MixedMap \(gregorio\|parmesan\|greciliae\|gresym\|greextra\).map/d' 
%{_texdir}/texmf-dist/web2c/updmap.cfg
echo "MixedMap gregorio.map" >> %{_texdir}/texmf-dist/web2c/updmap.cfg
echo "MixedMap parmesan.map" >> %{_texdir}/texmf-dist/web2c/updmap.cfg
echo "MixedMap greciliae.map" >> %{_texdir}/texmf-dist/web2c/updmap.cfg
echo "MixedMap gresym.map" >> %{_texdir}/texmf-dist/web2c/updmap.cfg
echo "MixedMap greextra.map" >> %{_texdir}/texmf-dist/web2c/updmap.cfg
%{_bindir}/updmap-sys --nohash --quiet &> /dev/null
fi
%{_bindir}/texhash 2> /dev/null
:

%postun -n gregoriotex
if [ $1 == 0 ] ; then
sed -i '/^MixedMap \(gregorio\|parmesan\|greciliae\|gresym\|greextra\).map/d' 
%{_texdir}/texmf-dist/web2c/updmap.cfg > /dev/null 2>&1
sed -i '/^gregorio,/d' %{_texdir}/texmf-dist/web2c/texmf.cnf
%{_bindir}/texhash 2> /dev/null
%{_bindir}/updmap-sys --nohash --quiet &> /dev/null
fi
:

%files
%defattr(-,root,root)
%{_bindir}/gregorio
%doc *.md

%files -n gregoriotex
%defattr(-,root,root)
%{_texdir}/texmf-dist/fonts/*/public/gregoriotex
%{_texdir}/texmf-dist/tex/luatex/gregoriotex
%doc *.md rpmdocdir/fonts rpmdocdir/examples

%changelog
* Tue Apr 14 2015 Jakub Jelinek <[email protected]> 3.0-1.20150413git
- new package
_______________________________________________
Gregorio-users mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-users

Reply via email to