Version 5 (modified by kyli, 15 years ago) (diff) |
---|
Analysis
Overview
The purpose of this task is to fix some of the bugs related to working with text on the server. Since real text collaboration will be hard to achieve, focus at this revision should be on the following things:
- Character encoding
- Caret position update
Task requirements
The following three bugs should be fixed as part of this task:
- Books on server cannot contain text - exceptions are thrown (background) and changes are seen only by the author that made them. Fix this
- Currently special characters on the server coming from a Windows machine are encoded as cp1251 or cp1252 instead of Unicode. Thus a strange symbol appears on a Unix client instead of a new line for example.
- When two people work collaboratively on the server, text is updated, but caret position is not. Same is true when two views share the same model (e.g. save a book and reopen it). Last caret position should be updated together with the text.
Task result
Source code
Implementation idea
- Unicode encoding on the server should fix the first problem.
- The resource's raw text should be tracked and the TextChange should be extracted from the last AutoAction applied, so that the caret will be updated.
Related
None
How to demo
Run the scenarios that describe the bugs (see the task requirements) and show they are no longer present.
Design
Describe your design here.
Implementation
Describe and link the implementation results here (from the wiki or the repository).
Testing
Place the testing results here.
Comments
Write comments for this or later revisions here.