From 9fba11ef87c03ef29127c48cea540889b244e7c9 Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sun, 25 Mar 2018 22:51:55 +0000 Subject: gregorio-5.1.1 git-svn-id: svn://tug.org/texlive/trunk@47119 c570f23f-e606-0410-a88d-b1316a301751 --- .../gregorio/gregorio-src/contrib/900_gregorio.xml | 2 +- .../texk/gregorio/gregorio-src/contrib/Makefile.am | 4 +- .../texk/gregorio/gregorio-src/contrib/README.md | 92 ---------------------- .../gregorio-src/contrib/TeXShop/Makefile.am | 2 +- .../gregorio-src/contrib/checkSyllabation.py | 2 +- .../gregorio-src/contrib/contrib_README.md | 92 ++++++++++++++++++++++ .../texk/gregorio/gregorio-src/contrib/gabc.lang | 2 +- .../texk/gregorio/gregorio-src/contrib/gprocess | 2 +- 8 files changed, 99 insertions(+), 99 deletions(-) delete mode 100644 Build/source/texk/gregorio/gregorio-src/contrib/README.md create mode 100644 Build/source/texk/gregorio/gregorio-src/contrib/contrib_README.md (limited to 'Build/source/texk/gregorio/gregorio-src/contrib') diff --git a/Build/source/texk/gregorio/gregorio-src/contrib/900_gregorio.xml b/Build/source/texk/gregorio/gregorio-src/contrib/900_gregorio.xml index b3886206472..ca392d0c794 100644 --- a/Build/source/texk/gregorio/gregorio-src/contrib/900_gregorio.xml +++ b/Build/source/texk/gregorio/gregorio-src/contrib/900_gregorio.xml @@ -3,7 +3,7 @@ XML file for using gregorio inside scribus. Copyright (C) 2009 Pierre Couderc . Copyright (C) 2010 Elie Roux - Copyright (C) 2015-2017 The Gregorio Project (see CONTRIBUTORS.md) + Copyright (C) 2015-2018 The Gregorio Project (see CONTRIBUTORS.md) 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 diff --git a/Build/source/texk/gregorio/gregorio-src/contrib/Makefile.am b/Build/source/texk/gregorio/gregorio-src/contrib/Makefile.am index c4c226cee14..0b5dec22ed7 100644 --- a/Build/source/texk/gregorio/gregorio-src/contrib/Makefile.am +++ b/Build/source/texk/gregorio/gregorio-src/contrib/Makefile.am @@ -1,4 +1,4 @@ -# Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md) +# Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md) # # This file is part of Gregorio. # @@ -17,4 +17,4 @@ SUBDIRS = TeXShop -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 +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 diff --git a/Build/source/texk/gregorio/gregorio-src/contrib/README.md b/Build/source/texk/gregorio/gregorio-src/contrib/README.md deleted file mode 100644 index 57b1ee3ba84..00000000000 --- a/Build/source/texk/gregorio/gregorio-src/contrib/README.md +++ /dev/null @@ -1,92 +0,0 @@ -# Third party scripts - -This repository contains various small scripts or modules for third-party softwares to use Gregorio. - -## Scribus - -Gregorio can be used in [Scribus](http://wiki.scribus.net/canvas/Scribus) using three files: - - * `gregorio-scribus.lua` - * `gregorio.png` - * `900_gregorio.xml` - -To install Gregorio support in Scribus: - - * copy the three files in the editorconfig folder of scribus (`/usr/share/scribus/editorconfig` under Linux, `C:\Program Files\Scribus\share\editorconfig` -under Windows). - * read the comments in `900_gregorio.xml` and change some variables accordingly - * in Scribus: - * go in `File->Preferences->External Tools` - * click `Add` in the `Render Frames` - * select the file `900_gregorio.xml` - -After that you can insert a render frame using Gregorio, and simply -typing gabc (`right-click->edit sources`). - -For more details see [the website](http://gregorio-project.github.io/introduction-scribus.html). - -## Syllabation checker - -The scripts in this folder allow to check the syllabation of a gabc score against syllabation rules that you must provide. - -#### Dependencies - -The main script, `checkSyllabation.py` is in Python3, so you obviously need it. It uses the [pyphen](http://pyphen.org/) package. You will also need the hyphenation of the text language in the `libhyphen` format in order to run it. - -If you want liturgical Latin hyphenation rules, you can pick those from the [hyphen-la](https://github.com/gregorio-project/hyphen-la) project. They are available in `libhyphen` format on the [webpage](http://gregorio-project.github.io/hyphen-la/). - -#### Running the scripts - -Once you have the hyphenation rules in the `libhyphen` format, you can check one score by running - -``` -checkSyllabation.py -p path/to/file.dic my_file.gabc -``` - -where `path/to/file.dic` is the path to the hyphenation rules file (default is `hyph_la_liturgical.dic` in the current directory). You can also analyze all gabc scores of a directory (with subdirectories) by replacing `my_file.gabc` by the name of the directory. By default, the script analyzes the current directory. The script outputs the report to `stdout` on Unix systems, and to `check-syllabation.log` on Windows systems. - -You can see more options by running - -``` -checkSyllabation.py --help -``` - -#### Hyphenation problems - -If you encounter problems of hyphenation, meaning you disagree with the proposed hyphenation, please contact the author of the hyphenation rules you are using ([here](https://github.com/gregorio-project/hyphen-la/issues) for `hyphen-la` for example). - -If you encounter problems because the script got confused by a gabc construct you are using or has bugs not directly related to hyphenation, please report it on the [gregorio tracker](https://github.com/gregorio-project/gregorio/issues). - -## Kde editors (Kate, Kedit) - -You can use `gabc.xml` for syntax highlighting in kate (and Kedit, etc.). To -install it, copy the file in `/usr/share/apps/katepart/syntax`. This path -may vary according to your distribution. - -## Gnome editors (Gedit) - -You can use `gabc.lang` for syntax highlighting in GtkSourceView (Gedit, etc.). To -install it, copy the file in `/usr/share/gtksourceview-3.0/language-specs`. This path -may vary according to your distribution. - -## Emacs - -To use gregorio in [Emacs](https://www.gnu.org/software/emacs/), see [this script](https://github.com/cajetanus/gregorio-mode.el). - -## Vim - -To get gabc syntax highlighting in [Vim](http://www.vim.org/): - - * copy `gabc.vim` in `/usr/share/vim/vimcurrent/syntax` - * add the line `au BufNewFile,BufRead *.gabc setf gabc` -somewhere near lines of the same type (near line 100 for example) in -`/usr/share/vim/vimcurrent/filetype.vim`. This will autodetect the filetypes. - -## BBedit and TextWrangler (OSX only) - -To get gabc syntax highlight in [BBedit](http://www.barebones.com/products/bbedit/) or [TextWrangler](http://www.barebones.com/products/textwrangler/), copy `gabc-syntax.plist` into `~/Library/Application Support/TextWrangler/Language Modules/` and restart BBEdit or TextWrangler. - -## Script to process gabc score - -`gprocess` is a perl script to instantly compile and show the result of a gabc -file. You can modify some variables directly into the script. diff --git a/Build/source/texk/gregorio/gregorio-src/contrib/TeXShop/Makefile.am b/Build/source/texk/gregorio/gregorio-src/contrib/TeXShop/Makefile.am index 60a7212ad88..ce57b1329db 100644 --- a/Build/source/texk/gregorio/gregorio-src/contrib/TeXShop/Makefile.am +++ b/Build/source/texk/gregorio/gregorio-src/contrib/TeXShop/Makefile.am @@ -1,4 +1,4 @@ -# Copyright (C) 2006-2017 The Gregorio Project (see CONTRIBUTORS.md) +# Copyright (C) 2006-2018 The Gregorio Project (see CONTRIBUTORS.md) # # This file is part of Gregorio. # diff --git a/Build/source/texk/gregorio/gregorio-src/contrib/checkSyllabation.py b/Build/source/texk/gregorio/gregorio-src/contrib/checkSyllabation.py index 338ebf534a5..269fb8774e8 100644 --- a/Build/source/texk/gregorio/gregorio-src/contrib/checkSyllabation.py +++ b/Build/source/texk/gregorio/gregorio-src/contrib/checkSyllabation.py @@ -5,7 +5,7 @@ See checkSyllabation.py -h for help - Copyright (C) 2016-2017 Elie Roux + Copyright (C) 2016-2018 Elie Roux 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 diff --git a/Build/source/texk/gregorio/gregorio-src/contrib/contrib_README.md b/Build/source/texk/gregorio/gregorio-src/contrib/contrib_README.md new file mode 100644 index 00000000000..f0089e58e47 --- /dev/null +++ b/Build/source/texk/gregorio/gregorio-src/contrib/contrib_README.md @@ -0,0 +1,92 @@ +# Third party scripts + +This folder contains various small scripts or modules for third-party softwares to use Gregorio. + +## Scribus + +Gregorio can be used in [Scribus](http://wiki.scribus.net/canvas/Scribus) using three files: + + * `gregorio-scribus.lua` + * `gregorio.png` + * `900_gregorio.xml` + +To install Gregorio support in Scribus: + + * copy the three files in the editorconfig folder of scribus (`/usr/share/scribus/editorconfig` under Linux, `C:\Program Files\Scribus\share\editorconfig` +under Windows). + * read the comments in `900_gregorio.xml` and change some variables accordingly + * in Scribus: + * go in `File->Preferences->External Tools` + * click `Add` in the `Render Frames` + * select the file `900_gregorio.xml` + +After that you can insert a render frame using Gregorio, and simply +typing gabc (`right-click->edit sources`). + +For more details see [the website](http://gregorio-project.github.io/introduction-scribus.html). + +## Syllabation checker + +The scripts in this folder allow to check the syllabation of a gabc score against syllabation rules that you must provide. + +#### Dependencies + +The main script, `checkSyllabation.py` is in Python3, so you obviously need it. It uses the [pyphen](http://pyphen.org/) package. You will also need the hyphenation of the text language in the `libhyphen` format in order to run it. + +If you want liturgical Latin hyphenation rules, you can pick those from the [hyphen-la](https://github.com/gregorio-project/hyphen-la) project. They are available in `libhyphen` format on the [webpage](http://gregorio-project.github.io/hyphen-la/). + +#### Running the scripts + +Once you have the hyphenation rules in the `libhyphen` format, you can check one score by running + +``` +checkSyllabation.py -p path/to/file.dic my_file.gabc +``` + +where `path/to/file.dic` is the path to the hyphenation rules file (default is `hyph_la_liturgical.dic` in the current directory). You can also analyze all gabc scores of a directory (with subdirectories) by replacing `my_file.gabc` by the name of the directory. By default, the script analyzes the current directory. The script outputs the report to `stdout` on Unix systems, and to `check-syllabation.log` on Windows systems. + +You can see more options by running + +``` +checkSyllabation.py --help +``` + +#### Hyphenation problems + +If you encounter problems of hyphenation, meaning you disagree with the proposed hyphenation, please contact the author of the hyphenation rules you are using ([here](https://github.com/gregorio-project/hyphen-la/issues) for `hyphen-la` for example). + +If you encounter problems because the script got confused by a gabc construct you are using or has bugs not directly related to hyphenation, please report it on the [gregorio tracker](https://github.com/gregorio-project/gregorio/issues). + +## Kde editors (Kate, Kedit) + +You can use `gabc.xml` for syntax highlighting in kate (and Kedit, etc.). To +install it, copy the file in `/usr/share/apps/katepart/syntax`. This path +may vary according to your distribution. + +## Gnome editors (Gedit) + +You can use `gabc.lang` for syntax highlighting in GtkSourceView (Gedit, etc.). To +install it, copy the file in `/usr/share/gtksourceview-3.0/language-specs`. This path +may vary according to your distribution. + +## Emacs + +To use gregorio in [Emacs](https://www.gnu.org/software/emacs/), see [this script](https://github.com/cajetanus/gregorio-mode.el). + +## Vim + +To get gabc syntax highlighting in [Vim](http://www.vim.org/): + + * copy `gabc.vim` in `/usr/share/vim/vimcurrent/syntax` + * add the line `au BufNewFile,BufRead *.gabc setf gabc` +somewhere near lines of the same type (near line 100 for example) in +`/usr/share/vim/vimcurrent/filetype.vim`. This will autodetect the filetypes. + +## BBedit and TextWrangler (OSX only) + +To get gabc syntax highlight in [BBedit](http://www.barebones.com/products/bbedit/) or [TextWrangler](http://www.barebones.com/products/textwrangler/), copy `gabc-syntax.plist` into `~/Library/Application Support/TextWrangler/Language Modules/` and restart BBEdit or TextWrangler. + +## Script to process gabc score + +`gprocess` is a perl script to instantly compile and show the result of a gabc +file. You can modify some variables directly into the script. diff --git a/Build/source/texk/gregorio/gregorio-src/contrib/gabc.lang b/Build/source/texk/gregorio/gregorio-src/contrib/gabc.lang index dd2c0cf216f..7d6c3791ce6 100644 --- a/Build/source/texk/gregorio/gregorio-src/contrib/gabc.lang +++ b/Build/source/texk/gregorio/gregorio-src/contrib/gabc.lang @@ -2,7 +2,7 @@