lsongdev / lsongdev/node-escpos
Transpose is not happening for arabic
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 443
- PR merge metrics
- No merged PRs in 30d
Description
I have used esc-pos-encoder it is working fine.. But some of the reason i m using node-escpos bt it is not printing arabic. please help
var arab1 = 'السلام عليكم';
printer
.text(arab1, 'CP1256')
.text(arab1, 'ISO-8859-6')
.cut()
But its printing in reverse ... And Transpose is not happening
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the reported example with `node-escpos`, the Arabic string, and the CP1256 or ISO-8859-6 encoding. Trace the text-printing entry point and compare the output with the expected Arabic direction; done means Arabic text prints in the correct order rather than reversed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- embedded-iot, localization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100