acadbp

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bto10 added in v0.6.0

func Bto10(b bool) string

Bto10 returns "1" if b is true, otherwise "0"

func BtoYN added in v0.5.0

func BtoYN(b bool) string

BtoYN returns "Y" if b is true, otherwise "N"

func CreateTempFile added in v0.2.0

func CreateTempFile(name string, contents string, encode string) (string, error)

CreateTempFile creates a new file to temp directory and then writes contents and returns that filepath

func ExpandGlobPattern

func ExpandGlobPattern(args []string) ([]string, error)

ExpandGlobPattern returns filenames with the glob patterns expanded from filenames include * or ?

Types

type Batcher added in v0.5.0

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

func NewBatcher added in v0.5.0

func NewBatcher(accorepath string) *Batcher

NewBatcher returns a new batcher that batch-processes drawing files with accoreconsole

func (*Batcher) CheckAccore added in v0.5.0

func (b *Batcher) CheckAccore() error

CheckAccore returns an error if accoreconsole path is invalid

func (*Batcher) Run added in v0.5.0

func (b *Batcher) Run(scrfile string)

Run runs batch processing

func (*Batcher) RunForEach added in v0.5.0

func (b *Batcher) RunForEach(scrfile string, files []string, ext string)

RunForEach runs batch processing for each input file

func (*Batcher) SetOutput added in v0.5.0

func (b *Batcher) SetOutput(w io.Writer)

SetOutput sets a writer to output result

type DsdBuilder added in v0.5.0

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

func NewDsdBuilder added in v0.5.0

func NewDsdBuilder() *DsdBuilder

NewDsdBuilder returns a new dsd builder

func (*DsdBuilder) Output added in v0.5.0

func (d *DsdBuilder) Output() string

Output returns dsd file contents

func (*DsdBuilder) SetEncoding added in v0.5.0

func (d *DsdBuilder) SetEncoding(name string) error

SetEncoding sets a encoding name to read and write dsd file

func (*DsdBuilder) SetOutputFile added in v0.5.0

func (d *DsdBuilder) SetOutputFile(ftype string, multifile string) error

SetOutputFile sets output file type and filename for multi-sheet file

func (*DsdBuilder) SetSheets added in v0.5.0

func (d *DsdBuilder) SetSheets(files []string, layout string, sname string, sfile string) error

SetSheets sets input files to publish and their layout name and page setup

func (*DsdBuilder) SetTemplate added in v0.5.0

func (d *DsdBuilder) SetTemplate(file string) error

SetTemplate sets a template dsd file

type Sheet added in v0.5.0

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

func NewSheet added in v0.5.0

func NewSheet(path string) (*Sheet, error)

NewSheet returns a new sheet to publish

func (*Sheet) MakeDsdFormat added in v0.5.0

func (s *Sheet) MakeDsdFormat() string

MakeDsdFormat returns a sheet setting for dsd file

func (*Sheet) SetLayout added in v0.5.0

func (s *Sheet) SetLayout(l string)

SetLayout sets layout name to publish

func (*Sheet) SetPageSetup added in v0.5.0

func (s *Sheet) SetPageSetup(name string, file string) error

SetPageSetup sets a page setup name and a filename that includes the setup

Jump to

Keyboard shortcuts

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