feat(website): add language infrastructure for translated pages

Prepare translated versions of the home, Get started, Guides and FAQ pages
in zh-Hans, zh-Hant, ja, ko, de and fr. English stays at the root and each
language lives under its own directory. No translated page exists yet, so
English pages only gain an og:locale tag.

- LANGUAGES in website.py owns each language's directory, lang/hreflang tag,
  menu name and og:locale; locales/<language>.json holds the shared UI text
  (non-English locales start as English placeholders).
- sync renders the header, footer and sharing regions in the page's
  language: localized navigation with an EN badge on English-only targets,
  a native-details language menu (same page, else the language's reviewed
  home, else omitted), hreflang alternates with x-default, og:locale
  alternates and the brand link to the language's home.
- Translations record source-sha256 and status (draft or reviewed). Drafts
  are noindex and stay out of the sitemap, menus, hreflang and navigation.
- sync copies every Copy-targeted code block from English by ID, and fills
  the website:translation-notice region when the English text has changed.
  The hash leaves out shared regions and those code blocks.
- The verifier checks records, copied code, ID/Copy/data-msg parity while
  fresh, whitespace between CJK characters in ja/zh, and the page's lang.
  An out-of-date translation, inline-code differences, links to English
  pages with a reviewed translation and English placeholder UI strings
  are warnings, shown as GitHub annotations and in the job summary.
- New commands: `translate <language> <route>` creates a draft and
  `translations` reports status, freshness and OS names to confirm.
- styles.css adds per-language CJK font stacks, CJK heading, emphasis and
  line-breaking rules, German hyphenation, and the menu, badge and notice.
- The publisher runs sync after the checks so notices are current.
- website/translation.md documents the workflow, rules, register, glossary
  (with Korean), OS names to confirm and the review checklist.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kaoru0822
2026-10-11 07:23:29 +00:00
co-authored by Claude Opus 5.5
parent 80f6365523
commit ce58aebc0e
35 changed files with 1564 additions and 71 deletions
+6 -2
View File
@@ -9,10 +9,14 @@ website content, layout or figures. Use [figures.md](figures.md) and `evidence/`
for asset notes and the source of case-study claims.
- Write English, direct headings and concrete instructions. Each paragraph
should explain a new fact or action.
should explain a new fact or action. Translated pages follow
[translation.md](translation.md): create them with `translate`, keep their
structure and copied code blocks in step with English, and refresh a
translation's source hash only after updating its text.
- Reuse the shared styles, prompts, figures and code-step components. Keep a
case study focused on one question, with further examples in native details.
- Edit shared header, footer and sharing markup in `templates/`; run
- Edit shared header, footer and sharing markup in `templates/` and their text
in `locales/`; run
`python3 scripts/website.py sync` and commit the rendered regions with their
templates. Keep page bodies outside the marked regions. Author each title and
description once; derive sharing fields and canonicals from them. Use
+9 -3
View File
@@ -4,7 +4,9 @@
>
> — N0zoM1z0
An English static website with explanatory figures, worked guides and Aegis, DX-Ball, Notion, TH04 and CTF investigations.
A static website with explanatory figures, worked guides and Aegis, DX-Ball, Notion, TH04 and CTF investigations.
It is written in English; the home page, Get started, the Guides index and the FAQ are
also translated, as described in [translation.md](translation.md).
The public files are in `website/public/`. The site uses HTML, CSS and small
scripts for copying code, following code comparisons and playing the dinosaur
speed reconstruction. The scripts contain no reader-facing text: copy messages
@@ -49,8 +51,10 @@ applies to every page.
| ------------------------------ | ---------------------------------------------------------------- | ----------------------------------------------- |
| Page text, examples or figures | The page's HTML outside the marked shared regions | `python3 scripts/website.py check` |
| Search title or description | The page's `<title>` and first description meta tag | `python3 scripts/website.py sync`, then `check` |
| Main navigation | `NAVIGATION` in `scripts/website.py` | `sync`, then `check` |
| Main navigation | `NAVIGATION` in `scripts/website.py` and labels in `locales/` | `sync`, then `check` |
| Header, social links or footer | `templates/header.html.tmpl` or `templates/footer.html.tmpl` | `sync`, then `check` |
| Shared UI text in a language | `locales/<language>.json` | `sync`, then `check` |
| A translated page | See [translation.md](translation.md) | `translate`, then `check` |
| Shared link previews | `templates/sharing.html.tmpl` or `public/assets/social-card.svg` | `sync`, then `check` |
Create a reading page with:
@@ -465,7 +469,9 @@ See Cloudflare's [GitHub Actions authentication instructions](https://developers
The default `both` target checks that both secrets are present before preparing
a release. Cloudflare deploys first; GitHub Pages deploys after that step succeeds.
Preparation adds `deployment.json` with the workflow's commit SHA. Cloudflare
After the checks pass, preparation runs `sync` so a translation whose English
page changed is published with its out-of-date notice, then adds
`deployment.json` with the workflow's commit SHA. Cloudflare
receives the extracted Pages artifact through Wrangler's explicit assets path;
the production environment disables Wrangler's preview custom build, so deployment
uses the prepared artifact directly. The workflow then
+34
View File
@@ -0,0 +1,34 @@
{
"strings": {
"skipLink": "Skip to content",
"home": "REA home",
"mainNavigation": "Main navigation",
"navShowcases": "Showcases",
"navBlog": "Blog",
"navGetStarted": "Get started",
"navGuides": "Guides",
"navFaq": "FAQ",
"language": "Language",
"github": "REA on GitHub",
"discord": "Join REA on Discord",
"followRea": "Follow REA on X",
"source": "Source",
"license": "MIT license",
"community": "Join the community",
"followUs": "Follow us on X",
"copied": "Copied",
"selected": "Selected",
"statusCopied": "Code copied to clipboard.",
"statusSelected": "Code selected. Use your keyboard to copy it.",
"backToTop": "Back to top",
"top": "Top",
"imageAlt": "REA — Find out how software works. Reverse engineering with your coding agent.",
"staleNotice": "The English page has changed since this translation. {link}",
"staleNoticeLink": "Read the English version."
},
"githubStars": {
"one": "REA on GitHub ({count} star)",
"other": "REA on GitHub ({count} stars)"
},
"sameAsEnglish": []
}
+34
View File
@@ -0,0 +1,34 @@
{
"strings": {
"skipLink": "Skip to content",
"home": "REA home",
"mainNavigation": "Main navigation",
"navShowcases": "Showcases",
"navBlog": "Blog",
"navGetStarted": "Get started",
"navGuides": "Guides",
"navFaq": "FAQ",
"language": "Language",
"github": "REA on GitHub",
"discord": "Join REA on Discord",
"followRea": "Follow REA on X",
"source": "Source",
"license": "MIT license",
"community": "Join the community",
"followUs": "Follow us on X",
"copied": "Copied",
"selected": "Selected",
"statusCopied": "Code copied to clipboard.",
"statusSelected": "Code selected. Use your keyboard to copy it.",
"backToTop": "Back to top",
"top": "Top",
"imageAlt": "REA — Find out how software works. Reverse engineering with your coding agent.",
"staleNotice": "The English page has changed since this translation. {link}",
"staleNoticeLink": "Read the English version."
},
"githubStars": {
"one": "REA on GitHub ({count} star)",
"other": "REA on GitHub ({count} stars)"
},
"sameAsEnglish": []
}
+34
View File
@@ -0,0 +1,34 @@
{
"strings": {
"skipLink": "Skip to content",
"home": "REA home",
"mainNavigation": "Main navigation",
"navShowcases": "Showcases",
"navBlog": "Blog",
"navGetStarted": "Get started",
"navGuides": "Guides",
"navFaq": "FAQ",
"language": "Language",
"github": "REA on GitHub",
"discord": "Join REA on Discord",
"followRea": "Follow REA on X",
"source": "Source",
"license": "MIT license",
"community": "Join the community",
"followUs": "Follow us on X",
"copied": "Copied",
"selected": "Selected",
"statusCopied": "Code copied to clipboard.",
"statusSelected": "Code selected. Use your keyboard to copy it.",
"backToTop": "Back to top",
"top": "Top",
"imageAlt": "REA — Find out how software works. Reverse engineering with your coding agent.",
"staleNotice": "The English page has changed since this translation. {link}",
"staleNoticeLink": "Read the English version."
},
"githubStars": {
"one": "REA on GitHub ({count} star)",
"other": "REA on GitHub ({count} stars)"
},
"sameAsEnglish": []
}
+33
View File
@@ -0,0 +1,33 @@
{
"strings": {
"skipLink": "Skip to content",
"home": "REA home",
"mainNavigation": "Main navigation",
"navShowcases": "Showcases",
"navBlog": "Blog",
"navGetStarted": "Get started",
"navGuides": "Guides",
"navFaq": "FAQ",
"language": "Language",
"github": "REA on GitHub",
"discord": "Join REA on Discord",
"followRea": "Follow REA on X",
"source": "Source",
"license": "MIT license",
"community": "Join the community",
"followUs": "Follow us on X",
"copied": "Copied",
"selected": "Selected",
"statusCopied": "Code copied to clipboard.",
"statusSelected": "Code selected. Use your keyboard to copy it.",
"backToTop": "Back to top",
"top": "Top",
"imageAlt": "REA — Find out how software works. Reverse engineering with your coding agent.",
"staleNotice": "The English page has changed since this translation. {link}",
"staleNoticeLink": "Read the English version."
},
"githubStars": {
"other": "REA on GitHub ({count} stars)"
},
"sameAsEnglish": []
}
+33
View File
@@ -0,0 +1,33 @@
{
"strings": {
"skipLink": "Skip to content",
"home": "REA home",
"mainNavigation": "Main navigation",
"navShowcases": "Showcases",
"navBlog": "Blog",
"navGetStarted": "Get started",
"navGuides": "Guides",
"navFaq": "FAQ",
"language": "Language",
"github": "REA on GitHub",
"discord": "Join REA on Discord",
"followRea": "Follow REA on X",
"source": "Source",
"license": "MIT license",
"community": "Join the community",
"followUs": "Follow us on X",
"copied": "Copied",
"selected": "Selected",
"statusCopied": "Code copied to clipboard.",
"statusSelected": "Code selected. Use your keyboard to copy it.",
"backToTop": "Back to top",
"top": "Top",
"imageAlt": "REA — Find out how software works. Reverse engineering with your coding agent.",
"staleNotice": "The English page has changed since this translation. {link}",
"staleNoticeLink": "Read the English version."
},
"githubStars": {
"other": "REA on GitHub ({count} stars)"
},
"sameAsEnglish": []
}
+33
View File
@@ -0,0 +1,33 @@
{
"strings": {
"skipLink": "Skip to content",
"home": "REA home",
"mainNavigation": "Main navigation",
"navShowcases": "Showcases",
"navBlog": "Blog",
"navGetStarted": "Get started",
"navGuides": "Guides",
"navFaq": "FAQ",
"language": "Language",
"github": "REA on GitHub",
"discord": "Join REA on Discord",
"followRea": "Follow REA on X",
"source": "Source",
"license": "MIT license",
"community": "Join the community",
"followUs": "Follow us on X",
"copied": "Copied",
"selected": "Selected",
"statusCopied": "Code copied to clipboard.",
"statusSelected": "Code selected. Use your keyboard to copy it.",
"backToTop": "Back to top",
"top": "Top",
"imageAlt": "REA — Find out how software works. Reverse engineering with your coding agent.",
"staleNotice": "The English page has changed since this translation. {link}",
"staleNoticeLink": "Read the English version."
},
"githubStars": {
"other": "REA on GitHub ({count} stars)"
},
"sameAsEnglish": []
}
+33
View File
@@ -0,0 +1,33 @@
{
"strings": {
"skipLink": "Skip to content",
"home": "REA home",
"mainNavigation": "Main navigation",
"navShowcases": "Showcases",
"navBlog": "Blog",
"navGetStarted": "Get started",
"navGuides": "Guides",
"navFaq": "FAQ",
"language": "Language",
"github": "REA on GitHub",
"discord": "Join REA on Discord",
"followRea": "Follow REA on X",
"source": "Source",
"license": "MIT license",
"community": "Join the community",
"followUs": "Follow us on X",
"copied": "Copied",
"selected": "Selected",
"statusCopied": "Code copied to clipboard.",
"statusSelected": "Code selected. Use your keyboard to copy it.",
"backToTop": "Back to top",
"top": "Top",
"imageAlt": "REA — Find out how software works. Reverse engineering with your coding agent.",
"staleNotice": "The English page has changed since this translation. {link}",
"staleNoticeLink": "Read the English version."
},
"githubStars": {
"other": "REA on GitHub ({count} stars)"
},
"sameAsEnglish": []
}
+178 -3
View File
@@ -6,9 +6,11 @@
--soft: #f4f6f8;
--accent: #294f82;
--page: #ffffff;
--font-sans:
-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
/* Translated pages extend these stacks with fonts for their script. */
--font-latin: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial;
--font-code: "SFMono-Regular", Consolas, "Liberation Mono";
--font-sans: var(--font-latin), sans-serif;
--font-mono: var(--font-code), monospace;
font-family: var(--font-sans);
font-synthesis: none;
text-rendering: optimizeLegibility;
@@ -2487,3 +2489,176 @@ pre code {
grid-template-columns: 1fr;
}
}
/* Translated pages. Latin text keeps the site's fonts, then each language
names its own CJK fonts so Han characters take that language's forms. */
:lang(en) {
--font-sans: var(--font-latin), sans-serif;
--font-mono: var(--font-code), monospace;
}
:lang(ja) {
--font-sans:
var(--font-latin), "Hiragino Sans", "Hiragino Kaku Gothic ProN",
"Yu Gothic UI", Meiryo, "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
--font-mono:
var(--font-code), "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP",
"Noto Sans CJK JP", monospace;
}
:lang(zh-Hans) {
--font-sans:
var(--font-latin), "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
"Noto Sans CJK SC", sans-serif;
--font-mono:
var(--font-code), "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
"Noto Sans CJK SC", monospace;
}
:lang(zh-Hant) {
--font-sans:
var(--font-latin), "PingFang TC", "Microsoft JhengHei", "Noto Sans TC",
"Noto Sans CJK TC", sans-serif;
--font-mono:
var(--font-code), "PingFang TC", "Microsoft JhengHei", "Noto Sans TC",
"Noto Sans CJK TC", monospace;
}
:lang(ko) {
--font-sans:
var(--font-latin), "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR",
"Noto Sans CJK KR", sans-serif;
--font-mono:
var(--font-code), "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR",
"Noto Sans CJK KR", monospace;
}
/* Resolve the stack again wherever the language changes, such as the
language menu's names or an English badge. */
[lang] {
font-family: var(--font-sans);
}
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant))
:is(
h1,
h2,
h3,
.brand-name,
.home-no,
.agent-one-prompt,
.stats dt,
.home-start-grid .home-setup h2
) {
letter-spacing: 0;
}
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) :is(h1, h2, h3) {
line-height: 1.3;
text-wrap: pretty;
}
/* CJK fonts have no italics, so emphasis uses weight instead. */
:is(:lang(ja), :lang(ko), :lang(zh-Hans), :lang(zh-Hant)) em {
font-style: normal;
font-weight: 600;
}
:lang(ja) {
line-break: strict;
}
:lang(ja) :is(h1, h2, h3) {
word-break: auto-phrase;
}
:lang(ko) {
word-break: keep-all;
}
:lang(de) :is(h1, h2, h3, .lede, .contents a, .button) {
hyphens: auto;
overflow-wrap: break-word;
}
.language-menu {
position: relative;
}
.language-menu summary {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 44px;
padding-inline: 10px;
border: 1px solid var(--line);
border-radius: 10px;
color: var(--muted);
font-size: 0.875rem;
cursor: pointer;
list-style: none;
}
.language-menu summary::-webkit-details-marker {
display: none;
}
.language-menu summary:hover,
.language-menu[open] summary {
background: var(--soft);
color: var(--ink);
}
.language-menu svg {
display: block;
flex-shrink: 0;
}
.language-list {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 6;
min-width: 10rem;
margin: 0;
padding: 0.35rem;
border: 1px solid var(--line);
border-radius: 10px;
background: var(--page);
box-shadow: 0 8px 24px rgb(32 37 43 / 12%);
list-style: none;
}
.language-list li + li {
margin-top: 0;
}
.language-list a {
display: block;
padding: 0.45rem 0.7rem;
border-radius: 6px;
color: var(--ink);
text-decoration: none;
}
.language-list a:hover {
background: var(--soft);
}
.language-list a[aria-current="true"] {
font-weight: 600;
}
.nav-badge {
margin-left: 0.3em;
padding: 0 0.3em;
border: 1px solid var(--line);
border-radius: 4px;
color: var(--muted);
font-size: 0.65rem;
font-weight: 600;
letter-spacing: 0.04em;
vertical-align: 0.15em;
}
.translation-notice {
margin: 1.5rem 0 0;
padding: 0.75rem 1rem;
border-left: 3px solid var(--accent);
background: var(--soft);
font-size: 0.9rem;
}
main:not(.container) > .translation-notice {
width: min(1080px, calc(100% - 3.5rem));
margin-inline: auto;
}
@media (max-width: 640px) {
.language-current {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: inset(50%);
white-space: nowrap;
}
main:not(.container) > .translation-notice {
width: calc(100% - 2.5rem);
}
}
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="REA Blog — Thoughts on Reverse Engineering" />
<!-- prettier-ignore -->
<meta property="og:description" content="Thoughts on reverse engineering, drawing on practical experience with REA and AI agents." />
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="Reverse Engineering’s Industrial Revolution — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="N0zoM1z0 reflects on manual reverse engineering, Touhou reconstruction with AI agents, and how knowledge compounds across TH08, TH095 and PC-98 TH04." />
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="Chrome Dinosaur Game: Rebuild Its Speed Rule — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Read the dinosaur game’s speed rule with REA, rebuild it, then change the speed and play." />
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="REA FAQ: Setup, Updates and Troubleshooting" />
<!-- prettier-ignore -->
<meta property="og:description" content="Answers to common REA questions: installation, updates, analysis tools, coding agents, troubleshooting and sharing examples." />
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="Your First Reverse Engineering Investigation — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Try REA on a small Notes app. Set up your agent, ask where exported notes go, and check the CSV formatter with a sample title." />
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="Install REA and Set Up Your Coding Agent" />
<!-- prettier-ignore -->
<meta property="og:description" content="Connect REA to your coding agent or inspect a local JavaScript or Electron app from the terminal. Setup, first questions and native provider guides." />
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="Browser and Network Analysis — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Observe a Notes export with REA: select a browser page, capture a click, inspect the request and follow the export script." />
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="Reverse Engineering Guides — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Learn REA through short worked examples: a native calculation, an Electron CSV export and a browser request." />
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="JavaScript and Electron Analysis — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Trace a Notes CSV export through a renderer API, preload and IPC handler with REA. Includes downloadable example files and a verified analysis result." />
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="Native Binary Analysis — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Recover a native calculation with REA: inspect instructions, follow a caller, read constants and check reconstructed C." />
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="REA — Reverse Engineering for Your Coding Agent" />
<!-- prettier-ignore -->
<meta property="og:description" content="Reverse engineer apps, binaries and browser behavior with your coding agent. Follow clear guides and try interactive examples with REA." />
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="Aegis APK Reverse Engineering: Login Codes — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Inspect the Aegis Android APK with REA, recover its six-digit login-code calculation and try a reconstruction with an adjustable clock." />
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="CTF Reverse Engineering: DownUnderCTF Flag Checker — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Use REA to solve DownUnderCTF&#x27;s masked squares flag checker. Find the checking functions, extract the masks and compare a recovered flag with the original program." />
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="DX-Ball Reverse Engineering: Sound Panning — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Follow a DX-Ball reconstruction from binary analysis through REA to maintained C, original-x86 tests and matching compiled function bytes." />
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="Reverse Engineering Case Studies — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Follow REA investigations through code, figures and demos: an Android authenticator, DX-Ball, Notion, TH04 and a DownUnderCTF flag checker." />
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="Notion Electron Reverse Engineering: Clipboard — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Follow Notion&#x27;s clipboard API through Electron&#x27;s preload, IPC wrappers and main process, with short code excerpts and a look at its rich clipboard format." />
+2
View File
@@ -16,6 +16,8 @@
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="en_US" />
<!-- prettier-ignore -->
<meta property="og:title" content="TH04 Reverse Engineering: DOS Bullet Patterns — REA" />
<!-- prettier-ignore -->
<meta property="og:description" content="Inspect TH04&#x27;s original 16-bit DOS code with REA. Follow the assembly and recovered C++ to see how a ring of bullets is spaced and aimed at the player." />
+10 -10
View File
@@ -3,10 +3,10 @@
<div class="container footer-inner">
<p>REA · Reverse Engineer Anything</p>
<div class="footer-links">
<a href="https://github.com/morluto/rea">Source</a
><a href="https://github.com/morluto/rea/blob/main/LICENSE">MIT license</a
><a href="https://discord.gg/GkcryMnJDM">Join the community</a
><a href="https://x.com/reatools">Follow us on X</a>
<a href="https://github.com/morluto/rea">$t_source</a
><a href="https://github.com/morluto/rea/blob/main/LICENSE">$t_license</a
><a href="https://discord.gg/GkcryMnJDM">$t_community</a
><a href="https://x.com/reatools">$t_followUs</a>
</div>
</div>
</footer>
@@ -15,11 +15,11 @@
id="copy-status"
role="status"
aria-live="polite"
data-copied="Copied"
data-selected="Selected"
data-status-copied="Code copied to clipboard."
data-status-selected="Code selected. Use your keyboard to copy it."
data-copied="$t_copied"
data-selected="$t_selected"
data-status-copied="$t_statusCopied"
data-status-selected="$t_statusSelected"
></p>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
<a class="back-to-top" href="#top" aria-label="$t_backToTop">
<span aria-hidden="true">↑</span> $t_top
</a>
+10 -12
View File
@@ -1,21 +1,19 @@
<!-- prettier-ignore -->
<a class="skip-link" href="#main">Skip to content</a>
<a class="skip-link" href="#main">$t_skipLink</a>
<!-- prettier-ignore -->
<header class="site-header">
<div class="container header-inner">
<a class="brand" href="$base" aria-label="REA home"
<a class="brand" href="$brand" aria-label="$t_home"
><span class="brand-name">REA</span
><span class="brand-caption">Reverse Engineer Anything</span></a
>
<nav class="navigation" aria-label="Main navigation">$navigation</nav>
<div class="header-social">
<nav class="navigation" aria-label="$t_mainNavigation">$navigation</nav>
<div class="header-social">$language_menu
<a
class="nav-github"
href="https://github.com/morluto/rea"
aria-label="REA on GitHub"
title="REA on GitHub"
data-label-one="REA on GitHub ({count} star)"
data-label-other="REA on GitHub ({count} stars)"
aria-label="$t_github"
title="$t_github"$github_star_labels
>
<svg
width="22"
@@ -34,8 +32,8 @@
<a
class="nav-discord"
href="https://discord.gg/GkcryMnJDM"
aria-label="Join REA on Discord"
title="Join REA on Discord"
aria-label="$t_discord"
title="$t_discord"
>
<svg
width="22"
@@ -53,8 +51,8 @@
<a
class="nav-x"
href="https://x.com/reatools"
aria-label="Follow REA on X"
title="Follow REA on X"
aria-label="$t_followRea"
title="$t_followRea"
>
<svg
width="18"
+5 -3
View File
@@ -1,10 +1,12 @@
<!-- prettier-ignore -->
<link rel="canonical" href="$canonical" />
<link rel="canonical" href="$canonical" />$hreflang
<!-- prettier-ignore -->
<meta property="og:type" content="website" />
<!-- prettier-ignore -->
<meta property="og:site_name" content="REA" />
<!-- prettier-ignore -->
<meta property="og:locale" content="$og_locale" />$og_locale_alternates
<!-- prettier-ignore -->
<meta property="og:title" content="$title" />
<!-- prettier-ignore -->
<meta property="og:description" content="$description" />
@@ -21,7 +23,7 @@
<!-- prettier-ignore -->
<meta
property="og:image:alt"
content="REA — Find out how software works. Reverse engineering with your coding agent."
content="$t_imageAlt"
/>
<!-- prettier-ignore -->
<meta name="twitter:card" content="summary_large_image" />
@@ -34,5 +36,5 @@
<!-- prettier-ignore -->
<meta
name="twitter:image:alt"
content="REA — Find out how software works. Reverse engineering with your coding agent."
content="$t_imageAlt"
/>
+230
View File
@@ -0,0 +1,230 @@
# Translating the website
The home page, Get started, the Guides index and the FAQ are translated into six
languages. Guide pages, the blog, showcases and examples remain in English;
translated pages link to their English versions.
| Directory | `lang` and `hreflang` | `og:locale` | Menu name |
| ----------- | --------------------- | ----------- | --------- |
| (site root) | `en` | `en_US` | English |
| `zh-hans/` | `zh-Hans` | `zh_CN` | 简体中文 |
| `zh-hant/` | `zh-Hant` | `zh_TW` | 繁體中文 |
| `ja/` | `ja` | `ja_JP` | 日本語 |
| `ko/` | `ko` | `ko_KR` | 한국어 |
| `de/` | `de` | `de_DE` | Deutsch |
| `fr/` | `fr` | `fr_FR` | Français |
`LANGUAGES` in `scripts/website.py` owns these values. Each language's shared
UI text (navigation, header and footer labels, copy messages, the stale-page
notice and the sharing-image description) lives in `locales/<language>.json`.
The site never redirects by browser language.
## How a translated page works
A translation is an ordinary HTML file at the English page's path under its
language directory, such as `public/zh-hant/get-started/index.html`. Its head
records where it came from:
```html
<!-- website:translation source-sha256="…" status="draft" -->
```
- `source-sha256` identifies the English text the translation was made from.
It hashes the English page without its shared regions and copied code
blocks, so template and command changes do not count.
- `status="draft"` pages carry `noindex`. They are left out of the sitemap,
hreflang, the language menu and other pages' navigation; open them by URL.
- `status="reviewed" reviewed="YYYY-MM-DD"` pages are indexable and linked.
Only a native-speaking reviewer marks a page reviewed.
`python3 scripts/website.py sync` maintains everything shared:
- The header, footer and sharing regions use the page's locale. The language
menu offers the same page in each reviewed language, or that language's
reviewed home page, and leaves out languages with neither.
- Navigation points to reviewed pages in the same language. Links to English
pages, such as Showcases and Blog, carry a small `EN` badge.
- Reviewed versions of a page list each other with `hreflang` alternates and
`x-default` pointing to English.
- Every code block that a Copy button targets is copied from the English page
by ID. Translations never hold their own copy of a command; edit the English
page and run `sync`.
- When the English text changes, the `website:translation-notice` region at
the top of the content says the page may be out of date and links to the
English version. Updating the hash removes it.
## Create and update a translation
1. Create the draft from the English page:
```sh
python3 scripts/website.py translate zh-hant get-started
python3 scripts/website.py translate ja / # the home page
```
The command sets `lang`, adds the record and `noindex`, rewrites relative
links for the new directory, links pages that already exist in that
language and runs `sync`.
2. Translate the text in place, following the rules below. Keep the page's
structure: element IDs, Copy buttons and `data-msg-*` attributes stay as in
English.
3. Run `python3 scripts/website.py check` and `npm run format:check`.
4. Run `python3 scripts/website.py translations` to see each page's status,
whether its English source changed, the OS names still to confirm and any
UI strings still in English.
When the English page changes, `check` warns, and after `sync` the notice
appears. Update the translation's text first. Then set `source-sha256` to the
value `translations` prints. Never refresh the hash without updating the
content: the hash is the record that the translation matches that English text.
### What the checks enforce
Failures:
- A missing or invalid record, a draft without `noindex`, or a reviewed page
with `noindex` or without its review date.
- A copied code block that differs from English (run `sync`).
- While the record matches the English page: different element IDs, Copy
buttons or `data-msg-*` attributes.
- In Japanese and Chinese, whitespace between two CJK characters. A line break
inside a sentence renders as a visible gap, so keep CJK text unwrapped and
let the formatter break lines at existing spaces.
Warnings:
- The English source changed since the translation, or the notice needs `sync`.
- Inline code in prose differs from English.
- A link points to an English page that has a reviewed translation.
- A locale still has English placeholders. List intentionally identical
strings in that locale's `sameAsEnglish`.
## Translation rules
- Keep in English: REA, MCP, CLI, Node.js, npm, Ghidra, Hopper, IDA, JDK,
product and client names (Claude Code, Codex, OpenCode, Cursor, Gemini CLI,
Windsurf, Grok Build, VS Code), and every command, path, code sample, flag,
environment variable and file name. Keep the brand line "Reverse Engineer
Anything" in English.
- Translate the prompts readers paste into their coding agent. Keep any
command or path inside a prompt unchanged, and check that the translated
prompt still asks for the same actions.
- Use the OS menu and button names that the OS shows in that language. Mark
each one for review with `data-os-ui="windows"`, `"macos"` or `"linux"`, for
example `<em data-os-ui="windows">複製路徑</em>`. Windows 10 and 11 sometimes
differ; name both when they do.
- When an OS shows an error message in the reader's language, give the
translated message and the English original, since many readers use an
English system.
- Follow the glossary. It comes from the README translations in the
repository root, with the zh-Hant changes noted below.
- Leave a space between CJK text and Latin words or numbers, as the READMEs
do: `使用 REA 的 MCP 服務`. In French, put a non-breaking space (U+00A0)
before `:` and inside `« »`, and a narrow non-breaking space (U+202F) before
`?`, `!` and `;`.
- Keep `<title>` and the meta description natural for search in that
language. They must not repeat another page's title.
### Register
| Language | Prose | Agent prompts |
| -------- | ---------------- | -------------------------- |
| zh-Hans | 你 | 你; direct requests |
| zh-Hant | 你 | 你; direct requests |
| ja | です・ます | 〜してください |
| ko | 해요체 (`-세요`) | 반말 (`-해 줘`), as README |
| de | du | du |
| fr | vous | tu, as in the README |
### Glossary
Terms marked † do not appear in the README translations and are proposals for
review. zh-Hant uses Taiwan-standard terms; where `README_zh-TW.md` differs,
this table wins and the README will be aligned separately.
| English | zh-Hans | zh-Hant | ja | ko | fr | de |
| -------------------------- | ---------------------- | --------------------------- | ---------------------------------------- | ------------------------- | ---------------------------- | -------------------------------- |
| reverse engineering | 逆向工程 | 逆向工程 | リバースエンジニアリング | 리버스 엔지니어링 | rétro-ingénierie | Reverse Engineering |
| (coding) agent | 智能体 (编程智能体†) | AI 代理 (程式設計 AI 代理†) | エージェント (コーディングエージェント†) | 에이전트 (코딩 에이전트†) | agent (agent de code†) | Agent (Coding-Agent†) |
| setup / set up | 设置 / 设置流程 | 設定 / 設定流程 | セットアップ | 설정 / 설정 과정 | configurer; « Setup » | Einrichtung / einrichten |
| approve | 批准 | 核准 | 承認 | 승인 | approuver | bestätigen |
| restart | 重启 | 重新啟動 | 再起動 | 다시 시작 | redémarrer | neu starten |
| MCP server | MCP 服务 | MCP 服務 | MCP サーバー | MCP 서버 | serveur MCP | MCP-Server |
| client | 客户端 | 用戶端 | クライアント | 클라이언트 | client | Client† |
| skill | skill | skill | スキル | 스킬 | le skill | der Skill |
| provider | 提供方 | 提供者 | プロバイダー | 제공자 | fournisseur | Provider |
| native analysis | 原生分析 | 原生分析 | ネイティブ分析 | 네이티브 분석 | analyse native | native Analyse |
| analysis engine | 分析引擎 | 分析引擎 | 分析エンジン | 분석 엔진 | moteur d'analyse | Analyse-Engine |
| binary | 二进制文件 | 二進位檔案 | バイナリ | 바이너리 | binaire | Binärdatei |
| executable† | 可执行文件 | 執行檔 | 実行ファイル | 실행 파일 | exécutable | ausführbare Datei |
| library† | 库 | 函式庫 | ライブラリ | 라이브러리 | bibliothèque | Bibliothek |
| function | 函数 | 函式 | 関数 | 함수 | fonction† | Funktion† |
| pseudocode | 伪代码 | 偽程式碼 | 疑似コード | 의사 코드 | pseudo-code | Pseudocode |
| assembly | 汇编 | 組合語言 | アセンブリ | 어셈블리 | assembleur | Assemblercode |
| decompile | 反编译 | 反編譯 | 逆コンパイル | 디컴파일 | décompiler† | dekompilieren† |
| code | 代码 | 程式碼 | コード | 코드 | code | Code |
| implement / implementation | 实现 | 實作 | 実装 | 구현 | implémenter / implémentation | implementieren / Implementierung |
| via / through | 通过 | 透過 | 経由で | 통해 | via | über |
| evidence | 证据 | 證據 | 根拠 | 근거 | preuves | Belege |
| Evidence (product record) | Evidence | Evidence | Evidence | Evidence | Evidence | Evidence |
| findings | 发现 | 發現 | 調査結果 | 조사 결과 | constatations | Ergebnisse |
| target | 目标 | 目標 | 対象 | 대상 | cible | Ziel |
| investigation | 调查 | 調查 | 調査 | 조사 | investigation | Untersuchung |
| terminal | 终端 | 終端機 | ターミナル | 터미널 | terminal | Terminal |
| module / import | 模块 / 导入 | 模組 / 匯入 | モジュール / インポート | 모듈 / 임포트 | modules / imports | Module / Imports |
| session | 会话 | 工作階段 | セッション | 세션 | session† | Sitzung† |
| configuration | 配置 | 設定 | 設定 | 설정 | configuration | Konfiguration |
| backup | 备份 | 備份 | バックアップ | 백업 | sauvegarde | Sicherung / sichern |
| update | 更新 | 更新 | 更新 | 업데이트 / 갱신 | mettre à jour | aktualisieren |
| headless | 无界面 | 無介面 | ヘッドレス | 헤드리스 | headless† | headless† |
| locally | 本机 | 本機 | ローカル | 로컬 | localement | lokal |
| bug / issue | 错误 / issue | 錯誤 / issue | バグ / issue | 버그 / issue | bug / issue | Fehler / Issue |
| community | 社区 | 社群 | コミュニティ† | 커뮤니티 | communauté† | Community† |
| Showcases | 案例 | 案例 | 事例 | 사례 | Études de cas | Fallstudien |
| Guides | 指南 | 指南 | ガイド | 가이드 | Guides | Anleitungen |
| FAQ | 常见问题 | 常見問題 | よくある質問 | 자주 묻는 질문 | Questions fréquentes | Häufige Fragen |
| Get started | 快速开始 | 快速開始 | クイックスタート | 빠른 시작 | Démarrage rapide | Schnellstart |
| Blog† | 博客 | 部落格 | ブログ | 블로그 | Blog | Blog |
| Copy / Copied / Selected† | 复制 / 已复制 / 已选中 | 複製 / 已複製 / 已選取 | コピー / コピーしました / 選択しました | 복사 / 복사됨 / 선택됨 | Copier / Copié / Sélectionné | Kopieren / Kopiert / Markiert |
| Skip to content† | 跳到正文 | 跳至主要內容 | 本文へスキップ | 본문으로 건너뛰기 | Aller au contenu | Zum Inhalt springen |
| Back to top† | 返回顶部 | 回到頂端 | ページの先頭へ | 맨 위로 | Retour en haut | Nach oben |
### OS names to confirm
These are starting points, not confirmed names. Mark each use with
`data-os-ui` and have the reviewer confirm it on that OS in that language.
| English | zh-Hans | zh-Hant | ja | ko | fr | de |
| -------------------------------------------- | ---------------------------- | ---------------------------- | ---------------------- | ---------------------------- | -------------------------------------- | ------------------------- |
| File Explorer (Windows) | 文件资源管理器 | 檔案總管 | エクスプローラー | 파일 탐색기 | Explorateur de fichiers | Explorer |
| Copy as path (Windows 10 / 11) | 复制为路径 / 复制文件地址 | 複製為路徑 / 複製路徑 | パスのコピー | 경로로 복사 | Copier en tant que chemin d'accès | Als Pfad kopieren |
| Start menu (Windows) | 开始菜单 | 開始功能表 | スタートメニュー | 시작 메뉴 | menu Démarrer | Startmenü |
| "running scripts is disabled on this system" | translated message + English | translated message + English | translated + English | translated + English | translated + English | translated + English |
| Finder (macOS) | 访达 | Finder | Finder | Finder | Finder | Finder |
| Copy "…" as Pathname (macOS) | 将"…"拷贝为路径名称 | 將「…」拷貝為路徑名稱 | "…"のパス名をコピー | "…"을(를) 경로 이름으로 복사 | Copier « … » en tant que nom de chemin | „…" als Pfadname kopieren |
| Show Package Contents (macOS) | 显示包内容 | 顯示套件內容 | パッケージの内容を表示 | 패키지 내용 보기 | Afficher le contenu du paquet | Paketinhalt zeigen |
| Terminal (macOS app) | 终端 | 終端機 | ターミナル | 터미널 | Terminal | Terminal |
## Review checklist
A reviewer reads the translation beside the English page and checks:
- The meaning matches, with nothing added or dropped, and the glossary and
register are followed.
- Commands, paths, flags and product names are unchanged. Copied code blocks
come from English automatically.
- Each translated agent prompt, pasted into a real coding agent, leads to the
same actions as the English prompt (for the setup prompt: it runs
`npx rea-agents@latest setup` and shows the plan before changing anything).
- Every `data-os-ui` name matches the OS in that language. `translations`
lists them.
- The title and description read naturally in search results.
- The page works at 320, 375, 768, 1024 and 1440 pixels wide: headings, the
header and language menu, Copy buttons and their announced status, opened
details, and the back-to-top link.
To mark the page reviewed, change its record to
`status="reviewed" reviewed="YYYY-MM-DD"`, remove its `noindex` line and run
`sync`, which adds it to the language menu, hreflang and other pages'
navigation. Commit those regenerated pages with it.