Editing Tips: Trying again, this time on 55edo, with debugged(?) version
Editing Tips: Updated for latest test = 171edo intervals
Line 7: Line 7:
== Editing Tips ==
== Editing Tips ==


I edited the Intervals table for [[84edo]] to add links to the intervals. Since 84edo has a LOT of intervals even only considering the simplest ones, and the table even had some fairly complicated intervals, I did not want to do this by hand. Instead, I copied the Wiki source for the section to a text file ("84EDO intervals.txt") on my computer (running MacOS, but in principle this should work on Linux or Windows Subsystem for Linux), used the "sed" command on it to do the actual editing (took less time to learn to use "sed" than to do all that by hand), and then copied the output file ("84EDOintervals.txt") back into the article section. First, here is the full "sed" command:
I edited the Intervals table for [[84edo]], [[55edo]], and [[171edo]] to add links to the intervals. Since these have a LOT of intervals even only considering the simplest ones, and the tables even had some fairly complicated intervals, I did not want to do this by hand. Instead, I copied the Wiki source for the section to a text file ("171EDOintervals.txt" in the latest example) on my computer (running MacOS, but in principle this should work on Linux or Windows Subsystem for Linux), used the "sed" command on it to do the actual editing (took less time to learn to use "sed" than to do all that by hand), and then copied the output file ("171EDOintervals.new.txt" in the latest example) back into the article section. First, here is the full "sed" command:


<code>sed -E "s#[0-9]*/[0-9]*#\[\[&\]\]#g" 84EDO\ intervals.txt > 84EDOintervals.txt</code>
<code>sed -E "s#[0-9]+/[0-9]+#\[\[&\]\]#g" 171EDOintervals.txt > 171EDOintervals.new.txt</code>


Substitute the file names as appropriate when you use this (and probably best avoid having a file name that contains a space like in my example above).
And it seems to have done the right thing.


Bug fix? Seems that the above should have been (using "+" instead of "*"):
Now I just need to figure out how to put it into the comments of what I did in a way that doesn't hose the backslashes (preferably without having to go nuts repeating backslashes) and break on the "&".
 
<code>sed -E "s#[0-9]+/[0-9]+#\[\[&\]\]#g" 84EDO\ intervals.txt > 84EDOintervals.txt</code>
 
That is supposed to avoid putting brackets around a slash that was not part of a ratio.
 
Tried the new version for the intervals table for [[55edo]]:
 
<code>sed -E "s#[0-9]+/[0-9]+#\[\[&\]\]#g" 55EDOintervals.txt > 55EDOintervals.new.txt</code>
 
And it seems to have done the right thing, but I'll wait a bit to make sure it didn't do something wrong that I didn't catch by looking over the "Show Changes" output.


Added:  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 07:20, 29 October 2025 (UTC)<br>
Added:  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 07:20, 29 October 2025 (UTC)<br>
Last modified:  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 08:50, 19 November 2025 (UTC)
Last modified:  [[User:Lucius Chiaraviglio|Lucius Chiaraviglio]] ([[User talk:Lucius Chiaraviglio|talk]]) 08:59, 23 November 2025 (UTC)


== Keyboard Layout Lab ==
== Keyboard Layout Lab ==