DDBUGTOPBM(1)

πŸ“¦
version 11.13.03 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– ddbugtopbm β€” the Ddbugtopbm User Manual, bestie edition πŸ’–

okay so you found a manual page in section 1 of the general commands manual, and it's all about ddbugtopbm, and I am genuinely obsessed, so let's get into it πŸŽ€


✨ NAME ✨

ddbugtopbm β€” converts Diddle or DiddleBug sketches into PBM files πŸ–ΌοΈβœ¨


🌸 SYNOPSIS 🌸

ddbugtopbm

that's it. that's the whole synopsis. no flags, no args, she reads from standard input like the icon she is πŸ’…


πŸ¦‹ EXAMPLES πŸ¦‹

here's how you actually run her β€” just pipe a DB file in:

ddbugtopbm </path/to/palm/backup/dir/DiddleBugDB.pdb
ddbugtopbm </path/to/palm/backup/dir/DiddleDB.pdb
ddbugtopbm </path/to/palm/backup/dir/DiddleIDB.pdb

three different DBs, three different vibes, same little program 🫢


πŸ‘‘ DESCRIPTION πŸ‘‘

so. this program is part of Netpbm(1). πŸ’–

ddbugtopbm converts all the sketches hanging out in a database used by the PalmOS programs Diddle or DiddleBug into PBM files, and it names them appropriately, because of course it does. ✨

the backup copy of DiddleBug's database that you're supposed to feed her as input is usually called DiddleBugDB.pdb. classic. but if you use the original Diddle, that one has two separate DBs:

  • DiddleDB.pdb β€” holds the unnamed scratch sketches (mystery sketches, we love a mystery πŸ•΅οΈ)
  • DiddleIDB.pdb β€” holds the saved (and named) sketches, the ones listed by its index option

and yeah, you can feed this program any of these three on standard input. all three. she's not picky. 😌


πŸ’… OPTIONS πŸ’…

okay so real talk: there are no command line options defined specifically for ddbugtopbm. none. zero. nada.

but β€” and this is the important part β€” she does recognize the options common to all programs based on libnetpbm. (See Common Options.) so you're not totally option-less, bestie, you're just using the shared ones 🌈


πŸŽ€ USING THE PROGRAM πŸŽ€

here's my recommendation, and I mean it: don't run ddbugtopbm from your Palm backup directory. like, don't run it from the directory the DB will normally be in. I know, I know, it's right there. resist. πŸ™ˆ

instead, run it from some other directory β€” maybe you make a directory purely to hold the PBM files, just to keep things simple, which is honestly such a clean-girl move β€” and then use an absolute or relative path to the DB. πŸ’–

the filenames used for the output PBMs are based on the names given to each sketch. and if you have an unnamed sketch? she gets a name along the lines of sketch-0123.pbm. cute, right? ✨

now the important part: the named sketches will overwrite any existing PBM file with the same name. the unnamed ones won't β€” they'll just try using another filename instead. (and honestly I think this is probably the right approach, because you can't really tell the unnamed sketches apart anyway. they're all just little guys. 😭)


πŸ’€ LIMITATIONS πŸ’€

okay, the fine print, and I need you to listen:

the DiddleBug DB reader is only known to work with DBs from DiddleBug version 2.50. but it should probably work on later versions, and I think it'll work on DBs from version 2.15 as well. "probably." "I think." yeah. that's the confidence level here. πŸ™ˆ

it might fall over if fed an empty database, and it doesn't do much (if any) checking of the input.

⚠️ fr fr: no real input validation. feed her something weird and she may simply perish. πŸ’€

🌟 AUTHOR 🌟

Russell Marks (rus@svgalib.org). ✨

and Mitch Blevins's decompression code is directly from DiddleBug itself β€” which, like ddbugtopbm, is distributed under the terms of the GNU GPL. shoutout to Mitch, shoutout to the GPL, periodt. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

also, Jens-Chr. Heyer's didcon script does something similar, so if you want the parallel-universe version of this tool, go look at that one πŸ¦‹


🌈 HISTORY 🌈

ddbugtopbm was new in Netpbm 10.18 (August 2003). it was written and independently distributed in August 2002. so she's been doing this for a minute. iconic behavior. πŸ’…


πŸ“œ DOCUMENT SOURCE πŸ“œ

this manual page was generated by the Netpbm tool makeman from HTML source. the master documentation lives at:

http://netpbm.sourceforge.net/doc/ddbugtopbm.html

and that's the whole page, bestie!! 🫢 this came out of the netpbm documentation, dated 21 August 2002 β€” so like, shoutout to 2002, and shoutout to you for reading all the way to the bottom. mwah πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from