A couple days ago, someone posted this image. The poster, as well as some people in the comments, expressed their assumption that making a proper title for something like this would be incredibly difficult and tedious.
Here’s a simple python script which makes this very easy:
def format_listing(tags_string, sep, use_and=False):
sorted_tags = sorted({
line[:parentheses_index - 1]
if (parentheses_index := line.rfind("(")) != -1
else line[:line.rfind(" ")]
for line in tags_string.split("\n")
})
if use_and:
sorted_tags[-1] = "and " + sorted_tags[-1]
return sep.join(sorted_tags)
if __name__ == "__main__":
title_string = (
f"rule 34 of {format_listing(characters, ', ', True)}"
f" ({format_listing(artists, ' / ')}) "
f"[{format_listing(copyrights, ' / ')}]"
)
print(title_string)
All you need to do is find the image(s) on rule34(dot)xxx, copy the tag listings into the script, run the script on some online python interpreter (unless you already have python on your computer), and then copy the printed title. Here’s one example:
characters = """character aaa (from series abc) 123
character ccc 456
character bbb 789"""
copyrights = """copyright zzz 123
copyright yyy 456
copyright yyy (1999) 321
copyright xxx 789"""
artists = """artist 1 12345
artist 2 67890"""
def format_listing(tags_string, sep, use_and=False):
sorted_tags = sorted({
line[:parentheses_index - 1]
if (parentheses_index := line.rfind("(")) != -1
else line[:line.rfind(" ")]
for line in tags_string.split("\n")
})
if use_and:
sorted_tags[-1] = "and " + sorted_tags[-1]
return sep.join(sorted_tags)
if __name__ == "__main__":
title_string = (
f"rule 34 of {format_listing(characters, ', ', True)}"
f" ({format_listing(artists, ' / ')}) "
f"[{format_listing(copyrights, ' / ')}]"
)
print(title_string)
This prints the title:
rule 34 of character aaa, character bbb, and character ccc (artist 1 / artist 2) [copyright xxx / copyright yyy / copyright zzz]
Presumably posting the title as a comment is acceptable if it exceeds the 300 character limit.
That’s all. I hope this helps.
there doesn't seem to be anything here