-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
3c16cef
commit cd89548
Showing
30 changed files
with
1,020 additions
and
393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
Keyboards/LanguageKeyboards/Danish/DACommandVariables.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// DACommandVariables.swift | ||
// | ||
// Variables associated with commands for the Danish Scribe keyboard. | ||
// | ||
|
||
func daSetConjugationLabels() { | ||
// Reset all form labels prior to assignment. | ||
for k in formLabelsDict.keys { | ||
formLabelsDict[k] = "" | ||
} | ||
} | ||
|
||
/// What the conjugation state is for the conjugate feature. | ||
enum DAConjugationState { | ||
case present | ||
} | ||
|
||
var daConjugationState: DAConjugationState = .present | ||
|
||
/// Sets the title of the command bar when the keyboard is in conjugate mode. | ||
func daGetConjugationTitle() {} | ||
|
||
/// Returns the appropriate key in the verbs dictionary to access conjugations. | ||
func daGetConjugationState() {} | ||
|
||
/// Action associated with the left view switch button of the conjugation state. | ||
func daConjugationStateLeft() {} | ||
|
||
/// Action associated with the right view switch button of the conjugation state. | ||
func daConjugationStateRight() {} |
95 changes: 95 additions & 0 deletions
95
Keyboards/LanguageKeyboards/Danish/DAInterfaceVariables.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// | ||
// DAInterfaceVariables.swift | ||
// | ||
// Constants and functions to load the Danish Scribe keyboard. | ||
// | ||
|
||
import UIKit | ||
|
||
public enum DanishKeyboardConstants { | ||
// iPhone keyboard layouts. | ||
static let letterKeysPhone = [ | ||
["q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "å"], | ||
["a", "s", "d", "f", "g", "h", "j", "k", "l", "æ", "ø"], | ||
["shift", "z", "x", "c", "v", "b", "n", "m", "delete"], | ||
["123", "selectKeyboard", "space", "return"], // "undo" | ||
] | ||
|
||
static let numberKeysPhone = [ | ||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"], | ||
["-", "/", ":", ";", "(", ")", "€", "&", "@", "\""], | ||
["#+=", ".", ",", "?", "!", "'", "delete"], | ||
["ABC", "selectKeyboard", "space", "return"], // "undo" | ||
] | ||
|
||
static let symbolKeysPhone = [ | ||
["[", "]", "{", "}", "#", "%", "^", "*", "+", "="], | ||
["_", "\\", "|", "~", "<", ">", "€", "£", "¥", "·"], | ||
["123", ".", ",", "?", "!", "'", "delete"], | ||
["ABC", "selectKeyboard", "space", "return"], // "undo" | ||
] | ||
|
||
// iPad keyboard layouts. | ||
static let letterKeysPad = [ | ||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-", "=", "+"], | ||
["q", "w", "e", "r", "t", "y", "u", "i", "o", "æ", "ø", "delete"], | ||
["a", "s", "d", "f", "g", "h", "j", "k", "l", "ö", "ä", "return"], | ||
["shift", "z", "x", "c", "v", "b", "n", "m", ",", ".", "-", "shift"], | ||
["selectKeyboard", ".?123", "space", ".?123", "hideKeyboard"], // "undo" | ||
] | ||
|
||
static let numberKeysPad = [ | ||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "`", "delete"], | ||
["@", "#", "kr", "&", "*", "(", ")", "'", "\"", "+", "·", "return"], | ||
["#+=", "%", "_", "-", "=", "/", ";", ":", ",", ".", "?", "#+="], | ||
["selectKeyboard", "ABC", "space", "ABC", "hideKeyboard"], // "undo" | ||
] | ||
|
||
static let symbolKeysPad = [ | ||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "'", "delete"], | ||
["€", "$", "£", "^", "[", "]", "{", "}", "―", "ᵒ", "...", "return"], | ||
["123", "§", "|", "~", "≠", "≈", "\\", "<", ">", "!", "?", "123"], | ||
["selectKeyboard", "ABC", "space", "ABC", "hideKeyboard"], // "undo" | ||
] | ||
|
||
// Expanded iPad keyboard layouts for wider devices. | ||
static let letterKeysPadExpanded = [ | ||
["$", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "+", "'", "delete"], | ||
["indent", "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "å", "@", "*"], | ||
["uppercase", "a", "s", "d", "f", "g", "h", "j", "k", "l", "æ", "ø", "'", "return"], | ||
["shift", "<", "z", "x", "c", "v", "b", "n", "m", ",", ".", "-", "shift"], | ||
["selectKeyboard", ".?123", "space", ".?123", "hideKeyboard"], // "microphone", "scribble" | ||
] | ||
|
||
static let symbolKeysPadExpanded = [ | ||
["`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "<", ">", "delete"], | ||
["indent", "[", "]", "{", "}", "#", "%", "^", "*", "+", "=", "\"", "|"], | ||
["uppercase", "-", "/", ":", ";", "(", ")", "$", "&", "@", "£", "¥", "~", "return"], // "undo" | ||
["shift", "...", ".", ",", "?", "!", "'", "\"", "_", "€"], // "redo" | ||
["selectKeyboard", "ABC", "space", "ABC", "hideKeyboard"], // "microphone", "scribble" | ||
] | ||
|
||
// Alternate key vars. | ||
static let keysWithAlternates = ["a", "e", "i", "o", "u", "y", "æ", "ø", "d", "l", "n", "s"] | ||
static let keysWithAlternatesLeft = ["a", "e", "y", "d", "s"] | ||
static let keysWithAlternatesRight = ["i", "o", "u", "æ", "ø", "l", "n"] | ||
|
||
static let aAlternateKeys = ["á", "ä", "à", "â", "ã", "ā"] | ||
static let eAlternateKeys = ["é", "ë"] | ||
static let iAlternateKeys = ["ï", "í"] | ||
static let oAlternateKeys = ["ö", "ō", "œ", "õ", "ø", "ò", "ô", "ó"] | ||
static let uAlternateKeys = ["ū", "ù", "û", "ü", "ú"] | ||
static let yAlternateKeys = ["ÿ"] | ||
static let æAlternateKeys = ["ä"] | ||
static let øAlternateKeys = ["ö"] | ||
static let dAlternateKeys = ["ð"] | ||
static let lAlternateKeys = ["ł"] | ||
static let nAlternateKeys = ["ń", "ñ"] | ||
static let sAlternateKeys = ["ß", "ś", "š"] | ||
} | ||
|
||
/// Gets the keys for the Danish keyboard. | ||
func getDAKeys() {} | ||
|
||
/// Provides the Danish keyboard layout. | ||
func setDAKeyboardLayout() {} |
4 changes: 3 additions & 1 deletion
4
Keyboards/LanguageKeyboards/Danish/DAKeyboardViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// | ||
// KeyboardViewController.swift | ||
// DAKeyboardViewController.swift | ||
// | ||
|
||
class DAKeyboardViewController: KeyboardViewController {} |
31 changes: 31 additions & 0 deletions
31
Keyboards/LanguageKeyboards/English/ENCommandVariables.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// ENCommandVariables.swift | ||
// | ||
// Variables associated with commands for the English Scribe keyboard. | ||
// | ||
|
||
func enSetConjugationLabels() { | ||
// Reset all form labels prior to assignment. | ||
for k in formLabelsDict.keys { | ||
formLabelsDict[k] = "" | ||
} | ||
} | ||
|
||
/// What the conjugation state is for the conjugate feature. | ||
enum ENConjugationState { | ||
case present | ||
} | ||
|
||
var enConjugationState: ENConjugationState = .present | ||
|
||
/// Sets the title of the command bar when the keyboard is in conjugate mode. | ||
func enGetConjugationTitle() {} | ||
|
||
/// Returns the appropriate key in the verbs dictionary to access conjugations. | ||
func enGetConjugationState() {} | ||
|
||
/// Action associated with the left view switch button of the conjugation state. | ||
func enConjugationStateLeft() {} | ||
|
||
/// Action associated with the right view switch button of the conjugation state. | ||
func enConjugationStateRight() {} |
Oops, something went wrong.