Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sil_ipa] Add subscript numerals to _ rota #2587

Merged
merged 3 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions release/sil/sil_ipa/HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
IPA (SIL) Keyboard Change History
=======================

1.8.7 (2024-03-05)
------------------
* Add subscript numerals to underscore rota

1.8.6 (2021-07-01)
----------------
* Updated to use new version of Charis SIL
Expand Down
31 changes: 30 additions & 1 deletion release/sil/sil_ipa/source/help/sil_ipa.php
Original file line number Diff line number Diff line change
Expand Up @@ -3425,6 +3425,34 @@ class=MsoFootnoteReference><span style='font-size:8.0pt;
</tr>
</table>

<h3>Subscripts</h3>

<p>In this section, if you turned on <b>Before</b> in <b>Keyboard options</b>, you will type the opposite sequence to what is in the below table. For example, this sequence "_3" would produce "₃"</p>
<p>Use the "_" rota after the numeral to continue with <a href="#diacritics">Diacritics &amp; Suprasegmentals</a></p>

<table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width=0
style='width:334.1pt;margin-left:3.0pt;border-collapse:collapse;border:none'>
<tr>
<td width=121 style='width:91.1pt;border-top:solid;border-left:solid windowtext 1.5pt;
border-bottom:solid windowtext 1.0pt;border-right:none;padding:0in 5.4pt 0in 5.4pt'>
<p class=tableipanormal style='margin-top:3.0pt;margin-right:0in;margin-bottom:
3.0pt;margin-left:0in;line-height:12.0pt'><span style='font-family:"Charis SIL";
color:blue'>₃</span></p>
</td>
<td width=192 style='width:91.1pt;border-top:solid;border-left:none windowtext 1.5pt;
border-bottom:solid windowtext 1.0pt;border-right:none;padding:0in 5.4pt 0in 5.4pt'>
<p class=table><span style='font-size:9.0pt;font-family:"Courier New";
color:blue'>3_ (0-9)</span></p>
</td>
<td width=132 style='width:99.0pt;border-top:solid;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.5pt;
padding:0in 5.4pt 0in 5.4pt'>
<p class=table><span style='font-size:9.0pt;font-family:"Arial Narrow",sans-serif;
color:blue'>subscript number</span></p>
</td>
</tr>
</table>

<h3>Other (non-IPA) Symbols</h3>

<p>In this section, if you turned on <b>Before</b> in <b>Keyboard options</b>, you will type the opposite sequence to what is in the below table. For example, this sequence "&gt;c" would produce "ƈ".</p>
Expand Down Expand Up @@ -3751,7 +3779,8 @@ class=MsoFootnoteReference><span style='font-size:8.0pt;
</table>


<h3>Diacritics &amp; Suprasegmentals</h3>
<h3 id="diacritics">Diacritics &amp; Suprasegmentals</h3>


<p>In this section the keystrokes are the same whether you turned on <b>Before</b> or not.</p>

Expand Down
15 changes: 12 additions & 3 deletions release/sil/sil_ipa/source/sil_ipa.kmn
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ store(&MESSAGE) 'The IPA (SIL) Keyman keyboard is distributed under The MIT Lice
c store(&author) "M. Hosken, D. Bevan"
c store(&language) ""
c store(&WINDOWSLANGUAGES) 'x040F'
store(&KEYBOARDVERSION) '1.8.6'
store(&KEYBOARDVERSION) '1.8.7'
store(&LAYOUTFILE) 'sil_ipa.keyman-touch-layout'
store(&TARGETS) 'any'

Expand Down Expand Up @@ -143,6 +143,11 @@ c store(hatK) "?gjnwlh" "0123456789-" "m" "n=" "n>"
U+2071 U+1DA4 U+1DA6 U+1D52 U+A7F9 U+1DB1 U+1D53 \
U+1D58 U+1DB6 U+02B8 U+1D5A U+1DBA U+1DB7

c subscript numerals get incorporated in the "_" rota
store(subscriptD) "0123456789"

store(subscriptU) U+2080 U+2081 U+2082 U+2083 U+2084 U+2085 U+2086 U+2087 U+2088 U+2089

c Stores added for option key
store(EqSupK) "?" "b" "d" "g" "h" "j" "L" "n" \
"N" "f" "r" "s" "v" "z" "t" "a" \
Expand Down Expand Up @@ -349,14 +354,16 @@ c German keyboard has } on RALT+0 == RALT+= so use RALT SHIFT = instead for rese
$keymanonly: if(&baselayout = 'de-de') + [RALT SHIFT "="] > reset(option_key) c
$keymanonly: if(&baselayout != 'de-de') + [RALT "="] > reset(option_key) c

store(controls) "=><^|"
$keymanonly: store(controls-before) ["="][SHIFT ">"] [SHIFT "<"] [SHIFT '^'] [SHIFT "|"]
store(controls) "=><^| U+0320"
$keymanonly: store(controls-before) ["="][SHIFT ">"] [SHIFT "<"] [SHIFT '^'] [SHIFT "|"] U+0320

$keymanonly: if(option_key = 'before') "=" + any(equalD) > index(equalU,3)
$keymanonly: if(option_key = 'before') ">" + any(greatD) > index(greatU,3)
$keymanonly: if(option_key = 'before') "<" + any(lessD) > index(lessU,3)
$keymanonly: if(option_key = 'before') "^" + any(hatD) > index(hatU,3)
$keymanonly: if(option_key = 'before') "|" + any(pipeD) > index(pipeU,3) c this was added for Chinese IPA
$keymanonly: if(option_key = 'before') U+0320 + any(subscriptD) > index(subscriptU,3) c subscript numeral
c $keymanonly: if(option_key = 'before') U+0320 + any(subscriptU) > index(subscriptD,3) U+0320 c back to "_" rota

$keymanonly: if(option_key = 'before') "=" + "!" > U+01C2 c added this rule since ! is already U+01C3 so above rules don't work
$keymanonly: if(option_key = 'before') ">" + "!" > U+01C1 c added this rule since ! is already U+01C3 so above rules don't work
Expand All @@ -380,6 +387,8 @@ if(option_key = '') any(greatD) + ">" > index(greatU,2)
if(option_key = '') any(lessD) + "<" > index(lessU,2)
if(option_key = '') any(hatD) + "^" > index(hatU,2)
if(option_key = '') any(pipeD) + "|" > index(pipeU,2) c this was added for Chinese IPA
if(option_key = '') any(subscriptD) + "_" > index(subscriptU,2) c subscript numeral
if(option_key = '') any(subscriptU) + "_" > index(subscriptD,2) U+0320 c back to "_" rota

c lower diacritic
any(segmentU) + any(ldiaK) > context beep
Expand Down
30 changes: 29 additions & 1 deletion release/sil/sil_ipa/source/welcome/welcome.htm
Original file line number Diff line number Diff line change
Expand Up @@ -3427,6 +3427,34 @@ <h3>Superscripts</h3>
</tr>
</table>

<h3>Subscripts</h3>

<p>In this section, if you turned on <b>Before</b> in <b>Keyboard options</b>, you will type the opposite sequence to what is in the below table. For example, this sequence "_3" would produce "₃"</p>
<p>Use the "_" rota after the numeral to continue with <a href="#diacritics">Diacritics &amp; Suprasegmentals</a></p>

<table class=MsoNormalTable border=1 cellspacing=0 cellpadding=0 width=0
style='width:334.1pt;margin-left:3.0pt;border-collapse:collapse;border:none'>
<tr>
<td width=121 style='width:91.1pt;border-top:solid;border-left:solid windowtext 1.5pt;
border-bottom:solid windowtext 1.0pt;border-right:none;padding:0in 5.4pt 0in 5.4pt'>
<p class=tableipanormal style='margin-top:3.0pt;margin-right:0in;margin-bottom:
3.0pt;margin-left:0in;line-height:12.0pt'><span style='font-family:"Charis SIL";
color:blue'>₃</span></p>
</td>
<td width=192 style='width:91.1pt;border-top:solid;border-left:none windowtext 1.5pt;
border-bottom:solid windowtext 1.0pt;border-right:none;padding:0in 5.4pt 0in 5.4pt'>
<p class=table><span style='font-size:9.0pt;font-family:"Courier New";
color:blue'>3_ (0-9)</span></p>
</td>
<td width=132 style='width:99.0pt;border-top:solid;border-left:none;
border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.5pt;
padding:0in 5.4pt 0in 5.4pt'>
<p class=table><span style='font-size:9.0pt;font-family:"Arial Narrow",sans-serif;
color:blue'>subscript number</span></p>
</td>
</tr>
</table>

<h3>Other (non-IPA) Symbols</h3>

<p>In this section, if you turned on <b>Before</b> in <b>Keyboard options</b>, you will type the opposite sequence to what is in the below table. For example, this sequence "&gt;c" would produce "ƈ".</p>
Expand Down Expand Up @@ -3753,7 +3781,7 @@ <h3>Other (non-IPA) Symbols</h3>
</table>


<h3>Diacritics &amp; Suprasegmentals</h3>
<h3 id="diacritics">Diacritics &amp; Suprasegmentals</h3>

<p>In this section the keystrokes are the same whether you turned on <b>Before</b> or not.</p>

Expand Down