A version of decimal tabs in rulers is available now.
For the diffs see
https://redmine.blackboxframework.org/p ... b9c530e25c.
The changes include:
1. decimal tabs for rulers. The default is in TextRulers.defaultRadixChar, which is "." initially. A non-default char can be set with a dialog (right click on the tab mark).
2. improved rendering of the top-left icon for the fixed line-width triangle.
3. using L and T shapes for tab marks as in Word and OpenOffice.
4. a dialog for setting tab properties (type, radix char, position). Opened with a right click on the tab mark.
5. Only if a non-default (default = ".") radix char is used for a decimal tab there is a new store version for TextRuler.Attributes.
Otherwise it uses the same format as Robert's version, i.e. existing texts with Robert's extension should work as before.
It was harder than I expected.
TextSetters work a bit different than Robert's version, which was not always working correctly
and fixing it would have added more code replication for finding the alignment position.
I tried to avoid any code replication at all and adapted GatherString such that it stops at the
decimal point and returns the decimal point as a separate single character string (in the case of processing a decimal tab).
The box's size (right) is saved at the end of a string and when a decimal point occurs, the alignment position
can be adjusted by subtraction.
A controversial point may be the new rendering of the tab marks.
The rationale behind that is: Using L and T shapes
(1) simplifies the coding and, more importantly,
(2) makes the differences of the tab types better visible. It is also
(3) in line with Word and OpenOffice.
The docu is not yet updated.
- Josef