<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
      <title></title>
      <link>https://burro.sh</link>
      <description></description>
      <generator>Zola</generator>
      <language>en</language>
      <atom:link href="https://burro.sh/rss.xml" rel="self" type="application/rss+xml"/>
      <lastBuildDate>Fri, 17 Nov 2023 00:00:00 +0000</lastBuildDate>
      <item>
          <title>Taking a break</title>
          <pubDate>Fri, 17 Nov 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/taking-a-break/</link>
          <guid>https://burro.sh/blog/taking-a-break/</guid>
          <description>&lt;p&gt;This is a post I&#x27;ve wanted to avoid making for a while, but it&#x27;s time to make this official: I&#x27;ll need to stop working on Burro for a little while. There&#x27;s just too much going on in the next few weeks for me to be able to make any consistent progress on Burro. In the upcoming weeks, I have three large concerts on top of the extra workload from the Thanksgiving&#x2F;Advent&#x2F;Christmas services just around the corner, on top of recovering from two in the past week. Simply put, I have very limited time outside of work right now, and I need to spend that time recovering from work in other ways than wrapping up the pre-0.1 fixes.&lt;&#x2F;p&gt;
&lt;p&gt;I plan to resume work in January, after the exceptionally heavy workload of the Christmas season is past. See you next year!&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Adding &quot;burro watch&quot;</title>
          <pubDate>Thu, 02 Nov 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/burro-watch/</link>
          <guid>https://burro.sh/blog/burro-watch/</guid>
          <description>&lt;p&gt;One of the many nice ideas to come out of &lt;a href=&quot;https:&#x2F;&#x2F;typst.app&quot;&gt;Typst&lt;&#x2F;a&gt; is &lt;code&gt;typst watch&lt;&#x2F;code&gt;, which monitors a source file and recompiles it whenever it changes. For many years, I&#x27;ve used a &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;jiro4989&#x2F;monit&quot;&gt;&lt;code&gt;monit&lt;&#x2F;code&gt;&lt;&#x2F;a&gt; script that I carry between projects to do this for me, but it is a great quality of life improvement to have it built in, so I wanted to add it to Burro as well.&lt;&#x2F;p&gt;
&lt;p&gt;I continue to not have much time to work on Burro, but since this is mostly just a wrapper around the &lt;code&gt;notify&lt;&#x2F;code&gt; crate, I&#x27;ve been able to add a new &lt;code&gt;--watch&lt;&#x2F;code&gt; flag, so &lt;code&gt;burro --watch input.bur&lt;&#x2F;code&gt; will monitor &lt;code&gt;input.bur&lt;&#x2F;code&gt; for changes and re-run indefinitely. It still needs some cleanup before being ready to merge into the main branch, but is already mostly functional. It&#x27;s especially easy to add for Burro right now because files don&#x27;t depend on each other yet. Having &lt;code&gt;burro --watch&lt;&#x2F;code&gt; included now will be nice for when we do introduce more complex dependencies, because we&#x27;ll have to consider this integration from the beginning.&lt;&#x2F;p&gt;
&lt;p&gt;I&#x27;ll try to get this and individual margins both finished before next week&#x27;s update. Although I still have several more concerts in short order, the organ is being tuned next week, so I should have more time open during the day!&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Progress on individual margins</title>
          <pubDate>Thu, 26 Oct 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/individual-margins/</link>
          <guid>https://burro.sh/blog/individual-margins/</guid>
          <description>&lt;p&gt;I&#x27;ve been working on adding individual margin controls, like &lt;code&gt;.margin_left&lt;&#x2F;code&gt;, &lt;code&gt;.margin_right&lt;&#x2F;code&gt;, etc. For some minor bikeshedding, I&#x27;m still not sure if I like &lt;code&gt;.margin_left&lt;&#x2F;code&gt; or &lt;code&gt;.left_margin&lt;&#x2F;code&gt; better. I might try both out and see which one ends up feeling more natural.&lt;&#x2F;p&gt;
&lt;p&gt;The reason I&#x27;ve pushed this off for so long has nothing to do with implementing those commands themselves but instead is because I haven&#x27;t been able to decide how to handle the reset command. For example, what should happen in each of these situations?&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code&gt;.start
.margins[2in]
.margin_left[3in]
.margins[-]
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;or&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code&gt;.start
.margin_left[4in]
.margins[1in]
.margin_left[2in]
.margins[3in]
.margin_left[-]
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;So far, I&#x27;ve implemented everything but the reset command, because I&#x27;m still deciding how to handle these situations. I&#x27;m not sure there is a clear path forward here. I&#x27;m leaning towards extending the &amp;quot;scope&amp;quot; of both the group &lt;code&gt;.margins&lt;&#x2F;code&gt; command and the individual commands eo being equivalent, so that &lt;code&gt;.margins[-]&lt;&#x2F;code&gt; undoes the most recent action, even if it was limited to just a single margin. In this case, the final state of the first example is 2 inch margins all around, and the final state of the second example is a 3 inch margin on right, top, and bottom, and a 2 inch left margin.&lt;&#x2F;p&gt;
&lt;p&gt;I think this is the best path because it seems to contain the fewest gotchas for a newcomer. It&#x27;s worth noting that this is a corner of Burro that probably won&#x27;t be found all that often. As long as we document this clearly, I think we can justify whatever path we end up taking.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>5 years of Burro</title>
          <pubDate>Thu, 19 Oct 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/happy-birthday/</link>
          <guid>https://burro.sh/blog/happy-birthday/</guid>
          <description>&lt;p&gt;There hasn&#x27;t been any progress this week, as my work life has slammed into me with a vengeance. (I have four concerts&#x2F;major events coming up in a three week span.) Next week, I&#x27;ll force myself to take some time to work on individual margin controls. That will be a good item to check off because the layout code is currently littered with &lt;code&gt;TODO&lt;&#x2F;code&gt;s related to handling the margin resets!&lt;&#x2F;p&gt;
&lt;p&gt;However, this is an exciting week for Burro. &lt;a href=&quot;https:&#x2F;&#x2F;git.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;commit&#x2F;3ceb15b33b5f95036b18430e7b90d6effc780617&quot;&gt;The first commit&lt;&#x2F;a&gt; was made on October 21, 2018, meaning our fifth birthday is two days away! Burro was then a very different project than what you see now. A few weeks ago, I had hoped to have 0.1 out by this milestone, but it will still be out soon, and it&#x27;s better to have it out when it&#x27;s ready than to rush for a specific date.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>The layout bug is fixed!</title>
          <pubDate>Thu, 12 Oct 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/bug-fixed/</link>
          <guid>https://burro.sh/blog/bug-fixed/</guid>
          <description>&lt;p&gt;This week, I went a Rust hack night with the Deep Dish Rust group. While there, I fixed the remaining issues with the new layout algorithm. Then, this morning, I cleaned up the code base, removed the old &lt;code&gt;Word&lt;&#x2F;code&gt; structures, and migrated everything to &lt;code&gt;EmitChunk&lt;&#x2F;code&gt;s. That means that after several weeks of promising to make progress, &lt;a href=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;bug-fixes-and-bug&#x2F;&quot;&gt;the significant layout bug&lt;&#x2F;a&gt; is fixed!&lt;&#x2F;p&gt;
&lt;p&gt;You can browse &lt;a href=&quot;https:&#x2F;&#x2F;git.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;commit&#x2F;a21ea45775bca46b0129a202b92138771dbbe748&quot;&gt;the final patch&lt;&#x2F;a&gt; over in the source repository.&lt;&#x2F;p&gt;
&lt;p&gt;At one point, I entertained committing to an October 1st release date, which has obviously come and gone. I&#x27;m very glad to be able to move back to making actual progress towards the 0.1 release. Next week, I hope to add support for independent margin controls (currently, Burro only lets you set all margins). This will be more complicated than it might appear because of handling the reset arguments.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Progress on fixing layout bug</title>
          <pubDate>Thu, 05 Oct 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/layout-bug-progress/</link>
          <guid>https://burro.sh/blog/layout-bug-progress/</guid>
          <description>&lt;h3 id=&quot;the-major-bug-is-almost-fixed&quot;&gt;The major bug is (almost) fixed&lt;&#x2F;h3&gt;
&lt;p&gt;I&#x27;m happy to share that I&#x27;ve (finally) made some serious headway into fixing &lt;a href=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;bug-fixes-and-bug&#x2F;&quot;&gt;the major layout bug&lt;&#x2F;a&gt; that&#x27;s been holding back the 0.1 release! The code isn&#x27;t ready to be merged yet, but here&#x27;s a screenshot showing several standard features, including a line that demonstrates the bugfix.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;img src=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;layout-bug-progress&#x2F;fix-demo.png&quot; alt=&quot;Screenshot showing several text layout features in combination&quot; &#x2F;&gt;&lt;&#x2F;p&gt;
&lt;p&gt;In particular, note the fourth paragraph, which is right aligned and changes letter spacing midway through. Previously, this would have caused lots of text to be emitted on top of itself along the right margin. Now, the text is emitted in the right places (across a line break as well!).&lt;&#x2F;p&gt;
&lt;h3 id=&quot;new-layout-method&quot;&gt;New layout method&lt;&#x2F;h3&gt;
&lt;p&gt;To make this work, I&#x27;ve reworked the layout algorithm. Now, whenever Burro would have printed the temporary buffer of words to the page, Burro stores the temporary buffer as a series of &amp;quot;emit chunks.&amp;quot; These emit chunks are only printed to the page whenever we hit a newline, allowing us to finalize the words on the page. This has several advantages. Of course, it fixes the bug caused by emitting text too early when right aligned. However, it also lets us have more fine-grained control over the space widths, since we track those as emit chunks as well.&lt;&#x2F;p&gt;
&lt;p&gt;In theory, this will allow us to have different space widths in justified text as well, so that &lt;code&gt;.space_width&lt;&#x2F;code&gt; has an impact on justified text.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;merging&quot;&gt;Merging&lt;&#x2F;h3&gt;
&lt;p&gt;This code still has a way to go before it can be merged. For one thing, the code is an absolute mess. It currently has both &lt;code&gt;Word&lt;&#x2F;code&gt;s and &lt;code&gt;EmitChunk&lt;&#x2F;code&gt;s and converts between the two. Some functions are duplicated to accepted either type, e.g., &lt;code&gt;justified_space_width&lt;&#x2F;code&gt; and &lt;code&gt;justified_space_width_chunked&lt;&#x2F;code&gt;. Once things are cleaned up, I think it should be possible to move the entire algorithm to &lt;code&gt;EmitChunk&lt;&#x2F;code&gt; and remove &lt;code&gt;Word&lt;&#x2F;code&gt; entirely.&lt;&#x2F;p&gt;
&lt;p&gt;Although the demo screenshot above functions, testing the new algorithm on several more complicated features, such as tab stops and horizontal rules, shows that there are still bugs to iron out. I don&#x27;t think any of that will be too difficult, but it obviously needs to be done before merging.&lt;&#x2F;p&gt;
&lt;p&gt;In other words, I can&#x27;t wait for layout tests, one of the planned features for 0.2.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Comparing Burro &amp; Typst</title>
          <pubDate>Thu, 28 Sep 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/comparing-burro-and-typst/</link>
          <guid>https://burro.sh/blog/comparing-burro-and-typst/</guid>
          <description>&lt;h3 id=&quot;&quot;&gt;&lt;&#x2F;h3&gt;
&lt;p&gt;Occasionally, when I talk about working on Burro to a new group of people, someone will ask if I&#x27;m aware of &lt;a href=&quot;https:&#x2F;&#x2F;typst.app&#x2F;docs&quot;&gt;Typst&lt;&#x2F;a&gt;, which describes itself as &amp;quot;a new markup-based typesetting language for the sciences.&amp;quot; Sometimes they&#x27;ll even ask why I&#x27;m working on Burro when Typst already exists. The direct answer to that question is that I started Burro well before Typst was announced (although Burro was dormant when Typst first came around). However, there are many differences between the two platforms, so I wanted to take some time to compare them.&lt;&#x2F;p&gt;
&lt;p&gt;It may come as no surprise that I&#x27;m deeply interested in digital typography. Like any self-respecting math major, I learned LaTeX early in college. During my sophomore year, I became interested in what other typesetting systems might be available. I then explored &lt;a href=&quot;https:&#x2F;&#x2F;gnu.org&#x2F;software&#x2F;groff&quot;&gt;groff&lt;&#x2F;a&gt; (with at least the mom and ms macro sets), &lt;a href=&quot;https:&#x2F;&#x2F;savannah.nongnu.org&#x2F;projects&#x2F;lout&quot;&gt;Lout&lt;&#x2F;a&gt;, and &lt;a href=&quot;http:&#x2F;&#x2F;patoline.org&quot;&gt;Patoline&lt;&#x2F;a&gt;. Of these, mom was the closest to scratching my personal itch, but I still found it lacking in many ways. This is what inspired me to start Burro.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;actually-using-typst&quot;&gt;Actually using Typst&lt;&#x2F;h3&gt;
&lt;p&gt;One of my duties is serving as secretary for the Chicago chapter of the American Guild of Organists. This role lets me produce a good number of documents—meeting minutes, concert programs, advertisements, and a monthly newsletter. The October 2023 edition was might first time producing the newsletter, so I had great flexibility in how I wanted to do it. I decided it was time for me to finally dive into Typst. I looked at Typst when it was first announced and occasionally since then, but hadn&#x27;t used it for an actual project yet. As a lover of typesetting languages, I was long overdue in actually using Typst!&lt;&#x2F;p&gt;
&lt;p&gt;My first impression is &lt;em&gt;very&lt;&#x2F;em&gt; positive. Typst has done many things well! Actually setting my document in Typst was quite pleasant, and the result is high quality. Typst has excellent documentation, which made it easy to pick up and quickly use for a medium-size project. I defined a template for my newsletter, which I intend to re-use in upcoming months. I also defined several variables that I recycled throughout the document (such as the month, year, and newsletter title) as well as larger blocks that will be repeated between editions, all of which I&#x27;m able to import from the main template. Finally, I dabbled in scripting to make a few custom elements. Typst made all of this quite easy.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;burro-vs-typst&quot;&gt;Burro vs. Typst&lt;&#x2F;h3&gt;
&lt;p&gt;Before diving too deeply into the comparison, I want to first acknowledge that Typst is a much more mature project than Burro. In particular, Burro&#x27;s macro system is only a vague conception for now. That means that much of what I might critique simply isn&#x27;t in Burro yet, and Burro&#x27;s solutions may end up being just as worthy of critique.&lt;&#x2F;p&gt;
&lt;p&gt;One difference between Burro and Typst is obvious in Typst&#x27;s own self description: &amp;quot;a [...] typesetting language for the sciences.&amp;quot; Burro is explicitly &lt;em&gt;not&lt;&#x2F;em&gt; designed for setting equations, but merely text. This may seem like an odd choice to anyone who&#x27;s only used typesetting math heavy documents, but having an easy yet powerful way to make high quality text heavy documents is useful in its own right.&lt;&#x2F;p&gt;
&lt;p&gt;Personally, I still find Typst&#x27;s syntax a little heavy. Some of its ideas are excellent—for example, using the Markdown style syntax for switching between fonts—but much of it requires more typing and modifier keys than the equivalent in Burro. This is because of the delimiters wrapping content that a function applies to, while in Burro, everything is achieved via (inline) switches. It&#x27;s the difference between&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code&gt;#text(18pt)[This text is large]
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;and &lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code&gt;.pt_size[18] This text is large.pt_size[-]
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;It&#x27;s a small difference, but I prefer keeping the actual text as separate from the markup as possible, not enclosed within the square braces like in the Typst example.&lt;&#x2F;p&gt;
&lt;p&gt;There are other syntactical differences too. For example, consider the use of the hashtag symbol (as Typst describes it) &lt;code&gt;#&lt;&#x2F;code&gt;. The only modifier that requires multiple key presses in Burro are curly braces, which are intended to only be used rarely. This is how Burro achives its &amp;quot;easy to type&amp;quot; goal.&lt;&#x2F;p&gt;
&lt;p&gt;The Typst authors may disagree with me here, but as an outsider, I&#x27;d describe Typst as a distant TeX descendant, while Burro is a direct descendant of groff. Typst focuses more on applying changes to scopes and composability. Burro focuses on changing things at the global scope and combining those changes to achieve your desired format. That difference in genealogy means that the same thing might be accomplished in different ways in each language.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;room-for-both&quot;&gt;Room for both&lt;&#x2F;h3&gt;
&lt;p&gt;In summary, I think that Burro and Typst are very different from each other, and there&#x27;s plenty of room for both to exist. There are many great ideas in Typst that I&#x27;m excited to implement in Burro.&lt;&#x2F;p&gt;
&lt;p&gt;Typst is an excellent project, and I&#x27;m glad to see new languages pop up. Typesetting languages have been dominated by TeX variants for far too long while other, better alternatives haven&#x27;t been able to break into the space. Hopefully Burro can be as successful in this goal as Typst has been.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Disabling ligatures</title>
          <pubDate>Thu, 21 Sep 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/disable-ligatures/</link>
          <guid>https://burro.sh/blog/disable-ligatures/</guid>
          <description>&lt;p&gt;One of the features I&#x27;ve &lt;a href=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;finishing-tab-stops&#x2F;&quot;&gt;previously mentioned as planned before 0.1&lt;&#x2F;a&gt; is the ability to disable ligatures. Ligatures are, generally speaking, a good thing! However, there might be times where the author wishes to disable them.&lt;&#x2F;p&gt;
&lt;p&gt;&lt;a href=&quot;https:&#x2F;&#x2F;git.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;commit&#x2F;97b11fdb812ad8a883aeec04a1d9d6d4cb673148&quot;&gt;As of tonight, this is now possible&lt;&#x2F;a&gt;. Burro has a new command, &lt;code&gt;.ligatures&lt;&#x2F;code&gt;, which accepts a &amp;quot;relaxed boolean&amp;quot; argument. The idea of a relaxed boolean is also new for Burro. This means that any of &lt;code&gt;on&lt;&#x2F;code&gt;, &lt;code&gt;true&lt;&#x2F;code&gt;, or &lt;code&gt;yes&lt;&#x2F;code&gt; parse to a truthy value, while &lt;code&gt;off&lt;&#x2F;code&gt;, &lt;code&gt;false&lt;&#x2F;code&gt;, and &lt;code&gt;no&lt;&#x2F;code&gt; are falsy. &lt;&#x2F;p&gt;
&lt;p&gt;I added these new booleans because the other words can sometimes flow more nicely than &lt;code&gt;true&lt;&#x2F;code&gt; or &lt;code&gt;false&lt;&#x2F;code&gt;. In this case, I like &lt;code&gt;.ligatures[on]&lt;&#x2F;code&gt; more than &lt;code&gt;.ligatures[true]&lt;&#x2F;code&gt; (this matches mom&#x27;s terminology as well).&lt;&#x2F;p&gt;
&lt;p&gt;To learn how to implement the new feature, I found myself reading the OTF specification—not all 640 pages of it, but just the section on font features! Fonts support several features related to ligatures:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;liga&lt;&#x2F;code&gt;: default ligatures&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;clig&lt;&#x2F;code&gt;: contextual ligatures&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;dlig&lt;&#x2F;code&gt;: discretionay ligatures&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;rlig&lt;&#x2F;code&gt;: required ligatures&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Currently, Burro only supports turning &lt;code&gt;liga&lt;&#x2F;code&gt;, &lt;code&gt;clig&lt;&#x2F;code&gt;, and &lt;code&gt;dlig&lt;&#x2F;code&gt; all off. This is done by disabling that set of features from the font file before handing off to the font shaping step. A future improvement could be to allow for finer grained control here.&lt;&#x2F;p&gt;
&lt;p&gt;Even with &lt;code&gt;.ligatures[off]&lt;&#x2F;code&gt;, Burro leaves the required ligatures enabled. This is done because those ligatures are &lt;em&gt;required&lt;&#x2F;em&gt; for a reason. Some scripts might require certain characters to be combined. The specification also recommends that &lt;code&gt;rlig&lt;&#x2F;code&gt; never be disabled.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Slow week</title>
          <pubDate>Thu, 14 Sep 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/small-week/</link>
          <guid>https://burro.sh/blog/small-week/</guid>
          <description>&lt;p&gt;There&#x27;s not much to report this week. I&#x27;ve mostly taken time away from Burro to work on some other projects and deal with some things in my personal life (to be honest, I needed processing time to think about how to handle the &lt;a href=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;bug-fixes-and-bug&#x2F;&quot;&gt;major layout bug&lt;&#x2F;a&gt; described in the last post). &lt;&#x2F;p&gt;
&lt;p&gt;I did spend some time working on &lt;a href=&quot;https:&#x2F;&#x2F;todo.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;29&quot;&gt;issue #29&lt;&#x2F;a&gt;. The problem is that the tokenizer emits an &lt;code&gt;OpenSquare&lt;&#x2F;code&gt; token whenever it encounters a &lt;code&gt;[&lt;&#x2F;code&gt;, even if that bracket is not attached to a command. There are a few ways around this, but they create annoying ownership problems, so I need to spend more time deciding how to move forward.&lt;&#x2F;p&gt;
&lt;p&gt;I also went to another Deep Dish Rust meetup, Chicago&#x27;s fledgling Rust group. Most of the conversation focused on other things, but I did bring up Burro a couple of times. These will be good connections to have once the 0.1 release is out and I make our first push for community contributors!&lt;&#x2F;p&gt;
&lt;p&gt;That&#x27;s all for now. Hopefully next week I&#x27;ll have more to report!&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Bug fixes &amp; layout bug</title>
          <pubDate>Thu, 07 Sep 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/bug-fixes-and-bug/</link>
          <guid>https://burro.sh/blog/bug-fixes-and-bug/</guid>
          <description>&lt;h3 id=&quot;bug-fixes&quot;&gt;Bug fixes&lt;&#x2F;h3&gt;
&lt;p&gt;This week has seen fixes for two long-standing bugs:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;todo.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;21&quot;&gt;#21&lt;&#x2F;a&gt;: Letter spacing can push words into margin when ragged left&lt;&#x2F;li&gt;
&lt;li&gt;&lt;a href=&quot;https:&#x2F;&#x2F;todo.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;30&quot;&gt;#30&lt;&#x2F;a&gt;: Tab numbers can be repeated in tab lists&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Fixing the outstanding bugs on the tracker is an important part of the polish for the 0.1 release, so getting these crossed off was a good first step!&lt;&#x2F;p&gt;
&lt;h3 id=&quot;layout-bug&quot;&gt;Layout bug&lt;&#x2F;h3&gt;
&lt;p&gt;Unfortunately, while testing the fix for &lt;a href=&quot;https:&#x2F;&#x2F;todo.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;21&quot;&gt;#21&lt;&#x2F;a&gt;, I found a major bug in the layout algorithm. It&#x27;s a little tricky to explain, but here&#x27;s a demonstration:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code&gt;.start
.align[right]
Here we will change .letter_space[+3pt] the letter spacing .letter_space[-] mid-line.
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;I&#x27;ve chosen &lt;code&gt;.letter_space&lt;&#x2F;code&gt; here to show the problem, but many other mid-line style changes would cause the same problem.&lt;&#x2F;p&gt;
&lt;p&gt;This currently does not compile but causes a crash. However, even with that crash fixed, the output is not as expected. This is because of the way the layout algorithm works. Burro moves word by word and assigns a position for each word. When it encounters the &lt;code&gt;.letter_space&lt;&#x2F;code&gt; command, it &amp;quot;emits&amp;quot; the words it&#x27;s already seen onto the page, fixing them in place with the original settings before changing the letter spacing.&lt;&#x2F;p&gt;
&lt;p&gt;When we&#x27;re starting from the left margin, this works as intended. However, when &lt;em&gt;right&lt;&#x2F;em&gt; aligned, emitting those words causes them to be too far to the right, because the cursor was moving further to the left with every word emitted. The internal representation of the word positions at the time of the &lt;code&gt;.letter_space&lt;&#x2F;code&gt; command looks something like this (the ASCII art depicts the page margins):&lt;&#x2F;p&gt;
&lt;pre&gt;
    _______________________________________
    |                                     |
    |                                     |
    |                 Here we will change |
    |                                     |
    |                                     |

&lt;&#x2F;pre&gt;
&lt;p&gt;But if we emit these words as soon as we hit the &lt;code&gt;.letter_space&lt;&#x2F;code&gt; command, then those words are clearly too far to the right. Instead, we&#x27;d expect the words to be further to the left while the text continues along the same line.&lt;&#x2F;p&gt;
&lt;p&gt;Fixing this will be a pretty major undertaking, but it does need to be done before the 0.1 release. The solution will be to wait until a line is completely finished before cementing any words, while finding a different way to track the style settings for each word so that their complete context can be used to calculate their positions when putting them on the page.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Beginning documentation &amp; font improvements</title>
          <pubDate>Thu, 31 Aug 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/docs-and-fonts/</link>
          <guid>https://burro.sh/blog/docs-and-fonts/</guid>
          <description>&lt;h3 id=&quot;documentation&quot;&gt;Documentation&lt;&#x2F;h3&gt;
&lt;p&gt;As mentioned in the last post, I&#x27;ve been away on vacation for most of the last two weeks. I took advantage of my time on the plane to start working on an important blocker for the 0.1 release: documentation!&lt;&#x2F;p&gt;
&lt;p&gt;The docs are still very incomplete (and writing good documentation is hard!), so I won&#x27;t share any snippets from the docs themselves. Instead, I&#x27;d like to talk about some experiences from writing a larger document in Burro.&lt;&#x2F;p&gt;
&lt;h4 id=&quot;missing-macros&quot;&gt;Missing macros&lt;&#x2F;h4&gt;
&lt;p&gt;The biggest takeaway is that macros will be &lt;em&gt;very&lt;&#x2F;em&gt; nice. This is no surprise—there&#x27;s a reason they&#x27;re in most every typesetting language! Currently, for each section header, I&#x27;m using the following snippet:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code&gt;.hspace[-] .pt_size[+6pt] .bold[Section Header] .pt_size[-] .break
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;This moves the cursor to the left margin, increases the point size by 6 points, outputs the header in bold, resets the point size to the previous value, and inserts a newline and carriage return. It would obviously be nice to be able to just do &lt;code&gt;.section[Section Header]&lt;&#x2F;code&gt; and get the same result rather than copy and pasting this same line everywhere. Once we have a macro system, we&#x27;ll define this &lt;code&gt;.section&lt;&#x2F;code&gt; macro along with many others. (As previously discussed, we&#x27;re holding off on implementing many features that could be done with macros until the macro system is in place. Lists and sections are examples of those.)&lt;&#x2F;p&gt;
&lt;h4 id=&quot;background-colors&quot;&gt;Background colors&lt;&#x2F;h4&gt;
&lt;p&gt;Changing the background color is another feature I haven&#x27;t thought about much but am now missing. Specifically, it would be nice to be able to have a gray background for code snippets. I&#x27;m not sure if I&#x27;ll get around to this before 0.1 or not. It will definitely be included before 1.0.&lt;&#x2F;p&gt;
&lt;h4 id=&quot;pleasant-overall&quot;&gt;Pleasant overall&lt;&#x2F;h4&gt;
&lt;p&gt;Rather than only focusing on what&#x27;s missing, I&#x27;d like to affirm that overall, the experience has been quite pleasant. Burro is shaping up to be the language I set out to build. I have a clear vision of how I want it to work, and it&#x27;s fun to actually start using it for a large scale project.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;font-improvements&quot;&gt;Font improvements&lt;&#x2F;h3&gt;
&lt;p&gt;I showed the section on &lt;code&gt;fontmap&lt;&#x2F;code&gt;s to my partner while on the plane, and she found it confusing and had an excellent suggestion. Rather than relying on the user to provide their own fonts, we should bundle a small default set of fonts with Burro and use those. She&#x27;s filed &lt;a href=&quot;https:&#x2F;&#x2F;todo.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;32&quot;&gt;a tracking ticket&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;This will course result in a slightly more complicated installation process. However, the end result—much easier onboarding—will be worth it. We&#x27;ll still make it possible to install Burro without the default fonts if a more minimalist approach is desired.&lt;&#x2F;p&gt;
&lt;p&gt;We&#x27;ll also provide tooling for editing the fontmap. This will look something like &lt;code&gt;burro add-font&lt;&#x2F;code&gt;. The overall process will be similar to mom&#x27;s &lt;a href=&quot;http:&#x2F;&#x2F;www.schaffter.ca&#x2F;mom&#x2F;momdoc&#x2F;appendices.html#install-font&quot;&gt;&lt;code&gt;install-font.sh&lt;&#x2F;code&gt;&lt;&#x2F;a&gt;, but will try to be somewhat saner.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Tab stops are merged!</title>
          <pubDate>Wed, 16 Aug 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/merged-tab-stops/</link>
          <guid>https://burro.sh/blog/merged-tab-stops/</guid>
          <description>&lt;h3 id=&quot;tab-stops-in-master-branch&quot;&gt;Tab stops in master branch&lt;&#x2F;h3&gt;
&lt;p&gt;After over a month&#x27;s work, tab stops are now live in Burro! You can browse &lt;a href=&quot;https:&#x2F;&#x2F;git.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;commit&#x2F;75b1df4f6ca477211a2d106bdcfaa530c367d6e6&quot;&gt;the final commit here&lt;&#x2F;a&gt;. It&#x27;s a hefty one!&lt;&#x2F;p&gt;
&lt;p&gt;&lt;img src=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;merged-tab-stops&#x2F;tabs-demo.png&quot; alt=&quot;Screenshot showing several tab arrangements and features&quot; &#x2F;&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The only thing missing from this commit is the ability to use percentages for the units. For example:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code&gt;.define_tab{
    .indent[0]
    .length[45%]
    .direction[right]
}[left-tab]
.define_tab{
    .indent[55%]
    .length[45%]
    .direction[left]
}[left-tab]
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;will create a pseudo-two column layout, with the left column flush right and the right column flush left. I started working on this feature, but it&#x27;ll require some deeper changes than I anticipated. I decided to merge tabs without the percent support and to make a dedicated commit for adding percentages.&lt;&#x2F;p&gt;
&lt;p&gt;After this, the road to 0.1 is straightforward. None of the features I want to include should take much time, and there&#x27;s only a small number of known bugs to clean up. Perhaps the biggest project is the documentation, which will be a good chance to take Burro for a test drive.&lt;&#x2F;p&gt;
&lt;p&gt;I&#x27;ll be on vacation next week through the end of the month, so progress will slow down some. I&#x27;m thinking about setting a hard deadline of October 1 for the 0.1 release—even if I haven&#x27;t finished everything I want to include by then, it&#x27;ll be good enough to release.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Wrapping up tab stops &amp; the road to 0.1.0</title>
          <pubDate>Wed, 09 Aug 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/finishing-tab-stops/</link>
          <guid>https://burro.sh/blog/finishing-tab-stops/</guid>
          <description>&lt;h2 id=&quot;tab-stops&quot;&gt;Tab stops&lt;&#x2F;h2&gt;
&lt;p&gt;After several weeks of promising I&#x27;d finally make progress on tab stops, I&#x27;m excited to share this screenshot:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;img src=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;finishing-tab-stops&#x2F;tabs-demo.png&quot; alt=&quot;Screenshot of an employee evaluation form demonstrating tabs in Burro&quot; &#x2F;&gt;&lt;&#x2F;p&gt;
&lt;p&gt;This shows the &lt;a href=&quot;http:&#x2F;&#x2F;www.schaffter.ca&#x2F;mom&#x2F;momdoc&#x2F;typesetting.html#typesetting-tabs&quot;&gt;&amp;quot;typesetting tabs&amp;quot; example from the Mom documentation&lt;&#x2F;a&gt;, implemented in Burro. To be clear, this is &lt;strong&gt;far&lt;&#x2F;strong&gt; from a complete implementation. There are many problems to work out. For example:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;If one tab wraps around, the next tab will continue on the bottom baseline instead of going back to the top&lt;&#x2F;li&gt;
&lt;li&gt;The first line is too low&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;.quad[false]&lt;&#x2F;code&gt; is not implemented (this is a change from the originally proposed design: &lt;code&gt;.quad[true]&lt;&#x2F;code&gt; is set by default, meaning the tab contents will wrap around once they exceed the tab length, and &lt;code&gt;.quad[false]&lt;&#x2F;code&gt; will allow the tab to go past its set length)&lt;&#x2F;li&gt;
&lt;li&gt;Tabs within multiple columns won&#x27;t work yet&lt;&#x2F;li&gt;
&lt;li&gt;&lt;code&gt;.quit_tabs&lt;&#x2F;code&gt; currently has no effect&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;However, it&#x27;s still rewarding for the end of this work to finally be in sight. Once these problems are ironed out, we can turn to&lt;&#x2F;p&gt;
&lt;h2 id=&quot;the-road-to-0-1-0&quot;&gt;The road to 0.1.0&lt;&#x2F;h2&gt;
&lt;p&gt;I&#x27;ve said before that tab stops were the last major feature remaining before . However, the list of minor features left has gotten longer and longer. Here are the items I have starred as pre-0.1 tasks in my personal list right now:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Other fonts and weights (condensed, semibold, thin, etc.)&lt;&#x2F;li&gt;
&lt;li&gt;Allow disabling ligatures&lt;&#x2F;li&gt;
&lt;li&gt;Thin spaces&lt;&#x2F;li&gt;
&lt;li&gt;Individual margin controls&lt;&#x2F;li&gt;
&lt;li&gt;Hyperlinks&lt;&#x2F;li&gt;
&lt;li&gt;Autoleading&lt;&#x2F;li&gt;
&lt;li&gt;Images&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;To be honest, most of this is &lt;em&gt;nice&lt;&#x2F;em&gt; to have, but probably isn&#x27;t &lt;em&gt;necessary&lt;&#x2F;em&gt;. It&#x27;s frustrating right now because the first release feels so close but when I lay it out like this, it seems like there&#x27;s still so much work to do. I might decide to only add a few of these (in particular, individual margin controls) before turning to preparing the 0.1 release. I&#x27;ll still fix the open bugs in &lt;a href=&quot;https:&#x2F;&#x2F;todo.sr.ht&#x2F;~reesmichael1&#x2F;burro&quot;&gt;the issue tracker&lt;&#x2F;a&gt; and add documentation. But with that said, we&#x27;re to the point where getting a release out the door is more important than polishing any further. There will be plenty of time to do that after publicizing Burro and (hopefully) building a community!&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Continuing work on tab stops</title>
          <pubDate>Wed, 02 Aug 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/continue-tab-stops/</link>
          <guid>https://burro.sh/blog/continue-tab-stops/</guid>
          <description>&lt;p&gt;As mentioned in &lt;a href=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;begin-tab-stops&#x2F;&quot;&gt;the last post&lt;&#x2F;a&gt;, I&#x27;m in the middle of a move—in fact, I&#x27;ll be in my new apartment within 24 hours of wriiting this post!—so I&#x27;ve had very little time to work on Burro.&lt;&#x2F;p&gt;
&lt;p&gt;I have continued work on tab stops, and we now have a parser for the &lt;code&gt;.tab_list&lt;&#x2F;code&gt; command. This was straightforward because I was able to leverage the new curly brace syntax parser. The only tricky thing was handling the default auto-incrementing name for tabs if an explicit name isn&#x27;t provided. I tried rewriting the entire parser to be a struct with state to keep track of how many tabs are present, but after some lifetime issues, I threw that out and settled on a simpler approach instead. You can view the progress &lt;a href=&quot;https:&#x2F;&#x2F;git.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;tree&#x2F;tabs&quot;&gt;on the &lt;code&gt;tabs&lt;&#x2F;code&gt; branch in the repository&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;p&gt;I&#x27;ve also realized that tabs will be a good chance to use percentages as units. Say the user wants the tab to span 30% of the page. Rather than calculating that value in picas from the page area, we&#x27;ll allow the user to use &lt;code&gt;.length[30%]&lt;&#x2F;code&gt; in the tab definition. We&#x27;ll accept similar values for the other arguments.&lt;&#x2F;p&gt;
&lt;p&gt;(Percentages are currently accepted, but they&#x27;re interpreted as percentages of &lt;em&gt;points&lt;&#x2F;em&gt;. This isn&#x27;t really used anywhere else yet, so changing this behavior shouldn&#x27;t be a problem.)&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Beginning work on tab stops</title>
          <pubDate>Wed, 26 Jul 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/begin-tab-stops/</link>
          <guid>https://burro.sh/blog/begin-tab-stops/</guid>
          <description>&lt;p&gt;Progress has been slow over the last few weeks as many other things have popped up in my personal life, not least of which is preparing to move next week! However, I&#x27;d like to share a quick progress update about an important feature.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;tab-stop-parser&quot;&gt;Tab stop parser&lt;&#x2F;h3&gt;
&lt;p&gt;I&#x27;ve finally been able to start working on the parser for tab stops. As outlined in &lt;a href=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;relative-units-and-tab-stops&#x2F;&quot;&gt;this post&lt;&#x2F;a&gt;, each tab will have its own definition in the preamble. Individual tabs can then be combined into a tab list, which can be loaded and cycled between.&lt;&#x2F;p&gt;
&lt;p&gt;So far, the parser just supports the &lt;code&gt;.define_tab&lt;&#x2F;code&gt; command. Next will be to add support for &lt;code&gt;.tab_list&lt;&#x2F;code&gt; and the tab cycle commands, and then to actually handle the commands during the layout process. This layout shouldn&#x27;t be &lt;em&gt;too&lt;&#x2F;em&gt; hard to handle, but implementation always raises unexpected problems.&lt;&#x2F;p&gt;
&lt;p&gt;Part of this work involved creating a general purpose parser for the curly brace syntax, which we can re-use for the other commands. Honestly, it&#x27;s probably time to start separating the parser into smaller modules. I might use the extra complexity of the several new commands and the general curly brace parser as motivation for making that shift as part of the tab stop commit.&lt;&#x2F;p&gt;
&lt;p&gt;I will continue giving live updates in &lt;a href=&quot;https:&#x2F;&#x2F;burro.zulipchat.com&#x2F;#narrow&#x2F;stream&#x2F;394911-development&#x2F;topic&#x2F;tab-stops&quot;&gt;the &lt;code&gt;development&#x2F;tab-stops&lt;&#x2F;code&gt; topic&lt;&#x2F;a&gt; in the Zulip chat until this feature is done. I hope to have tabs wrapped up by the next update, but moving may prevent me from reaching that goal.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;after-tab-stops&quot;&gt;After tab stops&lt;&#x2F;h3&gt;
&lt;p&gt;Tab stops are the last &amp;quot;big&amp;quot; feature before the 0.1 release! There is lots of polishing and small features to do, and I&#x27;ll need to write a user manual with documentation for all commands. The goal for 0.1 has always been to have a powerful raw engine for typesetting English text. We are well on track to hit that goal.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Columns: Command or Macro?</title>
          <pubDate>Wed, 19 Jul 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/columns-command-or-macro/</link>
          <guid>https://burro.sh/blog/columns-command-or-macro/</guid>
          <description>&lt;p&gt;It&#x27;s occurred to me that I could have possibly implemented columns—the feature that ground progress to a halt for months—much more simply by changing the margins sizes intelligently and using the original layout algorithm while emitting text in &amp;quot;columns.&amp;quot; Rather than dwelling on this and trying to fix it now, I&#x27;m going to hold off until the macro system is built as part of the 0.2 release.&lt;&#x2F;p&gt;
&lt;p&gt;Columns will serve as a good test case for the macro system. To build columns, we&#x27;ll have to be able to control much of the layout from within a macro. Once it&#x27;s possible to make an alternate columns command with a macro, the macro system will likely be ready for most anything we can think of.&lt;&#x2F;p&gt;
&lt;p&gt;More generally, once the macro system is in place, we&#x27;ll evaluate all of the existing commands and see which, if any, it makes sense to rewrite as a macro. I&#x27;m waiting to implement some commands, such as section headers, until after the macro system because it seems very likely that they&#x27;ll end up being done as macros. For other commands, the distinction isn&#x27;t quite so clear.&lt;&#x2F;p&gt;
&lt;p&gt;There are arguments for both moving most features into macros vs. keeping as native commands. A possible advantage of Burro could be to add as many core features as possible, ensuring that everything works well together while having the performance boost of being native code. Alternatively, keeping most things in the macro system helps the core layout algorithm remain as simple as possible.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Relative Units &amp; A Design for Tab Stops</title>
          <pubDate>Sat, 08 Jul 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/relative-units-and-tab-stops/</link>
          <guid>https://burro.sh/blog/relative-units-and-tab-stops/</guid>
          <description>&lt;p&gt;Once again, this was a slow week for progress because I took a mini vacation over the long weekend. However, there are still some important updates to share.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;relative-units&quot;&gt;Relative units&lt;&#x2F;h3&gt;
&lt;p&gt;Burro now supports relative units. Relative units allow the user to change a parameter relative to its current value. For example, if the current point size is 12 points, then &lt;code&gt;.pt_size[+8]&lt;&#x2F;code&gt; updates the point size to 20 points.&lt;&#x2F;p&gt;
&lt;p&gt;Relative units can be used anywhere where it makes sense to use relative units :) In practice, this means that anything that accepts a numeric argument also now accepts relative units.&lt;&#x2F;p&gt;
&lt;p&gt;The one exception to this general rule is the spacing commands, &lt;code&gt;.vspace&lt;&#x2F;code&gt; and &lt;code&gt;.hspace&lt;&#x2F;code&gt;. (In some sense, these commands were already relative to the current cursor.) Using relative arguments for these has no effect: &lt;code&gt;.vspace[3P]&lt;&#x2F;code&gt; and &lt;code&gt;.vspace[+3P]&lt;&#x2F;code&gt; are equivalent. &lt;&#x2F;p&gt;
&lt;h3 id=&quot;tab-stops&quot;&gt;Tab stops&lt;&#x2F;h3&gt;
&lt;p&gt;There are many small features left before 0.1, but the only big one is tab stops. I haven&#x27;t started implementing these but I did take some time to sketch out how they might work. Like everything in Burro, this is inspired by &lt;a href=&quot;http:&#x2F;&#x2F;www.schaffter.ca&#x2F;mom&#x2F;momdoc&#x2F;typesetting.html#typesetting-tabs&quot;&gt;mom&#x27;s approach&lt;&#x2F;a&gt; but tries to add some improvements.&lt;&#x2F;p&gt;
&lt;p&gt;The user will be able to define individual tab stops in the document preamble. These tabs can have a user assigned name, or use an automatically incremented counter for their name. Once all the tabs are defined, the user can then define a &amp;quot;tab list,&amp;quot; a sequence of tabs in order. Within the document, a tab list can then be loaded and cycled between, similar to &lt;code&gt;.TN&lt;&#x2F;code&gt; and &lt;code&gt;.TP&lt;&#x2F;code&gt; in mom.&lt;&#x2F;p&gt;
&lt;p&gt;An example will hopefully make this much clearer! Here&#x27;s how the employee evaluation example from mom might look in Burro:&lt;&#x2F;p&gt;
&lt;pre&gt;&lt;code&gt;.define_tab{
    .indent[0P]
    .direction[left]
    .length[5P]
}[criterion]
.define_tab{
    .indent[8P]
    .direction[center]
    .length[9P]
}[evaluation]
.define_tab{
    .indent[19P]
    .quad[left]
    .length[17P]
}[comments]
.tab_list{
    .1[name]
    .2[criterion]
    .3[comments]
}

.start
.load_tabs[eval]
.tab[criterion] CRITERION .tab_next EVALUATION .tab_next COMMENTS

.tab[criterion] Service .tab_next Good .tab_next Many clients specifically request support from Joe by name.

; The other entries would continue here but are omitted for brevity
&lt;&#x2F;code&gt;&lt;&#x2F;pre&gt;
&lt;p&gt;Again, I haven&#x27;t started implementing this, so do let me know if you want to suggest any changes (see below for how to do that!).&lt;&#x2F;p&gt;
&lt;h3 id=&quot;burro-chat&quot;&gt;Burro chat&lt;&#x2F;h3&gt;
&lt;p&gt;I&#x27;ve set up &lt;a href=&quot;https:&#x2F;&#x2F;burro.zulipchat.com&quot;&gt;a Burro chat over on Zulip&lt;&#x2F;a&gt;. So far the chat is mostly me talking to myself, so please do join! We&#x27;ll use this to coordinate development among the community. There&#x27;s also a section for Q&amp;amp;A to help users understand how to use Burro. The chat is still in its infancy, so I expect to add more rooms and integrations in time.&lt;&#x2F;p&gt;
&lt;p&gt;I should note that we&#x27;re grateful to Zulip for sponsoring Burro in its open source program. I&#x27;ll add an acknowledgement to the website as well.&lt;&#x2F;p&gt;
&lt;p&gt;You can of course still &lt;a href=&quot;mailto:https:&#x2F;&#x2F;lists.sr.ht&#x2F;~reesmichael1&#x2F;burro-discuss&quot;&gt;email the mailing list&lt;&#x2F;a&gt; with any questions or comments you might have.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;deep-dish-rust&quot;&gt;Deep Dish Rust&lt;&#x2F;h3&gt;
&lt;p&gt;Finally, I attended the first meeting of the Deep Dish Rust group here in Chicago on Friday. We talked about many things in the Rust sphere, and I took some time to show Burro to the group. Once we have member talks set up, I&#x27;ll hopefully give a talk about Burro to continue introducing it to a wider audience.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Column Breaks &amp; Bug Fixes</title>
          <pubDate>Thu, 29 Jun 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/column-break/</link>
          <guid>https://burro.sh/blog/column-break/</guid>
          <description>&lt;h3 id=&quot;week-in-review&quot;&gt;Week in review&lt;&#x2F;h3&gt;
&lt;p&gt;This has been a slow week for development progress because &lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;I was looking for a new place to move (but my new lease is signed!)&lt;&#x2F;li&gt;
&lt;li&gt;I&#x27;ve been attending the &lt;a href=&quot;https:&#x2F;&#x2F;nsago2023.org&quot;&gt;Great Lakes regional convention of the American Guild of Organists&lt;&#x2F;a&gt;&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;However, I have managed to add a few small things. First, there&#x27;s now an explicit &lt;code&gt;.column_break&lt;&#x2F;code&gt; command. There&#x27;s are still some details to work out here. For example what should happen if you add a column break while in the last column but without any column reaching the bottom, so that there&#x27;s room where another set of columns could possibly end up? I might look at other systems to see how they solve this problem.&lt;&#x2F;p&gt;
&lt;p&gt;Columns are not balanced by default. This might be a controversial decision, but I feel like non-balanced columns are more in the spirit of Burro, and it made the implementation much easier. I do want to add a balanced column mode eventually, likely as an argument to the column command via the curly-brace syntax.&lt;&#x2F;p&gt;
&lt;p&gt;I also made two bug fixes worth noting. First, I fixed some problems with changing margins along with changing page sizes. These were introduced during the columns rewrite. Second, Burro would crash when it encountered a comment at the very beginning of the document. The lexer didn&#x27;t recognize that it was a comment because it always expected a comment to follow a newline. This has been fixed as well.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;first-outside-use&quot;&gt;First outside use&lt;&#x2F;h3&gt;
&lt;p&gt;Despite the slow progress, this was still an exciting week for Burro! A friend of mine downloaded and compiled Burro and started using it to build a menu for a cocktail party. Here&#x27;s a screenshot of what he sent me:&lt;&#x2F;p&gt;
&lt;p&gt;&lt;img src=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;column-break&#x2F;menu-screenshot.png&quot; alt=&quot;Screenshot of a skeleton menu for a cocktail, complete with Burro in the footer&quot; &#x2F;&gt;&lt;&#x2F;p&gt;
&lt;p&gt;The menu obviously hasn&#x27;t been finished yet (my friend left for a weekend trip the morning after starting it), but to my knowledge, this is the first time someone other than me has actually used Burro to build something! It&#x27;s an important milestone, not just because someone else has used it, but because someone else was able to &lt;em&gt;figure out how to use it&lt;&#x2F;em&gt;! With just the examples and the documentation in the README, he was able to successfully render a document. My plan has always been to extend the documentation before 0.1, and that will still happen. However, his success was a good sign for others who may be interested before the 0.1 release.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;upcoming-features&quot;&gt;Upcoming features&lt;&#x2F;h3&gt;
&lt;p&gt;Tab stops are still a major priority, and will be the next major feature I work on (and the last before we can move to polishing for 0.1). In addition to the feature list I outlined in &lt;a href=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&#x2F;hello-world&#x2F;&quot;&gt;the last post&lt;&#x2F;a&gt;, I&#x27;ve thought of a few more things to include. Like most of Burro, these are both inspired by &lt;a href=&quot;https:&#x2F;&#x2F;schaffter.ca&#x2F;mom&#x2F;&quot;&gt;mom&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;ol&gt;
&lt;li&gt;Relative units for arguments&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;Some arguments that take a measurement should accept a relative value. For example, I should be able to increase the point size by two points by doing &lt;code&gt;.pt_size[+2pt]&lt;&#x2F;code&gt;. Negative values should work as well, and these should work wherever it is sensible. The tracking issue &lt;a href=&quot;https:&#x2F;&#x2F;todo.sr.ht&#x2F;~reesmichael1&#x2F;burro&#x2F;26&quot;&gt;can be found here&lt;&#x2F;a&gt;.&lt;&#x2F;p&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;Autoleading&lt;&#x2F;li&gt;
&lt;&#x2F;ol&gt;
&lt;p&gt;There are many values that should be normally be updated automatically, such as the space width or leading. (Both of these are functions of the point size. &lt;em&gt;Note: currently, only the space width is updated automatically.&lt;&#x2F;em&gt;) However, once one of those values is explicitly set, we might not want to overwrite it when we change the point size.&lt;&#x2F;p&gt;
&lt;p&gt;The solution will be to turn that automatic update on&#x2F;off. In mom, this is &lt;code&gt;.AUTOLEAD&lt;&#x2F;code&gt;, which toggles the automatic updates of the leading value when the point size changes. If the user toggles this off, they&#x27;re on their own to manage their own values and reset values. We&#x27;ll expand a similar pattern to other possible values.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;thoughts-about-usability&quot;&gt;Thoughts about usability&lt;&#x2F;h3&gt;
&lt;p&gt;Here&#x27;s a question that&#x27;s been on my mind this week: &lt;&#x2F;p&gt;
&lt;blockquote&gt;
&lt;p&gt;How can we make Burro accessible to non-programmers? &lt;&#x2F;p&gt;
&lt;&#x2F;blockquote&gt;
&lt;p&gt;I showed the website to some people at my work and at the convention, and many of them were interested in trying Burro themselves. Asking them—highly capable but mostly non-technical people—to install Rust, compile from source, and then learn to use a CLI is too much for someone who just wants to build a document. I&#x27;ve always intended to have downloadable binaries from the website for each release, which solves the problem of compiling from source, but not of how to actually build the documents.&lt;&#x2F;p&gt;
&lt;p&gt;We need to think about the best way to make sure that there&#x27;s a smoother on ramp to using Burro than needing to figure out how to use a CLI. I&#x27;m not sure if that&#x27;s by building our own version of &lt;a href=&quot;https:&#x2F;&#x2F;www.overleaf.com&quot;&gt;Overleaf&lt;&#x2F;a&gt;, or perhaps making our own simple custom editor. I&#x27;m imagining a Burro equivalent of Dr. Racket: something nice to have when you&#x27;re getting started, but more technical users will quickly want to move on to something else. (In other words, we&#x27;ll still need editor plugins!)&lt;&#x2F;p&gt;
&lt;p&gt;This project is on the distant horizon, but something we need to be aware of.&lt;&#x2F;p&gt;
</description>
      </item>
      <item>
          <title>Hello world!</title>
          <pubDate>Tue, 20 Jun 2023 00:00:00 +0000</pubDate>
          <author>Michael&amp;nbsp;Rees</author>
          <link>https://burro.sh/blog/hello-world/</link>
          <guid>https://burro.sh/blog/hello-world/</guid>
          <description>&lt;h3 id=&quot;overview&quot;&gt;Overview&lt;&#x2F;h3&gt;
&lt;p&gt;Burro is a new digital typesetting language, designed with ease of typing in mind. It aims to combine the light syntax and convenience of Markdown with the power of TeX.&lt;&#x2F;p&gt;
&lt;p&gt;Burro is intended for &lt;em&gt;text-heavy documents&lt;&#x2F;em&gt;. Here are a few types of documents for which Burro is well suited: &lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Résumés&lt;&#x2F;li&gt;
&lt;li&gt;User manuals&lt;&#x2F;li&gt;
&lt;li&gt;Concert programs&lt;&#x2F;li&gt;
&lt;li&gt;Letters&lt;&#x2F;li&gt;
&lt;li&gt;Novels&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;Note that scientific papers are not listed! Burro is happy to stand aside and let TeX&#x27;s dominance in that field remain unopposed. Burro restricts its niche to text and images, which lets it focus on what it does best. Burro &lt;em&gt;does&lt;&#x2F;em&gt; aim to become a competitor to TeX in plain typesetting.&lt;&#x2F;p&gt;
&lt;p&gt;If you&#x27;ve used &lt;code&gt;groff&lt;&#x2F;code&gt;, Burro might seem familiar to you, which is no accident! I often describe Burro as a spiritual successor to the &lt;a href=&quot;http:&#x2F;&#x2F;schaffter.ca&#x2F;mom&#x2F;&quot;&gt;mom macro set&lt;&#x2F;a&gt; for &lt;code&gt;groff&lt;&#x2F;code&gt;. mom is the direct inspiration for Burro.&lt;&#x2F;p&gt;
&lt;p&gt;The URL for these posts is &lt;a href=&quot;https:&#x2F;&#x2F;burro.sh&#x2F;blog&quot;&gt;https:&#x2F;&#x2F;burro.sh&#x2F;blog&lt;&#x2F;a&gt;, which I guess makes this a &lt;em&gt;blog&lt;&#x2F;em&gt;. If I could get away with it, I might call this a &lt;em&gt;dlog&lt;&#x2F;em&gt;, short for &amp;quot;development log.&amp;quot; Another good name would be &amp;quot;development diary.&amp;quot; I&#x27;ll make weekly posts discussing the latest development news, features added, bugs fixed, etc. When I&#x27;ve been too busy to make any actual progress, I&#x27;ll instead post something about the vision&#x2F;roadmap or features that are already implemented but worth noting.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;current-status&quot;&gt;Current status&lt;&#x2F;h3&gt;
&lt;p&gt;The current version of Burro is a rewrite of an old project. I first started working on Burro in 2018. The problem was that the original syntax was horrible. I lost enthusiasm because I knew I needed to think of a different approach, but couldn&#x27;t find it at the time.&lt;&#x2F;p&gt;
&lt;p&gt;In January 2023, I began sketching out some new ideas and liked the direction Burro went in. I implemented them—first in OCaml, then in Rust after deciding I wanted access to &lt;a href=&quot;https:&#x2F;&#x2F;github.com&#x2F;RazrFalcon&#x2F;rustybuzz&quot;&gt;rustybuzz&lt;&#x2F;a&gt;—and the new version of Burro was born.&lt;&#x2F;p&gt;
&lt;p&gt;If you looked at &lt;a href=&quot;https:&#x2F;&#x2F;git.sr.ht&#x2F;~reesmichael1&#x2F;burro&quot;&gt;the main repository&lt;&#x2F;a&gt; sometime last week, you&#x27;d be forgiven for thinking that Burro was dead. Before yesterday, the most recent commit was February 25, nearly four months ago. The project was never dead, just in a form of hibernation. After that February 25 commit, I began working on adding columns. This ended up being annoyingly tricky—not impossible by any means, but there were many problems to work through. At the same time, my personal life entered one of its busiest stretches ever. (I&#x27;m an organist for my day job, and gave 10 concerts between January and June this year, which doesn&#x27;t count Holy Week!) I didn&#x27;t have time to work out those kinks, so I had to step away for a while.&lt;&#x2F;p&gt;
&lt;p&gt;Now that the aforementioned period has settled down, I&#x27;m able to resume work on Burro. Burro is already reasonably powerful. Many important features are still missing, but you can successfully create documents with the existing commands.&lt;&#x2F;p&gt;
&lt;h3 id=&quot;what-s-next&quot;&gt;What&#x27;s next?&lt;&#x2F;h3&gt;
&lt;p&gt;Here&#x27;s a rough sketch of what&#x27;s left to do prior to the 0.1 release:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Tab stops&lt;&#x2F;li&gt;
&lt;li&gt;Continued work on columns (e.g., manual column breaks, balanced column mode)&lt;&#x2F;li&gt;
&lt;li&gt;Individual margin controls&lt;&#x2F;li&gt;
&lt;li&gt;Additional font weights&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;All open bugs (not planned features) on &lt;a href=&quot;https:&#x2F;&#x2F;todo.sr.ht&#x2F;~reesmichael1&#x2F;burro&quot;&gt;the issue tracker&lt;&#x2F;a&gt; will be fixed before 0.1.&lt;&#x2F;p&gt;
&lt;p&gt;Documentation has not been a priority yet, but all of the commands will be documented before the 0.1 release. The documentation will be written in—what else?—Burro!&lt;&#x2F;p&gt;
&lt;p&gt;Similarly, Burro only supports English so far. This will remain true until &lt;em&gt;after&lt;&#x2F;em&gt; 0.1. Burro will support all languages and scripts, including right-to-left scripts and similar, by its 1.0 release.&lt;&#x2F;p&gt;
&lt;p&gt;The main focus in 0.2 will be a macro system. This will enable users to create their own commands and share packages rather than having to insert the same formatting every time. Some commands that are currently built-in may move to being macros, and some planned macros might end up being commands. Expect fluidity here!&lt;&#x2F;p&gt;
&lt;h3 id=&quot;want-to-help&quot;&gt;Want to help?&lt;&#x2F;h3&gt;
&lt;p&gt;Wonderful! I&#x27;m planning on handling the features discussed above up until 0.1 myself, but here&#x27;s a list of things that the Burro community will need that it would be great to have others start on:&lt;&#x2F;p&gt;
&lt;ul&gt;
&lt;li&gt;Editor plugins&lt;&#x2F;li&gt;
&lt;li&gt;Burro-to-Markdown and Markdown-to-Burro converters&lt;&#x2F;li&gt;
&lt;li&gt;Layout tests&lt;&#x2F;li&gt;
&lt;&#x2F;ul&gt;
&lt;p&gt;You&#x27;re also welcome to fix any bugs in the issue tracker.&lt;&#x2F;p&gt;
&lt;p&gt;Following the 0.1 release, I&#x27;ll formalize a contributing process and make it easier to collaborate on planned features. Those will then be open to the community as well.&lt;&#x2F;p&gt;
&lt;p&gt;Of course, the most important thing you can do to help Burro is to &lt;em&gt;use it&lt;&#x2F;em&gt; and &lt;a href=&quot;mailto:~reesmichael1&#x2F;burro-discuss@lists.sr.ht&quot;&gt;share your experience&lt;&#x2F;a&gt;!&lt;&#x2F;p&gt;
&lt;p&gt;Thank you for your interest in Burro. Welcome to the community!&lt;&#x2F;p&gt;
</description>
      </item>
    </channel>
</rss>
