this post was submitted on 08 Sep 2024
1219 points (98.2% liked)

Programmer Humor

32131 readers
1183 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] renzev 64 points 3 weeks ago* (last edited 3 weeks ago) (9 children)
[–] [email protected] 28 points 3 weeks ago (7 children)

Lots or file formats are just zipped XML.

I was ~~reverse engineering~~ fucking around with the LBX file format for our Brother label printer's software at work, because I wanted to generate labels programmatically, and they're zipped XML too. Terrible format, LBX, really annoying to work with. The parser in Brother P-Touch Editor is really picky too. A string is 1 character longer or shorter than the length you defined in an attribute earlier in the XML? "I've never seen this file format in my life," says P-Touch Editor.

[–] bitjunkie 1 points 2 weeks ago (1 children)

Do you have to define a length range?

[–] [email protected] 2 points 2 weeks ago

The precise length, not a range.

But I misremembered a bit, you actually define it after the text. Here's a screenshot of a single text element: https://clips.clb92.xyz/2024-09-08_22-27-04_gfxTWDQt13RMnTIS.png

load more comments (5 replies)
load more comments (6 replies)