-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConvertSearchResultsToHTML.nb
1204 lines (1176 loc) · 51.7 KB
/
ConvertSearchResultsToHTML.nb
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
(* Content-type: application/vnd.wolfram.mathematica *)
(*** Wolfram Notebook File ***)
(* http://www.wolfram.com/nb *)
(* CreatedBy='Mathematica 10.0' *)
(*CacheID: 234*)
(* Internal cache information:
NotebookFileLineBreakTest
NotebookFileLineBreakTest
NotebookDataPosition[ 158, 7]
NotebookDataLength[ 52773, 1195]
NotebookOptionsPosition[ 51658, 1155]
NotebookOutlinePosition[ 52205, 1175]
CellTagsIndexPosition[ 52162, 1172]
WindowFrame->Normal*)
(* Beginning of Notebook Content *)
Notebook[{
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{
RowBox[{"n", " ", "=", " ",
RowBox[{"Documentation`HelpLookup", "[", "\"\<Print start:1\>\"", "]"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"nG", "=",
RowBox[{"NotebookGet", "[", "n", "]"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"NotebookClose", "[", "n", "]"}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"nG", "=",
RowBox[{"Replace", "[",
RowBox[{"nG", ",",
RowBox[{"{",
RowBox[{
RowBox[{"HoldPattern", "[",
RowBox[{"Notebook", "[",
RowBox[{
RowBox[{"{",
RowBox[{"x_", ",", "y___"}], "}"}], ",", "z___"}], "]"}], "]"}],
" ", "\[RuleDelayed]", " ",
RowBox[{"Notebook", "[",
RowBox[{"{", "y", "}"}], "]"}]}], "}"}], ",",
RowBox[{"{",
RowBox[{"0", ",", "Infinity"}], "}"}]}], "]"}]}], ";"}],
"\[IndentingNewLine]",
RowBox[{"(*", " ",
RowBox[{
RowBox[{"NotebookPut", "@", "nG"}], ";"}], " ",
"*)"}]}], "\[IndentingNewLine]",
RowBox[{"nG", "=",
RowBox[{"Replace", "[",
RowBox[{"nG", ",",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"HoldPattern", "[",
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"TextData", "[",
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"BoxData", "[",
RowBox[{"TemplateBox", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{"TextData", "[", "name_", "]"}], "]"}], ",",
"link_"}], "}"}], ",", "___"}], "]"}], "]"}], ",",
"\"\<SearchResultTitle\>\""}], "]"}], ",", "___"}],
"\[IndentingNewLine]", "}"}], "]"}], ",",
"\"\<SearchResultCell\>\"", ",",
RowBox[{"CellDingbat", "\[Rule]", "_"}]}], "]"}], "]"}], " ",
"\[IndentingNewLine]", "\[RuleDelayed]",
RowBox[{
"\"\<<p class=\\\"SearchResultCell\\\"><a href=\\\"\>\"", "<>", "link",
"<>", "\"\<\\\">\>\"", "<>", "name", "<>", "\"\<</a></p>\>\""}]}],
",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\"\<(\>\"", ",", "\"\<SearchResultType\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "\"\<\>\""}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\"\<)\>\"", ",", "\"\<SearchResultType\>\""}], "]"}],
"\[RuleDelayed]", " ", "\"\<\>\""}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",", "\"\<SearchResultType\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "t"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",", "\"\<SearchResultSummary\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "t"}]}], "\[IndentingNewLine]", "}"}], ",",
"\[IndentingNewLine]", " ",
RowBox[{"{",
RowBox[{"0", ",", "Infinity"}], "}"}]}], "\[IndentingNewLine]",
"]"}]}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"(",
RowBox[{"First", "@",
RowBox[{"First", "@",
RowBox[{"First", "@",
RowBox[{"First", "@",
RowBox[{"nG", "[",
RowBox[{"[",
RowBox[{
RowBox[{"-", "1"}], ",",
RowBox[{"-", "1"}]}], "]"}], "]"}]}]}]}]}], ")"}], "[",
RowBox[{"[", "2", "]"}], "]"}]}], "Input"],
Cell[BoxData[
RowBox[{"Notebook", "[",
RowBox[{"{",
RowBox[{"\<\"<p class=\\\"SearchResultCell\\\"><a \
href=\\\"paclet:ref/Print\\\">Print</a></p>\"\>",
",", "\<\"<p class=\\\"SearchResultCell\\\"><a \
href=\\\"paclet:guide/PrintFormats\\\">Print Formats</a></p>\"\>",
",", "\<\"<p class=\\\"SearchResultCell\\\"><a \
href=\\\"paclet:ref/$PrePrint\\\">$PrePrint</a></p>\"\>",
",", "\<\"<p class=\\\"SearchResultCell\\\"><a \
href=\\\"paclet:ref/menuitem/Print\\\">File > Print...</a></p>\"\>",
",", "\<\"<p class=\\\"SearchResultCell\\\"><a \
href=\\\"paclet:ref/CellPrint\\\">CellPrint</a></p>\"\>",
",", "\<\"<p class=\\\"SearchResultCell\\\"><a \
href=\\\"paclet:ref/NotebookPrint\\\">NotebookPrint</a></p>\"\>",
",", "\<\"<p class=\\\"SearchResultCell\\\"><a \
href=\\\"paclet:ref/PrintingCopies\\\">PrintingCopies</a></p>\"\>",
",", "\<\"<p class=\\\"SearchResultCell\\\"><a \
href=\\\"paclet:ref/PrintTemporary\\\">PrintTemporary</a></p>\"\>",
",", "\<\"<p class=\\\"SearchResultCell\\\"><a \
href=\\\"paclet:ref/TracePrint\\\">TracePrint</a></p>\"\>",
",", "\<\"<p class=\\\"SearchResultCell\\\"><a \
href=\\\"paclet:ref/PrintingStyleEnvironment\\\">PrintingStyleEnvironment</a><\
/p>\"\>", ",",
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"BoxData", "[",
RowBox[{"GridBox", "[",
RowBox[{"{",
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"TextData", "[",
RowBox[{"ButtonBox", "[",
RowBox[{"\<\"NEXT \[RightGuillemet]\"\>", ",",
RowBox[{"BaseStyle", "\[Rule]", "\<\"Link\"\>"}], ",",
RowBox[{
"ButtonData",
"\[Rule]", "\<\"Print start:11 limit:10\"\>"}]}], "]"}],
"]"}], ",", "\<\"SearchResultPageLinks\"\>"}], "]"}], ",",
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"TextData", "[",
RowBox[{"{",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\<\" 1 \"\>", ",",
RowBox[{"FontWeight", "\[Rule]", "\<\"Bold\"\>"}], ",",
RowBox[{"FontColor", "\[Rule]",
InterpretationBox[
ButtonBox[
TooltipBox[
RowBox[{
GraphicsBox[{
{GrayLevel[0], RectangleBox[{0, 0}]},
{GrayLevel[0], RectangleBox[{1, -1}]},
{RGBColor[0, 0, 1], RectangleBox[{0, -1}, {2, 1}]}},
AspectRatio->1,
Frame->True,
FrameStyle->RGBColor[0., 0., 0.6666666666666666],
FrameTicks->None,
ImageSize->
Dynamic[{
Automatic, 1.35 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}],
PlotRangePadding->None], "\[InvisibleSpace]"}],
"RGBColor[0, 0, 1]"],
Appearance->None,
BaseStyle->{},
BaselinePosition->Baseline,
ButtonFunction:>With[{Typeset`box$ = EvaluationBox[]},
If[
Not[
AbsoluteCurrentValue["Deployed"]],
SelectionMove[Typeset`box$, All, Expression];
FrontEnd`Private`$ColorSelectorInitialAlpha = 1;
FrontEnd`Private`$ColorSelectorInitialColor =
RGBColor[0, 0, 1];
FrontEnd`Private`$ColorSelectorUseMakeBoxes = True;
MathLink`CallFrontEnd[
FrontEnd`AttachCell[Typeset`box$,
FrontEndResource["RGBColorValueSelector"], {
0, {Left, Bottom}}, {Left, Top},
"ClosingActions" -> {
"SelectionDeparture", "ParentChanged",
"EvaluatorQuit"}]]]],
DefaultBaseStyle->{},
Evaluator->Automatic,
Method->"Preemptive"],
RGBColor[0, 0, 1],
Editable->False,
Selectable->False]}]}], "]"}], ",", "\<\"|\"\>", ",",
RowBox[{"ButtonBox", "[",
RowBox[{"\<\" 2 \"\>", ",",
RowBox[{"BaseStyle", "\[Rule]", "\<\"Link\"\>"}], ",",
RowBox[{
"ButtonData",
"\[Rule]", "\<\"Print start:11 limit:10\"\>"}]}], "]"}],
",", "\<\"|\"\>", ",",
RowBox[{"ButtonBox", "[",
RowBox[{"\<\" 3 \"\>", ",",
RowBox[{"BaseStyle", "\[Rule]", "\<\"Link\"\>"}], ",",
RowBox[{
"ButtonData",
"\[Rule]", "\<\"Print start:21 limit:10\"\>"}]}], "]"}],
",", "\<\"|\"\>", ",",
RowBox[{"ButtonBox", "[",
RowBox[{"\<\" 4 \"\>", ",",
RowBox[{"BaseStyle", "\[Rule]", "\<\"Link\"\>"}], ",",
RowBox[{
"ButtonData",
"\[Rule]", "\<\"Print start:31 limit:10\"\>"}]}], "]"}],
",", "\<\" ... \"\>", ",",
RowBox[{"ButtonBox", "[",
RowBox[{"\<\"60\"\>", ",",
RowBox[{"BaseStyle", "\[Rule]", "\<\"Link\"\>"}], ",",
RowBox[{
"ButtonData",
"\[Rule]", "\<\"Print start:591 limit:10\"\>"}]}], "]"}]}],
"}"}], "]"}], ",", "\<\"SearchResultPageLinks\"\>"}], "]"}]}],
"}"}], "}"}], "]"}], "]"}],
",", "\<\"SearchResultPageLinksGrid\"\>"}], "]"}]}], "}"}],
"]"}]], "Output"],
Cell[BoxData[
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"TextData", "[",
RowBox[{"{",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\<\" 1 \"\>", ",",
RowBox[{"FontWeight", "\[Rule]", "\<\"Bold\"\>"}], ",",
RowBox[{"FontColor", "\[Rule]",
InterpretationBox[
ButtonBox[
TooltipBox[
RowBox[{
GraphicsBox[{
{GrayLevel[0], RectangleBox[{0, 0}]},
{GrayLevel[0], RectangleBox[{1, -1}]},
{RGBColor[0, 0, 1], RectangleBox[{0, -1}, {2, 1}]}},
AspectRatio->1,
Frame->True,
FrameStyle->RGBColor[0., 0., 0.6666666666666666],
FrameTicks->None,
ImageSize->
Dynamic[{
Automatic, 1.35 CurrentValue["FontCapHeight"]/
AbsoluteCurrentValue[Magnification]}],
PlotRangePadding->None], "\[InvisibleSpace]"}],
"RGBColor[0, 0, 1]"],
Appearance->None,
BaseStyle->{},
BaselinePosition->Baseline,
ButtonFunction:>With[{Typeset`box$ = EvaluationBox[]},
If[
Not[
AbsoluteCurrentValue["Deployed"]],
SelectionMove[Typeset`box$, All, Expression];
FrontEnd`Private`$ColorSelectorInitialAlpha = 1;
FrontEnd`Private`$ColorSelectorInitialColor = RGBColor[0, 0, 1];
FrontEnd`Private`$ColorSelectorUseMakeBoxes = True;
MathLink`CallFrontEnd[
FrontEnd`AttachCell[Typeset`box$,
FrontEndResource["RGBColorValueSelector"], {
0, {Left, Bottom}}, {Left, Top},
"ClosingActions" -> {
"SelectionDeparture", "ParentChanged", "EvaluatorQuit"}]]]],
DefaultBaseStyle->{},
Evaluator->Automatic,
Method->"Preemptive"],
RGBColor[0, 0, 1],
Editable->False,
Selectable->False]}]}], "]"}], ",", "\<\"|\"\>", ",",
RowBox[{"ButtonBox", "[",
RowBox[{"\<\" 2 \"\>", ",",
RowBox[{"BaseStyle", "\[Rule]", "\<\"Link\"\>"}], ",",
RowBox[{
"ButtonData", "\[Rule]", "\<\"Print start:11 limit:10\"\>"}]}], "]"}],
",", "\<\"|\"\>", ",",
RowBox[{"ButtonBox", "[",
RowBox[{"\<\" 3 \"\>", ",",
RowBox[{"BaseStyle", "\[Rule]", "\<\"Link\"\>"}], ",",
RowBox[{
"ButtonData", "\[Rule]", "\<\"Print start:21 limit:10\"\>"}]}], "]"}],
",", "\<\"|\"\>", ",",
RowBox[{"ButtonBox", "[",
RowBox[{"\<\" 4 \"\>", ",",
RowBox[{"BaseStyle", "\[Rule]", "\<\"Link\"\>"}], ",",
RowBox[{
"ButtonData", "\[Rule]", "\<\"Print start:31 limit:10\"\>"}]}], "]"}],
",", "\<\" ... \"\>", ",",
RowBox[{"ButtonBox", "[",
RowBox[{"\<\"60\"\>", ",",
RowBox[{"BaseStyle", "\[Rule]", "\<\"Link\"\>"}], ",",
RowBox[{
"ButtonData", "\[Rule]", "\<\"Print start:591 limit:10\"\>"}]}],
"]"}]}], "}"}], "]"}], ",", "\<\"SearchResultPageLinks\"\>"}],
"]"}]], "Output"]
}, Open ]],
Cell[BoxData[
RowBox[{
RowBox[{"Replace", "[",
RowBox[{"nG", ",",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"HoldPattern", "[",
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"TextData", "[",
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"BoxData", "[",
RowBox[{"TemplateBox", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{"TextData", "[", "name_", "]"}], "]"}], ",",
"link_"}], "}"}], ",", "___"}], "]"}], "]"}], ",",
"\"\<SearchResultTitle\>\""}], "]"}], ",", "___"}],
"\[IndentingNewLine]", "}"}], "]"}], ",",
"\"\<SearchResultCell\>\"", ",",
RowBox[{"CellDingbat", "\[Rule]", "_"}]}], "]"}], "]"}], " ",
"\[IndentingNewLine]", "\[RuleDelayed]",
RowBox[{
"\"\<<a href=\\\"\>\"", "<>", "link", "<>", "\"\<\\\">\>\"", "<>",
"name", "<>", "\"\<</a>\>\""}]}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\"\<(\>\"", ",", "\"\<SearchResultType\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "\"\<\>\""}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\"\<)\>\"", ",", "\"\<SearchResultType\>\""}], "]"}],
"\[RuleDelayed]", " ", "\"\<\>\""}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",", "\"\<SearchResultType\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "t"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",", "\"\<SearchResultSummary\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "t"}]}], "\[IndentingNewLine]", "}"}], ",",
"\[IndentingNewLine]", " ",
RowBox[{"{",
RowBox[{"0", ",", "Infinity"}], "}"}]}], "\[IndentingNewLine]", "]"}],
";"}]], "Input"],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{
RowBox[{"i", "=",
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"TextData", "[",
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"BoxData", "[",
RowBox[{"TemplateBox", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{"TextData", "[", "\"\<Print\>\"", "]"}], "]"}], ",",
"\"\<paclet:ref/Print\>\""}], "}"}], ",",
"\"\<SearchResultLink\>\"", ",",
RowBox[{"BaseStyle", "\[Rule]",
RowBox[{"{", "\"\<SearchResultTitle\>\"", "}"}]}]}], "]"}],
"]"}], ",", "\"\<SearchResultTitle\>\""}], "]"}], ",",
"\[IndentingNewLine]", "\[IndentingNewLine]", "\"\< \>\"", ",",
RowBox[{"StyleBox", "[",
RowBox[{"\"\<(\>\"", ",", "\"\<SearchResultType\>\""}], "]"}], ",",
"\[IndentingNewLine]",
RowBox[{"StyleBox", "[",
RowBox[{
"\"\<Built-in Wolfram Language Symbol\>\"", ",",
"\"\<SearchResultType\>\""}], "]"}], ",", "\[IndentingNewLine]",
RowBox[{"StyleBox", "[",
RowBox[{"\"\<)\>\"", ",", "\"\<SearchResultType\>\""}], "]"}], ",",
"\"\<\\n\>\"", ",", "\[IndentingNewLine]", "\[IndentingNewLine]",
RowBox[{"StyleBox", "[",
RowBox[{
"\"\<Print[expr] prints expr as output. \>\"", ",",
"\"\<SearchResultSummary\>\""}], "]"}]}], "\[IndentingNewLine]",
"\[IndentingNewLine]", "}"}], "]"}], ",", "\"\<SearchResultCell\>\"",
",",
RowBox[{"CellDingbat", "\[Rule]",
RowBox[{"StyleBox", "[",
RowBox[{"\"\<\[FilledSquare]\>\"", ",", "\"\<SymbolColor\>\""}],
"]"}]}]}], "]"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"i", " ", "=",
RowBox[{"Replace", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"First", "@",
RowBox[{"First", "@", "i"}]}], ",", "\[IndentingNewLine]",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"HoldPattern", "[",
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"BoxData", "[",
RowBox[{"TemplateBox", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{"TextData", "[", "name_", "]"}], "]"}], ",",
"link_"}], "}"}], ",", "___"}], "]"}], "]"}], ",",
"\"\<SearchResultTitle\>\""}], "]"}], "]"}], " ",
"\[IndentingNewLine]", "\[RuleDelayed]",
RowBox[{
"\"\<<a href=\\\"\>\"", "<>", "link", "<>", "\"\<\\\">\>\"", "<>",
"name", "<>", "\"\<</a>\>\""}]}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\"\<(\>\"", ",", "\"\<SearchResultType\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "\"\<\>\""}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\"\<)\>\"", ",", "\"\<SearchResultType\>\""}], "]"}],
"\[RuleDelayed]", " ", "\"\<\>\""}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",", "\"\<SearchResultType\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "t"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",", "\"\<SearchResultSummary\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "t"}]}], "\[IndentingNewLine]", "}"}], ",",
"\[IndentingNewLine]", " ",
RowBox[{"{",
RowBox[{"0", ",", "Infinity"}], "}"}]}], "\[IndentingNewLine]", "]"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"header", "=",
RowBox[{"StringJoin", "[", "\[IndentingNewLine]",
RowBox[{
"\"\<<b>Search Results</b><br>\n<a href=\\\"#\\\">Next</a><br>\>\"", "<>",
"\[IndentingNewLine]",
RowBox[{"Prepend", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"Append", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"Insert", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"DeleteCases", "[",
RowBox[{
RowBox[{"DeleteCases", "[",
RowBox[{
RowBox[{"DeleteCases", "[",
RowBox[{"i", ",", "\"\< \>\""}], "]"}], ",", "\"\<\>\""}],
"]"}], ",", "\"\<\\n\>\""}], "]"}], ",", "\[IndentingNewLine]",
"\"\<<br>\>\"", ",", "3"}], "\[IndentingNewLine]", "]"}], ",",
"\"\<</div>\>\""}], "]"}], ",", "\[IndentingNewLine]",
"\"\<<div>\>\""}], "]"}], " ", "<>",
"\"\<\n<a href=\\\"#\\\">1</a> | <a href=\\\"#\\\">2</a> | <a \
href=\\\"./test2.htm\\\">Next</a>\n<form action=\\\"./test2.htm\\\">\n<input \
style=\\\"with:800px;\\\" type=text size=\\\"50\\\" value=\\\"Print\\\">\n\
<input type=submit value=\\\"Go\\\">\n</form>\n\>\""}], "\[IndentingNewLine]",
"]"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{"Print", "@", "header"}]}], "Input"],
Cell[BoxData["\<\"<b>Search Results</b><br>\\n<a \
href=\\\"#\\\">Next</a><br><div><a \
href=\\\"paclet:ref/Print\\\">Print</a>Built-in Wolfram Language \
Symbol<br>Print[expr] prints expr as output. </div>\\n<a href=\\\"#\\\">1</a> \
| <a href=\\\"#\\\">2</a> | <a href=\\\"./test2.htm\\\">Next</a>\\n<form \
action=\\\"./test2.htm\\\">\\n<input style=\\\"with:800px;\\\" type=text \
size=\\\"50\\\" value=\\\"Print\\\">\\n<input type=submit \
value=\\\"Go\\\">\\n</form>\\n\"\>"], "Print"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[
RowBox[{"Cases", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"Replace", "[",
RowBox[{"nG", ",",
RowBox[{"{",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",",
RowBox[{"FontWeight", "\[Rule]", "\"\<Bold\>\""}], ",",
RowBox[{"FontColor", "\[Rule]",
InterpretationBox[
ButtonBox[
TooltipBox[
RowBox[{
GraphicsBox[{
{GrayLevel[0], RectangleBox[{0, 0}]},
{GrayLevel[0], RectangleBox[{1, -1}]},
{RGBColor[0, 0, 1], RectangleBox[{0, -1}, {2, 1}]}},
AspectRatio->1,
Frame->True,
FrameStyle->RGBColor[0., 0., 0.6666666666666666],
FrameTicks->None,
ImageSize->
Dynamic[{
Automatic,
1.35 (CurrentValue["FontCapHeight"]/AbsoluteCurrentValue[
Magnification])}],
PlotRangePadding->None], "\[InvisibleSpace]"}],
"RGBColor[0, 0, 1]"],
Appearance->None,
BaseStyle->{},
BaselinePosition->Baseline,
ButtonFunction:>With[{Typeset`box$ = EvaluationBox[]},
If[
Not[
AbsoluteCurrentValue["Deployed"]],
SelectionMove[Typeset`box$, All, Expression];
FrontEnd`Private`$ColorSelectorInitialAlpha = 1;
FrontEnd`Private`$ColorSelectorInitialColor =
RGBColor[0, 0, 1];
FrontEnd`Private`$ColorSelectorUseMakeBoxes = True;
MathLink`CallFrontEnd[
FrontEnd`AttachCell[Typeset`box$,
FrontEndResource["RGBColorValueSelector"], {
0, {Left, Bottom}}, {Left, Top},
"ClosingActions" -> {
"SelectionDeparture", "ParentChanged", "EvaluatorQuit"}]]]],
DefaultBaseStyle->{},
Evaluator->Automatic,
Method->"Preemptive"],
RGBColor[0, 0, 1],
Editable->False,
Selectable->False]}]}], "]"}], " ", "\[RuleDelayed]", " ",
RowBox[{"ButtonBox", "[",
RowBox[{"t", ",",
RowBox[{"BaseStyle", "\[Rule]", "\"\<Link\>\""}], ",",
RowBox[{"ButtonData", "\[Rule]", "\"\<\>\""}]}], "]"}]}], "}"}], ",",
"\[IndentingNewLine]",
RowBox[{"{",
RowBox[{"0", ",", "Infinity"}], "}"}]}], "\[IndentingNewLine]", "]"}],
"\[IndentingNewLine]", ",",
RowBox[{
RowBox[{"ButtonBox", "[",
RowBox[{"n_", ",",
RowBox[{"BaseStyle", "\[Rule]", "\"\<Link\>\""}], ",",
RowBox[{"ButtonData", "\[Rule]", "_"}]}], "]"}], " ", "\[RuleDelayed]",
" ",
RowBox[{"\"\<\>\"", "<>", "n", "<>", "\"\<\>\""}]}],
"\[IndentingNewLine]", ",",
RowBox[{"{",
RowBox[{"0", ",", "Infinity"}], "}"}]}], "\[IndentingNewLine]",
"]"}]], "Input"],
Cell[BoxData[
RowBox[{"{",
RowBox[{"\<\"NEXT \[RightGuillemet]\"\>", ",", "\<\" 1 \"\>",
",", "\<\" 2 \"\>", ",", "\<\" 3 \"\>", ",", "\<\" 4 \"\>",
",", "\<\"60\"\>"}], "}"}]], "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{"Needs", "[", "\"\<NETLink`\>\"", "]"}], "\n",
RowBox[{"LoadNETType", "[",
RowBox[{"\"\<System.Drawing.Imaging.ImageFormat\>\"", ",",
RowBox[{"AllowShortContext", "\[Rule]", "False"}]}], "]"}], "\n",
RowBox[{
RowBox[{"LoadNETType", "[",
RowBox[{"\"\<System.Windows.Forms.WebBrowserReadyState\>\"", ",",
RowBox[{"AllowShortContext", "\[Rule]", "False"}]}], "]"}],
"\n"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"Options", "[", "dotNetBrowserScreenshot", "]"}], "=",
RowBox[{"{",
RowBox[{
RowBox[{"Width", "\[Rule]", "1024"}], ",",
RowBox[{"Height", "\[Rule]", "Automatic"}]}], "}"}]}], ";"}], "\n",
RowBox[{
RowBox[{
RowBox[{"dotNetBrowserScreenshot", "[",
RowBox[{"uri_", ",",
RowBox[{"OptionsPattern", "[", "]"}]}], "]"}], ":=",
RowBox[{"NETBlock", "@",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{
"browser", ",", "bitmap", ",", "tempFile", ",", "image", ",",
"bounds"}], "}"}], ",",
RowBox[{
RowBox[{"browser", "=",
RowBox[{
"NETNew", "[", "\"\<System.Windows.Forms.WebBrowser\>\"", "]"}]}],
";",
RowBox[{
RowBox[{"browser", "@", "Width"}], "=",
RowBox[{"OptionValue", "[", "Width", "]"}]}], ";",
RowBox[{
RowBox[{"browser", "@", "ScrollBarsEnabled"}], "=", "False"}], ";",
RowBox[{
RowBox[{"browser", "@", "ScriptErrorsSuppressed"}], "=", "True"}],
";",
RowBox[{"browser", "@",
RowBox[{"Navigate", "[", "uri", "]"}]}], ";",
RowBox[{"tempFile", "=",
RowBox[{"Close", "@",
RowBox[{"OpenWrite", "[", "]"}]}]}], ";",
RowBox[{"While", "[",
RowBox[{
RowBox[{
RowBox[{"browser", "@", "ReadyState"}], "=!=",
"System`Windows`Forms`WebBrowserReadyState`Complete"}], ",",
RowBox[{"Pause", "[", "0.05", "]"}]}], "]"}], ";",
RowBox[{"bounds", "=",
RowBox[{"browser", "@",
RowBox[{"Document", "@",
RowBox[{"Body", "@", "ClientRectangle"}]}]}]}], ";",
RowBox[{
RowBox[{"browser", "@", "Height"}], "=",
RowBox[{
RowBox[{"OptionValue", "[", "Height", "]"}], "/.",
RowBox[{"Automatic", "\[Rule]",
RowBox[{"bounds", "@", "Height"}]}]}]}], ";",
RowBox[{"bitmap", "=",
RowBox[{"NETNew", "[",
RowBox[{"\"\<System.Drawing.Bitmap\>\"", ",",
RowBox[{"browser", "@", "Width"}], ",",
RowBox[{"browser", "@", "Height"}]}], "]"}]}], ";",
RowBox[{"browser", "@",
RowBox[{"DrawToBitmap", "[",
RowBox[{"bitmap", ",", "bounds"}], "]"}]}], ";",
RowBox[{"browser", "@",
RowBox[{"Dispose", "[", "]"}]}], ";",
RowBox[{"bitmap", "@",
RowBox[{"Save", "[",
RowBox[{"tempFile", ",", "System`Drawing`Imaging`ImageFormat`Png"}],
"]"}]}], ";",
RowBox[{"bitmap", "@",
RowBox[{"Dispose", "[", "]"}]}], ";",
RowBox[{"image", "=",
RowBox[{"Import", "[",
RowBox[{"tempFile", ",", "\"\<PNG\>\""}], "]"}]}], ";",
RowBox[{"DeleteFile", "[", "tempFile", "]"}], ";", "image"}]}],
"]"}]}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"screenshot", "[", "html_", "]"}], ":=",
RowBox[{"Module", "[",
RowBox[{
RowBox[{"{",
RowBox[{"file", ",",
RowBox[{"w", "=", "1024"}], ","}], "}"}], ",",
RowBox[{
RowBox[{"file", "=",
RowBox[{"FileNameJoin", "[",
RowBox[{"{",
RowBox[{"$TemporaryDirectory", ",", "\"\<file.htm\>\""}], "}"}],
"]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"s", "=",
RowBox[{"OpenWrite", "[", "file", "]"}]}], ";", "\[IndentingNewLine]",
RowBox[{"WriteString", "[",
RowBox[{"s", ",",
RowBox[{
"\"\<\n <!doctype html>\n <html lang=\\\"en\\\"><head><meta \
content=\\\"IE=11.0000\\\" http-equiv=\\\"X-UA-Compatible\\\"></head><body>\n \
<style>html,body{background:white;padding:0px;margin:0;}\n </style><div \
style=\\\"width:\>\"", "<>",
RowBox[{"ToString", "@", "w"}], "<>",
"\"\<px;overflow:auto;padding:2px;\\\">\n \>\"", "<>", "html",
"<>", "\"\<\n </div></body>\n \>\""}]}], "]"}], ";",
"\[IndentingNewLine]",
RowBox[{"Close", "[", "s", "]"}], ";", "\[IndentingNewLine]",
RowBox[{"ImageCrop", "@",
RowBox[{"ImageCrop", "@",
RowBox[{"dotNetBrowserScreenshot", "[",
RowBox[{"file", ",",
RowBox[{"Width", "\[Rule]",
RowBox[{"w", "+", "4"}]}]}], "]"}]}]}]}]}], "]"}]}]}], "Input"],
Cell[BoxData[
RowBox[{"NETType", "[",
RowBox[{"\<\"System.Drawing.Imaging.ImageFormat\"\>", ",", "1"}],
"]"}]], "Output"],
Cell[BoxData[
RowBox[{"NETType", "[",
RowBox[{"\<\"System.Windows.Forms.WebBrowserReadyState\"\>", ",", "2"}],
"]"}]], "Output"]
}, Open ]],
Cell[CellGroupData[{
Cell[BoxData[{
RowBox[{
RowBox[{"nG", " ", "=",
RowBox[{"Replace", "[",
RowBox[{"nG", ",",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"HoldPattern", "[",
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"TextData", "[",
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"BoxData", "[",
RowBox[{"TemplateBox", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{"TextData", "[", "name_", "]"}], "]"}], ",",
"link_"}], "}"}], ",", "___"}], "]"}], "]"}], ",",
"\"\<SearchResultTitle\>\""}], "]"}], ",", "___"}],
"\[IndentingNewLine]", "}"}], "]"}], ",",
"\"\<SearchResultCell\>\"", ",",
RowBox[{"CellDingbat", "\[Rule]", "_"}]}], "]"}], "]"}], " ",
"\[IndentingNewLine]", "\[RuleDelayed]",
RowBox[{
"\"\<<a href=\\\"\>\"", "<>", "link", "<>", "\"\<\\\">\>\"", "<>",
"name", "<>", "\"\<</a>\>\""}]}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\"\<(\>\"", ",", "\"\<SearchResultType\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "\"\<\>\""}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\"\<)\>\"", ",", "\"\<SearchResultType\>\""}], "]"}],
"\[RuleDelayed]", " ", "\"\<\>\""}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",", "\"\<SearchResultType\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "t"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",", "\"\<SearchResultSummary\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "t"}]}], "\[IndentingNewLine]", "}"}], ",",
"\[IndentingNewLine]", " ",
RowBox[{"{",
RowBox[{"0", ",", "Infinity"}], "}"}]}], "\[IndentingNewLine]", "]"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"list", " ", "=", " ",
RowBox[{"Drop", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"Replace", "[",
RowBox[{"nG", ",",
RowBox[{"{", "\[IndentingNewLine]",
RowBox[{
RowBox[{
RowBox[{"HoldPattern", "[",
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"TextData", "[",
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{
RowBox[{"BoxData", "[",
RowBox[{"TemplateBox", "[",
RowBox[{
RowBox[{"{",
RowBox[{
RowBox[{"Cell", "[",
RowBox[{"TextData", "[", "name_", "]"}], "]"}], ",",
"link_"}], "}"}], ",", "___"}], "]"}], "]"}], ",",
"\"\<SearchResultTitle\>\""}], "]"}], ",", "___"}],
"\[IndentingNewLine]", "}"}], "]"}], ",",
"\"\<SearchResultCell\>\"", ",",
RowBox[{"CellDingbat", "\[Rule]", "_"}]}], "]"}], "]"}], " ",
"\[IndentingNewLine]", "\[RuleDelayed]",
RowBox[{
"\"\<<a href=\\\"\>\"", "<>", "link", "<>", "\"\<\\\">\>\"", "<>",
"name", "<>", "\"\<</a>\>\""}]}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\"\<(\>\"", ",", "\"\<SearchResultType\>\""}], "]"}],
" ", "\[RuleDelayed]", " ", "\"\<\>\""}], ",",
"\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"\"\<)\>\"", ",", "\"\<SearchResultType\>\""}], "]"}],
"\[RuleDelayed]", " ", "\"\<\>\""}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",", "\"\<SearchResultType\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "t"}], ",", "\[IndentingNewLine]",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",", "\"\<SearchResultSummary\>\""}], "]"}], " ",
"\[RuleDelayed]", " ", "t"}]}], "\[IndentingNewLine]", "}"}], ",",
"\[IndentingNewLine]", " ",
RowBox[{"{",
RowBox[{"0", ",", "Infinity"}], "}"}]}], "\[IndentingNewLine]",
"]"}], "[",
RowBox[{"[", "1", "]"}], "]"}], " ", ",", " ",
RowBox[{"-", "1"}]}], "]"}]}], ";"}], "\[IndentingNewLine]",
RowBox[{
RowBox[{"links", " ", "=",
RowBox[{"Cases", "[", "\[IndentingNewLine]",
RowBox[{
RowBox[{"Replace", "[",
RowBox[{"nG", ",",
RowBox[{"{",
RowBox[{
RowBox[{"StyleBox", "[",
RowBox[{"t_", ",",
RowBox[{"FontWeight", "\[Rule]", "\"\<Bold\>\""}], ",",
RowBox[{"FontColor", "\[Rule]",
InterpretationBox[
ButtonBox[
TooltipBox[
RowBox[{
GraphicsBox[{
{GrayLevel[0], RectangleBox[{0, 0}]},
{GrayLevel[0], RectangleBox[{1, -1}]},
{RGBColor[0, 0, 1], RectangleBox[{0, -1}, {2, 1}]}},
AspectRatio->1,
Frame->True,
FrameStyle->RGBColor[0., 0., 0.6666666666666666],
FrameTicks->None,
ImageSize->
Dynamic[{
Automatic,
1.35 (CurrentValue["FontCapHeight"]/AbsoluteCurrentValue[
Magnification])}],
PlotRangePadding->None], "\[InvisibleSpace]"}],
"RGBColor[0, 0, 1]"],
Appearance->None,
BaseStyle->{},
BaselinePosition->Baseline,
ButtonFunction:>With[{Typeset`box$ = EvaluationBox[]},
If[
Not[
AbsoluteCurrentValue["Deployed"]],
SelectionMove[Typeset`box$, All, Expression];
FrontEnd`Private`$ColorSelectorInitialAlpha = 1;
FrontEnd`Private`$ColorSelectorInitialColor =
RGBColor[0, 0, 1];
FrontEnd`Private`$ColorSelectorUseMakeBoxes = True;
MathLink`CallFrontEnd[
FrontEnd`AttachCell[Typeset`box$,
FrontEndResource["RGBColorValueSelector"], {
0, {Left, Bottom}}, {Left, Top},
"ClosingActions" -> {
"SelectionDeparture", "ParentChanged",
"EvaluatorQuit"}]]]],
DefaultBaseStyle->{},
Evaluator->Automatic,
Method->"Preemptive"],
RGBColor[0, 0, 1],
Editable->False,
Selectable->False]}]}], "]"}], " ", "\[RuleDelayed]", " ",
RowBox[{"ButtonBox", "[",
RowBox[{"t", ",",
RowBox[{"BaseStyle", "\[Rule]", "\"\<Link\>\""}], ",",
RowBox[{"ButtonData", "\[Rule]", "\"\<\>\""}]}], "]"}]}], "}"}],
",", "\[IndentingNewLine]",
RowBox[{"{",
RowBox[{"0", ",", "Infinity"}], "}"}]}], "\[IndentingNewLine]", "]"}],
"\[IndentingNewLine]", ",",
RowBox[{
RowBox[{"ButtonBox", "[",
RowBox[{"n_", ",",
RowBox[{"BaseStyle", "\[Rule]", "\"\<Link\>\""}], ",",
RowBox[{"ButtonData", "\[Rule]", "_"}]}], "]"}], " ",
"\[RuleDelayed]", " ",
RowBox[{"\"\<\>\"", "<>", "n", "<>", "\"\<\>\""}]}],
"\[IndentingNewLine]", ",",
RowBox[{"{",
RowBox[{"0", ",", "Infinity"}], "}"}]}], "\[IndentingNewLine]", "]"}]}],
";"}], "\[IndentingNewLine]",
RowBox[{"screenshot", "[", "\[IndentingNewLine]",
RowBox[{"header", "\[IndentingNewLine]", "<>",
RowBox[{"StringJoin", "@",
RowBox[{"Append", "[",
RowBox[{"list", ",", "links"}], "]"}]}]}], "]"}]}], "Input"],
Cell[BoxData[
GraphicsBox[
TagBox[RasterBox[CompressedData["
1:eJzt3T2O+0h373H5JfA2vIsBGPkuwV6BDbiBAQxcwteA4aj3MIkCJs8ClE0u
oPMBBp0oaDBr4GYCnh2U+VbkqVOniqREqaXu7wfQzF8SWSxSrR9Lh5T4j//2
f//55W93u93/+4fmP//8r//9T//5n//6P//y982d//M///Xv//Z3zT/+/9/s
dv/R3NoHXad2VbFz7d3uVh77x6qj+zJ15Qrfn6JqerNklmJaB+u2sJ1rHctp
meUXbkIA382Q1TLLjqXI7a8z5u+qnD26ssvKwlXjTHJ/VLrbr5XvQ5zXx+o+
+wwA39Awji0qlSJtZn+bvHbTPuguY95EXrd9uNMYH8A3JOoOYY41mfMt81o9
fhNGXvvtTF4DuIKst6bzbMqg3Ng1qjnI59qsGu9P06SWL/P6ONam5/I2Xw+J
PkfIOnlQK5HrOz0na+RdW3L9xnBWeR0sQ8yrHyfLAcxSxxuj7PD5IzPLZ1v4
3Ji9YmweHAdsHpfz++nL/k4wr87G8X523K9zNpHT/QKCMW/Xl+Hffln9fO32
ifcvvs14nXVe19P+RmzXYN3bechrAEulxnv6+ONw34pNK1PTdY0w65NtqQzN
j0PD8fU0do/H5WEm+/vDdJl69+q8TvS9XvyZAQBcl0tR7qqsSp0nF45ZrXMC
h2dSOTvuH26X1+F4O1xOWIeJz8HTnwv0fNfmte6D+RkAALzEOQs+X4K8TuRk
nzl9Pq4aXyePddrzXZbX4XKs3F1aX9H5vEVeL9kOANAxjv9F52RbedLMFx4z
a+cXY+xF9RCRdeNzUx33urwOs0+OleU6WMc4/T4qrJOk8tlaZ6MPflnDMdf2
8badqcREXgOY4XNXH6fTwaFr20Y2dblXqbqvOnck/syvj3UO+w21vKIsw/tG
7cCs20wn1IXL0bV51W7drEdZFvH0Ud+aXBft+hzeyW2i6zJDn45lu4zMNgcA
AAAA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