Enable FLAG_HAS_PRECUT for PT-2430PC

The PT-2430PC (0x04f9:0x202d) was flagged FLAG_NONE, so --precut was
silently a no-op on this model: printing a --chain'd batch of labels
produced one continuous strip with no cut between individual labels.

This printer shares the same head width and DPI (128px @ 180dpi) as
the PT-2700 (0x04f9:0x201f), which already has FLAG_HAS_PRECUT set.
That similarity prompted testing precut on real PT-2430PC hardware:
sending --chain on the first label and --precut on the second
produces a real cut between the two labels, with no errors and no
adverse effect on the surrounding print.

Tested on: PT-2430PC, USB ID 04f9:202d, tape: 12mm laminated.

Only the non-PLite entry is changed; the "(PLite Mode)" variant
(0x04f9:0x2031) was not tested and is left as FLAG_PLITE.
This commit is contained in:
Dominic Radermacher
2026-09-12 16:12:38 +02:00
parent 41c4af0d0d
commit 54e046f190
4 changed files with 199 additions and 199 deletions
+66 -66
View File
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: ptouch-print 1.7\n"
"Report-Msgid-Bugs-To: dominic@familie-radermacher.ch\n"
"POT-Creation-Date: 2026-07-18 08:01+0200\n"
"POT-Creation-Date: 2026-09-08 07:19+0200\n"
"PO-Revision-Date: 2024-05-23 22:26-0400\n"
"Last-Translator: dominic@familie-radermacher.ch\n"
"Language-Team: English <en@translate.freefriends.org>\n"
@@ -18,326 +18,326 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.4.2\n"
#: src/libptouch.c:123 src/libptouch.c:127 src/libptouch.c:131
#: src/libptouch.c:124 src/libptouch.c:128 src/libptouch.c:132
#, c-format
msgid "out of memory\n"
msgstr "out of memory\n"
#: src/libptouch.c:135
#: src/libptouch.c:136
#, c-format
msgid "libusb_init() failed\n"
msgstr "libusb_init() failed\n"
#: src/libptouch.c:144
#: src/libptouch.c:145
#, c-format
msgid "failed to get device descriptor"
msgstr "failed to get device descriptor"
#: src/libptouch.c:150
#: src/libptouch.c:151
#, c-format
msgid "%s found on USB bus %d, device %d\n"
msgstr "%s found on USB bus %d, device %d\n"
#: src/libptouch.c:165
#: src/libptouch.c:166
#, c-format
msgid "libusb_open error :%s\n"
msgstr "libusb_open error :%s\n"
#: src/libptouch.c:171
#: src/libptouch.c:172
#, c-format
msgid "error while detaching kernel driver: %s\n"
msgstr "error while detaching kernel driver: %s\n"
#: src/libptouch.c:175
#: src/libptouch.c:176
#, c-format
msgid "interface claim error: %s\n"
msgstr "interface claim error: %s\n"
#: src/libptouch.c:187
#: src/libptouch.c:188
#, c-format
msgid ""
"No P-Touch printer found on USB (remember to put switch to position E)\n"
msgstr ""
"No P-Touch printer found on USB (remember to put switch to position E)\n"
#: src/libptouch.c:207
#: src/libptouch.c:208
#, c-format
msgid "debug: called ptouch_send() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:214
#: src/libptouch.c:215
#, c-format
msgid "write error: %s\n"
msgstr "write error: %s\n"
#: src/libptouch.c:218
#: src/libptouch.c:219
#, fuzzy, c-format
msgid "write error: could send only %i of %ld bytes\n"
msgstr "write error: could send only %i of %i bytes\n"
#: src/libptouch.c:268
#: src/libptouch.c:269
#, c-format
msgid "debug: called ptouch_info_cmd() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:310
#: src/libptouch.c:311
#, fuzzy, c-format
msgid "debug: called ptouch_rasterstart() with NULL ptdev\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/libptouch.c:341
#: src/libptouch.c:351
#, c-format
msgid "debug: called ptouch_finalize() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:356
#: src/libptouch.c:366
#, c-format
msgid "debug: dumping raw status bytes\n"
msgstr "debug: dumping raw status bytes\n"
#: src/libptouch.c:375
#: src/libptouch.c:385
#, c-format
msgid "debug: called ptouch_getstatus() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:385 src/libptouch.c:416
#: src/libptouch.c:395 src/libptouch.c:426
#, c-format
msgid "read error: %s\n"
msgstr "read error: %s\n"
#: src/libptouch.c:390
#: src/libptouch.c:400
#, fuzzy, c-format
msgid "timeout (%i sec) while waiting for status response\n"
msgstr "timeout while waiting for status response\n"
#: src/libptouch.c:399
#: src/libptouch.c:409
#, c-format
msgid "unknown tape width of %imm, please report this.\n"
msgstr "unknown tape width of %imm, please report this.\n"
#: src/libptouch.c:405
#: src/libptouch.c:415
#, c-format
msgid "got only 16 bytes... wondering what they are:\n"
msgstr "got only 16 bytes... wondering what they are:\n"
#: src/libptouch.c:409
#: src/libptouch.c:419
#, c-format
msgid "read error: got %i instead of 32 bytes\n"
msgstr "read error: got %i instead of 32 bytes\n"
#: src/libptouch.c:412
#: src/libptouch.c:422
#, c-format
msgid "strange status:\n"
msgstr "strange status:\n"
#: src/libptouch.c:414
#: src/libptouch.c:424
#, c-format
msgid "trying to flush junk\n"
msgstr "trying to flush junk\n"
#: src/libptouch.c:419
#: src/libptouch.c:429
#, c-format
msgid "got another %i bytes. now try again\n"
msgstr "got another %i bytes. now try again\n"
#: src/libptouch.c:426
#: src/libptouch.c:436
#, fuzzy, c-format
msgid "debug: called ptouch_get_dpi() with NULL ptdev\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/libptouch.c:435
#: src/libptouch.c:445
#, fuzzy, c-format
msgid "debug: called ptouch_cal_tape_width() with NULL ptdev\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/libptouch.c:446
#: src/libptouch.c:456
#, c-format
msgid "printer with %d dpi not supported\n"
msgstr ""
#: src/libptouch.c:466
#: src/libptouch.c:476
#, fuzzy, c-format
msgid "debug: called ptouch_get_max_lines() with NULL ptdev\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/libptouch.c:470
#: src/libptouch.c:480
#, fuzzy, c-format
msgid "debug: called ptouch_get_max_lines() with invalid fontsize_px\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/libptouch.c:473
#: src/libptouch.c:483
#, c-format
msgid "debug: calculated max lines %d \n"
msgstr ""
#: src/libptouch.c:480
#: src/libptouch.c:490
#, c-format
msgid "debug: called ptouch_get_tape_width() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:489
#: src/libptouch.c:499
#, c-format
msgid "debug: called ptouch_get_max_width() with NULL ptdev\n"
msgstr ""
#: src/libptouch.c:504
#: src/libptouch.c:514
#, c-format
msgid "debug: called ptouch_sendraster() with NULL ptdev\n"
msgstr ""
#: src/ptouch-print.c:176
#: src/ptouch-print.c:186
#, c-format
msgid "nothing to print\n"
msgstr ""
#: src/ptouch-print.c:184
#: src/ptouch-print.c:194
#, c-format
msgid "image is too large (%ipx x %ipx)\n"
msgstr "image is too large (%ipx x %ipx)\n"
#: src/ptouch-print.c:185
#: src/ptouch-print.c:195
#, c-format
msgid "maximum printing width for this tape is %ipx\n"
msgstr "maximum printing width for this tape is %ipx\n"
#: src/ptouch-print.c:188
#: src/ptouch-print.c:198
#, fuzzy, c-format
msgid "image size (%ipx x %ipx)\n"
msgstr "image is too large (%ipx x %ipx)\n"
#: src/ptouch-print.c:204
#: src/ptouch-print.c:214
#, c-format
msgid "ptouch_rasterstart() failed\n"
msgstr "ptouch_rasterstart() failed\n"
#: src/ptouch-print.c:210
#: src/ptouch-print.c:220
#, c-format
msgid "send print information command\n"
msgstr ""
#: src/ptouch-print.c:216
#: src/ptouch-print.c:226
#, c-format
msgid "send PT-D460BT magic commands\n"
msgstr ""
#: src/ptouch-print.c:223
#: src/ptouch-print.c:233
#, c-format
msgid "send precut command\n"
msgstr ""
#: src/ptouch-print.c:232
#: src/ptouch-print.c:242
#, c-format
msgid "send PT-D460BT chain commands\n"
msgstr ""
#: src/ptouch-print.c:244
#: src/ptouch-print.c:254
#, c-format
msgid "ptouch_sendraster() failed\n"
msgstr "ptouch_sendraster() failed\n"
#: src/ptouch-print.c:293
#: src/ptouch-print.c:303
#, c-format
msgid "writing image '%s' failed\n"
msgstr "writing image '%s' failed\n"
#: src/ptouch-print.c:298
#: src/ptouch-print.c:308
#, c-format
msgid "printing '%s' requires %.1f mm of tape\n"
msgstr ""
#: src/ptouch-print.c:320
#: src/ptouch-print.c:330
#, c-format
msgid "debug: z baseline offset - %d\n"
msgstr ""
#: src/ptouch-print.c:321
#: src/ptouch-print.c:331
#, c-format
msgid "debug: text baseline offset - %d\n"
msgstr ""
#: src/ptouch-print.c:394
#: src/ptouch-print.c:404
#, c-format
msgid "render_text(): %i lines, font = '%s', align = '%c'\n"
msgstr ""
#: src/ptouch-print.c:397
#: src/ptouch-print.c:407
#, c-format
msgid "warning: font config not available\n"
msgstr "warning: font config not available\n"
#: src/ptouch-print.c:401
#: src/ptouch-print.c:411
#, c-format
msgid "setting font size=%i\n"
msgstr "setting font size=%i\n"
#: src/ptouch-print.c:403
#: src/ptouch-print.c:413
#, fuzzy, c-format
msgid "ignoring setting font margin=%i\n"
msgstr "setting font size=%i\n"
#: src/ptouch-print.c:408
#: src/ptouch-print.c:418
#, c-format
msgid "could not estimate needed font size\n"
msgstr "could not estimate needed font size\n"
#: src/ptouch-print.c:415
#: src/ptouch-print.c:425
#, c-format
msgid "choosing font size=%i\n"
msgstr "choosing font size=%i\n"
#: src/ptouch-print.c:431 src/ptouch-print.c:465
#: src/ptouch-print.c:441 src/ptouch-print.c:475
#, fuzzy, c-format
msgid "error in gdImageStringFT_180dpi: %s\n"
msgstr "error in gdImageStringFT: %s\n"
#: src/ptouch-print.c:622
#: src/ptouch-print.c:632
#, c-format
msgid "Only up to %d lines are supported"
msgstr ""
#: src/ptouch-print.c:703
#: src/ptouch-print.c:713
msgid "No arguments supported"
msgstr ""
#: src/ptouch-print.c:708
#: src/ptouch-print.c:718
msgid "Option --writepng missing"
msgstr ""
#: src/ptouch-print.c:711
#: src/ptouch-print.c:721
msgid "Options --force_tape_width and --info can't be used together"
msgstr ""
#: src/ptouch-print.c:742
#: src/ptouch-print.c:752
#, c-format
msgid "ptouch_init() failed\n"
msgstr "ptouch_init() failed\n"
#: src/ptouch-print.c:745
#: src/ptouch-print.c:761
#, c-format
msgid "ptouch_getstatus() failed\n"
msgstr "ptouch_getstatus() failed\n"
#: src/ptouch-print.c:759
#: src/ptouch-print.c:775
#, fuzzy, c-format
msgid "printer has %d dpi, maximum printing width is %ld px\n"
msgstr "maximum printing width for this tape is %ipx\n"
#: src/ptouch-print.c:760
#: src/ptouch-print.c:776
#, fuzzy, c-format
msgid "maximum printing width for this tape is %ldpx\n"
msgstr "maximum printing width for this tape is %ipx\n"
#: src/ptouch-print.c:785
#: src/ptouch-print.c:801
#, c-format
msgid "failed to load image file\n"
msgstr ""
#: src/ptouch-print.c:794
#: src/ptouch-print.c:810
#, c-format
msgid "could not render text\n"
msgstr "could not render text\n"
#: src/ptouch-print.c:835
#: src/ptouch-print.c:851
#, c-format
msgid "ptouch_finalize(%d) failed\n"
msgstr "ptouch_finalize(%d) failed\n"