M-Film: film simulation for Canon EOS cameras with Magic Lantern. 72 film stocks (Portra, Velvia, Tri-X, CineStill…), a film-camera interface and an in-camera darkroom that develops your RAWs. 5D Mark III, 6D, 600D, 650D, 700D, EOS M and more.
C analog-photographycamera-firmwarecanoncanon-5d-mark-ivcanon-5dmark2canon-6dcanon-eoscr2darkroomeos-mfilm-emulationfilm-lookfilm-photographyfilm-simulationfujifilm-recipeskodak-portralutmagic-lanternphotographyraw
README: each camera's status as testers found it, with a note
Claude69b3c8691c20
diff --git a/README.md b/README.mdindex f0d932f..dda4b6a 100644--- a/README.md+++ b/README.md@@ -14,7 +14,7 @@ The camera side is free and open, for everyone.[](https://buy.stripe.com/7sY14p8d93QE5Ny5M58so02)[](LICENSE)-[](#cameras)+[](#cameras)[](FILMS.md)**English** · [ภาษาไทย](README.th.md) · [Films](#72-films) · [Cameras](#cameras) · [Darkrooms](#develop-on-your-computer-darkrooms) · [Take it further](PORTING.md)@@ -144,27 +144,27 @@ from M-Film's own film models ([`ml-dev/films/films.py`](ml-dev/films/films.py))## CamerasM-Film was made on the EOS M, where it works. It now builds for every camera on which Magic Lantern-itself is mature (DIGIC 4 and 5), but those builds **haven't been tried on a camera yet**. If you have-one of them, you can help: [TESTING.md](TESTING.md) says how (about 20 minutes, and you can always go back).+itself is mature (DIGIC 4 and 5). Testers have tried most of them now: the table says how far each one got, and what's+still wrong. If you have one marked *needs a tester*, you can help: [TESTING.md](TESTING.md) says how (about 20 minutes, and you can always go back).<!-- cameras:start -->-| Camera | Canon firmware | Status | Card files |-|---|---|---|---|-| Canon EOS M | 2.0.2 | ✅ **Works** | `M-Film-camera-EOSM.202.zip` |-| Canon EOS 100D / Rebel SL1 / Kiss X7 | 1.0.1 | 🔧 Too big for its boot memory: being fixed | |-| Canon EOS 650D / Rebel T4i / Kiss X6i | 1.0.4 | 🧪 Without the in-camera darkroom (develop with Darkrooms), needs a tester | `M-Film-camera-650D.104.zip` |-| Canon EOS 700D / Rebel T5i / Kiss X7i | 1.1.5 | 🧪 Without the in-camera darkroom (develop with Darkrooms), needs a tester | `M-Film-camera-700D.115.zip` |-| Canon EOS 6D | 1.1.6 | 🧪 Builds, needs a tester | `M-Film-camera-6D.116.zip` |-| Canon EOS 70D | 1.1.2 | 🔧 Too big for its boot memory: being fixed | |-| Canon EOS 5D Mark III (firmware 1.1.3) | 1.1.3 | 🧪 Builds, needs a tester | `M-Film-camera-5D3.113.zip` |-| Canon EOS 5D Mark III (firmware 1.2.3) | 1.2.3 | 🧪 Builds, needs a tester | `M-Film-camera-5D3.123.zip` |-| Canon EOS 550D / Rebel T2i / Kiss X4 | 1.0.9 | 🔧 Too big for its boot memory: being fixed | |-| Canon EOS 600D / Rebel T3i / Kiss X5 | 1.0.2 | 🔧 Too big for its boot memory: being fixed | |-| Canon EOS 60D | 1.1.1 | 🧪 Builds, needs a tester | `M-Film-camera-60D.111.zip` |-| Canon EOS 1100D / Rebel T3 / Kiss X50 | 1.0.5 | 🔧 Too big for its boot memory: being fixed | |-| Canon EOS 500D / Rebel T1i / Kiss X3 | 1.1.1 | 🧪 Builds, needs a tester | `M-Film-camera-500D.111.zip` |-| Canon EOS 50D | 1.0.9 | 🧪 Builds, needs a tester | `M-Film-camera-50D.109.zip` |-| Canon EOS 5D Mark II | 2.1.2 | 🧪 Builds, needs a tester | `M-Film-camera-5D2.212.zip` |+| Camera | Canon firmware | Status | Notes | Card files |+|---|---|---|---|---|+| Canon EOS M | 2.0.2 | ✅ **Works** | | `M-Film-camera-EOSM.202.zip` |+| Canon EOS 100D / Rebel SL1 / Kiss X7 | 1.0.1 | 🔧 Too big for its boot memory: being fixed | | |+| Canon EOS 650D / Rebel T4i / Kiss X6i | 1.0.4 | ⚠️ Without the in-camera darkroom (develop with Darkrooms) | The full build gives a black screen ([#34](../../issues/34)); a tester's 650D starts without the darkroom. Comes that way in the next update. | `M-Film-camera-650D.104.zip` |+| Canon EOS 700D / Rebel T5i / Kiss X7i | 1.1.5 | ⚠️ Without the in-camera darkroom (develop with Darkrooms) | The full build gives a black screen ([#19](../../issues/19)). Comes without the darkroom in the next update, as for the 650D. | `M-Film-camera-700D.115.zip` |+| Canon EOS 6D | 1.1.6 | ✅ **Works** | Works since 0.1.2 ([#17](../../issues/17), [#22](../../issues/22)). | `M-Film-camera-6D.116.zip` |+| Canon EOS 70D | 1.1.2 | 🔧 Too big for its boot memory: being fixed | | |+| Canon EOS 5D Mark III (firmware 1.1.3) | 1.1.3 | ⚠️ Tried, known problem | Starts and shoots; the in-camera darkroom can't find the RAWs ([#31](../../issues/31)). Fixed in the next update. | `M-Film-camera-5D3.113.zip` |+| Canon EOS 5D Mark III (firmware 1.2.3) | 1.2.3 | ⚠️ Tried, known problem | Starts and shoots; the in-camera darkroom can't find the RAWs ([#16](../../issues/16), [#37](../../issues/37)). Fixed in the next update. | `M-Film-camera-5D3.123.zip` |+| Canon EOS 550D / Rebel T2i / Kiss X4 | 1.0.9 | 🔧 Too big for its boot memory: being fixed | | |+| Canon EOS 600D / Rebel T3i / Kiss X5 | 1.0.2 | 🔧 Too big for its boot memory: being fixed | | |+| Canon EOS 60D | 1.1.1 | ⚠️ Tried, known problem | Starts, shoots and develops; the prints come out magenta ([#25](../../issues/25)). Being fixed. | `M-Film-camera-60D.111.zip` |+| Canon EOS 1100D / Rebel T3 / Kiss X50 | 1.0.5 | 🔧 Too big for its boot memory: being fixed | | |+| Canon EOS 500D / Rebel T1i / Kiss X3 | 1.1.1 | 🧪 Builds, needs a tester | | `M-Film-camera-500D.111.zip` |+| Canon EOS 50D | 1.0.9 | 🧪 Builds, needs a tester | | `M-Film-camera-50D.109.zip` |+| Canon EOS 5D Mark II | 2.1.2 | ⚠️ Tried, known problem | Most hang at power on: the build is too big at start-up ([#18](../../issues/18)). A smaller build and a fix for pink prints come in the next update. | `M-Film-camera-5D2.212.zip` |**Not yet:** 7D (Magic Lantern's current source doesn't build it) · 200D, 750D, 77D, 80D, 7D Mark II, 5D Mark IV, 5DS R, 6D Mark II, 850D, M50, R, RP, R5, R6, SX70 HS, SX740 HS (Magic Lantern itself is still experimental on these).<!-- cameras:end -->diff --git a/README.th.md b/README.th.mdindex 7dc52f3..7c4ad57 100644--- a/README.th.md+++ b/README.th.md@@ -14,7 +14,7 @@[](https://buy.stripe.com/7sY14p8d93QE5Ny5M58so02)[](LICENSE)-[](#กล้องที่รองรับ)+[](#กล้องที่รองรับ)[](FILMS.md)[English](README.md) · **ภาษาไทย** · [ฟิล์ม](#ฟิล์ม-72-แบบ) · [กล้องที่รองรับ](#กล้องที่รองรับ) · [Darkrooms](#ล้างบนคอม-darkrooms) · [คู่มือในกล้อง](docs/MANUAL.th.md) · [ทำต่อยอด](PORTING.md)@@ -144,27 +144,27 @@ DSLR ถ่ายผ่านช่องมองกระจก ไม่ม## กล้องที่รองรับM-Film ทำบน EOS M และใช้ได้จริงบนรุ่นนั้น ตอนนี้ build ได้แล้วกับทุกรุ่นที่ Magic Lantern เองใช้ได้อย่างเสถียร-(DIGIC 4 และ 5) แต่รุ่นเหล่านั้น **ยังไม่เคยมีใครลองบนกล้องจริง** ถ้าคุณมีกล้องรุ่นไหนในตาราง ช่วยทดสอบได้:+(DIGIC 4 และ 5) ตอนนี้มีคนลองบนกล้องจริงไปเกือบทุกรุ่นแล้ว ตารางด้านล่างบอกว่าแต่ละรุ่นไปถึงไหนและยังติดอะไร ถ้าคุณมีรุ่นที่ยัง *รอคนทดสอบ* ช่วยทดสอบได้:[TESTING.md](TESTING.md) บอกวิธีไว้ (ใช้เวลาประมาณ 20 นาที และถอดกลับได้เสมอ)<!-- cameras:start -->-| กล้อง | เฟิร์มแวร์ Canon | สถานะ | ไฟล์ลงการ์ด |-|---|---|---|---|-| Canon EOS M | 2.0.2 | ✅ **ใช้ได้** | `M-Film-camera-EOSM.202.zip` |-| Canon EOS 100D / Rebel SL1 / Kiss X7 | 1.0.1 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | |-| Canon EOS 650D / Rebel T4i / Kiss X6i | 1.0.4 | 🧪 ไม่มีห้องมืดในกล้อง (ล้างด้วย Darkrooms) รอคนทดสอบ | `M-Film-camera-650D.104.zip` |-| Canon EOS 700D / Rebel T5i / Kiss X7i | 1.1.5 | 🧪 ไม่มีห้องมืดในกล้อง (ล้างด้วย Darkrooms) รอคนทดสอบ | `M-Film-camera-700D.115.zip` |-| Canon EOS 6D | 1.1.6 | 🧪 build ได้แล้ว รอคนทดสอบ | `M-Film-camera-6D.116.zip` |-| Canon EOS 70D | 1.1.2 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | |-| Canon EOS 5D Mark III (firmware 1.1.3) | 1.1.3 | 🧪 build ได้แล้ว รอคนทดสอบ | `M-Film-camera-5D3.113.zip` |-| Canon EOS 5D Mark III (firmware 1.2.3) | 1.2.3 | 🧪 build ได้แล้ว รอคนทดสอบ | `M-Film-camera-5D3.123.zip` |-| Canon EOS 550D / Rebel T2i / Kiss X4 | 1.0.9 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | |-| Canon EOS 600D / Rebel T3i / Kiss X5 | 1.0.2 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | |-| Canon EOS 60D | 1.1.1 | 🧪 build ได้แล้ว รอคนทดสอบ | `M-Film-camera-60D.111.zip` |-| Canon EOS 1100D / Rebel T3 / Kiss X50 | 1.0.5 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | |-| Canon EOS 500D / Rebel T1i / Kiss X3 | 1.1.1 | 🧪 build ได้แล้ว รอคนทดสอบ | `M-Film-camera-500D.111.zip` |-| Canon EOS 50D | 1.0.9 | 🧪 build ได้แล้ว รอคนทดสอบ | `M-Film-camera-50D.109.zip` |-| Canon EOS 5D Mark II | 2.1.2 | 🧪 build ได้แล้ว รอคนทดสอบ | `M-Film-camera-5D2.212.zip` |+| กล้อง | เฟิร์มแวร์ Canon | สถานะ | หมายเหตุ | ไฟล์ลงการ์ด |+|---|---|---|---|---|+| Canon EOS M | 2.0.2 | ✅ **ใช้ได้** | | `M-Film-camera-EOSM.202.zip` |+| Canon EOS 100D / Rebel SL1 / Kiss X7 | 1.0.1 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | | |+| Canon EOS 650D / Rebel T4i / Kiss X6i | 1.0.4 | ⚠️ ไม่มีห้องมืดในกล้อง (ล้างด้วย Darkrooms) | build เต็มจอดำ ([#34](../../issues/34)) ผู้ทดสอบลองแบบไม่มีห้องมืดแล้วเปิดได้ อัปเดตหน้าจะออกแบบนั้น | `M-Film-camera-650D.104.zip` |+| Canon EOS 700D / Rebel T5i / Kiss X7i | 1.1.5 | ⚠️ ไม่มีห้องมืดในกล้อง (ล้างด้วย Darkrooms) | build เต็มจอดำ ([#19](../../issues/19)) อัปเดตหน้าจะออกแบบไม่มีห้องมืด เหมือน 650D | `M-Film-camera-700D.115.zip` |+| Canon EOS 6D | 1.1.6 | ✅ **ใช้ได้** | ใช้ได้ตั้งแต่ 0.1.2 ([#17](../../issues/17), [#22](../../issues/22)) | `M-Film-camera-6D.116.zip` |+| Canon EOS 70D | 1.1.2 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | | |+| Canon EOS 5D Mark III (firmware 1.1.3) | 1.1.3 | ⚠️ ลองแล้ว ยังมีปัญหา | เปิดและถ่ายได้ แต่ห้องมืดในกล้องหาไฟล์ RAW ไม่เจอ ([#31](../../issues/31)) แก้แล้วในอัปเดตหน้า | `M-Film-camera-5D3.113.zip` |+| Canon EOS 5D Mark III (firmware 1.2.3) | 1.2.3 | ⚠️ ลองแล้ว ยังมีปัญหา | เปิดและถ่ายได้ แต่ห้องมืดในกล้องหาไฟล์ RAW ไม่เจอ ([#16](../../issues/16), [#37](../../issues/37)) แก้แล้วในอัปเดตหน้า | `M-Film-camera-5D3.123.zip` |+| Canon EOS 550D / Rebel T2i / Kiss X4 | 1.0.9 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | | |+| Canon EOS 600D / Rebel T3i / Kiss X5 | 1.0.2 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | | |+| Canon EOS 60D | 1.1.1 | ⚠️ ลองแล้ว ยังมีปัญหา | เปิด ถ่าย และล้างได้ แต่รูปออกสีม่วงอมชมพู ([#25](../../issues/25)) กำลังแก้ | `M-Film-camera-60D.111.zip` |+| Canon EOS 1100D / Rebel T3 / Kiss X50 | 1.0.5 | 🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้ | | |+| Canon EOS 500D / Rebel T1i / Kiss X3 | 1.1.1 | 🧪 build ได้แล้ว รอคนทดสอบ | | `M-Film-camera-500D.111.zip` |+| Canon EOS 50D | 1.0.9 | 🧪 build ได้แล้ว รอคนทดสอบ | | `M-Film-camera-50D.109.zip` |+| Canon EOS 5D Mark II | 2.1.2 | ⚠️ ลองแล้ว ยังมีปัญหา | ส่วนใหญ่ค้างตอนเปิด เพราะ build ใหญ่เกินหน่วยความจำตอนบูต ([#18](../../issues/18)) อัปเดตหน้าจะมี build ที่เล็กลงและแก้รูปสีชมพู | `M-Film-camera-5D2.212.zip` |**ยังไม่รองรับ:** 7D (source ปัจจุบันของ Magic Lantern build รุ่นนี้ไม่ได้) · 200D, 750D, 77D, 80D, 7D Mark II, 5D Mark IV, 5DS R, 6D Mark II, 850D, M50, R, RP, R5, R6, SX70 HS, SX740 HS (Magic Lantern เองยังเป็นรุ่นทดลองบนกล้องเหล่านี้)<!-- cameras:end -->diff --git a/ml-dev/cameras.txt b/ml-dev/cameras.txtindex d7e6e73..19ed473 100644--- a/ml-dev/cameras.txt+++ b/ml-dev/cameras.txt@@ -1,6 +1,7 @@# The cameras Magic Lantern runs on, and where M-Film is on each.-# platform status boot-limit name+# platform status boot-limit name [| note | note in Thai] (the notes go in the README's table)# status: working tried on the camera, works+# issues tried on the camera, with a known problem (the note says which)# testing builds; waiting for someone to try it on the camera# planned not started yet, but should be possible# nodark the full build is too big at boot on it, so it's built and released without the@@ -15,19 +16,19 @@# 100D, 70D, 550D, 600D, 1100D: the fixed reservation of Magic Lantern's boot code, MEMORY.md)EOSM.202 working 727072 Canon EOS M100D.101 memory 605952 Canon EOS 100D / Rebel SL1 / Kiss X7-650D.104 nodark 689664 Canon EOS 650D / Rebel T4i / Kiss X6i-700D.115 nodark - Canon EOS 700D / Rebel T5i / Kiss X7i-6D.116 testing 868096 Canon EOS 6D+650D.104 nodark 689664 Canon EOS 650D / Rebel T4i / Kiss X6i | The full build gives a black screen (#34); a tester's 650D starts without the darkroom. Comes that way in the next update. | build เต็มจอดำ (#34) ผู้ทดสอบลองแบบไม่มีห้องมืดแล้วเปิดได้ อัปเดตหน้าจะออกแบบนั้น+700D.115 nodark - Canon EOS 700D / Rebel T5i / Kiss X7i | The full build gives a black screen (#19). Comes without the darkroom in the next update, as for the 650D. | build เต็มจอดำ (#19) อัปเดตหน้าจะออกแบบไม่มีห้องมืด เหมือน 650D+6D.116 working 868096 Canon EOS 6D | Works since 0.1.2 (#17, #22). | ใช้ได้ตั้งแต่ 0.1.2 (#17, #22)70D.112 memory 605952 Canon EOS 70D-5D3.113 testing - Canon EOS 5D Mark III (firmware 1.1.3)-5D3.123 testing - Canon EOS 5D Mark III (firmware 1.2.3)+5D3.113 issues - Canon EOS 5D Mark III (firmware 1.1.3) | Starts and shoots; the in-camera darkroom can't find the RAWs (#31). Fixed in the next update. | เปิดและถ่ายได้ แต่ห้องมืดในกล้องหาไฟล์ RAW ไม่เจอ (#31) แก้แล้วในอัปเดตหน้า+5D3.123 issues - Canon EOS 5D Mark III (firmware 1.2.3) | Starts and shoots; the in-camera darkroom can't find the RAWs (#16, #37). Fixed in the next update. | เปิดและถ่ายได้ แต่ห้องมืดในกล้องหาไฟล์ RAW ไม่เจอ (#16, #37) แก้แล้วในอัปเดตหน้า550D.109 memory 589568 Canon EOS 550D / Rebel T2i / Kiss X4600D.102 memory 589824 Canon EOS 600D / Rebel T3i / Kiss X5-60D.111 testing - Canon EOS 60D+60D.111 issues - Canon EOS 60D | Starts, shoots and develops; the prints come out magenta (#25). Being fixed. | เปิด ถ่าย และล้างได้ แต่รูปออกสีม่วงอมชมพู (#25) กำลังแก้1100D.105 memory 524032 Canon EOS 1100D / Rebel T3 / Kiss X50500D.111 testing - Canon EOS 500D / Rebel T1i / Kiss X350D.109 testing - Canon EOS 50D-5D2.212 testing - Canon EOS 5D Mark II+5D2.212 issues - Canon EOS 5D Mark II | Most hang at power on: the build is too big at start-up (#18). A smaller build and a fix for pink prints come in the next update. | ส่วนใหญ่ค้างตอนเปิด เพราะ build ใหญ่เกินหน่วยความจำตอนบูต (#18) อัปเดตหน้าจะมี build ที่เล็กลงและแก้รูปสีชมพู7D.203 no - Canon EOS 7D (Magic Lantern's current source doesn't build it)200D.101 no - Canon EOS 200D / Rebel SL2750D.110 no - Canon EOS 750D / Rebel T6idiff --git a/ml-dev/tools/cameras.py b/ml-dev/tools/cameras.pyindex c2a07fd..0195c2d 100644--- a/ml-dev/tools/cameras.py+++ b/ml-dev/tools/cameras.py@@ -10,8 +10,9 @@ from pathlib import PathROOT = Path(__file__).resolve().parents[2]STATUS = {"working": "✅ **Works**",+ "issues": "⚠️ Tried, known problem","testing": "🧪 Builds, needs a tester",- "nodark": "🧪 Without the in-camera darkroom (develop with Darkrooms), needs a tester",+ "nodark": "⚠️ Without the in-camera darkroom (develop with Darkrooms)","planned": "⏳ Planned","memory": "🔧 Too big for its boot memory: being fixed","no": "— Not yet",@@ -20,8 +21,9 @@ WHY_NO = "Magic Lantern itself is still experimental on these"# README.th.mdSTATUS_TH = {"working": "✅ **ใช้ได้**",+ "issues": "⚠️ ลองแล้ว ยังมีปัญหา","testing": "🧪 build ได้แล้ว รอคนทดสอบ",- "nodark": "🧪 ไม่มีห้องมืดในกล้อง (ล้างด้วย Darkrooms) รอคนทดสอบ",+ "nodark": "⚠️ ไม่มีห้องมืดในกล้อง (ล้างด้วย Darkrooms)","planned": "⏳ วางแผนไว้","memory": "🔧 ใหญ่เกินหน่วยความจำตอนบูต: กำลังแก้",}@@ -36,13 +38,20 @@ def cameras():for line in (ROOT / "ml-dev" / "cameras.txt").read_text(encoding="utf-8").splitlines():if not line.strip() or line.startswith("#"):continue- plat, status, limit, name = line.split(None, 3)+ plat, status, limit, rest = line.split(None, 3)+ name, note, note_th = (rest.split(" | ") + ["", ""])[:3]fw = plat.split(".")[1]- out.append({"plat": plat, "status": status, "limit": limit, "name": name,+ out.append({"plat": plat, "status": status, "limit": limit, "name": name.strip(),+ "note": note.strip(), "note_th": note_th.strip() or note.strip(),"fw": ".".join(fw) if fw.isdigit() else fw})return out+def issue_links(text):+ """'#31' -> a link to the issue (a README on GitHub doesn't link them by itself)"""+ return re.sub(r"#(\d+)", r"[#\1](../../issues/\1)", text)++def short(name):"""'Canon EOS 200D / Rebel SL2' -> '200D', 'Canon PowerShot SX70 HS' -> 'SX70 HS'"""name = name.split(" / ", 1)[0]@@ -57,12 +66,12 @@ def replace(path, start, end, body):def main():cams = cameras()- def table(head, status, not_yet, why_text, end="."):- rows = [head, "|---|---|---|---|"]+ def table(head, status, not_yet, why_text, end=".", th=False):+ rows = [head, "|---|---|---|---|---|"]for c in cams:- if c["status"] in ("working", "testing", "nodark", "memory", "planned"):- dl = f"`M-Film-camera-{c['plat']}.zip`" if c["status"] in ("working", "testing", "nodark") else ""- rows.append(f"| {c['name']} | {c['fw']} | {status[c['status']]} | {dl} |")+ if c["status"] in ("working", "issues", "testing", "nodark", "memory", "planned"):+ dl = f"`M-Film-camera-{c['plat']}.zip`" if c["status"] in ("working", "issues", "testing", "nodark") else ""+ rows.append(f"| {c['name']} | {c['fw']} | {status[c['status']]} | {issue_links(c['note_th' if th else 'note'])} | {dl} |")# the ones Magic Lantern isn't ready on: one line, grouped by whywhy = {}for c in cams:@@ -73,12 +82,21 @@ def main():rows += ["", f"**{not_yet}:** " + " · ".join(f"{', '.join(n)} ({why_text(r)})" for r, n in why.items()) + end]return "\n".join(rows)- rows = table("| Camera | Canon firmware | Status | Card files |", STATUS, "Not yet", lambda r: r)- th = table("| กล้อง | เฟิร์มแวร์ Canon | สถานะ | ไฟล์ลงการ์ด |", STATUS_TH, "ยังไม่รองรับ", lambda r: WHY_TH.get(r, r), end="")+ rows = table("| Camera | Canon firmware | Status | Notes | Card files |", STATUS, "Not yet", lambda r: r)+ th = table("| กล้อง | เฟิร์มแวร์ Canon | สถานะ | หมายเหตุ | ไฟล์ลงการ์ด |", STATUS_TH, "ยังไม่รองรับ",+ lambda r: WHY_TH.get(r, r), end="", th=True)+ # the badge at the top: how many work, start with a problem, wait for a tester+ n = {s: sum(c["status"] == s for c in cams) for s in STATUS}+ rough = n["issues"] + n["nodark"]+ badge = (f"cameras-{n['working']}%20work" + (f"%20%C2%B7%20{rough}%20with%20a%20problem" if rough else "")+ + (f"%20%C2%B7%20{n['testing']}%20in%20testing" if n["testing"] else "") + "-3b352f")+ for p in (ROOT / "README.md", ROOT / "README.th.md"):+ p.write_text(re.sub(r"img\.shields\.io/badge/cameras-[^)]*-3b352f", "img.shields.io/badge/" + badge,+ p.read_text(encoding="utf-8"), count=1), encoding="utf-8")replace(ROOT / "README.th.md", "<!-- cameras:start -->", "<!-- cameras:end -->", th)replace(ROOT / "README.md", "<!-- cameras:start -->", "<!-- cameras:end -->", rows)- built = [c for c in cams if c["status"] in ("working", "testing", "nodark")]+ built = [c for c in cams if c["status"] in ("working", "issues", "testing", "nodark")]rows = ["| Camera | Canon firmware it needs | File |", "|---|---|---|"]rows += [f"| {c['name']} | {c['fw']} | `M-Film-camera-{c['plat']}.zip` |" for c in built]replace(ROOT / "TESTING.md", "<!-- cameras:start -->", "<!-- cameras:end -->", "\n".join(rows))@@ -90,7 +108,7 @@ def main():text = re.sub(r"( NODARK: \")[^\"]*(\")",lambda m: m.group(1) + " ".join(c["plat"] for c in cams if c["status"] == "nodark") + m.group(2), text, count=1)wf.write_text(text, encoding="utf-8")- print(f"{len(cams)} cameras: {sum(c['status'] == 'working' for c in cams)} working, "+ print(f"{len(cams)} cameras: {sum(c['status'] == 'working' for c in cams)} working, {sum(c['status'] == 'issues' for c in cams)} with a problem, "f"{sum(c['status'] == 'testing' for c in cams)} testing, {sum(c['status'] == 'nodark' for c in cams)} without the darkroom, {sum(c['status'] == 'memory' for c in cams)} too big at boot")