Commit 84fbaca
authored
🌐 [translation-sync] [Philips] Adding Tom's new section on Phillips Curve Tradeoffs (#202)
* Update translation: lectures/phillips_adaptive.md
* Update translation: .translate/state/phillips_adaptive.md.yml
* Update translation: lectures/phillips_credibility.md
* Update translation: .translate/state/phillips_credibility.md.yml
* Update translation: lectures/phillips_drifts_volatilities.md
* Update translation: .translate/state/phillips_drifts_volatilities.md.yml
* Update translation: lectures/phillips_escaping_nash.md
* Update translation: .translate/state/phillips_escaping_nash.md.yml
* Update translation: lectures/phillips_learning.md
* Update translation: .translate/state/phillips_learning.md.yml
* Update translation: lectures/phillips_misspecified.md
* Update translation: .translate/state/phillips_misspecified.md.yml
* Update translation: lectures/phillips_priors.md
* Update translation: .translate/state/phillips_priors.md.yml
* Update translation: lectures/phillips_self_confirming.md
* Update translation: .translate/state/phillips_self_confirming.md.yml
* Update translation: lectures/phillips_two_stories.md
* Update translation: .translate/state/phillips_two_stories.md.yml
* Update translation: lectures/_toc.yml
* Add phillips_lost_conquest, the lecture the sync run failed to translate
The sync for source PR #992 processed ten new lectures; nine succeeded and
lectures/phillips_lost_conquest.md failed the structural parity check with its
directive sequence scrambled and the (phillips_lost_conquest)= anchor dropped.
The run committed _toc.yml naming it anyway, and four of the nine siblings
cross-reference it, so the build failed with six dangling references
(QuantEcon/action-translation#156).
Retranslated with the v0.23.0 CLI against the same source commit (370a58f) and
the same 357-term glossary. The CLI output needed the wrapper repaired by hand:
both attempts wrapped the whole document in a bare code fence and derived
translation.title from a figure caption rather than the H1, which is
QuantEcon/action-translation#118 still reproducing at v0.23.0. The body itself
was sound in both runs; only the frontmatter/fence wrapper was rebuilt, to match
the convention the nine sibling files already use.
Validated against the English source: directive sequence 28/28 in order,
anchors, heading count and levels, code-cell count, display-math count, fence
balance, and every {doc}/{cite} link target identical. section-count 7 matches
the H2 count, consistent with the siblings.
* Fix the font path init hard-coded into phillips_lost_conquest
`translate init -f` injected `FONTPATH = "_fonts/SourceHanSerifSC-SemiBold.otf"`,
but this edition keeps the font at `lectures/fonts/` — the other 103 lectures
carrying font config all use `fonts/`. `addfont()` raises FileNotFoundError on a
missing path, so this would have failed the build on the one lecture that needs
the font most: it carries 14 translated plot labels.
This is QuantEcon/action-translation#141's hard-coded font path, still live at
v0.23.0. Also aligns `mpl.rcParams` to the `plt.rcParams` the rest of the
edition uses; both mutate the same object, so that half is cosmetic.
Worth recording for whoever reviews this PR: the font block is correct here and
should not be removed. The AI review flagged it as a blocker ("unauthorized
insertion ... out of scope for a translation task"), but the lecture's figures
are labelled in Chinese and would render as tofu without it. The nine sibling
lectures have no font block because the *sync* path applies no localisation at
all — it also leaves their plot labels in English — which is a divergence
between the sync and init paths rather than a defect in this file.1 parent f8bf219 commit 84fbaca
21 files changed
Lines changed: 8231 additions & 22 deletions
File tree
- .translate/state
- lectures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments