Compare commits

...

2 Commits

Author SHA1 Message Date
Borna Rajković
914f64a08d Set fixed width for PDF417 2025-01-03 20:43:35 +01:00
Borna Rajković
c575a3c357 Renamed module 2025-01-03 20:41:46 +01:00
33 changed files with 50 additions and 50 deletions

View File

@ -27,8 +27,8 @@ import (
"image/png"
"os"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/qr"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/qr"
)
func main() {
@ -48,6 +48,6 @@ func main() {
```
## Documentation ##
See [GoDoc](https://godoc.org/github.com/boombuler/barcode)
See [GoDoc](https://godoc.org/git.bbr-dev.info/brajkovic/barcode)
To create a barcode use the Encode function from one of the subpackages.

View File

@ -5,8 +5,8 @@ import (
"image"
"image/color"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type aztecCode struct {

View File

@ -4,8 +4,8 @@ package aztec
import (
"fmt"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
const (

View File

@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
func Test_StuffBits(t *testing.T) {

View File

@ -1,7 +1,7 @@
package aztec
import (
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
func bitsToWords(stuffedBits *utils.BitList, wordSize int, wordCount int) []int {

View File

@ -1,7 +1,7 @@
package aztec
import (
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
func highlevelEncode(data []byte) *utils.BitList {

View File

@ -5,7 +5,7 @@ import (
"strings"
"testing"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
func bitStr(bl *utils.BitList) string {

View File

@ -3,7 +3,7 @@ package aztec
import (
"fmt"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type encodingMode byte

View File

@ -3,7 +3,7 @@ package aztec
import (
"fmt"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type token interface {

View File

@ -5,8 +5,8 @@ import (
"fmt"
"regexp"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
var encodingTable = map[rune][]bool{

View File

@ -6,8 +6,8 @@ import (
"strings"
"unicode/utf8"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
func strToRunes(str string) []rune {

View File

@ -6,8 +6,8 @@ import (
"strconv"
"strings"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type encodeInfo struct {

View File

@ -5,8 +5,8 @@ import (
"errors"
"strings"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type encodeInfo struct {

View File

@ -3,8 +3,8 @@ package datamatrix
import (
"strconv"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type setValFunc func(byte)

View File

@ -4,8 +4,8 @@ import (
"image"
"image/color"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type datamatrixCode struct {

View File

@ -4,7 +4,7 @@ package datamatrix
import (
"errors"
"github.com/boombuler/barcode"
"git.bbr-dev.info/brajkovic/barcode"
)
// Encode returns a Datamatrix barcode for the given content and color scheme

View File

@ -1,7 +1,7 @@
package datamatrix
import (
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type errorCorrection struct {

View File

@ -4,8 +4,8 @@ package ean
import (
"errors"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type encodedNumber struct {

2
go.mod
View File

@ -1 +1 @@
module github.com/boombuler/barcode
module git.bbr-dev.info/brajkovic/barcode

View File

@ -3,8 +3,8 @@ package pdf417
import "math"
const (
minCols = 2
maxCols = 30
minCols = 9
maxCols = 9
maxRows = 30
minRows = 2
moduleHeight = 2

View File

@ -4,8 +4,8 @@ package pdf417
import (
"fmt"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
const (

View File

@ -4,7 +4,7 @@ import (
"errors"
"math/big"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type encodingMode byte

View File

@ -4,8 +4,8 @@ import (
"image"
"image/color"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type pdfBarcode struct {

View File

@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
const charSet string = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"

View File

@ -3,7 +3,7 @@ package qr
import (
"fmt"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
func encodeAuto(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) {

View File

@ -4,8 +4,8 @@ package qr
import (
"image"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type encodeFn func(content string, eccLevel ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error)

View File

@ -6,7 +6,7 @@ import (
"os"
"testing"
"github.com/boombuler/barcode"
"git.bbr-dev.info/brajkovic/barcode"
)
type test struct {

View File

@ -1,7 +1,7 @@
package qr
import (
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type errorCorrection struct {

View File

@ -5,7 +5,7 @@ import (
"fmt"
"strconv"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
func encodeNumeric(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) {

View File

@ -5,8 +5,8 @@ import (
"image/color"
"math"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
type qrcode struct {

View File

@ -3,7 +3,7 @@ package qr
import (
"errors"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
func encodeUnicode(content string, ecl ErrorCorrectionLevel) (*utils.BitList, *versionInfo, error) {

View File

@ -5,8 +5,8 @@ import (
"errors"
"fmt"
"github.com/boombuler/barcode"
"github.com/boombuler/barcode/utils"
"git.bbr-dev.info/brajkovic/barcode"
"git.bbr-dev.info/brajkovic/barcode/utils"
)
const patternWidth = 5

View File

@ -5,7 +5,7 @@ import (
"image"
"image/color"
"github.com/boombuler/barcode"
"git.bbr-dev.info/brajkovic/barcode"
)
type base1DCode struct {