Comments (1)
This is something I have been thinking about as well, although my initial plan was to add the original text as comment (in SVG as well). Using a title tag would definitely make more sense though.
For SVG, one could resort to plopping the thing in a CDATA: the only care that needs to be taken then is that the (unlikely) sequence ]]>
must be split across two CDATA sections, which is very easy to do. The only thing that should be ensured is that the character encoding of the XML is set correctly (so, shift_jis
or iso-8859-1
as appropriate).
For EPS, the text would need to go in some comment, so the only escaping that would be needed is that of newlines, probably, although I' d have to refresh my knowledge of EPS and the DSC to be sure about that.
For PNG with arbitrary data, one could encode the thing with base64 before stuffing it in a text chunk if it contains anything that is not a printable latin1 character.
I'll see if I can cook up something for the SVG part. EDIT: I've started working on the feature in my embed-intext branch.
from libqrencode.
Related Issues (20)
- Feature Request: QR decoder
- CLI option for mask pattern HOT 3
- qrencode produces invalid XPM data. HOT 2
- fish completions
- The width of the TWO-DIMENSIONAL code can be limited
- SVG version often rasterized with gaps HOT 3
- Request: Option to add image to the middle of the generated qr code
- rMQR Support
- ANSI and UTF8 types do not display properly on Windows HOT 2
- Please mention SVG output option in usage summary
- [Build Failed] Please consider updating autotool scripts.
- The library doesn't respect the encoding standard HOT 1
- Generation of lib and dll for windows
- Optimal text segmentation HOT 1
- Generate a QR code image with logo HOT 5
- Detect type of image from extension
- Setting --dpi has no effect on the PNG output HOT 2
- qrencode does not work with local linux vt/console
- Is it possible to use QRcode_encodeData() with command line tool (qrencode)?
- input string beginning with "-" parsed as option HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libqrencode.