You are not logged in.

#1 2020-10-16 18:45:42

uberscientist
Member
Registered: 2012-01-27
Posts: 83

[Request] Atkinson Hyperlegible Font

I'm interested in installing this new font, not sure if there's a go to guy for AUR packaging of fonts or if I should just do it and submit, here's the info and link:

Atkinson Hyperlegible font is named after Braille Institute founder, J. Robert Atkinson.  What makes it different from traditional typography design is that it focuses on letterform distinction to increase character recognition, ultimately improving readability.  We are making it free for anyone to use, download here!

https://www.brailleinstitute.org/freefont

Thanks!

Last edited by uberscientist (2020-10-16 18:47:19)

Offline

#2 2020-10-16 21:01:54

Awebb
Member
Registered: 2010-05-06
Posts: 5,591

Re: [Request] Atkinson Hyperlegible Font

Wiki: Fonts. Read it. Then find the fonts package guidelines in that. See other fonts for reference. Post your PKGBUILD here if you're unsure.

Offline

#3 2020-10-16 21:50:28

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 686

Re: [Request] Atkinson Hyperlegible Font

uberscientist wrote:

not sure if there's a go to guy for AUR packaging of fonts or if I should just do it and submit

There isn't a "go to guy". Whether or not you want to submit it to AUR is entirely up to you. You can of course always request if someone can add it and maintain it, but if you are able and willing to maintain it going forward, that's always the better solution.

The good news is that packaging fonts is about as straight-forward as it gets. The Font Packing Guidelines is short and sweet and also provides shortcuts to samples of PKGBUILD files.

Offline

#4 Yesterday 18:48:43

MountainX
Member
Registered: 2016-02-08
Posts: 199

Re: [Request] Atkinson Hyperlegible Font

uberscientist wrote:

I'm interested in installing this new font, not sure if there's a go to guy for AUR packaging of fonts or if I should just do it and submit

I'm learning about packaging. I will volunteer to help, if you want it. I can either help create the PKGBUILD or test the installation or both.

This font is OTF. The site doesn't list a license type that I could find.

Offline

#5 Yesterday 19:24:02

MountainX
Member
Registered: 2016-02-08
Posts: 199

Re: [Request] Atkinson Hyperlegible Font

This PKGBUILD works for me.

# Maintainer: TODO

pkgname=otf-atkinson-hyperlegible
pkgver=102
pkgrel=1
pkgdesc='For designers and anyone interested in making written materials easier to read across the entire visual-ability spectrum. Focuses on letterform distinction to increase character recognition, ultimately improving readability.'
arch=('any')
url='https://www.brailleinstitute.org/freefont'
license=('none')
source=("https://www.brailleinstitute.org/wp-content/uploads/atkinson-hyperlegible-font/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514.zip")
md5sums=('8b01675977bd6228cb7352af67b9a160')

package() {
  install -dm 755 "${pkgdir}/usr/share/fonts/OTF"
  cd "$srcdir/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514"/'Print Fonts'
  install -m 644 Atkinson-Hyperlegible-Bold-${pkgver}.otf "${pkgdir}/usr/share/fonts/OTF/Atkinson-Hyperlegible-Bold.otf"
  install -m 644 Atkinson-Hyperlegible-BoldItalic-${pkgver}.otf "${pkgdir}/usr/share/fonts/OTF/Atkinson-Hyperlegible-BoldItalic.otf"
  install -m 644 Atkinson-Hyperlegible-Italic-${pkgver}.otf "${pkgdir}/usr/share/fonts/OTF/Atkinson-Hyperlegible-Italic.otf"
  install -m 644 Atkinson-Hyperlegible-Regular-${pkgver}.otf "${pkgdir}/usr/share/fonts/OTF/Atkinson-Hyperlegible-Regular.otf"
}

Questions:
1. is any license needed? The upstream source doesn't list any -- calls it "free for everyone".
2. is the source url sufficient as written in the PKGBUILD?
3. is the description too long?
4. is the pkgver (102) OK? It matches the upstream source files.
5. did I handle the space in the path 'Print Fonts' correctly?

Offline

#6 Yesterday 20:36:01

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 8,484

Re: [Request] Atkinson Hyperlegible Font

1.

https://wiki.archlinux.org/index.php/PKGBUILD#license wrote:

    If after researching the issue no license can be determined, PKGBUILD.proto suggests using unknown. However, upstream should be contacted about the conditions under which the software is (and is not) available.

The zip file doesn't have any licensing or copyright imformation and "free for everyone" is not a valid license.
I suggest license=('unknown') .

Maybe upstream could use one of the Creative Common licenses , see https://creativecommons.org/about/cclicenses/

2. lgtm
3. yep, needs to be shortened
4. 2020-0514 from the filename looks like a data and could also be used. Should be checked with upstream.
5. unsure

Last edited by Lone_Wolf (Yesterday 20:36:17)


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#7 Yesterday 20:45:14

progandy
Member
Registered: 2012-05-17
Posts: 3,889

Re: [Request] Atkinson Hyperlegible Font

The fonts contain an embedded license:

$ otfinfo -i Print\ Fonts/Atkinson-Hyperlegible-Regular-102.otf 
Family:              Atkinson Hyperlegible
Subfamily:           Regular
Full name:           AtkinsonHyperlegible-Regular
PostScript name:     AtkinsonHyperlegible-Regular
Version:             Version 1.02
Unique ID:           Version 1.02;;AtkinsonHyperlegible-Regular;2019;FL712
Description:         Atkinson Hyperlegible is a neo-grotesque typeface created by Applied Design Works for Braille Institute of America, Inc. It has been developed specifically to increase legibility for readers with low vision, and to improve character recognition. 
Designer:            Elliott Scott, Megan Eiswerth, Linus Boman, Theodore Petrosky
Designer URL:        http://helloapplied.com
Manufacturer:        Applied Design Works
Vendor URL:          https://www.BrailleInstitute.org/
Copyright:           © 2020 Braille Institute of America, Inc., a 501(c)(3) Charitable Organization.
License URL:         https://www.BrailleInstitute.org/
License Description: Braille Institute of America, Inc. provides Atkinson Hyperlegible for use, without derivatives or alteration, to the public free of charge for all non-commercial and commercial work. No attribution required.

| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#8 Yesterday 20:51:30

MountainX
Member
Registered: 2016-02-08
Posts: 199

Re: [Request] Atkinson Hyperlegible Font

Thank you. I changed the license to unknown.

Lone_Wolf wrote:

3. yep, needs to be shortened

New proposed description is:

pkgdesc='Atkinson-Hyperlegible font is easier to read across the entire visual-ability spectrum. Focuses on letterform distinction.'
Lone_Wolf wrote:

4. 2020-0514 from the filename looks like a data and could also be used. Should be checked with upstream.

That looks like a WordPress auto-generated file name. I think the actual version is "102" based on the contents of the zip file.

Offline

#9 Yesterday 20:53:02

MountainX
Member
Registered: 2016-02-08
Posts: 199

Re: [Request] Atkinson Hyperlegible Font

progandy wrote:

The fonts contain an embedded license:

$ otfinfo -i Print\ Fonts/Atkinson-Hyperlegible-Regular-102.otf 
Family:              Atkinson Hyperlegible
Subfamily:           Regular
Full name:           AtkinsonHyperlegible-Regular
PostScript name:     AtkinsonHyperlegible-Regular
Version:             Version 1.02
Unique ID:           Version 1.02;;AtkinsonHyperlegible-Regular;2019;FL712
Description:         Atkinson Hyperlegible is a neo-grotesque typeface created by Applied Design Works for Braille Institute of America, Inc. It has been developed specifically to increase legibility for readers with low vision, and to improve character recognition. 
Designer:            Elliott Scott, Megan Eiswerth, Linus Boman, Theodore Petrosky
Designer URL:        http://helloapplied.com
Manufacturer:        Applied Design Works
Vendor URL:          https://www.BrailleInstitute.org/
Copyright:           © 2020 Braille Institute of America, Inc., a 501(c)(3) Charitable Organization.
License URL:         https://www.BrailleInstitute.org/
License Description: Braille Institute of America, Inc. provides Atkinson Hyperlegible for use, without derivatives or alteration, to the public free of charge for all non-commercial and commercial work. No attribution required.

How would that be used in a PKGBUILD? I do not find an actual license file at the License URL.

Offline

#10 Yesterday 20:53:29

loqs
Member
Registered: 2014-03-06
Posts: 11,869

Re: [Request] Atkinson Hyperlegible Font

If you wanted to avoid escaping in the path you could use:

  cd Atkinson-Hyperlegible-*/Print*

Edit:

package() {
  install -dm 755 "${pkgdir}/usr/share/fonts/OTF"
  cd $_pkgname-*/Print*
  _pkgname=Atkinson-Hyperlegible
  _typeface=(Bold BoldItalic Italic Regular)
  for _font in "${_typeface[@]}" 
  do
    install -m 644 $_pkgname-$_font-${pkgver}.otf -t "${pkgdir}/usr/share/fonts/OTF"
  done
}

Last edited by loqs (Yesterday 21:05:36)

Offline

#11 Yesterday 20:56:37

progandy
Member
Registered: 2012-05-17
Posts: 3,889

Re: [Request] Atkinson Hyperlegible Font

You can copy that license description into a LICENSE text file (add it to sources) and set "custom" as the license as described here:

https://wiki.archlinux.org/index.php/PKGBUILD#license

Edit: LICENSE:

© 2020 Braille Institute of America, Inc., a 501(c)(3) Charitable Organization.

https://www.BrailleInstitute.org/

Braille Institute of America, Inc. provides Atkinson Hyperlegible
for use, without derivatives or alteration, to the public free of charge
for all non-commercial and commercial work. No attribution required.

Last edited by progandy (Yesterday 21:05:16)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#12 Yesterday 21:07:30

MountainX
Member
Registered: 2016-02-08
Posts: 199

Re: [Request] Atkinson Hyperlegible Font

EDIT: I see you already edited your answer. Thank you!

progandy wrote:

You can copy that license description into a LICENSE text file (add it to sources) and set "custom" as the license as described here:

https://wiki.archlinux.org/index.php/PKGBUILD#license

OK, I will do that. I am sorry if this is a dumb question, but should all the following go into that LICENSE text file? Most examples I see list the copyright and a description, but I have only found examples of standard LICENSE files.

Copyright:           © 2020 Braille Institute of America, Inc., a 501(c)(3) Charitable Organization.
License URL:         https://www.BrailleInstitute.org/
License Description: Braille Institute of America, Inc. provides Atkinson Hyperlegible for use, without derivatives or alteration, to the public free of charge for all non-commercial and commercial work. No attribution required.

Is anything else from the otfinfo output needed in the LICENSE text file?

otfinfo -i Print\ Fonts/Atkinson-Hyperlegible-Regular-102.otf  

Last edited by MountainX (Yesterday 21:08:19)

Offline

#13 Yesterday 21:12:29

loqs
Member
Registered: 2014-03-06
Posts: 11,869

Re: [Request] Atkinson Hyperlegible Font

See /usr/share/licenses/libarchive/COPYING and /usr/share/licenses/python/LICENSE for examples of custom license files.

Offline

#14 Yesterday 21:15:33

MountainX
Member
Registered: 2016-02-08
Posts: 199

Re: [Request] Atkinson Hyperlegible Font

I see from the otfinfo output that the actual version is 1.02

otfinfo -i Print\ Fonts/Atkinson-Hyperlegible-Regular-102.otf  

However, the file are named like this:

Atkinson-Hyperlegible-Bold-102.otf

Therefore, a pkgver=1.02 will not allow this type of install command:

install -m 644 Atkinson-Hyperlegible-Bold-${pkgver}.otf "${pkgdir}/usr/share/fonts/OTF/Atkinson-Hyperlegible-Bold.otf"

Any suggestions? I could use sed in package() to remove any punctuation from the pkgver, but that seems like a hack.

Offline

#15 Yesterday 21:31:27

loqs
Member
Registered: 2014-03-06
Posts: 11,869

Re: [Request] Atkinson Hyperlegible Font

package() {
  install -dm 755 "${pkgdir}/usr/share/fonts/OTF"
  cd $_pkgname-*/Print*
  _typeface=(Bold BoldItalic Italic Regular)
  for _font in "${_typeface[@]}" 
  do
    install -m 644 $_pkgname-$_font-${pkgver/./}.otf "${pkgdir}/usr/share/fonts/OTF/$_pkgname-$_font.otf"
  done
}

Edit:

{pkgver/./}

Removes the .

Last edited by loqs (Yesterday 21:35:29)

Offline

#16 Yesterday 21:59:02

MountainX
Member
Registered: 2016-02-08
Posts: 199

Re: [Request] Atkinson Hyperlegible Font

loqs wrote:

Edit:

{pkgver/./}

Removes the .

Thanks. That will work. But there are multiple files, so what about transforming the pkgver just once, similar to this? This should also handle dashes (and other unwanted chars) in case they show up in the future.

  filever="${pkgver//[^[:alnum:]]/}"
  install -m 644 Atkinson-Hyperlegible-Bold-${filever}.otf "${pkgdir}/usr/share/fonts/OTF/Atkinson-Hyperlegible-Bold.otf"

Is that considered good practice inside the package() function?

Offline

#17 Yesterday 22:07:51

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 8,484

Re: [Request] Atkinson Hyperlegible Font

Please add local before filever to declare it as  a variable local to the package() function.


Multi-init booting with apg Openrc and systemd coexisting
Automounting : not needed, i prefer pmount
Aur helpers : makepkg + my own local repo === rarely need them

Offline

#18 Yesterday 22:15:46

loqs
Member
Registered: 2014-03-06
Posts: 11,869

Re: [Request] Atkinson Hyperlegible Font

MountainX wrote:
loqs wrote:

Edit:

{pkgver/./}

Removes the .

Thanks. That will work. But there are multiple files, so what about transforming the pkgver just once, similar to this?

The loop handled the multiple files,  the string was transformed four times.  Whichever form you are happy with.

Offline

#19 Yesterday 22:34:50

MountainX
Member
Registered: 2016-02-08
Posts: 199

Re: [Request] Atkinson Hyperlegible Font

Lone_Wolf wrote:

Please add local before filever to declare it as  a variable local to the package() function.

Thank you. I'll post the PKGBUILD after I finish testing it in a chroot. (I assume the OP may want to be the maintainer.)

Offline

#20 Yesterday 23:09:21

MountainX
Member
Registered: 2016-02-08
Posts: 199

Re: [Request] Atkinson Hyperlegible Font

Here is a working PKGBUILD. I checked it in a chroot. I went with the exact file and directory names instead of using wildcards. My first thoght was it would be better to use the exact names, but I now I think using loqs' method is better, right?

# Maintainer: TODO

pkgname=otf-atkinson-hyperlegible
pkgver=1.02
pkgrel=1
pkgdesc='Atkinson-Hyperlegible font is easier to read across the entire visual-ability spectrum. Focuses on letterform distinction.'
arch=('any')
url='https://www.brailleinstitute.org/freefont'
license=('custom')
source=("https://www.brailleinstitute.org/wp-content/uploads/atkinson-hyperlegible-font/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514.zip" LICENSE)
md5sums=('8b01675977bd6228cb7352af67b9a160'
         'de83b41a6fe51ec631930f34459574f3')
sha256sum=('9e1a65d53ddadc8253791e958a07bf5aba210ef6155ea9c91b2b4c46bbce53e3'
          '3fef2367bc4803bef3c06adad5f05f59305612009fee07a92bb6b574ad5e5974')

package() {
  install -dm 755 "${pkgdir}/usr/share/fonts/OTF"
  cd "$srcdir/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514"/'Print Fonts'
  local filever="${pkgver//[^[:alnum:]]/}"
  install -m 644 Atkinson-Hyperlegible-Bold-${filever}.otf "${pkgdir}/usr/share/fonts/OTF/Atkinson-Hyperlegible-Bold.otf"
  install -m 644 Atkinson-Hyperlegible-BoldItalic-${filever}.otf "${pkgdir}/usr/share/fonts/OTF/Atkinson-Hyperlegible-BoldItalic.otf"
  install -m 644 Atkinson-Hyperlegible-Italic-${filever}.otf "${pkgdir}/usr/share/fonts/OTF/Atkinson-Hyperlegible-Italic.otf"
  install -m 644 Atkinson-Hyperlegible-Regular-${filever}.otf "${pkgdir}/usr/share/fonts/OTF/Atkinson-Hyperlegible-Regular.otf"
  install -dm 755 "${pkgdir}/usr/share/licenses/$pkgname"
  install  -m 644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

Here's the alternative version (untested):

# Maintainer: TODO

pkgname=otf-atkinson-hyperlegible
pkgver=1.02
pkgrel=1
pkgdesc='Atkinson-Hyperlegible font is easier to read across the entire visual-ability spectrum. Focuses on letterform distinction.'
arch=('any')
url='https://www.brailleinstitute.org/freefont'
license=('custom')
source=("https://www.brailleinstitute.org/wp-content/uploads/atkinson-hyperlegible-font/Atkinson-Hyperlegible-Font-Print-and-Web-2020-0514.zip" LICENSE)
md5sums=('8b01675977bd6228cb7352af67b9a160'
         'de83b41a6fe51ec631930f34459574f3')
sha256sum=('9e1a65d53ddadc8253791e958a07bf5aba210ef6155ea9c91b2b4c46bbce53e3'
          '3fef2367bc4803bef3c06adad5f05f59305612009fee07a92bb6b574ad5e5974')

package() {
  install -dm 755 "${pkgdir}/usr/share/fonts/OTF"
  cd $_pkgname-*/Print*
  _typeface=(Bold BoldItalic Italic Regular)
  for _font in "${_typeface[@]}" 
  do
    install -m 644 $_pkgname-$_font-${pkgver/./}.otf "${pkgdir}/usr/share/fonts/OTF/$_pkgname-$_font.otf"
  done
  install -dm 755 "${pkgdir}/usr/share/licenses/$pkgname"
  install  -m 644 "${srcdir}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

LICENSE

© 2020 Braille Institute of America, Inc., a 501(c)(3) Charitable Organization.

https://www.BrailleInstitute.org/

Braille Institute of America, Inc. provides Atkinson Hyperlegible
for use, without derivatives or alteration, to the public free of charge
for all non-commercial and commercial work. No attribution required.

Last edited by MountainX (Yesterday 23:13:30)

Offline

#21 Today 01:25:09

MountainX
Member
Registered: 2016-02-08
Posts: 199

Re: [Request] Atkinson Hyperlegible Font

loqs wrote:

The loop handled the multiple files,  the string was transformed four times.  Whichever form you are happy with.

I think your method is better. At first I thought it would be more "robust" to do it my way (although in hindsight I'm not sure why I thought that). Then I realized your method will be more maintenance-friendly upon future upstream updates or changes (as long as they stay consistent with the file naming convention they are using).

Last edited by MountainX (Today 01:25:37)

Offline

Board footer

Powered by FluxBB