barnhill / barcodelib

C# Barcode Image Generation Library
Apache License 2.0
733 stars 238 forks source link

Barcode type: IATA 2 of 5 #177

Closed rob313663 closed 4 months ago

rob313663 commented 11 months ago

Suggestion, add the IATA 2 o 5 barcode. It should be really simple since the only difference is the start and stop patterns.

This is my implementation so far:

`using Robbar.Renderers;

namespace Robbar { public class IATA2of5 : Standard2of5 { public static new string SymbologyName { get; } = "IATA 2 of 5"; public static new string[] SymbologyAliasNames { get; } = { "Computer Identics 2 of 5", "Airline 2 of 5" };

    public IATA2of5()
    {
        StartCodeWord = new CodeWord() { Pattern = "bsb", Text = "" };
        StopCodeWord = new CodeWord() { Pattern = "Bsb", Text = "" };
    }
}

}`

barnhill commented 4 months ago

Adding IATA2of5 here: https://github.com/barnhill/barcodelib/pull/201

Going to push this out shortly if you want to give it a review.

barnhill commented 4 months ago

Added IATA 2 of 5 support in 3.1.0 https://github.com/barnhill/barcodelib/releases/tag/3.1.0