Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: ram@zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.lang.python Subject: Re: Formatting Date: 23 Sep 2026 14:43:44 GMT Organization: Stefan Ram Lines: 38 Expires: 1 Sep 2027 11:59:58 GMT Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de X36NRHZX0F1QMbpUUnsvLgMPOoKN8Onp9PAOigHqzHFUCP Cancel-Lock: sha1:4eEmON5tAnQhZYhvrDnTvnZlUC8= sha256:Mo3BhGrrWR5gr++97BWntgiPVjsfPIh1RbAEGGw5PKU= X-Copyright: (C) Copyright 2026 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the Web, to change URIs of this article into links, and to transfer the body without this notice, but quotations of parts in other Usenet posts are allowed. X-No-Archive: Yes Archive: no X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some services to mirror the article in the web. But the article may be kept on a Usenet archive server with only NNTP access. X-No-Html: yes Content-Language: en Xref: csiph.com comp.lang.python:198058 ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted: >Now, here are my two posts from 2024 with an early version of >my line breaker. My full project includes my new markup language with trans- formations to HTML and plain text. The next milestone would be something I can use to publish my own texts, but I'm not yet there because there are still to many features missing and too many bugs. Here's an example from the current state: The input: \lang{en} An expression like $x^y$ is called a power. You can imagine specific values for $x$ and $y$, as in $3^2$ or $2^3$. . (I have modified my markup for this post as my own syntax is not yet stable. So for this post, I used a TeX-like syntax instead, also to make it more readable. The line "\lang{en}" is modified, and I exchanged my own symbols by "$" above. These were all modifications.) The plain text output now is: y An expression like x is called a power. You can imagine specific 2 3 values for x and y, as in 3 or 2 . . So I have integrated my formulas with the line wrapping, but only as a thin "proof of concept" that only handles the single operator "^" and one-letter names/numbers in plain text.