11
11
- Move cursor with the arrow-keys on the keyboard =→ ↑ ↓ ←=
12
12
- Quit =C-c C-c=
13
13
14
- * Pure UNICODΕ text diagrams in Emacs
14
+ * Pure UNICODE text diagrams in Emacs
15
15
Draw diagrams like those:
16
16
17
17
Document a command:
@@ -162,16 +162,16 @@ Exit it with:
162
162
163
163
The current major mode is still active underneath =uniline-mode=.
164
164
165
- While in =uniline-mode=, overwritting is active, as well as long lines
165
+ While in =uniline-mode=, overwriting is active, as well as long lines
166
166
truncation. Also, a hollow cursor is provided. Those settings are
167
167
reset to their previous state when exiting =uniline-mode=.
168
168
169
169
* Drawing lines
170
- Use keybord arrows to draw lines.
170
+ Use keyboard arrows to draw lines.
171
171
172
172
By default, drawing lines only happens over empty space or over other
173
173
lines. If there is already text, it will not be erased. However, by
174
- hiting the control-key while moving, lines overwrite whatever there
174
+ hitting the control-key while moving, lines overwrite whatever there
175
175
is.
176
176
177
177
The buffer is "infinite" in bottom and right directions. Which means
@@ -218,7 +218,7 @@ The =<insert>= key is a prefix for other keys:
218
218
- for drawing arrows, squares, crosses, o-shapes glyphs,
219
219
- for handling rectangles,
220
220
- for inserting =# = - += which otherwise change the brush style,
221
- - for trying a choice of monospaced fonts.
221
+ - for trying a choice of mono-spaced fonts.
222
222
223
223
Why =<insert>=? Because:
224
224
- =Uniline= tries to leave their original meaning to as much keys as
@@ -261,8 +261,8 @@ To change the direction of the arrow, use shift-arrow, for example:
261
261
=S-<up>= will change from =→= to =↑=.
262
262
263
263
* Intersection glyphs =■ ◆ ●=
264
- There are a few other UNICODE characters which are monospace and
265
- symetric in the 4 directions. They are great at line intersections:
264
+ There are a few other UNICODE characters which are mono-space and
265
+ symmetric in the 4 directions. They are great at line intersections:
266
266
267
267
To insert a square =□ ■ ▫ ▪ ◇ ◆ ◊= type:
268
268
=<insert>sss...= (=s= cycles, =S= cycles backward).
@@ -314,9 +314,9 @@ prefix them with =<insert>=. Example: =<insert>-= inserts a =-= and
314
314
To draw a rectangle in one shot, select a rectangular region with
315
315
=C-SPC= or =C-x SPC= and move the cursor.
316
316
317
- You may also use =S-<arrow>= (=<arrow>= beeing any of the 4
317
+ You may also use =S-<arrow>= (=<arrow>= being any of the 4
318
318
directions) to extend the selection. The buffer grows as needed with
319
- white spaces to accomodate the selection. Selection extension mode is
319
+ white spaces to accommodate the selection. Selection extension mode is
320
320
active when =shift-select-mode= is non-nil.
321
321
322
322
If needed, change the brush with any of
@@ -460,7 +460,7 @@ a boundary.
460
460
461
461
Put the cursor anywhere in the hole. Then type:
462
462
463
- =<insert> i=
463
+ =INS i=
464
464
465
465
Answer by giving a character to fill the hole.
466
466
@@ -476,6 +476,11 @@ by functions like =C-k= or =M-w=, which remove text from the buffer.
476
476
477
477
Typing =RET= aborts the filling operation.
478
478
479
+ A rectangular shape may also be filled.
480
+ - Mark a region
481
+ - =INS i=
482
+ - answer which character should be used to fill.
483
+
479
484
There is no limit on the area to fill. Therefore, the filling
480
485
operation may flood the entire buffer (but no more).
481
486
@@ -561,7 +566,7 @@ call a macro in 4 directions, closing a square:
561
566
#+end_example
562
567
563
568
* Which fonts?
564
- A monospace character font must be used. It must also support UNICODE.
569
+ A mono-space character font must be used. It must also support UNICODE.
565
570
566
571
Not all fonts are born equal.
567
572
@@ -577,7 +582,7 @@ Not all fonts are born equal.
577
582
- =(set-frame-font "Source Code Pro" )=
578
583
579
584
Those fonts are known to support the required UNICODE characters, AND
580
- display them as monospace . There are fonts advertized as monospace
585
+ display them as mono-space . There are fonts advertised as mono-space
581
586
which give arbitrary widths to non-ASCII characters. That is bad for
582
587
the kind of drawings done by =Uniline=.
583
588
598
603
599
604
Beware that Emacs tries to compensate for missing UNICODE support by
600
605
the current font. Emacs substitutes one font for another, character
601
- per character. The user may not notice until the dawings done under
606
+ per character. The user may not notice until the drawings done under
602
607
Emacs are displayed on another text editor or on the Web.
603
608
604
- To know which font Emacs has choosen for a given character, type:
609
+ To know which font Emacs has chosen for a given character, type:
605
610
606
611
=C-u C-x ==
607
612
@@ -665,8 +670,8 @@ choice for everyone.
665
670
666
671
#+begin_example
667
672
668
- ╭────┬────────┬────╮ ╺┯━━━━┯┯━━┯┯━┯┯━━━━━━━━┯┯━━━━━━━┯┯━━━━━━━ ┯╸
669
- │▒▒▒▒╰────────╯▒▒▒▒│ │ │╰is╯╰a╯│ ││ │╰arround ╯
673
+ ╭────┬────────┬────╮ ╺┯━━━━┯┯━━┯┯━┯┯━━━━━━━━┯┯━━━━━━━┯┯━━━━━━┯╸
674
+ │▒▒▒▒╰────────╯▒▒▒▒│ │ │╰is╯╰a╯│ ││ │╰around ╯
670
675
│▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒│ ╰this╯ ╰sentence╯╰hanging╯
671
676
│▒▒▒╭─╮▒▒▒▒▒▒╭─╮▒▒▒│ △
672
677
│▒▒▒╰─╯▒▒▒▒▒▒╰─╯▒▒▒│ │ △
@@ -764,12 +769,12 @@ this does not quite work:
764
769
┃ ┗━━┛ ┃ ┏┛ ┃
765
770
┗━━━━━━━━━┛ ┗━━━━━━┛
766
771
767
- but that is ok :
772
+ but that is OK :
768
773
┏━━━┓
769
774
┃ ┃
770
775
┗━━━┛
771
776
772
- that is ok too:
777
+ that is OK too:
773
778
╺════╦══╗ ╔════╗
774
779
║ A║ ║ B ╚══╗
775
780
╚══╝ ╚═══════╝
@@ -847,8 +852,8 @@ for =C-<insertchar>=, for example with =use-package= in your
847
852
#+end_example
848
853
849
854
** Emacs on Windows
850
- On Windows the only native monospaced fonts are =Lucida Console= and
851
- =Courier New=. They are not monospaced for the Unicodes used by
855
+ On Windows the only native mono-spaced fonts are =Lucida Console= and
856
+ =Courier New=. They are not mono-spaced for the Unicodes used by
852
857
=Uniline=.
853
858
854
859
Often, the =Consolas= font is present on Windows. It supports quite well
@@ -894,7 +899,7 @@ in your =$HOME/.emacs= file is great for that:
894
899
:bind ("C-<insert>" . uniline-mode))
895
900
#+end_example
896
901
897
- In this example, =C-<insert>= was choosen . You can use whatever keys combination you want.
902
+ In this example, =C-<insert>= was chosen . You can use whatever keys combination you want.
898
903
=<insert>= happens to also be the key used inside =Uniline=.
899
904
900
905
* Related packages
@@ -960,6 +965,9 @@ In this example, =C-<insert>= was choosen. You can use whatever keys combination
960
965
961
966
* Author, contributors
962
967
- Thierry Banel, author
968
+
969
+ Feedback:
970
+
963
971
- Joost Kremers https://github.com/joostkremers found a bug in the
964
972
minor-mode key-binding definitions, and incompatibility with
965
973
- DogLooksGood https://github.com/DogLooksGood gave feedback on
0 commit comments