1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-05-01 19:55:29 +00:00

AZTEC: add almost optimal encoding algorithm, previous algorithm

available via "--fast" (input_mode |= FAST_MODE) (ticket #347);
  add new option "--azfull" (option_3 = ZINT_AZTEC_FULL) to only
  consider Full symbols (not Compact ones) on automatic sizing
GUI: adjust Aztec tab to show feedback by selecting combos and
  shorten message to just actual ECC;
  grpCodabar min width
library: debug source input dump 200 -> 2000
common: some code fiddling (c -> ch, flg -> flag)
backend_tcl: add "-azfull" option & make capitalization of
  help more consistent
general: remove some trailing whitespace
manual: make Aztec ECCs more precise, i.e. ">=" rather than ">"
  (similarly in GUI)
CLI: code fiddling c -> opt
This commit is contained in:
gitlost
2026-02-02 14:20:10 +00:00
parent cf5ef9ec20
commit bcb3ceefe1
33 changed files with 4430 additions and 927 deletions

View File

@@ -40,6 +40,21 @@ be set based on data</string>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="chkAztecFull">
<property name="text">
<string>Full O&amp;nly</string>
</property>
<property name="toolTip">
<string>Only consider Full versions on automatic symbol
size selection, suppressing Compact versions
(ignored if disabled)</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLineEdit" name="txtAztecAutoInfo">
<property name="frame">
<bool>false</bool>
@@ -47,6 +62,9 @@ be set based on data</string>
<property name="readonly">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="0">
@@ -62,7 +80,7 @@ be set based on data</string>
</attribute>
</widget>
</item>
<item row="1" column="1">
<item row="1" column="1" colspan="2">
<widget class="QComboBox" name="cmbAztecSize">
<property name="maxVisibleItems">
<number>21</number>
@@ -269,7 +287,7 @@ for error correction codewords</string>
</attribute>
</widget>
</item>
<item row="2" column="1">
<item row="2" column="1" colspan="2">
<widget class="QComboBox" name="cmbAztecECC">
<property name="enabled">
<bool>false</bool>
@@ -280,22 +298,22 @@ for error correction codewords</string>
</property>
<item>
<property name="text">
<string>10% + 3 words</string>
<string>&gt;=10% + 3 words</string>
</property>
</item>
<item>
<property name="text">
<string>23% + 3 words</string>
<string>&gt;=23% + 3 words</string>
</property>
</item>
<item>
<property name="text">
<string>36% + 3 words</string>
<string>&gt;=36% + 3 words</string>
</property>
</item>
<item>
<property name="text">
<string>50% + 3 words</string>
<string>&gt;=50% + 3 words</string>
</property>
</item>
</widget>
@@ -354,6 +372,20 @@ the data with a slash &quot;/&quot;</string>
</layout>
</widget>
</item>
<item>
<widget class="QCheckBox" name="chkAztecFast">
<property name="text">
<string>&amp;Fast encoding</string>
</property>
<property name="toolTip">
<string>Use a faster but less optimal algorithm
for encoding the data</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBoxAztecStructApp">
<property name="title">