main^2^2
Tait Hoyem 2 years ago
commit 9192c7caab

@ -1,5 +1,5 @@
# used if you want to add links to the tree, or a node in the tree # used if you want to add links to the tree, or a node in the tree
ID = "t0" ID = "t9"
# example of tree (commented out) # example of tree (commented out)
''' '''
@ -20,17 +20,45 @@ tree = [
# the tree you want converted to HTML, here: # the tree you want converted to HTML, here:
tree = [ tree = [
("n", [ ("n", [
("n-1", [ ("n/2", [
("n-2", [ ("n/4", [
("n-3", [ ("n/8", [
("... (left)", [ ("...", [
"1", "0" ("2", [
"1", "1"
]),
]), ]),
]), ]),
"0" ("n/8", [
"..."
]),
]),
("n/4", [
("n/8", [
"..."
]),
("n/8", [
"..."
]),
]),
]),
("n/2", [
("n/4", [
("n/8", [
"..."
]),
("n/8", [
"..."
]),
]),
("n/4", [
("n/8", [
"..."
]),
("n/8", [
"..."
]),
]), ]),
"0"
]), ]),
"0"
]), ]),
] ]

@ -244,6 +244,7 @@ tree = [
] ]
''' '''
"""
tree = [ tree = [
("5", [ ("5", [
("3", [ ("3", [
@ -255,6 +256,7 @@ tree = [
]), ]),
]), ]),
] ]
"""
''' '''
tree = [ tree = [
@ -549,6 +551,7 @@ tree = [
] ]
""" """
'''
tree = [ tree = [
("5", [ ("5", [
("3", [ ("3", [
@ -561,7 +564,9 @@ tree = [
]), ]),
]), ]),
] ]
'''
'''
tree = [ tree = [
("3", [ ("3", [
("1", []), ("1", []),
@ -574,6 +579,7 @@ tree = [
]), ]),
]), ]),
] ]
'''
''' '''
tree = [ tree = [
@ -1158,9 +1164,9 @@ if FILENAME != "":
final_output += output final_output += output
final_output += "</body></html>" final_output += "</body></html>"
else: else:
final_output += "<!-- GENERATED HTML FROM PYTHON CODE -->" final_output += "<!-- AUTOGENERATED HTML FROM PYTHON TOOL https://github.com/TTWNO/transcription-tools -->"
final_output += output final_output += output
final_output += "<!-- END OF GENERATED HTML FROM PYTHON CODE -->" final_output += "<!-- END OF AUTOGENERATED HTML FROM PYTHON TOOL https://github.com/TTWNO/transcription-tools -->"
if BEAUTIFUL_SOUP: if BEAUTIFUL_SOUP:
bs = BS(final_output, "html.parser") bs = BS(final_output, "html.parser")

Loading…
Cancel
Save