Malayalam translation: python_by_example — native-speaker calibration review - #1
Conversation
Translated by claude-sonnet-5 via action-translation@main (register rules + glossary v0.2.0 from the reviewer packet). Source: QuantEcon/lecture-python-programming@5816589. Deterministic gates at translation time: 0 transliterations, 0 native software verbs, headings byte-identical. Part of Phase 2 of QuantEcon/action-translation#189. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds the Malayalam machine translation of the python_by_example lecture for native-speaker calibration review (Phase 2 of QuantEcon/action-translation#189), landing the translated content directly into the site.
Changes:
- Introduces a new
lectures/python_by_example.mdMyST/Jupytext lecture file containing the Malayalam translation. - Includes translation metadata (
translation:block) for title/headings mapping.
Suppressed comments (3)
lectures/python_by_example.md:357
- "etc.-ന്" mixes English filler with Malayalam case-suffix; replacing with a Malayalam equivalent avoids the awkward hyphenation and reads more naturally.
വാസ്തവത്തിൽ, Python-ൽ, *എല്ലാ* code blocks-ഉം (അതായത്, loops, if clauses, function definitions, etc.-ന് അകത്ത് സംഭവിക്കുന്നവ) indentation-ൽ delimit ചെയ്യപ്പെടുന്നു.
lectures/python_by_example.md:372
- This nested bullet uses the English filler "etc." (with a trailing space). Consider replacing it with a Malayalam equivalent.
* etc.
lectures/python_by_example.md:280
- This Malayalam translation still uses the English filler "etc."; consider replacing it with a Malayalam equivalent for consistency.
* String objects-ന് [string methods](https://docs.python.org/3/library/stdtypes.html#string-methods) ഉണ്ട്, list objects-ന് [list methods](https://docs.python.org/3/tutorial/datastructures.html#more-on-lists) ഉണ്ട്, etc.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
A note on the automated comments above — they are not from our translation tool, and none of them needs your attention. GitHub Copilot reviews every pull request in this organisation automatically. It is a general-purpose code reviewer with no knowledge of this edition's translation policy, so on a Malayalam lecture it mostly argues against the policy — repeatedly suggesting that technical terms kept in English should be rendered in Malayalam. That is exactly the over-translation this edition is designed to avoid, and in one case it proposed replacing We have checked every one of its comments against the English source and replied to each on its own thread, then marked them resolved so they collapse out of your view. The breakdown for this lecture:
None of its comments identified a translation defect. What we are asking you for is unchanged: comment on any line you would change — English that should be Malayalam, Malayalam that should be English, a wrong case-suffix, awkward phrasing, or the same term handled differently in two places. Yours is the review that counts here; please disregard the collapsed automated threads entirely. |
|
📖 HTML build - view preview (ff09b87) Translated pages in this PR: |
adisankarmt
left a comment
There was a problem hiding this comment.
python_by_example review completed. Overall the tool is performing well. Need some changes on word order, verb forms, and such small things.
adisankarmt
left a comment
There was a problem hiding this comment.
python_by_example review completed. Overall the tool is performing well. Need some changes on word order, verb forms, and such small things.
Applies all 100 inline review comments from the calibration review on #1 (2026-08-07 through 2026-08-15). Each 'Preferred:' rendering is applied verbatim, with minimal typographic normalisation: code spans and cross-reference links restored where the plain-text comments dropped them (ϵ_values, ts_length, for, f'foo{var}', the {doc} NumPy link, the subpackage bold), straight quotes and single spaces, and one suspected slip normalised (flag on line 381: ആയ -> ആയി) — listed for the reviewer's verification in the PR comment. Retain-in-English flags (comments on lines 106, 471, 489, 570, 583, 639, and the ex5 hint and solution sections) take the English text byte-exact from the source lecture at lecture-python-programming@81d9734. Part of the Phase 2 calibration round tracked in QuantEcon/action-translation#189. Co-Authored-By: Adisankar Manoj Thanuja <45125206+adisankarmt@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Thank you @adisankarmt — this is exactly the review round the calibration phase was waiting for. All 100 of your comments are now applied to this PR in commit 6ee7130, each "Preferred:" rendering taken verbatim. A few notes on how they were applied:
Three small things I'd ask you to double-check in the updated preview once it rebuilds:
Since your role on this repository is now write access, you can push corrections directly to this branch — and in future review rounds you can use GitHub's suggestion blocks in review comments, which lets us apply your fix with one click and credits you as the commit author automatically. Your flags now feed the next glossary and rule update for the translation tool (the below-deixis pattern, ആദ്യത്തെ, the discourse connectives, and your proposed rule for mathematical Hint/Solution sections are all being encoded), tracked in QuantEcon/action-translation#189. The reviews of the other four lectures (PRs #2–#5) can proceed whenever suits you — no deadline. |
|
📖 HTML build - view preview (6ee7130) Translated pages in this PR: |
|
@adisankarmt — a quick status and what would help next, now that your entire round-1 review has been folded into the translation tool: What your 100 comments changed. Every flag was encoded as a glossary entry or a rule (or logged accepted-as-is) and shipped in QuantEcon/action-translation#272. We then regenerated this lecture from scratch with the updated tool as a check: the fresh output now uses Two things when you have a moment:
No deadline on any of this — the pace is yours. |
|
|
Thanks @adisankarmt — all three confirmed, nothing further to change here. On (2): agreed, the "ഇത്" lead-in is not encoded as a rule — the round-1 update to the tool (QuantEcon/action-translation#272) took the below-deixis pattern, the connectives and the calques, but left this one open. Whatever you conclude across the next lectures will set it. On the font: good catch, and the right diagnosis. The theme's fonts (Source Sans Pro / PT Serif) have no Malayalam glyphs, so the Malayalam was being drawn by your operating system's fallback font, which sits larger than the Latin. #9 adds Noto Sans Malayalam for body text and Noto Serif Malayalam for headings, applied to the Malayalam characters only, so the English and code are unchanged. Once its preview build posts, could you compare it with the current site and say whether the size now looks balanced? If it is still off, the Malayalam alone can be scaled a few percent either way without touching anything else. Enjoy #7 — keen to hear how the regenerated output reads. |
* Add Noto Sans/Serif Malayalam web fonts scoped to the Malayalam block The theme loads Source Sans Pro and PT Serif, neither of which covers Malayalam, so Malayalam runs fell back to the reader's OS font and sat visibly larger than the Latin text (reviewer feedback on #1). This adds self-hosted Google Fonts malayalam subsets of Noto Sans Malayalam (body) and Noto Serif Malayalam (headings), declared with unicode-range so only Malayalam glyphs change; Latin, digits and code keep the theme's fonts. Wired in via html_css_files. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Ship the OFL licence text alongside the Noto Malayalam font files Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
|
📖 HTML build - view preview (c4378e7) Translated pages in this PR: |
adisankarmt
left a comment
There was a problem hiding this comment.
small punctuations mistakes and last minute errors rectified
Punctuation and phrasing fixes to python_by_example.md from PR review #1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
📖 HTML build - view preview (7605f27) Translated pages in this PR: |
|
thanks @adisankarmt for all your work here. Merging now and will publish. |
Machine translation of
python_by_examplefor native-speaker review — Phase 2 of QuantEcon/action-translation#189. Merging this PR lands the translation including any fixes committed during review, so review comments here improve the real site directly.For the reviewer: please comment on any line you would change — English that should be Malayalam, Malayalam that should be English, a wrong case-suffix, awkward phrasing, or the same term handled differently in two places. Headings, code cells and transliteration are already machine-verified (all headings byte-identical, code untouched, zero transliterations) — no need to proofread those. Every comment resolves to exactly one of: a glossary entry, a rule change in the translation tool, or accepted-as-is with our reasoning replied on the thread.
Provenance: source QuantEcon/lecture-python-programming@5816589 · model
claude-sonnet-5· action-translation@main with the register rules + glossary v0.2.0 derived from the reviewer packet · produced by harness run https://github.com/QuantEcon/test-translation-sync/actions/runs/30783362693 and adopted here byte-exact.🤖 Generated with Claude Code