pango

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: MIT, MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package pango reads Pango markup - what rofi rows, drun's display format, and script messages are written in - and translates it into lys-ui's rich-label subset. Weight, style, and hex foreground colors carry over; size, underline, fonts, and the other Pango attributes parse and render as plain text, since lys-ui's labels have no run sizes or decorations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Escape

func Escape(text string) string

Escape is g_markup_escape_text: the five XML specials as entities.

func PlainText

func PlainText(markup string) (string, bool)

PlainText strips the markup to its text, as pango_parse_markup returns it; false when the markup does not parse.

func Translate

func Translate(markup string) (string, bool)

Translate converts Pango markup into lys-ui markup (b, i, u, s, span color). It reports false for markup Pango itself would reject: a stray or mismatched tag, an unknown element, a broken entity.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL