Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultNotesFilename ¶ added in v0.1.6
func NewTranslationPatch ¶ added in v0.1.7
func NewTranslationPatch(lines ...string) *translationPatch
Types ¶
type TextDocument ¶
type TextDocument []TextElement
func NewTextDocument ¶
func NewTextDocument(reader io.Reader) TextDocument
func NewTextDocumentWithNotes ¶ added in v0.1.6
func NewTextDocumentWithNotes(document io.Reader, notes io.Reader) TextDocument
func (TextDocument) ChapterParagraphs ¶
func (td TextDocument) ChapterParagraphs(chapterTitle string) []TextParagraph
func (TextDocument) ChapterTitles ¶
func (td TextDocument) ChapterTitles() []string
func (TextDocument) ReplaceFrom ¶ added in v0.1.6
func (td TextDocument) ReplaceFrom(start int, old, new string) int
type TextElement ¶
type TextElement struct { Content []TextParagraph Type ElementType }
type TextParagraph ¶
type TextParagraph string
func NewParagraphs ¶
func NewParagraphs(p string) []TextParagraph
func (TextParagraph) Sentences ¶
func (tp TextParagraph) Sentences() []string
func (TextParagraph) String ¶
func (tp TextParagraph) String() string
Click to show internal directories.
Click to hide internal directories.