• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

xymostech / XymosTeX / 73 / 3
82%
master: 82%

Build:
DEFAULT BRANCH: master
Ran 07 Feb 2021 08:47PM UTC
Files 41
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 Feb 2021 08:34PM UTC coverage: 90.927% (+0.06%) from 90.863%
73.3

push

travis-ci-com

xymostech
Parse \font definitions

This adds parsing \font definitions. These aren't used for anything
yet, I will make fontdefs set the current font next.

Parsing font definitions was relatively straight forward. To see what
characters I needed to support for filenames, I ran
```
find /usr/local/texlive/2018/texmf-dist/fonts/tfm/public/ | \
  grep tfm | \
  xargs basename -s .tfm | \
  grep -v '^[a-zA-Z0-9_-]\+$'
```
and saw that it returned no results, so I think I can away with only
supporting alphanumeric and `-` and `_` characters.

The one confusing bit was this section from the TeXbook that says "TeX
takes precautions so that constructions like `\font\cs=name\cs` won’t
expand the second `\cs` until the assignments are done." It sounds
like there might be a way to indicate that the expansions of a certain
token should be ignored. We don't have a way to do that right now, so
I resorted to just setting the token equal to `\relax` which should
have a vaguely similar effect in this instance. (If someone has
reassigned `\relax`, then this will cause problems, which is why it's
not a perfect solution.) The one gotcha was that, in order to test the
`\font\cs=name\cs` construct appropriately, I need to attempt to load
an invalid font, which will end up throwing an error, so the best I
can do is check the error message that is thrown for now.

5682 of 6249 relevant lines covered (90.93%)

2.17 hits per line

Source Files on job 73.3
  • Tree
  • List 0
  • Changed 24
  • Source Changed 3
  • Coverage Changed 24
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 36
  • Travis Job 73.3
  • 7d97c6f5 on github
  • Prev Job for on master (#72.3)
  • Next Job for on master (#74.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc