nixers
text coordinate systems - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Development & Graphics (https://nixers.net/Forum-Development-Graphics)
+--- Forum: Programming On Unix (https://nixers.net/Forum-Programming-On-Unix)
+--- Thread: text coordinate systems (/Thread-text-coordinate-systems)


text coordinate systems - ckester - 27-06-2024

Interesting discussion of some of the subtleties which come up when writing code to display and manipulate text:

https://zed.dev/blog/zed-decoded-text-coordinate-systems

Much of this echoes Finseth's classic book on implementing emacs-style editors, but with updates to reflect our Unicoded world.

(Many people will avoid dealing with these issues by simply dropping in whatever text widget their favorite library provides, but I enjoy cooking from scratch.)