[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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

Attachment: signature.asc
Description: signature


Reply to: