# liblouis: Swahili (Kenya) Grade 1
#
#  This file is part of liblouis.
#
#  liblouis is free software: you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as
#  published by the Free Software Foundation, either version 2.1 of the
#  License, or (at your option) any later version.
#
#  liblouis is distributed in the hope that it will be useful, but
#  WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
#  Lesser General Public License for more details.
#
#  You should have received a copy of the GNU Lesser General Public
#  License along with liblouis. If not, see
#  <http://www.gnu.org/licenses/>.
#
#-index-name: Swahili, uncontracted
#-display-name: Swahili uncontracted braille
#
#-author: Jake Kyle
#-author: Dipendra Manocha
#-author: Martin Kieti
#-maintainer: Jake Kyle <jake@compassbraille.org>
#-updated: 2022
#
#+language:sw
#+region:sw-KE
#+type:literary
#+grade:1
#+contraction: no
#
#-copyright: 2022, Compass Braille <http://www.compassbraille.org>
#-copyright: 2022, the DAISY Consortium <https://daisy.org/>
#-license: LGPLv2.1
#
# Copyright (C) 2022 by Compass Braille <http://www.compassbraille.org>
# Copyright (C) 2022 by the DAISY Consortium <https://daisy.org/>
#
# With contributions from DAISY Consortium under project supported by Microsoft.
#
# This table was created using information contained in a document entitled
# "Kenya Swahili Braille Code" (see <http://liblouis.io/braille-specs/swahili/>)
# which was derived from the Kenya Institute of Curriculum Development's Swahili
# Braille Manual: “Mwongozo wa Breli Ya Kiswahili”.
#
# The Braille code is graded into 6 grades: 1, 1.2, 1.3, 1.4, 1.5 and 2. This is
# in line with the Kenya Institute of Curriculum Development’s Curriculum
# Designs for Kiswahili Braille. 
#
# The Braille code in the document was adopted at a Stakeholders Workshop held
# at the Swiss Lenana Mount Hotel on 25th August 2022.
#

# Default display table
include text_nabcc.dis

# Character definitions

# Spaces
space \t 9 tab
space \x001b 1b escape character for html back-translation
space \x00A0 a NO-BREAK SPACE <noBreak> 0020 NON-BREAKING SPACE
noback correct "\x200b" "\s"
include spaces.uti

# Other characters
include latinLetterDef6Dots.uti
include litdigits6Dots.uti
include digits6Dots.uti


# Signs
noback sign † 145-236 dagger \x2020
noback sign ♀ 124-236 female sign \x2640
sign £ 4-123
noback sign ♂ 134-236
noback sign ‡ 135-246 double dagger
noback sign ¶ 1234-345
noback sign § 234-3
sign % 25-1234
sign $ 4-256
sign * 35-35
noback sign ° 356 degrees
sign ¢ 4-14 cent
sign € 4-15 euro
sign ¥ 4-13456
sign & 12346
sign @ 4-2346
sign ʹ 4-35 minute or foot sign (a single prime)
sign ʺ 4-35-35 second or inch sign (a double prime)
noback sign # 4-3456
sign © 45-14
sign ® 45-1235 registered trade mark
sign ™ 45-2345 trade mark
noback sign • 456-256 bullet
sign 〃 5-2 ditto
sign ~ 5-36 tilde
sign \x005C 5-34 back oblique stroke
sign ^ 456-126


# Maths symbols
math + 56-235 plus
math × 56-236 multiply
math ÷ 56-256 divide
math = 56-2356 equals
math < 246 less than
math > 135 greater than
math ¼ 3456-1-256 quarter
math ½ 3456-1-23 half
math ¾ 3456-14-256 three quarters
math √ 146 square root
math ² 346-23 superscript two
math ³ 346-25 superscript three
math \x2080 16-356 subscript zero
math \x2081 16-2 subscript one
math \x2082 16-23 subscript two
math \x2083 16-25 subscript three
math \x2084 16-256 subscript four
math \x2085 16-26 subscript five
math \x2086 16-235 subscript six
math \x2087 16-2356 subscript seven
math \x2088 16-236 subscript eight
math \x2089 16-35 subscript nine


# Punctuation
punctuation . 256 fullstop
punctuation , 2 comma
punctuation ; 23 semi-colon
punctuation : 25 full colon
punctuation ! 235 exclamation mark
punctuation ? 236 question mark
punctuation ' 3 apostrophe
punctuation " 236 quotation mark
punctuation ‘ 6-236 open quotation mark
punctuation ’ 356-3 close quotation mark
punctuation “ 236 double open quotation mark
punctuation ” 356 double close quotation mark
punctuation < 456-2356 open angled brackets
punctuation > 456-2356 close angled brackets
punctuation ( 2356 open parenthesis
punctuation ) 2356 close parenthesis
punctuation / 456-34 oblique stroke
punctuation [ 6-2356 open square bracket
punctuation ] 2356-3 close square bracket
punctuation { 46-2356 open curly braces
punctuation } 46-2356 close curly braces
punctuation - 36 hyphen
punctuation – 36-36 en dash
punctuation — 36-36-36 em dash
punctuation … 36-36 ellipsis \x2026
punctuation _ 456 underscore

# Braille indicators
numsign 3456
letsign 56
noletsignafter '
noletsignbefore '
capsletter 6
begcapsword 6-6
endcapsword 6-3
lencapsphrase 3
begcapsphrase 6-6-6
endcapsphrase after 6-3
emphclass italic
emphletter italic 46
begemphword italic 46
endemphword italic 46-3
lenemphphrase italic 3
begemphphrase italic 46-46
endemphphrase italic after 46-3

# Characters within numbers which will not terminate numeric mode
numericmodechars .,-:

# Characters other than space indicating word boundary
seqdelimiter - hyphen
seqdelimiter – en dash
seqdelimiter — em dash
seqdelimiter \x005C back oblique stroke
seqdelimiter ([{"“'‘)]}”’,;:.!?…/

# Signs in context
noback begnum £ 123
begnum $ 256
begnum # 4
endnum % 0-25-1234


# Maths in context
noback midnum + 0-56-235
nofor always +\s 56-235
joinnum + 56-235
joinword + 56-235
noback midnum \s-\s 0-56-36
nofor always -\s 56-36
joinnum - 56-36
joinword - 56-36
noback midnum × 0-56-236
nofor always ×\s 56-236
joinnum × 56-236
joinword × 56-236
noback midnum ÷ 0-56-256
nofor always ÷\s 56-256
joinnum ÷ 56-256
joinword ÷ 56-256
noback midnum = 0-56-2356
nofor always =\s 56-2356
joinnum = 56-2356
joinword = 56-2356
midnum \s<\s 0-246-0
midnum \s>\s 0-135-0
midnum < 0-246-0
midnum > 0-135-0
midword \s<\s 0-246-0
midword \s>\s 0-135-0
midword < 0-246-0
midword > 0-135-0
midnum ^ 346-3456


# Punctuation in context
midnum . 2 decimal point
midnum : 3456
postpunc ” 356
noback postpunc " 356
prepunc “ 236
noback prepunc " 236
prepunc < 456-2356 open angled brackets
postpunc > 456-2356 close angled brackets
noback always ( 2356
prepunc ( 2356
postpunc ) 2356
prepunc { 46-2356
postpunc } 46-2356
noback always \s-\s 36-36
noback always ... 36-36 ellipsis with fullstops

# single letter words
word u 136
word U 136

# apostrophe single letter words
always 'o 3-135

# Roman Numerals
nofor word ii 56-24-24
nofor word iii 56-24-24-24
nofor word iv 56-24-1236
nofor word vi 56-1236-24
nofor word vii 56-1236-24-24
nofor word viii 56-1236-24-24-24
nofor word ix 56-24-1346
nofor word x 56-1346
nofor word xi 56-1346-24
nofor word xii 56-1346-24-24
nofor word xiii 56-1346-24-24-24

contraction ii
contraction iii
contraction iv
contraction vi
contraction vii
contraction viii
contraction ix
contraction xi
contraction xii
contraction xiii

include braille-patterns.cti

# Possible corrections needed
noback correct $l["’"]$l "'" where close single quote used instead of apostrophe

# -- end of table --
