Skip to content

fix(registry): preserve Arabic cursive shaping in HyperText, TextAnimate, and TypingAnimation - #1101

Closed
mlubbad wants to merge 3 commits into
magicuidesign:mainfrom
mlubbad:fix/rtl-cursive-shaping-and-motion-perf
Closed

mlubbad wants to merge 3 commits into
magicuidesign:mainfrom
mlubbad:fix/rtl-cursive-shaping-and-motion-perf

Conversation

@mlubbad

@mlubbad mlubbad commented Nov 22, 2026 •

Copy link
Copy Markdown

Summary

Fixes cursive script shaping bugs across three text animation components:

  • hyper-text.tsx: Uses Array.from() instead of .split("") to avoid splitting surrogate pairs, selects an Arabic character set by default when the input contains Arabic characters, and renders Arabic text inside a single unbroken <span> so cursive glyph joining is preserved instead of shattered by per-character motion.span wrappers.
  • text-animate.tsx: Uses Intl.Segmenter (granularity: "grapheme") for grapheme-safe character splitting and automatically falls back from by="character" to by="word" when Arabic cursive text is present.
  • typing-animation.tsx: Switches to tracking-normal when Arabic text is detected because negative letter-spacing (tracking-[-0.02em]) disconnects Arabic cursive ligatures.

Verification

  • pnpm build:registry, pnpm lint, pnpm typecheck, pnpm format:check, and pnpm registry-deps:check all pass cleanly.

… respect reduced-motion/visibility in Particles

Signed-off-by: Dr. Mohammed Lubbad <engmlubbad@gmail.com>
@vercel

vercel Bot commented Nov 22, 2026

Copy link
Copy Markdown

@mlubbad is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

@jinho-yeom
jinho-yeom self-requested a review November 22, 2026 08:54
- Format 4 modified registry components with Prettier
- Rebuild registry artifacts (registry.json, llms files, r/*.json)
- Resolves: pnpm format:check failure + registry artifact drift check

Signed-off-by: Dr. Mohammed Lubbad <engmlubbad@gmail.com>
@mlubbad

mlubbad commented Nov 24, 2026

Copy link
Copy Markdown
Author

تم إصلاح فشلَي الـ CI التاليين في هذه التعديلات:

1. pnpm format:check: تم تنسيق الملفات الأربعة المعدّلة بـ Prettier.

2. registry artifact drift check: تم إعادة بناء ملفات Registry المُولّدة (registry.json، llms-full.txt، وملفات public/r/*.json) عبر pnpm build:registry لتتوافق مع التعديلات.

لا يمكن إصلاح التالي تلقائياً:

  • Vercel: يتطلب تفويضاً من مشرف المستودع على Vercel لتفعيل ربط المستودع بالمشروع.

جميع الفحوصات الأخرى (pnpm lint، pnpm build، pnpm typecheck، pnpm registry-deps:check) كانت ناجحة أو لا تزال ناجحة.

@jinho-yeom jinho-yeom left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Could you narrow this to the Arabic shaping fixes only and drop the Particles and useReducedMotion changes? With prefers-reduced-motion: reduce, TextAnimate stays blurred after hydration and Particles renders a blank canvas.

Signed-off-by: Dr. Mohammed Lubbad <engmlubbad@gmail.com>
@mlubbad mlubbad changed the title fix(registry): preserve Arabic cursive shaping in text components and pause Particles when hidden or reduced-motion fix(registry): preserve Arabic cursive shaping in HyperText, TextAnimate, and TypingAnimation Nov 24, 2026
@mlubbad

mlubbad commented Nov 24, 2026

Copy link
Copy Markdown
Author

Thanks for catching both issues, @jinho-yeom! Narrowed the PR strictly to the Arabic cursive shaping fixes across hyper-text.tsx, text-animate.tsx, and typing-animation.tsx:

  • Reverted particles.tsx and public/r/particles.json back to main.
  • Removed the useReducedMotion changes from text-animate.tsx.
  • Rebuilt registry artifacts via pnpm build:registry and verified pnpm check locally.

@jinho-yeom

Copy link
Copy Markdown
Member

@mlubbad
Thanks for the fix and for narrowing it so quickly. The TextAnimate issue is real, but I'm going to close this. Script-specific branches inside individual components are more than we can maintain across the registry.

@jinho-yeom jinho-yeom closed this Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants