Skip to content

Commit

Permalink
New profiles safe, mcPrint and Munbyn (#89)
Browse files Browse the repository at this point in the history
* add mcPrint2/mcPrint3 support

* Add Munbyn ITPP0047 profile

* fix codepage list

* add 'safe' profile, which should be more safe than 'generic'

* mcPrint: disable CP874 due to missing Euro sign

* normalize

* normalize and collate

* Update data/profile/ITPP047.yml

---------

Co-authored-by: Chris Vigelius <me@cv.gd>
  • Loading branch information
patkan and chrisv2 authored Aug 24, 2024
1 parent ffb25b1 commit e3bf605
Show file tree
Hide file tree
Showing 5 changed files with 652 additions and 0 deletions.
52 changes: 52 additions & 0 deletions data/profile/ITPP047.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
ITPP047:
name: ITPP047
vendor: "Munbyn"
notes: >
Munbyn ITPP047/ITPP102 receipt printer with cutter.
This printer has all the standard features, but a
somewhat reduced codepage set. This profile might work
for other china printers (Meihengtong, ...), too.
For technical information, go to support.munbyn.com,
look for "Printer - Drivers / SDK", then download the
"ITPP047 SDK", which contains the "ITPP047 Program Manual".
inherits: default
media:
width:
mm: 80
pixels: 512
codePages:
0: CP437
# Katakana (for Japan)
1: CP932
# PC850: Multilingual
2: CP850
# PC860: Portuguese
3: CP860
# PC863 [Canadian French]
4: CP863
# PC865:Nodic
5: CP865
# West Europe (actually CP1252)
6: CP1252
# Greek
7: Unknown
# Hebrew
8: Unknown
# CP755
9: Unknown
# Iran
10: Unknown
# docs claim this to be CP1252, but it isn't
# 16: CP1252
16: Unknown
17: CP866
18: CP852
19: CP858
# Iran II
20: Unknown
# Latvian
21: Unknown
...
102 changes: 102 additions & 0 deletions data/profile/mcPrint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
---
mcPrint:
name: Star mcPrint2/mcPrint3
vendor: "Star Micronics"
inherits: default
notes: >
Star mcPrint2/mcPrint3 printers. Technical documentation is in
the "StarPRNT Command specifications Rev. 2.40" document, which
can be found online.
features:
starCommands: true
codePages:
# "Normal". The actual content of this page can be changed by
# memory switches, so it's not really usable.
0: Unknown
1: CP437
# Katakana
2: CP932
3: CP437
4: CP858
5: CP852
6: CP860
# Icelandic
7: CP861
# Canadian French
8: CP863
# Nordic
9: CP865
# Cyrillic Russian
10: CP866
# Cyrillic Bulgarian
11: CP855
# Turkey
12: CP857
# Israel (Hebrew)
13: CP862
# Arabic
14: CP864
# Greek
15: CP737
# Greek
16: CP851
# Greek
17: CP869
# Greek
18: CP928
# Lithuanian
19: CP772
# Lithuanian
20: CP774
# Thai (disabled because Euro sign is missing)
# 21: CP874
21: Unknown
# Windows Latin-1
32: CP1252
# Windows Latin-2
33: CP1250
# Windows Cyrillic
34: CP1251
# IBM Russian
64: CP3840
# Gost
65: CP3841
# Polish
66: CP3843
# CS2
67: CP3844
# Hungarian
68: CP3845
# Turkish
69: CP3846
# Brazil-ABNT
70: CP3847
# Brazil-ABICOMP
71: CP3848
# Arabic
72: CP1001
# Lithuanian-KBL
73: CP2001
# Estonian-1
74: CP3001
# Estonan-2
75: CP3002
# Latvian-1
76: CP3011
# Latvian-2
77: CP3012
# Bulgarian
78: CP3021
# Maltese
79: CP3041
# Thai Character Code 42
96: Unknown
# Thai Character Code 11
97: Unknown
# Thai Character Code 13
98: Unknown
# Thai Character Code 18
102: Unknown
# "User setting"
255: Unknown
...
48 changes: 48 additions & 0 deletions data/profile/safe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
safe:
name: Safe
vendor: Generic
notes: >
Default "safe" ESC/POS profile, suitable for standards-compliant or
Epson-branded printers. This profile is similar to the "generic" profile,
but has a lot less codepages to avoid encoding errors.
features:
barcodeA: true
barcodeB: true
bitImageRaster: true
bitImageColumn: true
graphics: true
starCommands: false
qrCode: true
pdf417Code: true
highDensity: true
pulseStandard: true
pulseBel: false
paperFullCut: true
paperPartCut: true
colors:
0: black
fonts:
0:
name: Font A
columns: 42
1:
name: Font B
columns: 56
media:
width:
mm: Unknown
pixels: Unknown
codePages:
0: CP437
1: CP932
2: CP850
3: CP860
4: CP863
5: CP865
16: CP1252
17: CP866
18: CP852
19: CP858
255: Unknown
...
Loading

0 comments on commit e3bf605

Please sign in to comment.