-
Notifications
You must be signed in to change notification settings - Fork 2
/
hello.toml
130 lines (114 loc) · 3.43 KB
/
hello.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Here used the simple format for defining nonograms:
#
# If the line starts with a '#' or ';' it's ignored.
# Also if the '#' or ';' becomes at the middle of the line,
# the rest of the line is also becomes a comment.
#
# The colors definitions are listed in [colors] section
# (skipped in black-and-white nonograms) in the following format:
# <COLOR NAME> = (<COLOR_DESC>) <ASCII CHARACTER>
# COLOR_DESC should be one of the following:
# 1) common color name, recognized by SVG like 'red'
# (http://www.december.com/html/spec/colorsvg.html)
# 2) RGB-triplet like (89, 11, 255)
# 3) hexadecimal color code like 88CC44
# e.g:
#
# [colors]
# defs = [
# "p = (pink) %",
# "g = (0, 255, 0) *",
# "r = (FF0000) &",
# ]
#
#
# The clues (nonogram description) listed in the [clues] section
# on one or more lines, separated by COMMA and/or NEWLINE.
#
# Inside the block of columns or rows the empty (comment) lines can appear
# to visually break the long series of descriptions
# (split by blocks of 5 lines for example).
#
# You could enclose the description in a single or double quotes
# and the line can ends with the ',' (that is common if the descriptions
# copied from source code).
#
# For the colored puzzles you have to suffix the block length with the
# color name defined above like that:
# '2g 1r 2' stands for the row of
# 1) 2-block of 'g' color
# 2) 1-block of 'r' color
# 3) 2-block of default color (black)
#
#
# FULL EXAMPLE:
#
# # # # # # # # 5.txt # # # # # # #
# [clues] #
# columns=3 1,1 1 1,1 1 1,1 3 #
# rows=4,1,4,1,4 #
# # # # # # # # # # # # # # # # # #
#
# That is the most compact way to
# define the board with the '5' digit:
#
# X X X X
# X
# X X X X
# X
# X X X X
#
# If you want to be more verbose you could define the same board as following:
#
# # # # # # 5-verbose.txt # # # # #
# # The '5' digit as a nonogram #
# #
# [clues] #
# columns = #
# 3 1 #
# 1 1 1 #
# 1 1 1 #
# 1 3 #
# #
# rows = #
# 4 ; upper dash #
# 1 #
# 4 # middle dash #
# #
# # The comment can appear here #
# #
# 1 #
# 4 ; lower dash #
# # # # # # # # # # # # # # # # # #
# # #
# # # # #
# # # # # # # # # #
# # # # # # # # # # # # #
# # # # # # # # # # # #
# # # # # # # #
# # # # # # # # # #
[clues]
columns = """
7, 1, 1, 1, 7, 0 # 'H'
3, 1 1 1, "1 1 1", 2, 0 ; 'e'
6, 0 # 'l'
6, 0 ; 'l'
3, '1 1', 5, '1 1', 3, 0 # 'o'
# can put a single-line
# or even multi-line
# comment here
5 1 ; '!'
"""
# Some comments between the columns and rows are allowed
rows = """1 1 1
1 1 1 1 1
1 1 2 1 1 3 1
5 1 1 1 1 1 1 1 1
1 1 4 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 2 1 1 3 1
"""
# Some trailing comments are also allowed
# The section can be empty or simply skipped
[colors]
defs = []