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

Is it possible to add "carriage return" to Numeric mode? #39

Open
electrosaeed opened this issue Mar 9, 2024 · 5 comments
Open

Is it possible to add "carriage return" to Numeric mode? #39

electrosaeed opened this issue Mar 9, 2024 · 5 comments

Comments

@electrosaeed
Copy link

Hi,
Is it possible to add "carriage return" to Numeric mode?
It seems it is not exist in ALPHANUMERIC too. So we should use Byte mode to have \r char.

@ricmoo
Copy link
Owner

ricmoo commented Mar 9, 2024

That's correct. The Numeric and Alphanumeric modes are (intentionally) highly constrained.

Sorry. :s

@electrosaeed
Copy link
Author

Thanks, but is it possible for me to add them (\r\n) to one of the Numeric or Alphanumeric?

@ricmoo
Copy link
Owner

ricmoo commented Mar 9, 2024

No, it's a widely adopted standard. :)

If you add them, your QR code will be read incorrectly when scanned by any other QR scanning software...

@electrosaeed
Copy link
Author

I believe your answer is correct, but because it is important for me I asked the chatGPT this question.
this is the answer:

"In modes 1 (Numeric) and 2 (Alphanumeric) in QR code, you cannot directly insert a new line character. However, you can use ASCII code for the newline character, which is equivalent to 10, and include it as text in your input.
For example, if you want to insert a new line after the number 100 in mode 1 (Numeric), you can use the ASCII code for the newline character, which is equivalent to 10, and include it as text in your input."

Do you think it is possible?

@ricmoo
Copy link
Owner

ricmoo commented Mar 9, 2024

I don't, but you can try. :)

Here is some info I found useful when implementing it:

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

No branches or pull requests

2 participants