UniNews
University news from Greek and international universities in one place
Loading...
Searching...
No Matches
uninews.ui.labels Namespace Reference

Functions

str initialism (str name)
 
str initials (str name)
 
str shorten_source (str source, str publisher)
 

Detailed Description

Turning long publisher and source names into short display labels.

Function Documentation

◆ initialism()

str uninews.ui.labels.initialism ( str  name)
"University of Western Macedonia" -> "UoWM" (as the sources name themselves).

◆ initials()

str uninews.ui.labels.initials ( str  name)
Letters for the card's image box: "University of Macedonia" -> "UM".

◆ shorten_source()

str uninews.ui.labels.shorten_source ( str  source,
str  publisher 
)
Drop the publisher's own prefix from a source name.

Next to "University of Western Macedonia", "UoWM Midwifery" reads as
"Midwifery": the publisher is already shown.