From 3c68203c6d8f547174c6ba3e5daf1daa2c14db5f Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 14 Mar 2016 05:44:27 +0000 Subject: [PATCH 1/9] spelling: calculate --- mbarchart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbarchart.go b/mbarchart.go index 0f91e97..f6dcd31 100644 --- a/mbarchart.go +++ b/mbarchart.go @@ -90,7 +90,7 @@ func (bc *MBarChart) layout() { for i := 0; i < bc.numStack; i++ { bc.dataNum[i] = make([][]rune, len(bc.Data[i])) - //For each stack of bar calcualte the rune + //For each stack of bar calculate the rune for j := 0; j < LabelLen && i < bc.numBar; j++ { n := bc.Data[i][j] s := fmt.Sprint(n) From 058b18fae8ad0c56382cb51dc28a463e6ab90770 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 14 Mar 2016 05:45:45 +0000 Subject: [PATCH 2/9] spelling: capacity --- linechart.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linechart.go b/linechart.go index f7eea28..84e7e28 100644 --- a/linechart.go +++ b/linechart.go @@ -35,7 +35,7 @@ var braillePatterns = map[[2]int]rune{ var lSingleBraille = [4]rune{'\u2840', '⠄', '⠂', '⠁'} var rSingleBraille = [4]rune{'\u2880', '⠠', '⠐', '⠈'} -// LineChart has two modes: braille(default) and dot. Using braille gives 2x capicity as dot mode, +// LineChart has two modes: braille(default) and dot. Using braille gives 2x capacity as dot mode, // because one braille char can represent two data points. /* lc := termui.NewLineChart() @@ -87,7 +87,7 @@ func NewLineChart() *LineChart { } // one cell contains two data points -// so the capicity is 2x as dot-mode +// so the capacity is 2x as dot-mode func (lc *LineChart) renderBraille() Buffer { buf := NewBuffer() From 552d4fdbed94fe9743b7e5ec4af12ff1bbf0f048 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 14 Mar 2016 05:45:57 +0000 Subject: [PATCH 3/9] spelling: computed --- grid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.go b/grid.go index a950232..9cd93f8 100644 --- a/grid.go +++ b/grid.go @@ -48,7 +48,7 @@ func (r *Row) assignWidth(w int) { accW := 0 // acc span and offset calcW := make([]int, len(r.Cols)) // calculated width - calcOftX := make([]int, len(r.Cols)) // computated start position of x + calcOftX := make([]int, len(r.Cols)) // computed start position of x for i, c := range r.Cols { accW += c.Span + c.Offset From 93a02e31cf83e96527fb65c6491312d7253769ac Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 14 Mar 2016 05:47:16 +0000 Subject: [PATCH 4/9] spelling: implementation --- mbarchart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbarchart.go b/mbarchart.go index f6dcd31..d066599 100644 --- a/mbarchart.go +++ b/mbarchart.go @@ -8,7 +8,7 @@ import ( "fmt" ) -// This is the implemetation of multi-colored or stacked bar graph. This is different from default barGraph which is implemented in bar.go +// This is the implementation of multi-colored or stacked bar graph. This is different from default barGraph which is implemented in bar.go // Multi-Colored-BarChart creates multiple bars in a widget: /* bc := termui.NewMBarChart() From 92e24c9d1c28f75f3a16926ee282d36e07391cbb Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 14 Mar 2016 05:47:25 +0000 Subject: [PATCH 5/9] spelling: implements --- grid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid.go b/grid.go index 9cd93f8..851489d 100644 --- a/grid.go +++ b/grid.go @@ -266,7 +266,7 @@ func (g *Grid) Align() { } } -// Buffer implments Bufferer interface. +// Buffer implements Bufferer interface. func (g Grid) Buffer() Buffer { buf := NewBuffer() From 9330264be1c3445cf3efb8b06fefff863561ad55 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 14 Mar 2016 05:47:50 +0000 Subject: [PATCH 6/9] spelling: interrupt --- _example/dashboard.go | 2 +- _example/theme.go | 2 +- list.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_example/dashboard.go b/_example/dashboard.go index b59c325..bd51c27 100644 --- a/_example/dashboard.go +++ b/_example/dashboard.go @@ -30,7 +30,7 @@ func main() { } }) - strs := []string{"[0] gizak/termui", "[1] editbox.go", "[2] iterrupt.go", "[3] keyboard.go", "[4] output.go", "[5] random_out.go", "[6] dashboard.go", "[7] nsf/termbox-go"} + strs := []string{"[0] gizak/termui", "[1] editbox.go", "[2] interrupt.go", "[3] keyboard.go", "[4] output.go", "[5] random_out.go", "[6] dashboard.go", "[7] nsf/termbox-go"} list := ui.NewList() list.Items = strs list.ItemFgColor = ui.ColorYellow diff --git a/_example/theme.go b/_example/theme.go index f06b3d0..f77a6d7 100644 --- a/_example/theme.go +++ b/_example/theme.go @@ -25,7 +25,7 @@ func main() { p.Width = 50 p.BorderLabel = "Text Box" - strs := []string{"[0] gizak/termui", "[1] editbox.go", "[2] iterrupt.go", "[3] keyboard.go", "[4] output.go", "[5] random_out.go", "[6] dashboard.go", "[7] nsf/termbox-go"} + strs := []string{"[0] gizak/termui", "[1] editbox.go", "[2] interrupt.go", "[3] keyboard.go", "[4] output.go", "[5] random_out.go", "[6] dashboard.go", "[7] nsf/termbox-go"} list := ui.NewList() list.Items = strs list.BorderLabel = "List" diff --git a/list.go b/list.go index ea6635e..5a59215 100644 --- a/list.go +++ b/list.go @@ -14,7 +14,7 @@ import "strings" strs := []string{ "[0] github.com/gizak/termui", "[1] editbox.go", - "[2] iterrupt.go", + "[2] interrupt.go", "[3] keyboard.go", "[4] output.go", "[5] random_out.go", From 10586d407b89bdaacfc03e3e57caf749cf639edf Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 14 Mar 2016 05:48:08 +0000 Subject: [PATCH 7/9] spelling: minimum --- mbarchart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbarchart.go b/mbarchart.go index d066599..ff86ed4 100644 --- a/mbarchart.go +++ b/mbarchart.go @@ -72,7 +72,7 @@ func (bc *MBarChart) layout() { } bc.numStack = DataLen - //We need to know what is the mimimum size of data array data[0] could have 10 elements data[1] could have only 5, so we plot only 5 bar graphs + //We need to know what is the minimum size of data array data[0] could have 10 elements data[1] could have only 5, so we plot only 5 bar graphs for i := 0; i < DataLen; i++ { if bc.minDataLen > len(bc.Data[i]) { From 23118e571abfa540dd6e33b4f400160b0241f2e6 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 14 Mar 2016 05:48:48 +0000 Subject: [PATCH 8/9] spelling: previous --- mbarchart.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbarchart.go b/mbarchart.go index ff86ed4..0ce6c45 100644 --- a/mbarchart.go +++ b/mbarchart.go @@ -96,7 +96,7 @@ func (bc *MBarChart) layout() { s := fmt.Sprint(n) bc.dataNum[i][j] = trimStr2Runes(s, bc.BarWidth) } - //If color is not defined by default then populate a color that is different from the prevous bar + //If color is not defined by default then populate a color that is different from the previous bar if bc.BarColor[i] == ColorDefault && bc.NumColor[i] == ColorDefault { if i == 0 { bc.BarColor[i] = ColorBlack From 6b3d91f8d18a1852146231572f499b6faff7ea86 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Mon, 14 Mar 2016 05:49:04 +0000 Subject: [PATCH 9/9] spelling: sparklines --- sparkline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparkline.go b/sparkline.go index d906e49..75e7c52 100644 --- a/sparkline.go +++ b/sparkline.go @@ -51,7 +51,7 @@ func NewSparkline() Sparkline { LineColor: ThemeAttr("sparkline.line.fg")} } -// NewSparklines return a new *Spaklines with given Sparkline(s), you can always add a new Sparkline later. +// NewSparklines return a new *Sparklines with given Sparkline(s), you can always add a new Sparkline later. func NewSparklines(ss ...Sparkline) *Sparklines { s := &Sparklines{Block: *NewBlock(), Lines: ss} return s