Closed DDvO closed 2 years ago
Although rfc 7991 is somewhat unclear on this point, we only allow text and SVG in artwork, not anything else. This is a reasonable idea for an enhancement in the future.
We would simply like to use the same mechanism that for example rfc7893 uses to include PNG graphics.
On Wed, Mar 30, 2022 at 09:44:07AM -0700, John L wrote:
Although rfc 7991 is somewhat unclear on this point, we only allow text and SVG in artwork, not anything else. This is a reasonable idea for an enhancement in the future.
-- Reply to this email directly or view it on GitHub: https://github.com/ietf-tools/xml2rfc/issues/751#issuecomment-1083375507 You are receiving this because you are subscribed to this thread.
Message ID: @.***>
As you are surely aware, RFC 7893 was a one-off using the old toolchain.
No, i am not aware. Can you please point me to the IETF policies and when they changed ? Last i was aware, it was welcome to produce the highest visual quality RFCs, including PNG images into PDF renderings.
It seems counterproductive if that option was eliminated by new rules.
On Wed, Mar 30, 2022 at 10:47:05AM -0700, John L wrote:
As you are surely aware, RFC 7893 was a one-off using the old toolchain.
-- Reply to this email directly or view it on GitHub: https://github.com/ietf-tools/xml2rfc/issues/751#issuecomment-1083435806 You are receiving this because you are subscribed to this thread.
Message ID: @.***>
Oh, my. You can start with RFCs 7990, 7991, 7992, 7993, 7994, 7995, 7996, 7997, and 7998. Particularly 7996.
And 6949.
8. Graphics may include ASCII art and a more complex form to be
defined, such as SVG line art [SVG]. Color and grayscale will
not be accepted. RFCs must correctly display in monochromatic
black-and-white to allow for monochrome displays, black-and-
white printing, and support for visual disabilities.
Where were you 2013?
Welcome to the wonderful world of RFCXMLv3.
To be clear, I think PNG is a reasonable candidate as an enhancement, give or take accessibility issues, but it's not going to happen any time soon.
When trying to embed a PNG or JPG image, e.g., like this:
xml2rfc
version 3.11.1 fails like this:This may be due to a bug in
xml2rfc
or some Python 3 hick-up and appears related to https://stackoverflow.com/questions/27219301/utf-8-codec-cant-decode-byte-0x89A workaround is to use a graphics file in SVG format, yet it may be hard to obtain and
xml2rfc
appears pretty picky about the structure of the SVG input. What worked best for me was to convert/save the source graphics in PDF format and then use https://www.zamzar.com/convert/pdf-to-svg/