clean up some debug prints
[?]
Apr 1, 2023, 11:41 PM
FBVUNLS4IETO34R6ZRRHD5ZLQQDYE4742PE5K7WQMONSI7BFYQMACDependencies
- [2]
3OC7AIC7exclude left margin from my word-split heuristic - [3]
ISOFHXB2App.width can no longer take a Text - [4]
M6TH7VSZrip out notion of Line_width - [5]
HGC5RGJPswitch to line index in a function - [6]
HOSPP2ANcrisp font rendering - [7]
NDHQN23Gdone passing left/right margins everywhere - [8]
ILOA5BYFseparate data structure for each line's cache data - [9]
QYIFOHW3first test! - [10]
JLU2RMC4allow Text.nearest_pos_less_than to return 0 - [11]
OI4FPFINsupport drawings in the source editor - [12]
XNFTJHC4split keyboard handling between Text and Drawing - [13]
UPCIYZEUdrop an unnecessary level of indent - [14]
PFT5Y2ZYmove - [15]
5DOTWNVMright margin - [16]
H4R5BHVYno more Text allocations - [17]
KKMFQDR4editing source code from within the app - [18]
KURLAXXIclean up some prints - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- edit in text.lua at line 102
--? print('compute_fragments', line_index, 'between', State.left, State.right) - edit in text.lua at line 113
--? print('x: '..tostring(x)..'; frag_width: '..tostring(frag_width)..'; '..tostring(State.right-x)..'px to go') - edit in text.lua at line 114
--? print(('checking whether to split fragment ^%s$ of width %d when rendering from %d'):format(frag, frag_width, x)) - edit in text.lua at line 115
--? print('splitting') - edit in text.lua at line 118
--? print('bpos', bpos) - edit in text.lua at line 120
--? print('space for '..tostring(bpos)..' graphemes, '..tostring(boffset-1)..' bytes') - edit in text.lua at line 122
--? print('extracting ^'..frag1..'$ of width '..tostring(frag1_width)..'px') - edit in text.lua at line 130
--? print('inserting ^'..frag..'$ of width '..tostring(frag_width)..'px') - edit in source_text.lua at line 118
--? print('compute_fragments', line_index, 'between', State.left, State.right) - edit in source_text.lua at line 129
--? print('x: '..tostring(x)..'; frag_width: '..tostring(frag_width)..'; '..tostring(State.right-x)..'px to go') - edit in source_text.lua at line 130
--? print(('checking whether to split fragment ^%s$ of width %d when rendering from %d'):format(frag, frag_width, x)) - edit in source_text.lua at line 131
--? print('splitting') - edit in source_text.lua at line 134
--? print('bpos', bpos) - edit in source_text.lua at line 136
--? print('space for '..tostring(bpos)..' graphemes, '..tostring(boffset-1)..' bytes') - edit in source_text.lua at line 138
--? print('extracting ^'..frag1..'$ of width '..tostring(frag1_width)..'px') - edit in source_text.lua at line 146
--? print('inserting ^'..frag..'$ of width '..tostring(frag_width)..'px')