| 1 |
# Rules for Fully Cantillated Hebrew in the IHBC-McAllister System |
| 2 |
# |
| 3 |
#-license: lgpl-2.1 |
| 4 |
|
| 5 |
# This file is free software; you can redistribute it and/or |
| 6 |
# modify it under the terms of the GNU Lesser General Public |
| 7 |
# License as published by the Free Software Foundation; either |
| 8 |
# version 2.1 of the License, or (at your option) any later version. |
| 9 |
# |
| 10 |
# This file is distributed in the hope that it will be useful, |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
# Lesser General Public License for more details. |
| 14 |
# |
| 15 |
# You should have received a copy of the GNU Lesser General Public |
| 16 |
# License along with this file; if not, write to the Free Software |
| 17 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 18 |
# liblouis comes with ABSOLUTELY NO WARRANTY. |
| 19 |
|
| 20 |
# Copyright (C) 2024 Matt Yeater and Paul Geoghegan |
| 21 |
# Copyright (C) 2025 Eric J. Harvey |
| 22 |
|
| 23 |
#-maintainer: Paul Geoghegan <[email protected]> |
| 24 |
#-maintainer: Matityhau Yeshurun <[email protected]> |
| 25 |
#-maintainer: Eric J. Harvey <[email protected]> |
| 26 |
|
| 27 |
#-author: Paul Geoghegan <[email protected]> |
| 28 |
#-author: Matityhau Yeshurun <[email protected]> |
| 29 |
#-author: Eric J. Harvey <[email protected]> |
| 30 |
|
| 31 |
# This file contains rules for fully cantillated Biblical Hebrew |
| 32 |
# according to the system developed by Ray McAllister, Matthew |
| 33 |
# Yeater, and Sarah Blake LaRose in 2014. See: |
| 34 |
# <https://www.duxburysystems.com/biblical_scholar.htm> |
| 35 |
# This code builds upon the 1946 International Hebrew Braille Code, |
| 36 |
# adding support for the full complement of cantillation marks. |
| 37 |
|
| 38 |
# This file contains the Hebrew rules that are necessary for the |
| 39 |
# IHBC-McAllister system but not shared by other Classical/Biblical |
| 40 |
# Hebrew tables. |
| 41 |
# It requires hbo-common-rules.uti to function. |
| 42 |
# It is included in hbo-cantillated.utb along with basic Latin alphabet |
| 43 |
# support, but can also be included in tables with other secondary |
| 44 |
# languages. |
| 45 |
|
| 46 |
# This code was first implemented in LibLouis by Matthew Yeater and Paul Geoghegan and further |
| 47 |
# developed by Eric J. Harvey with support from the national |
| 48 |
# Endowment for the Humanities (USA) and Stanford University. |
| 49 |
# Many thanks to Leonard de Ruijter and Sarah Blake LaRose for their |
| 50 |
# help developing and testing the tables, and to Abby Howell for |
| 51 |
# suggesting the inclusion of Yiddish characters and reviewing code. |
| 52 |
|
| 53 |
# Include common characters |
| 54 |
include hbo-common-rules.uti |
| 55 |
|
| 56 |
# character reordering |
| 57 |
## Moving cantillation marks before vowel contractions |
| 58 |
noback pass2 @34a[@46a$a]@245 *@34a-245 |
| 59 |
noback pass2 @34a-2a-245 @2a-34a-245 |
| 60 |
noback pass2 @34a-4a-245 @4a-34a-245 |
| 61 |
noback pass2 @34a-23a-245 @23a-34a-245 |
| 62 |
noback pass2 @24a[@46a$a]@245 *@24a-245 |
| 63 |
noback pass2 @24a-2a-245 @2a-24a-245 |
| 64 |
noback pass2 @24a-4a-245 @4a-24a-245 |
| 65 |
noback pass2 @24a-23a-245 @23a-24a-245 |
| 66 |
|
| 67 |
# Contracting ultralong vowels (vowel+mater lectionis) |
| 68 |
## Holam-waw/consonantal waw with cantillation |
| 69 |
noback pass3 $l@46a$a[@2456-135a] @246 |
| 70 |
noback pass3 $l@4a[@2456-135a] @246 |
| 71 |
noback pass3 @135a[@46a$a]@2456 *@246 |