Peritext - Rich Text के लिए CRDT
(inkandswitch.com)-
rich text दस्तावेज़ों में सहयोग के लिए CRDT algorithm
-
यह asynchronous तरीके से भी काम कर सकता है, इसलिए लोकल में edit करने के बाद merge करने का तरीका सपोर्ट करता है
→ बिल्कुल Git और PR की तरह
- लेखक की मंशा को संरक्षित करता है
→ जब formatting edit और text insertion एक साथ हों, तब नए जोड़े गए अक्षरों पर भी formatting लागू होती है
→ concurrent formatting edits के conflicts को handle करना
- Peritext algorithm
→ मौजूदा plain text CRDT का उपयोग करके rich text दस्तावेज़ों को represent करता है
→ formatting changes को represent करने वाले CRDT operations बनाता है
→ इन operations को लागू करके internal document state बनाता है
→ internal state के आधार पर text editors के लिए उपयुक्त document बनाना
- Automerge CRDT library के simple version को extend करने वाला TypeScript open source
→ उम्मीद है कि बाद में यह algorithm Automerge में शामिल होगा
→ editor के लिए ProseMirror का उपयोग
1 टिप्पणियां
मैं गलत था। CRDT ही भविष्य है। https://hi.news.hada.io/topic?id=2962
और तेज़ CRDT के लिए optimization करना https://hi.news.hada.io/topic?id=4744