Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Rectangular Micro QR Code (rMQR), pure only #681

Merged
merged 3 commits into from Dec 6, 2023

Conversation

gitlost
Copy link
Contributor

@gitlost gitlost commented Dec 5, 2023

  • Result: allow this or other to have lineCount 1 and swop calcs accordingly; "rssexpanded-2/4_03.png" causes assert(lineCount() == 1) to trigger; also makes equals symmetrical
  • Add support for Rectangular Micro QR Code (rMQR), pure only

…rdingly;

"rssexpanded-2/4_03.png" causes `assert(lineCount() == 1)` to trigger;
also makes equals symmetrical
@axxel
Copy link
Collaborator

axxel commented Dec 5, 2023

Awesome. Thank you very much. I would immediately merge this but the failed code128 writer test is a bit of a bummer. ;). Looking at the diff, the only thing I can see that could have cased this is the add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>") line? Did this work on your windows box?

@gitlost
Copy link
Contributor Author

gitlost commented Dec 5, 2023 via email

@axxel
Copy link
Collaborator

axxel commented Dec 5, 2023

The BarcodeFormat::rMQR does not quite fit into the list IMHO. I noticed that the spec speaks of "Rectangular Micro QR Code (rMQR)" (which supports your choice) but the Denso marketing term is rMQR Code which would translate to rMQRCode or maybe even RMQRCode and fits better into the list of existing names, in my opinion.

What is your take on that? I can easily change that later myself.

@gitlost
Copy link
Contributor Author

gitlost commented Dec 5, 2023 via email

test passes on Windows (due to change to default UTF-8 in
"test/unit/CMakeLists.txt" apparently); only needed to change the
3 tests with two instances in the one string but changed the others
for consistency)
@gitlost
Copy link
Contributor Author

gitlost commented Dec 6, 2023 via email

@axxel axxel merged commit 7a294f2 into zxing-cpp:master Dec 6, 2023
10 checks passed
@axxel
Copy link
Collaborator

axxel commented Dec 6, 2023

I changed it myself while adding all the wrapper copies of that as well (which are quite a few nowadays... ;))

I did a few quick tests with the android demo app and it actually works better than expected with real input. Very cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants