Re: [SPAM] DPD string length for Georgian

Solomon Peachy via Gimp-print-devel <[email protected]> Tue, 21 Jan 2025 10:00:01 -0500
Newsgroups gmane.linux.printing.gimp-print.devel
Message-ID <[email protected]>
On Mon, Jan 20, 2025 at 03:51:33PM +0100, Temuri Doghonadze wrote:
> I've done translation of gutenprint several months ago, but several
> days ago I have noticed that it's disabled. Asked Zdenek Dohnal and I
> was told that several DPD strings are bigger than 80 bytes, which is
> unsupported. 

FYI it is 'PPD' not 'DPD'  :)

(For anyone else that's reading this, the problem is that one Georgian 
"character" typically takes up more than one byte when encoded into 
UTF-8. So even though a translated string may be less than 80 
_characters_ it can take over 80 bytes to store/represent it in the PPD 
file)

> Could you please tell me how can I filter out strings which are 
> breaking this rule? I believe not all strings are under this 
> restriction.

Only strings that can end up in the PPD file are affected, but I'm not 
sure of a simple way to flag the ones that are potentially problematic.

You'll need to re-enable the Georgian language in configure.ac, re-run 
autogen.sh and do a build, generate a buch of PPD files, and pass those 
files through 'cupstestppd'

You can run 'make check-parallel' to do this automatically (after 
running ./autogen.sh first), but it will take a couple of hours to 
complete unless you have a beefy system.  The failures will show up in 
src/cups/test-ppds.log.

 - Solomon
-- 
Solomon Peachy			      pizza at shaftnet dot org (email&xmpp)
                                      @pizza:shaftnet dot org   (matrix)
Dowling Park, FL                      speachy (libera.chat)

_______________________________________________
Gimp-print-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimp-print-devel
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEE3H5Sx9DyiyB5hnENrGLLO/XVulEFAmePtm4ACgkQrGLLO/XV
ulHkyg//VXKpUN0y11ml2cqtV56wsKxeM1/7yYoP+5FH7dTiw0madMY+D4NHqeXJ
00eIW0mq2CYHX8ggtucYjNJkv7jqJyWUA8zxUaTEvFrV4wPh+H3UJX/C2mT9GusP
bLzynO60ugo/cFMI7AjjbjdLMUc4UbhEPlVBKPwS84Eib0H32p2fWLa76W+E/z5i
26rbBK0/1xE1Gvhz7QZZaHUVxMMx4Nb9WbRjmckFAh0aDMVcd9aKUqD4vRFUbGrv
6MooT1PhHVlBW2Ramc6X8M4jhljptAahNZo8HC7uv0VoSKyelc80wvMFJZqxBFM/
wUU/MUP8DXH43EM7JujAGtGaI2zNiY8FZPV02ut+lBJe56ZgrV2muT9y6ir7nKO+
ZDa8C60Mo6hCXfArV7aXYMN0Ahqxmsy9DEijLRmT987zbebVRvGsV1WC8FmDClKa
Cjveh53mJTL4j9r5U51XDzgh7jqnLgc7SVlKKCR70LW9fGqhiY5AdlwBawyBM+0Q
8ovQauYtWQgYEFDM9VHFgADgEeCBQJ6XDC0iugWJSf4uJkxRQhqbT4Jwc/sGpvC5
DUycxOur03vQPwPGLLDGApFP7Fx+8svr3TgoLDtzcAA3R+j26QHB3O4TKXzmVwhD
gpNtzR3wXmLPixuXLUqUF7vCq17JuLQFbYVcbO7jLqPYzDfjlM0=
=86r5
-----END PGP SIGNATURE-----