textrender

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: GPL-3.0 Imports: 4 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 textrender renders the canonical dictionary EntrySet as readable plain text. It is a sibling of bobadapter and mdrender: it consumes the IR directly and never strips presentation syntax from another renderer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderEntry

func RenderEntry(entry *entryir.Entry, opts Options) string

func RenderEntrySet

func RenderEntrySet(set *entryir.EntrySet, opts Options) string

Types

type MultiRecordMode

type MultiRecordMode string
const (
	MultiRecordCombined MultiRecordMode = "combined"
	MultiRecordSeparate MultiRecordMode = "separate"
)

type Options

type Options struct {
	IncludeExamples     bool
	IncludeExtras       bool
	MaxExamplesPerSense int
	RecordOrdinal       int
	MultiRecordMode     MultiRecordMode
	IncludeGrammar      bool
}

func DefaultOptions

func DefaultOptions() Options

func UserOptions

func UserOptions() Options

Jump to

Keyboard shortcuts

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