lsongdev / lsongdev/node-escpos

Select Character Code Table

Open
#154 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.6k
Forks
443
PR merge metrics
No merged PRs in 30d

Description

Hello,

According to joined file (page 48) and according to my tests (..), if you want to use a Character Code Table with .text('blabla', 'cpxxx'), you've to select if first with command :
Hex 1B 74 n
with n described in the file

I suggest you add this function in printer.js like I do ;-)

Regards .. and thank you for your API !!
Vincent
[Command_METAPACE_BONDR_T_3_USB_SCHWARZ.pdf](https://github.com/song940/node-escpos/files/2371049/Command_METAPACE_BONDR_T_3_USB_SCHWARZ.pdf)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting printer.js and the attached Command_METAPACE_BONDR_T_3_USB_SCHWARZ.pdf, focusing on the existing text and encoding behavior. Compare the proposed character-table command and its n values with the API's current patterns. Done means the table can be selected before calling text with the requested encoding and the behavior is verified against the documented command.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
backend-api-design
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.