Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1027876 > unrolled thread

Bug#971830: fonts-jetbrains-mono: please advertise which scripts are covered

Started byJonas Smedegaard <dr@jones.dk>
First post2020-10-08 12:00 +0200
Last post2020-10-12 22:40 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.bugs.dist


Contents

  Bug#971830: fonts-jetbrains-mono: please advertise which scripts are covered Jonas Smedegaard <dr@jones.dk> - 2020-10-08 12:00 +0200
    Bug#971830: fonts-jetbrains-mono: please advertise which scripts are covered Jonas Smedegaard <jonas@jones.dk> - 2020-10-12 22:40 +0200

#1027876 — Bug#971830: fonts-jetbrains-mono: please advertise which scripts are covered

FromJonas Smedegaard <dr@jones.dk>
Date2020-10-08 12:00 +0200
SubjectBug#971830: fonts-jetbrains-mono: please advertise which scripts are covered
Message-ID<AXASm-2P3-11@gated-at.bofh.it>
Package: fonts-jetbrains-mono
Version: 1.0.4-1
Severity: minor

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hi,

Long description emphasizes script coverage as notable feature,
yet does not tell _which_ scripts are covered.

The purpose of package long description is to aid a user
unfamiliar with a package to decide if relevant to install,
and most users will likely want to know if their own script is covered
rather than simply "many".

Please therefore consider including in long description which scripts
is covered by fonts-jetbrains-mono.

I can recommend to look at how such information is automated
in the source package fonts-noto.


 - Jonas

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAl9+4PcACgkQLHwxRsGg
ASHT9w/9GEtD04VQrJm1+mhlG4NR/SE1Sspph18AgdCc2fKQpbXHgDOdya/9XHny
tD5RPqVyMI6/rfjWOLz8jX/75odFO62EXyjIob01x7h4tF+B2oVaELSaunrM3Uf2
R1uIjYIa3utTvfdtL4A7Y+NOPBV0rkm4v5kn70tESOJMiyAq8dWWfDJxNVckw80J
LgHSE6OojwUo6TK9H9byPZSBHEKaxM8kUyQNjfJjbdiWDBTuRgkJcRRVvmznlG/T
j3BCOtxkc2kTd+h4AP/94xSnula2npskZSm+t2kNM9lLpnmGmhVXQWMyWCk16KBh
u31uWMTwRr6LBGFgu5ZajoZugD60dMbUaYM8dQT19xgvlASfxKMl3zVj0iA8q+u+
U4zE/qOkaCoHgZIuMRFCP5Tuli1anaDrtzidK2QipkR3FMAIvSrmPPLL0+AtNe+h
pljXXhtgC5d614rwJcjdP14gsZXE8sXICQIBFVSt3Lk2fwHdpdY7J388D0MeZF+K
UqKi0EAk1R47mYrLysrsUPuqmib5421TylSvsQ9O7jSrlI5emjHcxlhTeNPwOQNm
wtvhSIuOWQx04EIgMAZ65gzCn2gRBpFef6jfNFCwFg2Tap/4DDl3b/ZagKxRJWg7
qBM+pmqgFXAOjm41RQ4cfIuWtp1ZfX/6VLkf8tWOTRHaQrIqrwE=
=x1qr
-----END PGP SIGNATURE-----

[toc] | [next] | [standalone]


#1028397

FromJonas Smedegaard <jonas@jones.dk>
Date2020-10-12 22:40 +0200
Message-ID<AZcLT-5Ve-1@gated-at.bofh.it>
In reply to#1027876

[Multipart message — attachments visible in raw view] — view raw

Quoting Romain Porte (2020-10-12 16:04:52)
> On Thu, 08 Oct 2020 11:50:47 +0200 Jonas Smedegaard <dr@jones.dk> wrote:
> > Long description emphasizes script coverage as notable feature, yet 
> > does not tell _which_ scripts are covered.
> >
> > The purpose of package long description is to aid a user unfamiliar 
> > with a package to decide if relevant to install, and most users will 
> > likely want to know if their own script is covered rather than 
> > simply "many".
> >
> > Please therefore consider including in long description which 
> > scripts is covered by fonts-jetbrains-mono.
> >
> > I can recommend to look at how such information is automated in the 
> > source package fonts-noto.

> After looking the debian/control file of fonts-noto [1], I only was 
> able to find out that the "${fonts:scriptfonts}" variable was used in 
> the long description of the package to list how many scripts were 
> supported by the package.
> 
> I however failed to see how the full list of scripts was included in 
> the long description of the package — can you guide me to where this 
> is done, and how?

The data is resolved in rules file: 
https://salsa.debian.org/fonts-team/fonts-noto/-/blob/master/debian/rules#L91

Sorry, I had forgotten that fonts-noto still uses cdbs which is alien to 
many and not recommended for new packaging work.

Totally untested, it should look something like the following rewritten 
to instead use short-form dh sequencer:

override_dh_dh_gencontrol:
	printf fonts:familylist= \
		>> debian/fonts-jetbrains-mono.substvars
	otfinfo -a $(wildcard src/*.ttf) | cut -d: -f2 \
		| LC_ALL=C sort -u \
		| $$(substvars-list-encode) \
		>> debian/fonts-jetbrains-mono.substvars
	dh_gencontrol -- -Vfonts:scriptcount="$(fonts-scriptcount)"


Hope that helps,

 - Jonas

-- 
 * Jonas Smedegaard - idealist & Internet-arkitekt
 * Tlf.: +45 40843136  Website: http://dr.jones.dk/

 [x] quote me freely  [ ] ask before reusing  [ ] keep private

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.bugs.dist


csiph-web