From 65889b88ebf6a1bf9b22f72a8f58cbc18c2f580d Mon Sep 17 00:00:00 2001 From: hajimi Date: Sun, 2 Aug 2026 02:56:49 +0800 Subject: [PATCH] feat: align bilingual post phrases --- ...community-post-bilingual-phrase-pairing.md | 214 ++++++++++++++++++ .../packages_community/pages/post_detail.vue | 92 ++++++-- 2 files changed, 286 insertions(+), 20 deletions(-) create mode 100644 docs/superpowers/plans/2026-08-02-community-post-bilingual-phrase-pairing.md diff --git a/docs/superpowers/plans/2026-08-02-community-post-bilingual-phrase-pairing.md b/docs/superpowers/plans/2026-08-02-community-post-bilingual-phrase-pairing.md new file mode 100644 index 0000000..a22ddbd --- /dev/null +++ b/docs/superpowers/plans/2026-08-02-community-post-bilingual-phrase-pairing.md @@ -0,0 +1,214 @@ +# Community Post Bilingual Phrase Pairing Implementation Plan + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** Split community post originals and translations at comma, semicolon, period, exclamation, and question punctuation, then render exact one-to-one groups by merging adjacent short fragments when counts differ. + +**Architecture:** Keep the implementation local to `post_detail.vue`. Replace sentence-only splitting with punctuation phrase splitting, protect numeric and English abbreviation punctuation, normalize both sides to the same count with a deterministic shortest-fragment merge, and reuse the existing bilingual rendering computed property. + +**Tech Stack:** uni-app, Vue 3 `