Wow, you put so much work into it since I last checked! Thank you, it is much appreciated. PureWriter is my new favourite thing on Haiku recently. Now that Philippe also fixed the IPP transfer driver, I can finally create and print pretty documents seamlessly from Haiku. And it is so nice to know that Haiku can now boast the superior version of your document engine among the other platforms. I have tested now both applications and hope you don’t mind if I came with a list of my newly discovered bugs.
1.) In the Edit Style window, if I try to edit a style which has space in its name, it is apparently replaced with some internal representation, for example “Heading 1” becomes “Heading_20_1” in an ODT or “Heading1” in a Word document. The Based on list is also populated with items in this format, and when I click Apply, the style gets renamed to this internal name, and sometimes, I suspect this breaks inheritance rules, and as a result the heading text becomes ridiculously large (98 pt, for example).
2.) There are a few issues around text selection:
2.a.) When text grid is set to lines and characters, the selection background doesn’t follow where the letters actually appear on the screen.
2.b.) Selection of right-to-left text looks wrong, marking the letters, within a word, leftward from the caret position, instead of the letters rightward from the caret position. For example, if the caret is between the letters 6 and 7 in the second word, the selection looks like: [987]65_[4321] rather than 987[65_4321]. Also, selecting RTL text with the mouse is not possible, apart from the first (rightmost) word. The algorithm probably stops at word1 when trying to translate click coordinates to word and letter position, assuming that consequent words must occupy a higher horizontal position, which is not the case for RTL text.
2.c.) Rendering of selected text doesn’t look correct. More specifically, it seems that once the selection background is drawn, the text is drawn over it twice: first using the original text colour, then once again with white. This makes the edges of characters fuzzy and selected text hard to read.
2.d.) Not a bug per se, but I noticed that PureMail uses the selected list item background colour for selection, while PureWriter uses this hard-coded blue colour. I don’t know which one is preferable. StyledEdit apparently uses inverted background, Pe and Genio use their own custom colours, so there doesn’t seem to be a right way to do it. In my opinion it would be nice to take the colour from Haiku system colours, but I’m not sure which one because a “selected document text” entry doesn’t exist.
2.e.) This is a weird one but when the zoom level is not exactly 100%, some text elements (letters, words) change their position depending on whether any text is selected or not. Especially letters of words near a soft-hyphen or NBSP. As if the width of these special characters were calculated differently when some text is selected.
3.) It is still possible to enter multiple consecutive spaces even with the prohibiting option enabled if we keep adding one space at a time but alternatively once after the last letter of the previous word, then another before the first letter of the next word. The extra spaces are not visible, they are not saved in the document or copied to the clipboard, but one knows they are there because it takes pressing the arrow key several times to advance to the next word.
4.) In the Page Properties window, the header and footer border settings seem to interfere with the page border settings, so changing for example the header’s bottom border turns on a border around the whole page, and if I try to remove that page border, it makes the header have a border all around it. At this point it starts to behave so erratically, I can’t figure how to get rid of all the borders anymore.
5.) Some fonts do not display properly. I think the problem is that the font face selector menu automatically trims font names of certain suffixes, such as Bold, Thin, Italic, etc. However, when a font doesn’t have a regular variant, the application can’t display the selected font because it doesn’t exist. For example Zeit font only has Zeit Light variant on my system, and the program lets me select Zeit font, but there is no way in the program to specifically select Zeit Light, and it ends up using the system default fall-back font instead.
6.) The caret keeps blinking even in an inactive window. I think you should hide the caret when the window is not active. This is what BTextView does and I think it is good practice because it has happened to me a few times that I tried to type in PureWriter because I saw the blinking caret, but turned out it wasn’t even the active window.
7.) It is possible to drop colours from other applications into PoorWriter’s custom colour selector, but if we do, the editable values in the dialog do not automatically change to reflect the new colour.
8.) Noticed something unusual about scrollbar behaviour. Mostly in the style panel on the side bar. Almost looks like the thumb position is only fetched periodically, and the control doesn’t react to every scroll message, so if we move the thumb to the top too quickly, the document (list) doesn’t follow all the way to the start but gets stuck at whatever position it last saw the scrollbar thumb at.
9.) The last one I noticed in PureMail. Rounded rectangles are rendered incorrectly if the provided corner radius is too large. The radius should be limited to half of the shorter dimension of the rectangle before rendering.
I really hope the list is not too overwhelming and won’t feel like nitpicking.