mirror of https://gitlab.com/bashrc2/epicyon
Show word frequencies on account info
parent
345145927a
commit
7f1281e9e9
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "المتابعون المحظورون",
|
||||
"Blocked following": "المتابعة المحظورة",
|
||||
"Receives posts from the following accounts": "يتلقى المشاركات من الحسابات التالية",
|
||||
"Sends out posts to the following accounts": "يرسل المنشورات إلى الحسابات التالية"
|
||||
"Sends out posts to the following accounts": "يرسل المنشورات إلى الحسابات التالية",
|
||||
"Word frequencies": "ترددات الكلمات"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "Seguidors bloquejats",
|
||||
"Blocked following": "Seguiment bloquejat",
|
||||
"Receives posts from the following accounts": "Rep publicacions dels comptes següents",
|
||||
"Sends out posts to the following accounts": "Envia publicacions als comptes següents"
|
||||
"Sends out posts to the following accounts": "Envia publicacions als comptes següents",
|
||||
"Word frequencies": "Freqüències de paraules"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "Dilynwyr wedi'u blocio",
|
||||
"Blocked following": "Wedi'i rwystro yn dilyn",
|
||||
"Receives posts from the following accounts": "Yn derbyn swyddi o'r cyfrifon canlynol",
|
||||
"Sends out posts to the following accounts": "Yn anfon postiadau i'r cyfrifon canlynol"
|
||||
"Sends out posts to the following accounts": "Yn anfon postiadau i'r cyfrifon canlynol",
|
||||
"Word frequencies": "Amleddau geiriau"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "Blockierte Follower",
|
||||
"Blocked following": "Folgendes blockiert",
|
||||
"Receives posts from the following accounts": "Erhält Beiträge von folgenden Konten",
|
||||
"Sends out posts to the following accounts": "Sendet Beiträge an die folgenden Konten"
|
||||
"Sends out posts to the following accounts": "Sendet Beiträge an die folgenden Konten",
|
||||
"Word frequencies": "Worthäufigkeiten"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "Blocked followers",
|
||||
"Blocked following": "Blocked following",
|
||||
"Receives posts from the following accounts": "Receives posts from the following accounts",
|
||||
"Sends out posts to the following accounts": "Sends out posts to the following accounts"
|
||||
"Sends out posts to the following accounts": "Sends out posts to the following accounts",
|
||||
"Word frequencies": "Word frequencies"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "Seguidores bloqueadas",
|
||||
"Blocked following": "Seguimiento bloqueado",
|
||||
"Receives posts from the following accounts": "Recibe publicaciones de las siguientes cuentas",
|
||||
"Sends out posts to the following accounts": "Envía publicaciones a las siguientes cuentas"
|
||||
"Sends out posts to the following accounts": "Envía publicaciones a las siguientes cuentas",
|
||||
"Word frequencies": "Frecuencias de palabras"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "Abonnés bloqués",
|
||||
"Blocked following": "Bloqué suite",
|
||||
"Receives posts from the following accounts": "Reçoit les publications des comptes suivants",
|
||||
"Sends out posts to the following accounts": "Envoie des messages aux comptes suivants"
|
||||
"Sends out posts to the following accounts": "Envoie des messages aux comptes suivants",
|
||||
"Word frequencies": "Fréquences des mots"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "Leanúna blocáilte",
|
||||
"Blocked following": "Blocáilte ina dhiaidh",
|
||||
"Receives posts from the following accounts": "Faigheann sé poist ó na cuntais seo a leanas",
|
||||
"Sends out posts to the following accounts": "Seoltar poist chuig na cuntais seo a leanas"
|
||||
"Sends out posts to the following accounts": "Seoltar poist chuig na cuntais seo a leanas",
|
||||
"Word frequencies": "Minicíochtaí focal"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "अवरुद्ध अनुयायियों",
|
||||
"Blocked following": "बाद में ब्लॉक किया गया",
|
||||
"Receives posts from the following accounts": "निम्नलिखित खातों से पोस्ट प्राप्त करता है",
|
||||
"Sends out posts to the following accounts": "निम्नलिखित खातों में पोस्ट भेजता है"
|
||||
"Sends out posts to the following accounts": "निम्नलिखित खातों में पोस्ट भेजता है",
|
||||
"Word frequencies": "शब्द आवृत्तियों"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "Follower bloccati",
|
||||
"Blocked following": "Seguito bloccato",
|
||||
"Receives posts from the following accounts": "Riceve post dai seguenti account",
|
||||
"Sends out posts to the following accounts": "Invia messaggi ai seguenti account"
|
||||
"Sends out posts to the following accounts": "Invia messaggi ai seguenti account",
|
||||
"Word frequencies": "Frequenze di parole"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "ブロックされたフォロワー",
|
||||
"Blocked following": "次のブロック",
|
||||
"Receives posts from the following accounts": "以下のアカウントから投稿を受け取ります",
|
||||
"Sends out posts to the following accounts": "以下のアカウントに投稿を送信します"
|
||||
"Sends out posts to the following accounts": "以下のアカウントに投稿を送信します",
|
||||
"Word frequencies": "単語の頻度"
|
||||
}
|
||||
|
|
|
@ -351,5 +351,6 @@
|
|||
"Blocked followers": "Blocked followers",
|
||||
"Blocked following": "Blocked following",
|
||||
"Receives posts from the following accounts": "Receives posts from the following accounts",
|
||||
"Sends out posts to the following accounts": "Sends out posts to the following accounts"
|
||||
"Sends out posts to the following accounts": "Sends out posts to the following accounts",
|
||||
"Word frequencies": "Word frequencies"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "Seguidores bloqueados",
|
||||
"Blocked following": "Seguindo bloqueado",
|
||||
"Receives posts from the following accounts": "Recebe postagens das seguintes contas",
|
||||
"Sends out posts to the following accounts": "Envia postagens para as seguintes contas"
|
||||
"Sends out posts to the following accounts": "Envia postagens para as seguintes contas",
|
||||
"Word frequencies": "Frequências de palavras"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "Заблокированные подписчики",
|
||||
"Blocked following": "Заблокировано подписок",
|
||||
"Receives posts from the following accounts": "Получает сообщения от следующих аккаунтов",
|
||||
"Sends out posts to the following accounts": "Отправляет сообщения на следующие аккаунты"
|
||||
"Sends out posts to the following accounts": "Отправляет сообщения на следующие аккаунты",
|
||||
"Word frequencies": "Частоты слов"
|
||||
}
|
||||
|
|
|
@ -355,5 +355,6 @@
|
|||
"Blocked followers": "被封锁的追随者",
|
||||
"Blocked following": "被阻止",
|
||||
"Receives posts from the following accounts": "从以下帐户接收帖子",
|
||||
"Sends out posts to the following accounts": "将帖子发送到以下帐户"
|
||||
"Sends out posts to the following accounts": "将帖子发送到以下帐户",
|
||||
"Word frequencies": "词频"
|
||||
}
|
||||
|
|
|
@ -205,6 +205,32 @@ def htmlAccountInfo(cssCache: {}, translate: {},
|
|||
followerNickname + '@' + followerDomainFull + '</a><br><br>\n'
|
||||
infoForm += '</div>\n'
|
||||
|
||||
if wordFrequency:
|
||||
maxCount = 1
|
||||
for word, count in wordFrequency.items():
|
||||
if count > maxCount:
|
||||
maxCount = count
|
||||
minimumWordCount = int(maxCount / 2)
|
||||
if minimumWordCount >= 3:
|
||||
infoForm += '<div class="accountInfoDomains">\n'
|
||||
infoForm += '<h1>' + translate['Word frequencies'] + '</h1>\n'
|
||||
wordSwarm = ''
|
||||
ctr = 0
|
||||
for word, count in wordFrequency.items():
|
||||
if count >= minimumWordCount:
|
||||
if ctr > 0:
|
||||
wordSwarm += ' '
|
||||
if count < maxCount - int(maxCount / 4):
|
||||
wordSwarm += word
|
||||
else:
|
||||
if count != maxCount:
|
||||
wordSwarm += '<b>' + word + '</b>'
|
||||
else:
|
||||
wordSwarm += '<b><i>' + word + '</i></b>'
|
||||
ctr += 1
|
||||
infoForm += wordSwarm
|
||||
infoForm += '</div>\n'
|
||||
|
||||
infoForm += htmlFooter()
|
||||
return infoForm
|
||||
|
||||
|
|
Loading…
Reference in New Issue