@@ -7,6 +7,7 @@ export blockize, brailize, blockize!, brailize!
7
7
8
8
"""
9
9
brailize(a, cutoff=0)
10
+
10
11
Convert an array to a block unicode string, filling values above the cutoff point.
11
12
"""
12
13
blockize (a, cutoff= 0 ) = blockize! (initblock (size (a)), a, cutoff)
@@ -17,13 +18,9 @@ initblock(y, x) = Array{Char,2}(undef, x + 1, (y - 1) ÷ 2 + 1)
17
18
18
19
"""
19
20
blockize!(out, a, cutoff=0)
21
+
20
22
Convert an array to a braile unicode string, filling the `out` array.
21
23
Calculation of array dims is a little complicated:
22
-
23
- ```julia
24
- yrange, xrange = axes(a)
25
- out = Array{Char,2}(undef, length(xrange) + 1, (length(yrange) - 1) ÷ 2 + 1)
26
- ```
27
24
"""
28
25
blockize! (out, a, cutoff= 0 ) = join (block_array! (out, a, cutoff))
29
26
@@ -52,6 +49,7 @@ const braile_hex = ((0x01, 0x08), (0x02, 0x10), (0x04, 0x20), (0x40, 0x80))
52
49
53
50
"""
54
51
brailize(a, cutoff=0)
52
+
55
53
Convert an array to a braile unicode string, filling values above the cutoff point.
56
54
"""
57
55
brailize (a, cutoff= 0 ) = brailize! (initbraile (size (a)), a, cutoff)
@@ -62,13 +60,8 @@ initbraile(y, x) = Array{Char,2}(undef, (x - 1) ÷ 2 + 2, (y - 1) ÷ 4 + 1)
62
60
63
61
"""
64
62
brailize!(out, a, cutoff=0)
65
- Convert an array to a braile unicode string, filling the `out` array.
66
- Calculation of array dims is a little complicated:
67
63
68
- ```julia
69
- yrange, xrange = axes(a)
70
- out = Array{Char,2}(undef, (length(xrange) - 1) ÷ 2 + 2, (length(yrange) - 1) ÷ 4 + 1)
71
- ```
64
+ Convert an array to a braile unicode string, filling the `out` array.
72
65
"""
73
66
brailize! (out, a, cutoff= 0 ) = join (braile_array! (out, a, cutoff))
74
67
0 commit comments