W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2019

Re: [csswg-drafts] [css-syntax][css-values] Add IEEE 754 float hex format SVG/CSS values (#4564)

From: SieuDoTia via GitHub <sysbot+gh@w3.org>
Date: Tue, 10 Dec 2019 09:32:29 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-563946634-1575970348-sysbot+gh@w3.org>
Goal is use SVG for printing line screen, print on paper, replace PDF. My software accept PNG image than convert it convert become 4 SVG files, one file for each printing plate: C Y M K. Software must save line screen use decimal format in SVG. Next stage software read SVG file and rasterize them for printer (if you can recommend good and modern file format for 1 bit raster image please tell me). 

I think about lose precision when convert IEEE float become decimal when save SVG file, then read decimal number and convert back to IEEE float format in rasterizer. But after discussion here with @faceless and his method, my experiments with 5 decimal digits after decimal point and experiments @faceless's method, and I remember ink flow paper on paper, I not really need IEEE float number in SVG file.

Only Advantage of IEEE float number I suggest (0x--------) it is always 10 characters, file size not change if use @faceless's method. Use decimal numbers file size increase about 12% to 15%. Disadvantage is > 99.9% SVG users not understand IEEE float number and make standard more complex. That is why I close this idea.

Thanks for every person's help! You guys very fast!

-- 
GitHub Notification of comment by SieuDoTia
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4564#issuecomment-563946634 using your GitHub account
Received on Tuesday, 10 December 2019 09:32:31 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:57 UTC