mbeckerle commented on issue #311:
URL: 
https://github.com/apache/daffodil-vscode/issues/311#issuecomment-1416527736

   Useful Idea perhaps:
   
   This table is from the mil-std-2045 specification (which is public):
   
   
![image](https://user-images.githubusercontent.com/1524099/216728969-bd2d5761-d68f-4952-b9e5-339212ecf031.png)
   
   The columns "value" and "field fragments" are pretty interesting. 
   
   This table would have looked better if they had used a fixed-width font, but 
the point is that to show the bits, there are no natural boundaries, so you 
need to be able to point at any bit boundary and say "linebreak" and have it 
push the stuff to the left down to the next line. 
   
   Also the way the reconcile bits to bytes is interesting. They allow you to 
"paint" a byte with X chars so that you can have a line about a bit field, and 
use "XX1XXXXX" to show its placement in a byte. Notice how in the table it 
takes 6 rows to cover the fields that make up only the first octet of data. 
   
   An interactive mode that used this sort of display would have something like 
their field fragments column, with the X's filled in automatically so if you 
break the middle of a byte down to the next line, the right number of XXX chars 
show up to show the bits that are unavailable due to being taken up by fields 
described above. 
   
   I'm attaching this spec doc to this ticket for your perusal. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to