aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-09-17 23:52:12 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-18 14:03:24 +0200
commit392b4061226c658a68bbabbec40f6e626d0db1fe (patch)
tree505c844c00e32b4fb2834e230a3dae41fd1a150f /contrib
parent108d1fa9bd789ebaea5700c30b0cc1b8c180bb22 (diff)
downloadayatana-indicator-keyboard-392b4061226c658a68bbabbec40f6e626d0db1fe.tar.gz
ayatana-indicator-keyboard-392b4061226c658a68bbabbec40f6e626d0db1fe.tar.bz2
ayatana-indicator-keyboard-392b4061226c658a68bbabbec40f6e626d0db1fe.zip
Add new languages/variants
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/ayatana-indicator-keyboard-icon-generator-lomiri.py7
-rwxr-xr-xcontrib/ayatana-indicator-keyboard-icon-generator.py12
2 files changed, 17 insertions, 2 deletions
diff --git a/contrib/ayatana-indicator-keyboard-icon-generator-lomiri.py b/contrib/ayatana-indicator-keyboard-icon-generator-lomiri.py
index 069dd81d..6d69fa5c 100755
--- a/contrib/ayatana-indicator-keyboard-icon-generator-lomiri.py
+++ b/contrib/ayatana-indicator-keyboard-icon-generator-lomiri.py
@@ -170,7 +170,8 @@ m_lLanguages = [
'Ya', #Yakut
'Yo', #Yoruba
'emoji', #Emoji
-'00' #Unknown
+'custom', #Custom
+'00' #Unknown
]
def printHelp():
@@ -258,6 +259,10 @@ if __name__ == '__main__':
sLanguageText = '😐'
+ elif sLanguage == 'custom':
+
+ sLanguageText = '#'
+
with open(sOutPath, 'w') as pFile:
pLayout.set_text(sLanguageText, -1)
diff --git a/contrib/ayatana-indicator-keyboard-icon-generator.py b/contrib/ayatana-indicator-keyboard-icon-generator.py
index 0316d7f4..586c8229 100755
--- a/contrib/ayatana-indicator-keyboard-icon-generator.py
+++ b/contrib/ayatana-indicator-keyboard-icon-generator.py
@@ -168,7 +168,9 @@ m_lLanguages = [
'Wo', #Wolof
'Ya', #Yakut
'Yo', #Yoruba
-'00' #Unknown
+'emoji', #Emoji
+'custom', #Custom
+'00' #Unknown
]
def printHelp():
@@ -253,6 +255,14 @@ if __name__ == '__main__':
sLanguage = '?'
+ elif sLanguage == 'emoji':
+
+ sLanguage = '😐'
+
+ elif sLanguage == 'custom':
+
+ sLanguage = '#'
+
pLayout.set_text(sLanguage, -1)
nLayoutWidth, nLayoutHeight = pLayout.get_size()
nBaseline = pLayout.get_baseline()