From a61fed25fde14cf2cd35ac5560419b857161964a Mon Sep 17 00:00:00 2001 From: Ali Hashemi <60406325+haashemi@users.noreply.github.com> Date: Thu, 14 Mar 2024 03:17:52 +0330 Subject: [PATCH] chore: do a little code documentation --- options.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/options.go b/options.go index b7c39b1..f8ca351 100644 --- a/options.go +++ b/options.go @@ -2,16 +2,20 @@ package writer import "golang.org/x/text/unicode/bidi" +// DefaultOptions contains the recommended default options var DefaultOptions = Options{ Bidi: true, Features: DefaultFeatures, } +// Options holds the features used to modify, shape, and write the text. type Options struct { Bidi bool Features []Feature // Feature are the OpenType feature you want to enable. + // TODO: Features maybe should be a struct instead of a slice? } +// bidiText converts a bi-directional text logically to visually. func bidiText(in string) (out string, err error) { p := bidi.Paragraph{} p.SetString(in)