lindell / lindell/JsBarcode

Forced CODE128 codes to B-C-B format.

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

With the auto mode, my postal code (2 letter, 9 digits, 2 letter) generated as B(3)-C(8)-A(2) coding. I need B(3)-C(8)-**B**(2) format, so I tried:

```
JsBarcode('#svg-barcode')
.options(barcodeConfig)
.CODE128B(code.substr(0, 3), {})
.CODE128C(code.substr(3, 8), {})
.CODE128B(code.substr(11, 2), {})
.render();
```

but it generates too long code. I think, each block adds a start/end character.

Is there any working solution for this concatenation?

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 tracing the chained CODE128B/C/CODE128B calls shown in the issue and how JsBarcode combines those segments. Verify how start and end characters affect the rendered barcode, then confirm that the B-C-B postal-code sequence can be produced without unwanted extra characters.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.