@borkena · Post #5950 · 07.03.2026 г., 16:34
Amnesty International Exposes OLA Crimes Against Women. Read more. https://borkena.com/2026/03/07/amnesty-international-exposes-oromo-liberation-army-ola-crimes-against-women/#Ethiopia#News#OLA
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #121 · 20 јул.
Регулярно требуется преобразовать какой-либо текст в максимально совместимый текст для URL, имени файла, имени объекта в каком-то софте и тд. Требования совместимости простые: в тексте должны быть только допустимые символы. Обычно это a-z, 0-9 и "_" или "-". То есть, только прописные буквы латинского алфавита и цифры (как пример). Допустим, нам нужно название статьи в блоге преобразовать в slug для добавления его в URL этой статьи. Как это лучше всего сделать? В Django по умолчанию есть готовая функция slugify для таких случаев. Но я её никогда не использую. Почему? Потому что её недостаточно! Приведём пример >>> from django.utils.text import slugify >>> slugify('This is a Title') 'this-is-a-title' Пока всё отлично >>> slugify('This is a "Title!"') 'this-is-a-title' Спец символы удалились, всё хорошо. >>> slugify('Это заголовок статьи') '' Вот и приехали 😢. Если текст не английский то буквы просто игнорируются. Можно это поправить >>> slugify('Это заголовок статьи', allow_unicode=True) 'это-заголовок-статьи' Но тогда мы не вписываемся в условие. У нас появилась кириллица в тексте. Так как я часто пишу сайты для русскоязычных пользователей эта проблема весьма актуальна. Я не использую стандартную функцию и всегда пишу свою. Оригинал я не беру в расчёт и пишу полностью свою функцию. И так, по порядку: 🔸1. Исходный текст: >>> text = 'Мой заголовок №10 😁!' Взял специально посложней со специальными символами. 🔸2. Транслит Необходимо сделать транслит всех символов в латиницу. Здесь очень выручает библиотека unidecode. Помимо простого транслита кириллицы в латиницу она умеет преобразовывать спец символы и иероглифы в текстовые аналоги. from unidecode import unidecode >>> unidecode("Ñ Σ ® µ ¶ ¼ 月 山") 'N S (r) u P 1/4 Yue Shan' Очень крутая библиотека, советую👍 В нашем случае получаем такое преобразование: >>> text = unidecode(text) >>> print(text) 'Moi zagolovok No. 10 !' Отличный транслит. Смайл просто удалился, хотя я ждал что-то вроде :). Ну и ладно, всë равно невалидные символы. А еще наш код уже поддерживает любой язык, будь то хинди или корейский. 🔸4. Фильтр символов Unidecode не занимается фильтрацией по недопустимым символам. Это мы делаем в следующем шаге через regex. Просто заменим все символы на "_" если они вне указанного диапазона. >>> text = re.sub(r'[^a-zA-Z0-9]+', '_', text) >>> print(text) 'Moi_zagolovok_No_10_' Символ "+" в паттерне выручает когда несколько недопустимых символов идут рядом. Все они заменяются на один символ "_". 🔸5. Slugify Осталось удалить лишние символы по краям и сделать нижний регистр >>> text = text.strip('_').lower() >>> print(text) 'moi_zagolovok_no_10' Получаем отличный slug! 😎 🌎 Полный код в виде функции. ______________ PS. Проверку что в строке остался хоть один допустимый символ я бы вынес в отдельную функцию. #libs#tricks#django
Пребарај: #ola
@borkena · Post #5950 · 07.03.2026 г., 16:34
Amnesty International Exposes OLA Crimes Against Women. Read more. https://borkena.com/2026/03/07/amnesty-international-exposes-oromo-liberation-army-ola-crimes-against-women/#Ethiopia#News#OLA
@addisstandardeng · Post #21274 · 02.02.2026 г., 07:20
‘Executions, torture, abductions, rape': #Ethiopia’s hidden conflict Wanted by the Ethiopian government, rebel military leader Jaal Marroo moves constantly to stay ahead of drones hunting him from the skies. The rebel commander leads the Oromo Liberation Army (#OLA) from a series of remote forest outpost in #Oromia, the country’s biggest region with a population of roughly 40 million people. The government has designated the former student as a terrorist, accusing the OLA of massacring civilians in ethnically motivated attacks. But in a rare interview from one of his hideouts, Marroo rejected accusations that his fighters target civilians. “Our war is not against the people,” he told The Associated Press. “It is against the brutal regime that has occupied and oppressed the nation for generations.” He added: “We are fighting to correct a system that treats the Oromo as subjects,.... https://web.facebook.com/AddisstandardEng/posts/pfbid02LchK3yaEF3X7SqibhSvj53rCitjKBMKJdagBKhHcwVG65YxSm5eSUkdXGzXaSDhFl
@terminchi · Post #3239 · 08.02.2024 г., 16:09
Maqtanishmasu menga Ana de Armas instagramdan yozgan. 😁 #kuchinskiy#ola#yōğe @terminchi
Hashtags
@borkena · Post #5934 · 06.03.2026 г., 05:50
Ethiopia: Authorities must investigate sexual violence, summary killings and torture by OLA fighters. Read more. https://borkena.com/2026/03/06/amnesty-international-ethiopian-authorities-must-investigate-sexual-violence-summary-killings-and-torture-by-ola-fighters/#Ethiopia#News#OLA#humanrights
Hashtags
@borkena · Post #5916 · 04.03.2026 г., 05:22
Oromo Liberation Army Points Finger At Abiy Ahmed’s Admin. Over Arsi Massacre. Read more. https://borkena.com/2026/03/04/ethiopia-oromo-liberation-army-points-finger-at-abiy-ahmeds-admin-over-arsi-massacre/#Ethiopia#OLA#Arsi
@borkena · Post #5940 · 06.03.2026 г., 15:20
“የኦሮሞ ነጻነት ሰራዊት" የሚያደርሰው የአስገድዶ መድረፈ ወንጀል መጋለጡ ፤ ኤርትራ የፕሮቴስታንት እምነት ተክታይ እስረኞችን መፍታቷ ፤ በትግራይ የተጀመረው አዲስ አስገዳጂ ህግ እና ሌሎች ዜናዎች… https://youtu.be/GOLVh2OE2Ik#Ethiopia#news#Oromia#Tigray#Eritrea#OLA
@borkena · Post #6074 · 26.03.2026 г., 04:28
Oromo Liberation Army Claims Significant Military Gain. Read more. https://borkena.com/2026/03/25/ethiopia-oromo-liberation-army-claims-significant-military-gain/#Ethiopia#News#EthiopianNews#OromoLiberationArmy#OLA
@addisstandardeng · Post #21815 · 24.03.2026 г., 09:43
News: OLF-OLA joins #Fano in criticizing #Ethiopia’s upcoming election, calls it a ‘hollow ritual’ A week after the #Amhara Fano National Movement issued warnings over participation, the Oromo Liberation Front–Oromo Liberation Army (#OLF-#OLA) has also dismissed Ethiopia’s upcoming national election as lacking credibility, claiming that much of the country remains beyond the reach of a meaningful electoral process. In a press release issued on March 23, the group said the election has been reduced to “a performance staged for foreign consumption,” with over seventy percent of the country inaccessible for credible voting. According to the statement, major opposition parties have either withdrawn or are participating solely to avoid deregistration or to expose what it described as flaws in the process. “All remaining parties in the process are either created by or colluding with the regime,” the group added. Last week, Addis Standard reported, citing the….. Read more: https://addisstandard.com/?p=56026
@borkena · Post #6248 · 02.05.2026 г., 18:40
Managed Peace or Real Stability? Ethiopia Is Being Stabilized, Not Solved. Read more. https://borkena.com/2026/05/02/ethiopia-managed-peace-or-real-stability-ethiopia-is-being-stabilized-not-solved/#Ethiopia#Politics#usa#EU#TPLF#OLA#Fano
@addisstandardeng · Post #21635 · 06.03.2026 г., 17:56
#Ethiopia: OLA outlines factual error in #Amnesty report; calls for independent investigation The Oromo Liberation Army (#OLA) has rejected findings of a recent report by Amnesty International accusing its fighters of gang rape and sexual slavery against women in #western_Oromia, alleging that the report contains “serious methodological flaws and factual errors,” and calling for an independent investigation into abuses committed in the region. In a press release issued on 06 March, the OLA said that while it condemns all forms of gender-based violence and supports efforts to document abuses against civilians, Amnesty’s report titled “No One Came to My Rescue” suffers from investigative shortcomings & fails to conclusively identify the perpetrators of the crimes described. The armed group argued that Amnesty itself acknowledged in the report that it could not verify the identities of the alleged perpetrators at the time of publication, a point the OLA said.. Read more: https://addisstandard.com/?p=55634
@addisstandardeng · Post #21666 · 10.03.2026 г., 11:03
#Op_ed: Breaking Silence, Demanding Accountability: Confronting war crimes in #Oromia Ewnetu B. Debela cites a report by #Amnesty_International documenting grave atrocities in #Ethiopia’s Oromia region, including gang rape and sexual slavery. He writes, “Under international humanitarian law, these abuses—as well as acts such as the summary execution of civilians and the large-scale forced displacement of populations—constitute war crimes and demand urgent investigation and accountability.” Ewnetu adds that “international observers have also documented widespread abuses… allegedly committed by both government forces and the Oromo Liberation Army (#OLA).” He emphasizes, “Documentation alone, however, is not justice,” warning that “history will judge… those who knew of these atrocities and chose silence over action.” https://addisstandard.com/?p=55692
@addisstandardeng · Post #21593 · 03.03.2026 г., 13:59
#Ethiopia: Religious councils, OLA condemn killing of civilians in #East_Arsi, call for swift accountability The Permanent Synod of the Ethiopian #Orthodox Tewahedo Church, the #Inter-Religious Council of Ethiopia, and the Ethiopian #Islamic Affairs Supreme Council have issued separate statements condemning the killing of 21 civilians in #Shirka Woreda, East Arsi Zone of #Oromia Region, urging authorities to take immediate action to bring perpetrators to justice and strengthen protection for residents. In their respective statements, the religious institutions denounced the attack and called for swift, transparent investigations, warning against attempts to exploit the incident to incite further violence. The Oromo Liberation Army (#OLA), for its part, accused what it described as “mercenaries” of moving through Arsi Zone and deliberately targeting Orthodox Christian civilians in an effort to inflame inter-religious and inter-ethnic tensions........ Read more: https://addisstandard.com/?p=55518