Commits

Philipp Gesang committed 2e01852

[cbk] fix block-o-five grouping

Comments (0)

Files changed (1)

tex/context/third/enigma/enigma.lua

     ["2"]  = "zwei",
     ["3"]  = "drei",
     ["4"]  = "vier",
-    ["5"]  = "fünf",
+    ["5"]  = "fuenf",
     ["6"]  = "sechs",
     ["7"]  = "sieben",
     ["8"]  = "acht",
   if machine.spacing then -- auto-group output
     insert_encoded = function (head, n, replacement)
       local insertion = nodecopy(n)
-      local current_node = insertion -- needed for multi replacements
       if replacement then -- inefficient but bulletproof
         insertion.char = utf8byte(replacement)
         --print(utf8char(n.char), "=>", utf8char(insertion.char))
       end
       nodeinsert_before(head, n, insertion)
       mod_5 = mod_5 + 1
-      if mod_5 >= 5 then
-        mod_5 = 0
-        current_node = nodecopy(space_node)
-        nodeinsert_after(head, insertion, nodecopy(current_node))
+      if mod_5 > 5 then
+        mod_5 = 1
+        nodeinsert_before(head, insertion, nodecopy(space_node))
       end
       noderemove(head, n)
-      return current_node -- so we know where to insert
+      return insertion -- so we know where to insert
     end
   else
     insert_encoded = function (head, n, replacement)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.