-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flow text into frames #499
Comments
OT: while searching for possible duplicates, i stumbled upon this: #205 (comment) and wow, that can be used to implement typora like markup table source prettifier. nice. |
Hi @goyalyashpal, thanks for writing! I'm glad you like this (mostly unknown) feature 😄
I'm no expert on this, but I would imagine a desktop publishing (DTP) program would want to reserve a certain height and width for an embedded figure. So the program would do something like this
Thus, we need to shrink 10 lines by 40 mm. If the picture starts on line 3, the DTP program would have to use Note that Textwrap fundamentally likes to format paragraphs. It also works with multiple paragraphs, but that's just because it splits on In the example above, one could imagine that the formatted paragraph is not height enough to contain the full figure:
The program can detect this because the wrapped paragraph has a height of 4 lines = 24 mm, but the picture started 2 lines down (12 mm) and it 24 mm tall. So the program knows that the picture sticks out by 12 mm or 2 lines. It can use this information to wrap the following paragraph appropriately (using |
Originally posted by @mgeisler in helix-editor/helix#136 (comment)
wowww, that's super nice. Exactly what i was thinking.
Title inspired by inkscape: ddg 🔍 : inkscape flow text
The text was updated successfully, but these errors were encountered: