| 1 |
package tw |
| 2 |
|
| 3 |
// Deprecated: SymbolASCII is deprecated; use Glyphs with StyleASCII instead. |
| 4 |
// this will be removed soon |
| 5 |
type SymbolASCII struct{} |
| 6 |
|
| 7 |
// SymbolASCII symbol methods |
| 8 |
func (s *SymbolASCII) Name() string { return StyleNameASCII.String() } |
| 9 |
func (s *SymbolASCII) Center() string { return "+" } |
| 10 |
func (s *SymbolASCII) Row() string { return "-" } |
| 11 |
func (s *SymbolASCII) Column() string { return "|" } |
| 12 |
func (s *SymbolASCII) TopLeft() string { return "+" } |
| 13 |
func (s *SymbolASCII) TopMid() string { return "+" } |
| 14 |
func (s *SymbolASCII) TopRight() string { return "+" } |
| 15 |
func (s *SymbolASCII) MidLeft() string { return "+" } |
| 16 |
func (s *SymbolASCII) MidRight() string { return "+" } |
| 17 |
func (s *SymbolASCII) BottomLeft() string { return "+" } |
| 18 |
func (s *SymbolASCII) BottomMid() string { return "+" } |
| 19 |
func (s *SymbolASCII) BottomRight() string { return "+" } |
| 20 |
func (s *SymbolASCII) HeaderLeft() string { return "+" } |
| 21 |
func (s *SymbolASCII) HeaderMid() string { return "+" } |
| 22 |
func (s *SymbolASCII) HeaderRight() string { return "+" } |
| 23 |
|
| 24 |
// Deprecated: SymbolUnicode is deprecated; use Glyphs with appropriate styles (e.g., StyleLight, StyleHeavy) instead. |
| 25 |
// this will be removed soon |
| 26 |
type SymbolUnicode struct { |
| 27 |
row string |
| 28 |
column string |
| 29 |
center string |
| 30 |
corners [9]string // [topLeft, topMid, topRight, midLeft, center, midRight, bottomLeft, bottomMid, bottomRight] |
| 31 |
} |
| 32 |
|
| 33 |
// SymbolUnicode symbol methods |
| 34 |
func (s *SymbolUnicode) Name() string { return "unicode" } |
| 35 |
func (s *SymbolUnicode) Center() string { return s.center } |
| 36 |
func (s *SymbolUnicode) Row() string { return s.row } |
| 37 |
func (s *SymbolUnicode) Column() string { return s.column } |
| 38 |
func (s *SymbolUnicode) TopLeft() string { return s.corners[0] } |
| 39 |
func (s *SymbolUnicode) TopMid() string { return s.corners[1] } |
| 40 |
func (s *SymbolUnicode) TopRight() string { return s.corners[2] } |
| 41 |
func (s *SymbolUnicode) MidLeft() string { return s.corners[3] } |
| 42 |
func (s *SymbolUnicode) MidRight() string { return s.corners[5] } |
| 43 |
func (s *SymbolUnicode) BottomLeft() string { return s.corners[6] } |
| 44 |
func (s *SymbolUnicode) BottomMid() string { return s.corners[7] } |
| 45 |
func (s *SymbolUnicode) BottomRight() string { return s.corners[8] } |
| 46 |
func (s *SymbolUnicode) HeaderLeft() string { return s.MidLeft() } |
| 47 |
func (s *SymbolUnicode) HeaderMid() string { return s.Center() } |
| 48 |
func (s *SymbolUnicode) HeaderRight() string { return s.MidRight() } |
| 49 |
|
| 50 |
// Deprecated: SymbolMarkdown is deprecated; use Glyphs with StyleMarkdown instead. |
| 51 |
// this will be removed soon |
| 52 |
type SymbolMarkdown struct{} |
| 53 |
|
| 54 |
// SymbolMarkdown symbol methods |
| 55 |
func (s *SymbolMarkdown) Name() string { return StyleNameMarkdown.String() } |
| 56 |
func (s *SymbolMarkdown) Center() string { return "|" } |
| 57 |
func (s *SymbolMarkdown) Row() string { return "-" } |
| 58 |
func (s *SymbolMarkdown) Column() string { return "|" } |
| 59 |
func (s *SymbolMarkdown) TopLeft() string { return "" } |
| 60 |
func (s *SymbolMarkdown) TopMid() string { return "" } |
| 61 |
func (s *SymbolMarkdown) TopRight() string { return "" } |
| 62 |
func (s *SymbolMarkdown) MidLeft() string { return "|" } |
| 63 |
func (s *SymbolMarkdown) MidRight() string { return "|" } |
| 64 |
func (s *SymbolMarkdown) BottomLeft() string { return "" } |
| 65 |
func (s *SymbolMarkdown) BottomMid() string { return "" } |
| 66 |
func (s *SymbolMarkdown) BottomRight() string { return "" } |
| 67 |
func (s *SymbolMarkdown) HeaderLeft() string { return "|" } |
| 68 |
func (s *SymbolMarkdown) HeaderMid() string { return "|" } |
| 69 |
func (s *SymbolMarkdown) HeaderRight() string { return "|" } |
| 70 |
|
| 71 |
// Deprecated: SymbolNothing is deprecated; use Glyphs with StyleNone instead. |
| 72 |
// this will be removed soon |
| 73 |
type SymbolNothing struct{} |
| 74 |
|
| 75 |
// SymbolNothing symbol methods |
| 76 |
func (s *SymbolNothing) Name() string { return StyleNameNothing.String() } |
| 77 |
func (s *SymbolNothing) Center() string { return "" } |
| 78 |
func (s *SymbolNothing) Row() string { return "" } |
| 79 |
func (s *SymbolNothing) Column() string { return "" } |
| 80 |
func (s *SymbolNothing) TopLeft() string { return "" } |
| 81 |
func (s *SymbolNothing) TopMid() string { return "" } |
| 82 |
func (s *SymbolNothing) TopRight() string { return "" } |
| 83 |
func (s *SymbolNothing) MidLeft() string { return "" } |
| 84 |
func (s *SymbolNothing) MidRight() string { return "" } |
| 85 |
func (s *SymbolNothing) BottomLeft() string { return "" } |
| 86 |
func (s *SymbolNothing) BottomMid() string { return "" } |
| 87 |
func (s *SymbolNothing) BottomRight() string { return "" } |
| 88 |
func (s *SymbolNothing) HeaderLeft() string { return "" } |
| 89 |
func (s *SymbolNothing) HeaderMid() string { return "" } |
| 90 |
func (s *SymbolNothing) HeaderRight() string { return "" } |
| 91 |
|
| 92 |
// Deprecated: SymbolGraphical is deprecated; use Glyphs with StyleGraphical instead. |
| 93 |
// this will be removed soon |
| 94 |
type SymbolGraphical struct{} |
| 95 |
|
| 96 |
// SymbolGraphical symbol methods |
| 97 |
func (s *SymbolGraphical) Name() string { return StyleNameGraphical.String() } |
| 98 |
func (s *SymbolGraphical) Center() string { return "🟧" } // Orange square (matches mid junctions) |
| 99 |
func (s *SymbolGraphical) Row() string { return "🟥" } // Red square (matches corners) |
| 100 |
func (s *SymbolGraphical) Column() string { return "🟦" } // Blue square (vertical line) |
| 101 |
func (s *SymbolGraphical) TopLeft() string { return "🟥" } // Top-left corner |
| 102 |
func (s *SymbolGraphical) TopMid() string { return "🔳" } // Top junction |
| 103 |
func (s *SymbolGraphical) TopRight() string { return "🟥" } // Top-right corner |
| 104 |
func (s *SymbolGraphical) MidLeft() string { return "🟧" } // Left junction |
| 105 |
func (s *SymbolGraphical) MidRight() string { return "🟧" } // Right junction |
| 106 |
func (s *SymbolGraphical) BottomLeft() string { return "🟥" } // Bottom-left corner |
| 107 |
func (s *SymbolGraphical) BottomMid() string { return "🔳" } // Bottom junction |
| 108 |
func (s *SymbolGraphical) BottomRight() string { return "🟥" } // Bottom-right corner |
| 109 |
func (s *SymbolGraphical) HeaderLeft() string { return "🟧" } // Header left (matches mid junctions) |
| 110 |
func (s *SymbolGraphical) HeaderMid() string { return "🟧" } // Header middle (matches mid junctions) |
| 111 |
func (s *SymbolGraphical) HeaderRight() string { return "🟧" } // Header right (matches mid junctions) |
| 112 |
|
| 113 |
// Deprecated: SymbolMerger is deprecated; use Glyphs with StyleMerger instead. |
| 114 |
// this will be removed soon |
| 115 |
type SymbolMerger struct { |
| 116 |
row string |
| 117 |
column string |
| 118 |
center string |
| 119 |
corners [9]string // [TL, TM, TR, ML, CenterIdx(unused), MR, BL, BM, BR] |
| 120 |
} |
| 121 |
|
| 122 |
// SymbolMerger symbol methods |
| 123 |
func (s *SymbolMerger) Name() string { return StyleNameMerger.String() } |
| 124 |
func (s *SymbolMerger) Center() string { return s.center } // Main crossing symbol |
| 125 |
func (s *SymbolMerger) Row() string { return s.row } |
| 126 |
func (s *SymbolMerger) Column() string { return s.column } |
| 127 |
func (s *SymbolMerger) TopLeft() string { return s.corners[0] } |
| 128 |
func (s *SymbolMerger) TopMid() string { return s.corners[1] } // LevelHeader junction |
| 129 |
func (s *SymbolMerger) TopRight() string { return s.corners[2] } |
| 130 |
func (s *SymbolMerger) MidLeft() string { return s.corners[3] } // Left junction |
| 131 |
func (s *SymbolMerger) MidRight() string { return s.corners[5] } // Right junction |
| 132 |
func (s *SymbolMerger) BottomLeft() string { return s.corners[6] } |
| 133 |
func (s *SymbolMerger) BottomMid() string { return s.corners[7] } // LevelFooter junction |
| 134 |
func (s *SymbolMerger) BottomRight() string { return s.corners[8] } |
| 135 |
func (s *SymbolMerger) HeaderLeft() string { return s.MidLeft() } |
| 136 |
func (s *SymbolMerger) HeaderMid() string { return s.Center() } |
| 137 |
func (s *SymbolMerger) HeaderRight() string { return s.MidRight() } |