-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add printer to databse Xprinter XP-58 #36
Comments
Start by copying an existing profile to You can only select from encodings that are in the database, which are stored in To test your profile, you need to run some python (from our pip install pyyaml pyaml
python scripts/collate.py You can copy that over the top of the |
i create a new profile to data/profile/XP-58.yml and this is data of profile
But i have same problem if is possible i send my data (XP-58.yml) profile, (capabilities.json) to you to sold this problem for another users on this printer? |
You are the first XP-58 user, but other users on the POS-5890 (similar printers) can access Cyrillic already. Many of the code pages you list are not listed in Is there a programming guide or test page you are using as source data for this list so that I can check it's correct? Should save us some effort if we can get it right the first time. |
hello I tried with Russian keyboard support and print out all the letters with this code The problem I have is in some specific Macedonian letters as they are: |
A printer's documentation or test page will list code page names with numbers (0-255). This is specific to every printer.
The profile for this printer would start like this- edit the data/ files, not the JSON dist/ files.
So you can't start by typing, you have to start by printing a code page and seeing what's in it. If I was interested in the contents of code page #25 (0x19 in hex), I might do this (attached code-table.bin to help you dump the tables:
You then get a page, which you need to match up to an existing In my case, I recognise that the code page
If it wasn't listed, I would define a new code page, and type out exactly 128 glyphs, encoded as UTF8, so that the driver can encode these. When you're done, run the python to re-build (Disregard what you are doing so far and focus on associating a number with a picture of the output, CP3012 is not listed in the profile you made, and |
Something from my tests. |
Hello, I also have an XPRINTER XP-58IIH pos printer and I am facing an issue when im running the Also ran the following with no results.
May I ask how you produced those results @andrewshadura ? |
@mike42, please see https://salsa.debian.org/andrewsh/escpos-android/-/blob/master/app/src/main/java/me/shadura/escpos/Dialect.kt Also https://salsa.debian.org/andrewsh/escpos-android/-/blob/master/app/src/main/java/me/shadura/escpos/Encoder.kt is a Kotlin reimplementation of your magic encoder 🙂 |
Hey @modosenin, not sure if this will help but this is how I managed to tackle my problem. There is a Chinese character mode which I had to turn off to print the characters I wanted. The only documentation about this I managed to find was here: http://xinyeprinter.com.cn/xprinter/help/zhilingji.html
Hope this helps : ) |
Hi i have problem with Cyrillic on my XPRINTER XP-58 pos printer but my printer is not on database and i tray to add this code to capabilities.json but again not working how to add this printer to database ?
"Xprinter": {
"codePages": {
"0": "PC437",
"1": "Katakana",
"2": "PC580",
"3": "CP860",
"4": "CP863",
"5": "CP865",
"6": "West Europe",
"7": "Greek",
"8": "Hebrew",
"9": "East Europe",
"10": "Iran",
"16": "WCP1252",
"17": "PC866",
"18": "PC852",
"19": "PC858",
"20": "IranII",
"21": "Latvia",
"22": "Arabic",
"23": "PT1511251",
"24": "PC747",
"25": "WPC1257",
"27": "Vietnam",
"28": "PC864",
"29": "PC1001",
"30": "Uigru",
"31": "Hebrew",
"32": "WPC1255",
"255": "Thai"
},
"colors": {
"0": "black"
},
"features": {
"barcodeB": false,
"bitImageColumn": false,
"bitImageRaster": true,
"graphics": false,
"highDensity": true,
"pdf417Code": false,
"pulseBel": false,
"pulseStandard": true,
"qrCode": false,
"starCommands": false
},
"fonts": {
"0": {
"columns": 42,
"name": "Font A"
},
"1": {
"columns": 56,
"name": "Font B"
}
},
"media": {
"width": {
"mm": "Unknown",
"pixels": "Unknown"
}
},
"name": "XP-58",
"notes": "POS-XP58 thermal printer series, also marketed under various other names.\n",
"vendor": "Xprinter"
}
The text was updated successfully, but these errors were encountered: