summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/help/pattern.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2017-08-16 11:32:28 -0400
committerFranklin Wei <git@fwei.tk>2017-08-16 11:40:37 -0400
commitbf25f3e6e7b1518b0dd499676ac298172dc25fa1 (patch)
tree99c8024a4f931fa3a39a01e1e163a25660b8342e /apps/plugins/puzzles/help/pattern.c
parent5645135092aa40e0d2e4ec6e5b3a67bae99fd735 (diff)
downloadrockbox-bf25f3e6e7b1518b0dd499676ac298172dc25fa1.zip
rockbox-bf25f3e6e7b1518b0dd499676ac298172dc25fa1.tar.gz
rockbox-bf25f3e6e7b1518b0dd499676ac298172dc25fa1.tar.bz2
rockbox-bf25f3e6e7b1518b0dd499676ac298172dc25fa1.tar.xz
puzzles: compress extensive help text
This is only really needed to save a few bytes on the c200v2, but since it adds negligible overhead, so it's implemented for all targets. A stripped down version of the LZ4 reference implementation is found in lz4tiny.c. Change-Id: Ib914ba71c84e04da282328662c752e533912e197
Diffstat (limited to 'apps/plugins/puzzles/help/pattern.c')
-rw-r--r--apps/plugins/puzzles/help/pattern.c208
1 files changed, 154 insertions, 54 deletions
diff --git a/apps/plugins/puzzles/help/pattern.c b/apps/plugins/puzzles/help/pattern.c
index d3764c6..5f11768 100644
--- a/apps/plugins/puzzles/help/pattern.c
+++ b/apps/plugins/puzzles/help/pattern.c
@@ -1,56 +1,156 @@
-/* auto-generated by genhelp.sh */
+/* auto-generated on Aug 16 2017 by genhelp.sh */
+/* orig 2123 comp 1468 ratio 0.691474 level 4 saved 655 */
/* DO NOT EDIT! */
-const char help_text[] =
-"#Chapter 10: Pattern "
-"\n"
-"You have a grid of squares, which must all be filled in either black "
-"or white. Beside each row of the grid are listed the lengths of the "
-"runs of black squares on that row; above each column are listed the "
-"lengths of the runs of black squares in that column. Your aim is to "
-"fill in the entire grid black or white. "
-"\n"
-"I first saw this puzzle form around 1995, under the name "
-"`nonograms'. I've seen it in various places since then, under "
-"different names. "
-"\n"
-"Normally, puzzles of this type turn out to be a meaningful picture "
-"of something once you've solved them. However, since this version "
-"generates the puzzles automatically, they will just look like random "
-"groupings of squares. (One user has suggested that this is actually "
-"a _good_ thing, since it prevents you from guessing the colour of "
-"squares based on the picture, and forces you to use logic instead.) "
-"The advantage, though, is that you never run out of them. "
-"\n"
-"\n#10.1 Pattern controls "
-"\n"
-"This game is played with the mouse. "
-"\n"
-"Left-click in a square to colour it black. Right-click to colour it "
-"white. If you make a mistake, you can middle-click, or hold down "
-"Shift while clicking with any button, to colour the square in the "
-"default grey (meaning `undecided') again. "
-"\n"
-"You can click and drag with the left or right mouse button to colour "
-"a vertical or horizontal line of squares black or white at a time "
-"(respectively). If you click and drag with the middle button, or "
-"with Shift held down, you can colour a whole rectangle of squares "
-"grey. "
-"\n"
-"You can also move around the grid with the cursor keys. Pressing the "
-"return key will cycle the current cell through empty, then black, "
-"then white, then empty, and the space bar does the same cycle in "
-"reverse. "
-"\n"
-"Moving the cursor while holding Control will colour the moved-over "
-"squares black. Holding Shift will colour the moved-over squares "
-"white, and holding both will colour them grey. "
-"\n"
-"(All the actions described in section 2.1 are also available.) "
-"\n"
-"\n#10.2 Pattern parameters "
-"\n"
-"The only options available from the `Custom...' option on the `Type' "
-"menu are _Width_ and _Height_, which are self-explanatory. "
-"\n"
-;
+
+#include "help.h"
+const char help_text[] = {
+0xf0, 0x4e, 0x23, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72,
+0x20, 0x31, 0x30, 0x3a, 0x20, 0x50, 0x61, 0x74, 0x74, 0x65,
+0x72, 0x6e, 0x20, 0x0a, 0x59, 0x6f, 0x75, 0x20, 0x68, 0x61,
+0x76, 0x65, 0x20, 0x61, 0x20, 0x67, 0x72, 0x69, 0x64, 0x20,
+0x6f, 0x66, 0x20, 0x73, 0x71, 0x75, 0x61, 0x72, 0x65, 0x73,
+0x2c, 0x20, 0x77, 0x68, 0x69, 0x63, 0x68, 0x20, 0x6d, 0x75,
+0x73, 0x74, 0x20, 0x61, 0x6c, 0x6c, 0x20, 0x62, 0x65, 0x20,
+0x66, 0x69, 0x6c, 0x6c, 0x65, 0x64, 0x20, 0x69, 0x6e, 0x20,
+0x65, 0x69, 0x74, 0x68, 0x65, 0x72, 0x20, 0x62, 0x6c, 0x61,
+0x63, 0x6b, 0x20, 0x6f, 0x72, 0x2c, 0x00, 0xf0, 0x04, 0x74,
+0x65, 0x2e, 0x20, 0x42, 0x65, 0x73, 0x69, 0x64, 0x65, 0x20,
+0x65, 0x61, 0x63, 0x68, 0x20, 0x72, 0x6f, 0x77, 0x4f, 0x00,
+0x32, 0x74, 0x68, 0x65, 0x5b, 0x00, 0xa1, 0x61, 0x72, 0x65,
+0x20, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x64, 0x14, 0x00, 0x74,
+0x6c, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x73, 0x23, 0x00, 0x31,
+0x72, 0x75, 0x6e, 0x0c, 0x00, 0x02, 0x52, 0x00, 0x03, 0x84,
+0x00, 0x80, 0x20, 0x6f, 0x6e, 0x20, 0x74, 0x68, 0x61, 0x74,
+0x4c, 0x00, 0x63, 0x3b, 0x20, 0x61, 0x62, 0x6f, 0x76, 0x5c,
+0x00, 0x6f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x00,
+0x22, 0x13, 0x69, 0x53, 0x00, 0x02, 0x43, 0x00, 0xf1, 0x01,
+0x2e, 0x20, 0x59, 0x6f, 0x75, 0x72, 0x20, 0x61, 0x69, 0x6d,
+0x20, 0x69, 0x73, 0x20, 0x74, 0x6f, 0xe3, 0x00, 0x02, 0x24,
+0x00, 0x73, 0x65, 0x20, 0x65, 0x6e, 0x74, 0x69, 0x72, 0xbe,
+0x00, 0x0c, 0xea, 0x00, 0xf1, 0x21, 0x0a, 0x49, 0x20, 0x66,
+0x69, 0x72, 0x73, 0x74, 0x20, 0x73, 0x61, 0x77, 0x20, 0x74,
+0x68, 0x69, 0x73, 0x20, 0x70, 0x75, 0x7a, 0x7a, 0x6c, 0x65,
+0x20, 0x66, 0x6f, 0x72, 0x6d, 0x20, 0x61, 0x72, 0x6f, 0x75,
+0x6e, 0x64, 0x20, 0x31, 0x39, 0x39, 0x35, 0x2c, 0x20, 0x75,
+0x6e, 0x64, 0x65, 0x72, 0x51, 0x00, 0xf0, 0x0f, 0x6e, 0x61,
+0x6d, 0x65, 0x20, 0x60, 0x6e, 0x6f, 0x6e, 0x6f, 0x67, 0x72,
+0x61, 0x6d, 0x73, 0x27, 0x2e, 0x20, 0x49, 0x27, 0x76, 0x65,
+0x20, 0x73, 0x65, 0x65, 0x6e, 0x20, 0x69, 0x74, 0x77, 0x00,
+0xf0, 0x05, 0x76, 0x61, 0x72, 0x69, 0x6f, 0x75, 0x73, 0x20,
+0x70, 0x6c, 0x61, 0x63, 0x65, 0x73, 0x20, 0x73, 0x69, 0x6e,
+0x63, 0x65, 0x3b, 0x00, 0x14, 0x6e, 0x47, 0x00, 0x91, 0x64,
+0x69, 0x66, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x74, 0x4d, 0x00,
+0xd3, 0x73, 0x2e, 0x20, 0x0a, 0x4e, 0x6f, 0x72, 0x6d, 0x61,
+0x6c, 0x6c, 0x79, 0x2c, 0x82, 0x00, 0x03, 0x00, 0x01, 0x00,
+0xcf, 0x00, 0xc0, 0x79, 0x70, 0x65, 0x20, 0x74, 0x75, 0x72,
+0x6e, 0x20, 0x6f, 0x75, 0x74, 0xdd, 0x00, 0x10, 0x62, 0xe8,
+0x01, 0xf1, 0x03, 0x6d, 0x65, 0x61, 0x6e, 0x69, 0x6e, 0x67,
+0x66, 0x75, 0x6c, 0x20, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72,
+0x65, 0xf6, 0x01, 0xa0, 0x6f, 0x6d, 0x65, 0x74, 0x68, 0x69,
+0x6e, 0x67, 0x20, 0x6f, 0x73, 0x00, 0x31, 0x79, 0x6f, 0x75,
+0x9a, 0x00, 0x32, 0x6f, 0x6c, 0x76, 0x5d, 0x01, 0xb5, 0x6d,
+0x2e, 0x20, 0x48, 0x6f, 0x77, 0x65, 0x76, 0x65, 0x72, 0x2c,
+0x96, 0x00, 0xf1, 0x05, 0x69, 0x73, 0x20, 0x76, 0x65, 0x72,
+0x73, 0x69, 0x6f, 0x6e, 0x20, 0x67, 0x65, 0x6e, 0x65, 0x72,
+0x61, 0x74, 0x65, 0x73, 0xe8, 0x00, 0x04, 0x89, 0x00, 0x92,
+0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x69, 0x63, 0xa0,
+0x00, 0x60, 0x74, 0x68, 0x65, 0x79, 0x20, 0x77, 0x61, 0x01,
+0x10, 0x6a, 0x55, 0x02, 0xf7, 0x0b, 0x6c, 0x6f, 0x6f, 0x6b,
+0x20, 0x6c, 0x69, 0x6b, 0x65, 0x20, 0x72, 0x61, 0x6e, 0x64,
+0x6f, 0x6d, 0x20, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x69, 0x6e,
+0x67, 0x73, 0x87, 0x02, 0xf3, 0x06, 0x2e, 0x20, 0x28, 0x4f,
+0x6e, 0x65, 0x20, 0x75, 0x73, 0x65, 0x72, 0x20, 0x68, 0x61,
+0x73, 0x20, 0x73, 0x75, 0x67, 0x67, 0x65, 0xf2, 0x01, 0x22,
+0x61, 0x74, 0x85, 0x00, 0x70, 0x69, 0x73, 0x20, 0x61, 0x63,
+0x74, 0x75, 0x65, 0x00, 0xa1, 0x20, 0x61, 0x20, 0x5f, 0x67,
+0x6f, 0x6f, 0x64, 0x5f, 0x20, 0xcd, 0x00, 0x04, 0xac, 0x00,
+0xb0, 0x69, 0x74, 0x20, 0x70, 0x72, 0x65, 0x76, 0x65, 0x6e,
+0x74, 0x73, 0xdb, 0x00, 0x30, 0x20, 0x66, 0x72, 0x6f, 0x00,
+0x40, 0x75, 0x65, 0x73, 0x73, 0xf2, 0x00, 0x00, 0xb3, 0x00,
+0x30, 0x63, 0x6f, 0x6c, 0x09, 0x02, 0x06, 0x79, 0x00, 0x62,
+0x20, 0x62, 0x61, 0x73, 0x65, 0x64, 0x82, 0x02, 0x14, 0x65,
+0x2a, 0x01, 0x50, 0x2c, 0x20, 0x61, 0x6e, 0x64, 0xe3, 0x01,
+0x22, 0x63, 0x65, 0x49, 0x00, 0x20, 0x74, 0x6f, 0x9b, 0x00,
+0xf0, 0x0f, 0x20, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x20, 0x69,
+0x6e, 0x73, 0x74, 0x65, 0x61, 0x64, 0x2e, 0x29, 0x20, 0x54,
+0x68, 0x65, 0x20, 0x61, 0x64, 0x76, 0x61, 0x6e, 0x74, 0x61,
+0x67, 0x65, 0xf9, 0x00, 0x51, 0x6f, 0x75, 0x67, 0x68, 0x2c,
+0x63, 0x02, 0x00, 0xb6, 0x00, 0x00, 0x3a, 0x00, 0x10, 0x6e,
+0x4c, 0x01, 0x00, 0xa4, 0x02, 0x01, 0x9d, 0x01, 0x23, 0x6f,
+0x66, 0x65, 0x01, 0x75, 0x0a, 0x0a, 0x23, 0x31, 0x30, 0x2e,
+0x31, 0xa2, 0x03, 0xb0, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
+0x6c, 0x73, 0x20, 0x0a, 0x54, 0xeb, 0x00, 0x10, 0x67, 0x42,
+0x02, 0x11, 0x69, 0x20, 0x02, 0x81, 0x79, 0x65, 0x64, 0x20,
+0x77, 0x69, 0x74, 0x68, 0xa0, 0x00, 0x40, 0x6d, 0x6f, 0x75,
+0x73, 0x96, 0x02, 0xa0, 0x4c, 0x65, 0x66, 0x74, 0x2d, 0x63,
+0x6c, 0x69, 0x63, 0x6b, 0x4e, 0x02, 0x13, 0x61, 0xcd, 0x00,
+0x00, 0xa7, 0x00, 0x03, 0xe1, 0x00, 0x22, 0x69, 0x74, 0xcb,
+0x02, 0x64, 0x2e, 0x20, 0x52, 0x69, 0x67, 0x68, 0x2c, 0x00,
+0x09, 0x20, 0x00, 0x03, 0xe2, 0x02, 0x21, 0x49, 0x66, 0xa8,
+0x00, 0x31, 0x6d, 0x61, 0x6b, 0x36, 0x02, 0x71, 0x69, 0x73,
+0x74, 0x61, 0x6b, 0x65, 0x2c, 0x14, 0x00, 0xa2, 0x63, 0x61,
+0x6e, 0x20, 0x6d, 0x69, 0x64, 0x64, 0x6c, 0x65, 0x40, 0x00,
+0x10, 0x2c, 0x19, 0x03, 0xe1, 0x68, 0x6f, 0x6c, 0x64, 0x20,
+0x64, 0x6f, 0x77, 0x6e, 0x20, 0x53, 0x68, 0x69, 0x66, 0x47,
+0x00, 0x31, 0x6c, 0x65, 0x20, 0x20, 0x00, 0x00, 0x65, 0x01,
+0x01, 0xab, 0x00, 0xb7, 0x61, 0x6e, 0x79, 0x20, 0x62, 0x75,
+0x74, 0x74, 0x6f, 0x6e, 0x2c, 0x74, 0x00, 0x00, 0xc1, 0x00,
+0x03, 0xa9, 0x00, 0x03, 0x7a, 0x03, 0xe3, 0x64, 0x65, 0x66,
+0x61, 0x75, 0x6c, 0x74, 0x20, 0x67, 0x72, 0x65, 0x79, 0x20,
+0x28, 0xb2, 0x02, 0x20, 0x20, 0x60, 0x03, 0x03, 0xe2, 0x63,
+0x69, 0x64, 0x65, 0x64, 0x27, 0x29, 0x20, 0x61, 0x67, 0x61,
+0x69, 0x6e, 0x2e, 0xc2, 0x04, 0x00, 0x90, 0x00, 0x02, 0xc9,
+0x00, 0x00, 0x9f, 0x01, 0x46, 0x64, 0x72, 0x61, 0x67, 0x1a,
+0x01, 0x40, 0x6c, 0x65, 0x66, 0x74, 0x9f, 0x00, 0x10, 0x72,
+0xef, 0x00, 0x02, 0x28, 0x01, 0x03, 0x83, 0x00, 0x07, 0x82,
+0x00, 0x10, 0x61, 0xc9, 0x02, 0x01, 0xa8, 0x02, 0x02, 0xca,
+0x00, 0xd9, 0x72, 0x69, 0x7a, 0x6f, 0x6e, 0x74, 0x61, 0x6c,
+0x20, 0x6c, 0x69, 0x6e, 0x65, 0x15, 0x02, 0x09, 0x07, 0x04,
+0xf5, 0x0a, 0x20, 0x61, 0x74, 0x20, 0x61, 0x20, 0x74, 0x69,
+0x6d, 0x65, 0x20, 0x28, 0x72, 0x65, 0x73, 0x70, 0x65, 0x63,
+0x74, 0x69, 0x76, 0x65, 0x6c, 0x79, 0x29, 0x3e, 0x01, 0x0f,
+0x96, 0x00, 0x05, 0x02, 0x3e, 0x01, 0x05, 0x0c, 0x01, 0x22,
+0x6f, 0x72, 0x1b, 0x00, 0x02, 0x3a, 0x01, 0x23, 0x68, 0x65,
+0x4a, 0x01, 0x06, 0x6e, 0x01, 0x05, 0xa8, 0x00, 0xe9, 0x77,
+0x68, 0x6f, 0x6c, 0x65, 0x20, 0x72, 0x65, 0x63, 0x74, 0x61,
+0x6e, 0x67, 0x6c, 0x9c, 0x00, 0x00, 0x2d, 0x01, 0x07, 0x11,
+0x01, 0x60, 0x61, 0x6c, 0x73, 0x6f, 0x20, 0x6d, 0x33, 0x05,
+0x03, 0x8e, 0x04, 0x05, 0x8a, 0x05, 0x05, 0x36, 0x02, 0xf7,
+0x00, 0x63, 0x75, 0x72, 0x73, 0x6f, 0x72, 0x20, 0x6b, 0x65,
+0x79, 0x73, 0x2e, 0x20, 0x50, 0x72, 0x0f, 0x03, 0x21, 0x72,
+0x65, 0x38, 0x04, 0x14, 0x6b, 0xb1, 0x03, 0x54, 0x63, 0x79,
+0x63, 0x6c, 0x65, 0x34, 0x00, 0x01, 0x7f, 0x04, 0x80, 0x63,
+0x65, 0x6c, 0x6c, 0x20, 0x74, 0x68, 0x72, 0xda, 0x02, 0x52,
+0x20, 0x65, 0x6d, 0x70, 0x74, 0xe1, 0x03, 0x12, 0x6e, 0x23,
+0x01, 0x03, 0x0c, 0x00, 0x01, 0x26, 0x01, 0x03, 0x0c, 0x00,
+0x03, 0x24, 0x00, 0x13, 0x61, 0x8a, 0x00, 0xc3, 0x73, 0x70,
+0x61, 0x63, 0x65, 0x20, 0x62, 0x61, 0x72, 0x20, 0x64, 0x6f,
+0x37, 0x04, 0x10, 0x73, 0xdd, 0x02, 0x02, 0x6a, 0x00, 0x30,
+0x69, 0x6e, 0x20, 0xb0, 0x03, 0x11, 0x72, 0xd5, 0x02, 0x35,
+0x4d, 0x6f, 0x76, 0xa7, 0x03, 0x02, 0xb2, 0x00, 0x02, 0x5c,
+0x02, 0x00, 0x72, 0x02, 0x00, 0x19, 0x00, 0x12, 0x43, 0x24,
+0x03, 0x03, 0xaa, 0x00, 0x06, 0x54, 0x02, 0x00, 0xfd, 0x00,
+0x30, 0x64, 0x2d, 0x6f, 0x68, 0x03, 0x09, 0xc0, 0x01, 0x00,
+0xcb, 0x04, 0x02, 0x3a, 0x00, 0x03, 0xaa, 0x02, 0x0f, 0x38,
+0x00, 0x0f, 0x03, 0xc9, 0x00, 0x00, 0xbd, 0x00, 0x04, 0x76,
+0x00, 0x4c, 0x62, 0x6f, 0x74, 0x68, 0x3b, 0x00, 0x14, 0x6d,
+0x85, 0x01, 0x21, 0x28, 0x41, 0x1e, 0x01, 0x10, 0x65, 0x99,
+0x04, 0xc2, 0x69, 0x6f, 0x6e, 0x73, 0x20, 0x64, 0x65, 0x73,
+0x63, 0x72, 0x69, 0x62, 0x3e, 0x07, 0x21, 0x73, 0x65, 0x16,
+0x00, 0x41, 0x20, 0x32, 0x2e, 0x31, 0xc4, 0x06, 0x01, 0xab,
+0x01, 0xb3, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x6c,
+0x65, 0x2e, 0x29, 0x06, 0x04, 0x15, 0x32, 0x06, 0x04, 0x91,
+0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x08,
+0x04, 0x92, 0x65, 0x20, 0x6f, 0x6e, 0x6c, 0x79, 0x20, 0x6f,
+0x70, 0x5b, 0x00, 0x05, 0x39, 0x00, 0x02, 0xd7, 0x04, 0x00,
+0x76, 0x00, 0xb3, 0x60, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d,
+0x2e, 0x2e, 0x2e, 0x27, 0x27, 0x00, 0x04, 0xc9, 0x04, 0xb1,
+0x60, 0x54, 0x79, 0x70, 0x65, 0x27, 0x20, 0x6d, 0x65, 0x6e,
+0x75, 0x7b, 0x00, 0x71, 0x5f, 0x57, 0x69, 0x64, 0x74, 0x68,
+0x5f, 0xda, 0x00, 0x30, 0x5f, 0x48, 0x65, 0x25, 0x03, 0x14,
+0x5f, 0xfb, 0x07, 0x00, 0x20, 0x00, 0xf0, 0x05, 0x73, 0x65,
+0x6c, 0x66, 0x2d, 0x65, 0x78, 0x70, 0x6c, 0x61, 0x6e, 0x61,
+0x74, 0x6f, 0x72, 0x79, 0x2e, 0x20, 0x0a, 0x00,
+};
+const unsigned short help_text_len = 2123;
const char quick_help_text[] = "Fill in the pattern in the grid, given only the lengths of runs of black squares.";