conc

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcExamples

type ConcExamples struct {
	Lines []ConcordanceLine `json:"lines"`
}

type ConcordanceLine

type ConcordanceLine struct {
	Text TokenSlice `json:"text"`
	Ref  string     `json:"ref"`
}

type LineParser

type LineParser struct {
	// contains filtered or unexported fields
}

func NewLineParser

func NewLineParser(attrs []string) *LineParser

func (*LineParser) Parse

func (lp *LineParser) Parse(data mango.GoConcExamples) []ConcordanceLine

Parse converts Manatee-encoded concordance lines into MQuery format. It also escapes strings to make them usable in XML documents.

type Token

type Token struct {
	Word   string            `json:"word"`
	Strong bool              `json:"strong"`
	Attrs  map[string]string `json:"attrs"`
}

type TokenSlice

type TokenSlice []*Token

Jump to

Keyboard shortcuts

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