GNOME Bugzilla – Bug 785274
Degrees Celsius sign is breakable
Last modified: 2017-07-25 21:32:15 UTC
Created attachment 356178 [details] example of the breakage When the degrees Celsius sign (°C) gets on the end of a row, it’s broken into ‘°’ and ‘C’ (see attachment). A solution could be to use Unicode U+2103 ℃ instead. This probably applies to °F, where Unicode U+2109 ℉ could be used. (Fedora 26, Slovak locale.)
As mentioned earlier on IRC, those strings are provided by libgweather: https://git.gnome.org//browse/libgweather/tree/libgweather/gweather-weather.c#n793
Created attachment 356181 [details] [review] weather: Use unicode in temperature units All temperature units have their own unicode code points; using them instead of letter+degree will guarantee that the unit isn't broken by line wraps, and hopefully look nicer as well.
Review of attachment 356181 [details] [review]: Personally I'd prefer to see just the characters instead of the escape sequences, but I know sometimes gettext trips on unicode, so it looks good. Except the typo. No need for V2 once that's fixed. ::: libgweather/gweather-weather.c @@ +908,3 @@ if (!want_round) { + /* TRANSLATOR: This is the temperature in kelvin (U+212A KELVIN SIGN) */ + return g_strdup_printf (_("%.1f /u212A"), TEMP_F_TO_K (temp_f)); Flipped backslash?
Attachment 356181 [details] pushed as c10fa42 - weather: Use unicode in temperature units