Skip to content

Commit

Permalink
Import swedish language pack AnySoftKeyboard#2664
Browse files Browse the repository at this point in the history
  • Loading branch information
jswetzen authored and menny committed Jun 18, 2022
1 parent d6c05eb commit ba98570
Show file tree
Hide file tree
Showing 39 changed files with 406 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addons/languages/swedish/apk/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ext.shouldBePublished = true

apply from: "$rootDir/addons/gradle/pack_apk.gradle"

dependencies {
implementation project(path: ':addons:languages:swedish:pack')
}
6 changes: 6 additions & 0 deletions addons/languages/swedish/apk/flag/flag.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions addons/languages/swedish/apk/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.anysoftkeyboard.languagepack.swedish">

<application
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name" />
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
playstore.US@evendanan.net
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://anysoftkeyboard.github.io
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
en-US
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Swedish Language Pack for AnySoftKeyboard

This is an expansion language pack for AnySoftKeyboard.
Install AnySoftKeyboard first, and then select the Afrikaans keyboard from AnySoftKeyboard's Settings -> Languages -> Keyboards menu.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Swedish Language Pack for AnySoftKeyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Swedish for AnySoftKeyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Initial release
* Svorak update
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions addons/languages/swedish/apk/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">AnySoftKeyboard - Swedish Language Pack</string>
</resources>
Empty file.
7 changes: 7 additions & 0 deletions addons/languages/swedish/pack/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ext.status_icon_text = "sv"

ext.dictionaryInputPossibleCharacters = null//"".toCharArray()
ext.dictionaryInputAdditionalInnerCharacters = null//"".toCharArray()

apply from: "$rootDir/addons/gradle/language_pack_lib.gradle"

Binary file not shown.
31 changes: 31 additions & 0 deletions addons/languages/swedish/pack/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.anysoftkeyboard.languagepack.swedish.pack">

<application>
<receiver
android:name="com.anysoftkeyboard.languagepack.swedish.PackBroadcastReceiver"
android:exported="true">
<intent-filter>
<action android:name="com.menny.android.anysoftkeyboard.KEYBOARD" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.ALTERNATIVE" />
<category android:name="android.intent.category.SELECTED_ALTERNATIVE" />
</intent-filter>
<intent-filter>
<action android:name="com.menny.android.anysoftkeyboard.DICTIONARY" />

<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.ALTERNATIVE" />
<category android:name="android.intent.category.SELECTED_ALTERNATIVE" />
</intent-filter>

<meta-data
android:name="com.menny.android.anysoftkeyboard.keyboards"
android:resource="@xml/swedish_keyboards" />
<meta-data
android:name="com.menny.android.anysoftkeyboard.dictionaries"
android:resource="@xml/swedish_dictionaries" />
</receiver>
</application>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// CHECKSTYLE:OFF
package com.anysoftkeyboard.languagepack.swedish;
// CHECKSTYLE:ON

import com.anysoftkeyboard.addon.PackBroadcastReceiverBase;

public class PackBroadcastReceiver extends PackBroadcastReceiverBase {}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<resources>
<string name="swedish_keyboard">Swedish</string>
<string name="svorak_keyboard">Svorak</string>

<string name="swedish_dictionary_name">Swedish</string>
</resources>
142 changes: 142 additions & 0 deletions addons/languages/swedish/pack/src/main/res/xml/svorak.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
<?xml version="1.0" encoding="utf-8"?>

<Keyboard xmlns:android="http://schemas.android.com/apk/res/android"
android:keyWidth="10%p">

<Row>
<Key
android:codes="229"
android:keyEdgeFlags="left"
android:keyLabel="å"
android:popupCharacters="1" />
<Key
android:codes="228"
android:keyLabel="ä"
android:popupCharacters="2" />
<Key
android:codes="246"
android:keyLabel="ö"
android:popupCharacters="3" />
<Key
android:codes="112"
android:keyLabel="p"
android:popupCharacters="" />
<Key
android:codes="121"
android:keyLabel="y"
android:popupCharacters="5ýÿψ" />
<Key
android:codes="102"
android:keyLabel="f"
android:popupCharacters="" />
<Key
android:codes="103"
android:keyLabel="g"
android:popupCharacters="" />
<Key
android:codes="99"
android:keyLabel="c"
android:popupCharacters="8çćĉčγ" />
<Key
android:codes="114"
android:keyLabel="r"
android:popupCharacters="9řŕρ" />
<Key
android:codes="108"
android:keyEdgeFlags="right"
android:keyLabel="l"
android:popupCharacters="0ľĺłλ" />
</Row>

<Row>
<Key
android:codes="97"
android:keyEdgeFlags="left"
android:keyLabel="a" />
<Key
android:codes="111"
android:keyLabel="o"
android:popupCharacters="òóôõöøőœōo" />
<Key
android:codes="101"
android:keyLabel="e"
android:popupCharacters="èéêëęē€" />
<Key
android:codes="117"
android:keyLabel="u"
android:popupCharacters="ùúûüŭűū" />
<Key
android:codes="105"
android:keyLabel="i"
android:popupCharacters="ìíîïīι*" />
<Key
android:codes="100"
android:keyLabel="d"
android:popupCharacters="đďδ" />
<Key
android:codes="104"
android:keyLabel="h"
android:popupCharacters="ĥθ" />
<Key
android:codes="116"
android:keyLabel="t"
android:popupCharacters="țť\u0163τ" />
<Key
android:codes="110"
android:keyLabel="n"
android:popupCharacters="ñńν" />
<Key
android:codes="115"
android:keyEdgeFlags="right"
android:keyLabel="s"
android:popupCharacters="ßśŝšșσ" />
</Row>

<Row android:keyWidth="9.09%p">
<Key
android:codes="-1"
android:isModifier="true"
android:isSticky="true"
android:keyEdgeFlags="left" />
<Key
android:codes="113"
android:keyLabel="q"
android:popupCharacters="β" />
<Key
android:codes="106"
android:keyLabel="j"
android:popupCharacters="ĵ" />
<Key
android:codes="107"
android:keyLabel="k"
android:popupCharacters="κ" />
<Key
android:codes="120"
android:keyLabel="x"
android:popupCharacters="ξχ" />
<Key
android:codes="98"
android:keyLabel="b"
android:popupCharacters="β" />
<Key
android:codes="109"
android:keyLabel="m"
android:popupCharacters="μ" />
<Key
android:codes="119"
android:keyLabel="w"
android:popupCharacters="ŵω" />
<Key
android:codes="118"
android:keyLabel="v"
android:popupCharacters="" />
<Key
android:codes="122"
android:keyLabel="z"
android:popupCharacters="żžźζ" />
<Key
android:codes="-5"
android:isRepeatable="true"
android:keyEdgeFlags="right" />
</Row>
</Keyboard>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?><!--
**
** Copyright 2012, AnySoftKeyboard
**
** Licensed under the Apache License, Version 2.0 (the "License")
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<words>
<!-- this dictionary is used for common typing mistakes -->
<!-- the attribute 'src' will be replace by the node's value: -->
<!-- rght will be converted to right -->
<word src="rght">right</word>
<word src="riht">right</word>
</words>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<Dictionaries>
<!-- Dictionary attributes:
"nameResId" : the name of the dictionary. Should be short. Reference to a string in values.xml
"locale" : the ID of the dictionary's (ISO) locale, e.g., "en", "iw", "ar", "ru", etc. The keyboard should declare the same locale.
"id" : UUID for this dictionary. Obtain from here: http://www.famkruithof.net/uuid/uuidgen
"dictionaryResourceId" : a reference to the raw resource of the words dictionary
"autoTextResourceId" : a reference to a common typing mistakes XML.
-->
<Dictionary
autoTextResourceId="@xml/swedish_autotext"
description="A swedish dictionary generated from the AOSP sources"
dictionaryResourceId="@array/swedish_words_dict_array"
id="935fe956-c7f9-4dc6-b2d0-5a389005c826"
locale="sv"
nameResId="@string/swedish_dictionary_name"
type="binary_resource" />
</Dictionaries>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<Keyboards>
<Keyboard
defaultDictionaryLocale="sv"
description="Created with jtlallo"
id="8dd7b7fa-91c7-4be1-9b9c-cdfee1b34a47"
index="1"
layoutResId="@xml/swedish_qwerty"
iconResId="@drawable/ic_status_swedish"
nameResId="@string/swedish_keyboard" />
<Keyboard
defaultDictionaryLocale="sv"
description="Created by Henrik Andersson"
id="595f7064-e9d8-40cc-9348-78ea065aff53"
index="2"
layoutResId="@xml/svorak"
iconResId="@drawable/ic_status_swedish"
nameResId="@string/svorak_keyboard" />
</Keyboards>
Loading

0 comments on commit ba98570

Please sign in to comment.