Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Python adbadblockandroid-tvandroid-tv-launcherapple-tvbloatware-removalclaude-codedebloatfire-tvgoogle-tvlauncherprivacysmart-tvsony-braviatclvibe-codingxiaomi
docs: the press recipe names the German card's alt text too
xbshenga9eea7c27ca6
diff --git a/docs/workflows/press.md b/docs/workflows/press.mdindex 8fe112187..95fdce582 100644--- a/docs/workflows/press.md+++ b/docs/workflows/press.md@@ -5,11 +5,13 @@1. Add a row `| Outlet | [Headline](<url>) | Date |` to the right country section of `docs/PRESS.md`, in theheadline's own language. The link must open and show the article: no syndicated copies, no auto-generatedlistings, nothing that cannot be checked.-2. Update the counts in all five places `tests/test_press_counts.py` checks: the `docs/PRESS.md` intro line,- its index line, the card's alt text in `README.md` ("and N more: N articles from N countries"), the same- numbers in the Dutch alt text of that card in `README.nl.md` ("nog N media: N artikelen uit N landen"), and- `MORE` in `tools/readme_featured.py`. Redrawing `docs/featured.png` and `docs/card.jpg` needs Pillow, which the- performance requirements install:+2. Update the counts in every place `tests/test_press_counts.py` checks: the `docs/PRESS.md` intro line, its+ index line, the card's alt text in every `README*.md` that shows `docs/card.jpg` - today `README.md` ("and N+ more: N articles from N countries"), the Dutch `README.nl.md` ("nog N media: N artikelen uit N landen") and+ the German `README.de.md` ("und N weitere: N Artikel aus N Ländern") - and `MORE` in+ `tools/readme_featured.py`. Every page shows the same picture, so a translation that copies it states the+ same numbers in its own words: the three named here are the pages that carry it today, not the rule.+ Redrawing `docs/featured.png` and `docs/card.jpg` needs Pillow, which the performance requirements install:`tools/venv/bin/pip install -r tools/requirements-perf.txt`, then`tools/venv/bin/python -I tools/readme_featured.py Fredoka.ttf docs/featured.png` and`tools/venv/bin/python -I tools/readme_card.py Fredoka.ttf docs/card.jpg`. Fredoka is the variable TTF from Google Fonts and itsdiff --git a/tests/test_press_counts.py b/tests/test_press_counts.pyindex 2f858f75b..b69790b22 100644--- a/tests/test_press_counts.py+++ b/tests/test_press_counts.py@@ -1,10 +1,11 @@"""Keeps the press numbers in docs/PRESS.md, the README cards and the card source in step.-The article total is written in five places: the PRESS.md intro, its per-country index line, the-alt text of the card in README.md, the alt text of the same card in README.nl.md (in Dutch), and-tools/readme_featured.py (which draws the line onto docs/featured.png). Adding one article by hand-means editing all five; this checks they agree, so a PR that adds a row and forgets the counts-fails here instead of shipping a card that says 73 over a list of 74.+The article total is written in every place that states it: the PRESS.md intro, its per-country index+line, the alt text of the card in README.md, the alt text of the same card in README.nl.md (in Dutch)+and in README.de.md (in German), and tools/readme_featured.py (which draws the line onto+docs/featured.png). Adding one article by hand means editing all of them; this checks they agree, so a+PR that adds a row and forgets the counts fails here instead of shipping a card that says 73 over a+list of 74.Run from the repository root: python3 -m unittest discover -s tests -v"""@@ -24,8 +25,9 @@ ONLINE = "Online (newsletters, blogs, AI news)"ROW = re.compile(r"^\| (?!Outlet\b)(?!--)")LINK = re.compile(r"\[[^\]]+\]\((https?://[^)]+)\)")TOC_ENTRY = re.compile(r"\[([^\]]+)\]\(#[^)]+\) (\d+)")-# The card image the numbers are drawn on, wherever a README shows it: README.md in English and-# README.nl.md in Dutch. The words around the numbers are translated; the numbers are not.+# The card image the numbers are drawn on, wherever a README shows it: README.md in English, README.nl.md+# in Dutch and README.de.md in German, and any translation that copies the picture later. The words+# around the numbers are translated; the numbers are not.CARD_ALT = re.compile(r'src="docs/card\.jpg"[^>]*?alt="([^"]*)"')@@ -123,14 +125,15 @@ class PressCountsTest(unittest.TestCase):self.assertEqual(more, self.numbers["total"] - len(logos()), "README alt text and the logos in tools/readme_featured.py disagree on the '+N more'")def test_every_readme_card_states_the_same_numbers(self):- # The card is in README.md and in README.nl.md, and both alt texts state the total, the- # country count and the "+N more" - in English and in Dutch. Only the English one was- # checked, so the press commit that took the list to 296 articles had to change the Dutch- # alt text by hand as well (6cc2fdc9), and a PR written from docs/workflows/press.md left- # the Dutch front page claiming an older count.+ # The card is in README.md, README.nl.md and README.de.md, and all three alt texts state the+ # total, the country count and the "+N more" - in English, Dutch and German. Only the English+ # one was checked, so the press commit that took the list to 296 articles had to change the+ # Dutch alt text by hand as well (6cc2fdc9), and a PR written from docs/workflows/press.md left+ # the Dutch front page claiming an older count. The German page is the case the recipe still+ # missed: it carries the same picture, so the next article had to be added there by hand too.alts = card_alt_texts()- self.assertLessEqual({"README.md", "README.nl.md"}, set(alts),- "README.md and README.nl.md no longer show docs/card.jpg with an alt text")+ self.assertLessEqual({"README.md", "README.nl.md", "README.de.md"}, set(alts),+ "README.md, README.nl.md and README.de.md no longer show docs/card.jpg with an alt text")numbers = (("article total", self.numbers["total"]),("country count", self.numbers["countries"]),("'+N more'", self.numbers["total"] - len(logos())))@@ -142,8 +145,13 @@ class PressCountsTest(unittest.TestCase):f"that docs/PRESS.md and tools/readme_featured.py carry")def test_the_press_recipe_names_every_place_the_counts_live(self):+ # The recipe is what a press PR follows, and the numbers live in every page that shows the card:+ # naming the English and Dutch pages only left the German one at the previous count, which this+ # file then failed on with nothing in the recipe to point at - the same gap #2132 closed for the+ # Dutch page. The list comes from the pages, so a translation that copies the card is covered+ # without this test being edited first.step = PRESS_RECIPE.read_text(encoding="utf-8").split("\n2. ")[1].split("\n3. ")[0]- for name in ("README.md", "README.nl.md"):+ for name in sorted(card_alt_texts()):with self.subTest(readme=name):self.assertIn(name, step, f"docs/workflows/press.md step 2 does not name {name}")