File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ export function guessLanguageFromModelHint(deviceInfo?: IDeviceInformation): Con
2424 const modelName = deviceInfo . productName ?? '' ;
2525 // ZPL printers follow standard formats and can usually be trusted.
2626 switch ( true ) {
27+ // A number of printers support auto-detect based on the first command sent
28+ // We prefer ZPL for a few reasons, so we try ZPL with them first.
29+ case / Z D 4 2 0 / gim. test ( modelName ) : // (guess)
30+ case / G K 4 2 0 / gim. test ( modelName ) : // ZTC GK420t
31+ case / G K 8 8 8 / gim. test ( modelName ) : // (guess)
32+ case / G X 4 [ 2 3 ] 0 / gim. test ( modelName ) : // (guess)
33+ case / G T 8 0 0 / gim. test ( modelName ) : // (guess)
2734 case / L P 2 8 2 4 P l u s / gim. test ( modelName ) : // LP 2844 Plus
2835 return Conf . PrinterCommandLanguage . zplEmulateEpl ;
2936
You can’t perform that action at this time.
0 commit comments