Documentation
¶
Index ¶
- Constants
- Variables
- func AddDir(dirname string) error
- func FindFile(filename string) (string, error)
- func FindFontFiles() []string
- func FontFolder() (string, error)
- func InitDirs(basedir string) error
- func RunXTS(cfg *XTSConfig) error
- type PublishingInfo
- type TypesettingError
- type VTrace
- type XTSConfig
Constants ¶
View Source
const ( // SDNAMESPACE is the speedata XTS layout rules namespace SDNAMESPACE string = "urn:speedata.de/2021/xts/en" // XHTMLNAMESPACE is used for literal HTML elements inside <HTML> XHTMLNAMESPACE string = "urn:speedata.de/2021/xhtml" // LevelNotice is used for messages from Message LevelNotice = slog.Level(2) )
Variables ¶
View Source
var ( // Version is a semantic version Version string )
Functions ¶
func FindFontFiles ¶
func FindFontFiles() []string
FindFontFiles returns a list of all font files (otf,ttf)
Types ¶
type PublishingInfo ¶ added in v0.0.19
PublishingInfo contains information about a previous publishing run.
type TypesettingError ¶ added in v0.0.3
type TypesettingError struct {
Logged bool
Msg string
Command string // layout command name, e.g. "DefineColor"
Line int // line in the layout file, 0 if unknown
}
A TypesettingError is an error with optional layout position information.
func (TypesettingError) Error ¶ added in v0.0.3
func (te TypesettingError) Error() string
type XTSConfig ¶
type XTSConfig struct {
Datafile io.Reader
DumpFile io.Writer
FindFile func(string) (string, error)
Jobname string
Layoutfile io.Reader
Mode []string
Outfile io.WriteCloser
OutFilename string
SuppressInfo bool
Tracing []string
Variables map[string]any
Info PublishingInfo
}
XTSConfig is the configuration file for PDF generation.
Click to show internal directories.
Click to hide internal directories.