mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-27 03:06:57 -06:00
The reference app's Type › Bullets and Numbering › Convert to Text turns the bullets and numbers of the selected list paragraphs into editable text. VectorCraft drew list markers but could not convert them. Type › Bullets and Numbering › Convert to Text (type.convertListToText, text.convertListToText) puts each list paragraph's marker at the start of the paragraph as characters: the bullet, or the number and its period as the paragraph showed it, then a tab, in the marker's font, size and color. The paragraph leaves its list. Where the marker's tab went to the left indent, the paragraph gets a plain left tab stop there, so the text after the tab starts where it did. Where the marker's tab went to a stop with a leader, or to a right, center or decimal stop, a plain stop where the tab ended keeps the converted tab there without the leader; right, center and decimal stops between the marker and that place are removed. Past the left indent this applies only to a paragraph with no tab of its own. In threaded type the numbers are those the story counted, and a paragraph that goes on into the next frame is converted once, where it starts. A right-to-left paragraph with no direction set gets the Right to Left direction when a letter or roman numeral in front of it would make it run left to right. The change is one undo step. The Type tool's caret stays next to the character it was next to, and in threaded type it goes with that character to the frame it moved to, which becomes the selection when it was not selected. With the Every-line Composer a paragraph that holds a tab is broken line by line, so a converted paragraph can break its lines at other places than the list paragraph did. Docs: docs/mcp.md, docs/target-app-parity.md. i18n: Convert to Text in the 24 catalogs.