12 comments

  • kabir_daki13 minutes ago
    The hardest part of WYSIWYG editors is always cursor positioning and selection across mixed content. How did you handle that? Also curious if you considered using a canvas-based renderer vs DOM — what made you go with your current approach?
  • analogpixel1 hour ago
    at this point, a WYSIWYG just seems like a huge step backwards from just using markdown. I love having access to my files in a standard text format this is super easy to parse, and not being locked into whatever weird format that WYSIWYG decides to store it in.<p>I still don&#x27;t understand why people still use ~~Microsoft Word~~Copilot document writer , I think they have gotten into some weird mindset that their documents require all this weird unnecessary formatting to look &quot;official&quot;
    • httpsterio1 hour ago
      Markdown without formatting isn&#x27;t usually the nicest to read imo. I actually appreciate a well laid out and formatted document myself.<p>Also wysiwyg doesn&#x27;t mean it can&#x27;t be back and forwards compatible with markdown, it might just mean that it&#x27;s a markdown editor gui with a preview.
      • layer850 minutes ago
        It’s also not nice to write longer text in monospace. Or to have long URLs interrupt the text just because you want a hyperlink on some word. Or having to lay out tables by hand like ASCII art. Seeing *this* isn’t the same as seeing <i>this</i>. And you need custom editor software anyway to have affordances like TOC navigation.
        • yummybrainz28 minutes ago
          &gt; long URLs interrupt the text just because you want a hyperlink<p>This annoyed me until I realized pandoc supports separating [the link text] from the link location.<p><pre><code> [the link text]: &lt;&#x2F;url&#x2F;to&#x2F;resource&gt; &quot;`title` parameter of the &lt;a&gt; tag, if converted to HTML&quot;</code></pre>
          • layer819 minutes ago
            Yep, but (a) that isn’t portable Markdown, (b) your editor probably doesn’t support opening the link from the link text in that case, and (c) whenever you want to modify the link text you have to modify all occurrences. A word processor can handle that automatically for you. It can also offer completion (like tab completion) for references that you use repeatedly. It can show as a tooltip what a given link text links to. Conveniences like that is what computers are for, let’s not relapse to the stone age here.
    • sakesun1 hour ago
      Yes. These days, with plain text, pasrsers, Internet, mobile devices and LLM, we really get more than what we see. Only few case where paper print out is still more useful.
  • chjail-112 hours ago
    I adore anything that avoids using a browser. &lt;3
  • vishnuharidas1 hour ago
    This took me down the nostalgic memory lane of the planet-source-code days. There were hundreds of such projects in Visual Basic, Delphi, C&#x2F;C++&#x2F;MFC etc., and text editors and paint clones were the most popular projects.
  • kubb1 hour ago
    I thought the data structure part is solved:<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Rope_(data_structure)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Rope_(data_structure)</a>
    • chrisecker1 hour ago
      Ropes are for strings. In a word processor you need text with formatting, and structures as tables, images and math.
  • mttpgn2 hours ago
    On MacOS, I&#x27;m seeing `ModuleNotFoundError: No module named &#x27;miniword.core.utils&#x27;` whether I run `python3 -m miniword` from src&#x2F;miniword&#x2F; or from src&#x2F;miniword&#x2F;miniword&#x2F;.
    • chrisecker2 hours ago
      My mistake. Now it works (on linux).
  • fractallyte1 hour ago
    One feature missing from <i>almost</i> every mainstream word processor: REVEAL CODES! (<a href="https:&#x2F;&#x2F;kb.corel.com&#x2F;en&#x2F;127364" rel="nofollow">https:&#x2F;&#x2F;kb.corel.com&#x2F;en&#x2F;127364</a>)<p>This is a famous &quot;killer&quot; feature from WordPerfect: the ability to view and edit the low-level formatting for a document. It&#x27;s invaluable for fixing weird bugs.<p>However, it works only because WP uses the &quot;text-stream&quot; paradigm, where a document comprises a linear stream of text with formatting codes (Bold, Font, Hard Return, etc.) embedded directly at the point at which they&#x27;re applied.<p>In contrast, Word uses the &quot;nested containers&quot; model (characters inside words, words inside paragraphs, paragraphs inside sections, etc.), where this feature can&#x27;t be replicated.<p>I didn&#x27;t look closely at your code, but just thought to mention this feature.
  • __d1 hour ago
    This is great!<p>Curious about the choice of toolkit: what led you to wxPython?
  • subdomain1 hour ago
    I love seeing new word processor projects!
  • avryhof2 hours ago
    Looks like a nice project.<p>Looks like you missed a file, though.<p>ModuleNotFoundError: No module named &#x27;miniword.core.utils&#x27;<p>I don&#x27;t see it in my local clone of your repo, nor the repo iteslf.
    • chrisecker2 hours ago
      My apologies. I added the missing file.
      • avryhof1 hour ago
        Thanks. I got it to run on my work laptop that runs Windows. Selections don&#x27;t work, and cairo spits out a bunch of errors during the screen redraws.<p>I&#x27;ll give it a shot on my own Ubuntu laptop.
  • LoganDark3 hours ago
    Love to see wxPython!
  • johnwhitman1 hour ago
    [dead]