搜索功能注释

main
LiRen-qiu 2 months ago
parent e50a898b42
commit 65ec8015de

@ -1,4 +1,4 @@
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=pdflatex 2024.10.11) 6 JAN 2025 08:52
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024) (preloaded format=pdflatex 2024.10.11) 6 JAN 2025 08:56
entering extended mode
restricted \write18 enabled.
file:line:error style messages enabled.
@ -599,7 +599,7 @@ LaTeX Font Info: External font `cmex10' loaded for size
\openout4 = `小米便签泛读、标注和维护报告文档.toc'.
[3]
<picture/1.1.png, id=336, 1142.2675pt x 1171.37625pt>
<picture/1.1.png, id=331, 1142.2675pt x 1171.37625pt>
File: picture/1.1.png Graphic file (type png)
<use picture/1.1.png>
Package pdftex.def Info: picture/1.1.png used on input line 94.
@ -610,7 +610,7 @@ Underfull \hbox (badness 10000) in paragraph at lines 99--100
[]
[4{c:/texlive/2024/texmf-dist/fonts/enc/dvips/cm-super/cm-super-ts1.enc} <./picture/1.1.png>] [5]
<picture/2.png, id=357, 765.86125pt x 1109.14375pt>
<picture/2.png, id=353, 765.86125pt x 1109.14375pt>
File: picture/2.png Graphic file (type png)
<use picture/2.png>
Package pdftex.def Info: picture/2.png used on input line 176.
@ -620,24 +620,24 @@ Package pdftex.def Info: picture/2.png used on input line 176.
LaTeX Warning: `!h' float specifier changed to `!ht'.
[6] [7 <./picture/2.png>]
<picture/46.png, id=376, 350.81062pt x 420.06938pt>
<picture/46.png, id=372, 350.81062pt x 420.06938pt>
File: picture/46.png Graphic file (type png)
<use picture/46.png>
Package pdftex.def Info: picture/46.png used on input line 200.
(pdftex.def) Requested size: 364.19667pt x 436.13115pt.
[8]
<picture/4.png, id=382, 645.41125pt x 430.60875pt>
<picture/4.png, id=378, 645.41125pt x 430.60875pt>
File: picture/4.png Graphic file (type png)
<use picture/4.png>
Package pdftex.def Info: picture/4.png used on input line 212.
(pdftex.def) Requested size: 364.19667pt x 242.98557pt.
[9 <./picture/46.png>]
<picture/7.png, id=389, 758.835pt x 299.1175pt>
<picture/7.png, id=385, 758.835pt x 299.1175pt>
File: picture/7.png Graphic file (type png)
<use picture/7.png>
Package pdftex.def Info: picture/7.png used on input line 220.
(pdftex.def) Requested size: 364.19667pt x 143.56107pt.
<picture/8.png, id=390, 675.52374pt x 392.46625pt>
<picture/8.png, id=386, 675.52374pt x 392.46625pt>
File: picture/8.png Graphic file (type png)
<use picture/8.png>
Package pdftex.def Info: picture/8.png used on input line 228.
@ -648,7 +648,7 @@ Underfull \hbox (badness 10000) in paragraph at lines 223--230
[]
[10 <./picture/4.png> <./picture/7.png>]
<picture/47.png, id=397, 355.82938pt x 320.69812pt>
<picture/47.png, id=393, 355.82938pt x 320.69812pt>
File: picture/47.png Graphic file (type png)
<use picture/47.png>
Package pdftex.def Info: picture/47.png used on input line 237.
@ -658,7 +658,7 @@ Underfull \hbox (badness 10000) in paragraph at lines 234--239
[]
<picture/9.png, id=398, 753.81625pt x 746.79pt>
<picture/9.png, id=394, 753.81625pt x 746.79pt>
File: picture/9.png Graphic file (type png)
<use picture/9.png>
Package pdftex.def Info: picture/9.png used on input line 247.
@ -674,7 +674,7 @@ Overfull \hbox (87.5302pt too wide) in paragraph at lines 255--256
[]
[12 <./picture/9.png>]
<picture/48.png, id=417, 344.78813pt x 407.02063pt>
<picture/48.png, id=413, 344.78813pt x 407.02063pt>
File: picture/48.png Graphic file (type png)
<use picture/48.png>
Package pdftex.def Info: picture/48.png used on input line 266.
@ -805,29 +805,29 @@ Underfull \hbox (badness 1418) in paragraph at lines 532--533
[]
[20]
<picture/10.png, id=478, 478.1865pt x 433.62pt>
<picture/10.png, id=474, 478.1865pt x 433.62pt>
File: picture/10.png Graphic file (type png)
<use picture/10.png>
Package pdftex.def Info: picture/10.png used on input line 559.
(pdftex.def) Requested size: 455.24411pt x 412.8365pt.
[21]
<picture/11.png, id=487, 416.757pt x 467.94826pt>
<picture/11.png, id=483, 416.757pt x 467.94826pt>
File: picture/11.png Graphic file (type png)
<use picture/11.png>
Package pdftex.def Info: picture/11.png used on input line 571.
(pdftex.def) Requested size: 455.24411pt x 511.16737pt.
[22 <./picture/10.png>]
<picture/12.png, id=494, 614.295pt x 1102.1175pt>
<picture/12.png, id=490, 614.295pt x 1102.1175pt>
File: picture/12.png Graphic file (type png)
<use picture/12.png>
Package pdftex.def Info: picture/12.png used on input line 593.
(pdftex.def) Requested size: 204.85846pt x 367.53416pt.
<picture/13.png, id=495, 614.295pt x 1100.11pt>
<picture/13.png, id=491, 614.295pt x 1100.11pt>
File: picture/13.png Graphic file (type png)
<use picture/13.png>
Package pdftex.def Info: picture/13.png used on input line 598.
(pdftex.def) Requested size: 204.85846pt x 366.8647pt.
<picture/14.png, id=496, 636.3775pt x 1103.12125pt>
<picture/14.png, id=492, 636.3775pt x 1103.12125pt>
File: picture/14.png Graphic file (type png)
<use picture/14.png>
Package pdftex.def Info: picture/14.png used on input line 603.
@ -837,163 +837,163 @@ Package pdftex.def Info: picture/14.png used on input line 603.
LaTeX Warning: Float too large for page by 45.08946pt on input line 607.
[23 <./picture/11.png>] [24 <./picture/12.png> <./picture/13.png> <./picture/14.png>]
<picture/sequence_diagram.png, id=514, 498.86375pt x 354.32375pt>
<picture/sequence_diagram.png, id=510, 498.86375pt x 354.32375pt>
File: picture/sequence_diagram.png Graphic file (type png)
<use picture/sequence_diagram.png>
Package pdftex.def Info: picture/sequence_diagram.png used on input line 614.
(pdftex.def) Requested size: 455.24411pt x 323.35422pt.
[25 <./picture/sequence_diagram.png>]
<picture/15.png, id=521, 635.37375pt x 1100.11pt>
<picture/15.png, id=517, 635.37375pt x 1100.11pt>
File: picture/15.png Graphic file (type png)
<use picture/15.png>
Package pdftex.def Info: picture/15.png used on input line 623.
(pdftex.def) Requested size: 318.66948pt x 551.76585pt.
[26 <./picture/15.png>]
<picture/16.png, id=528, 626.34pt x 1109.14375pt>
<picture/16.png, id=524, 626.34pt x 1109.14375pt>
File: picture/16.png Graphic file (type png)
<use picture/16.png>
Package pdftex.def Info: picture/16.png used on input line 635.
(pdftex.def) Requested size: 204.85846pt x 362.76913pt.
<picture/17.png, id=529, 629.35126pt x 1054.94125pt>
<picture/17.png, id=525, 629.35126pt x 1054.94125pt>
File: picture/17.png Graphic file (type png)
<use picture/17.png>
Package pdftex.def Info: picture/17.png used on input line 640.
(pdftex.def) Requested size: 204.85846pt x 343.38306pt.
[27 <./picture/16.png> <./picture/17.png>]
<picture/18.png, id=535, 647.41875pt x 1120.185pt>
<picture/18.png, id=531, 647.41875pt x 1120.185pt>
File: picture/18.png Graphic file (type png)
<use picture/18.png>
Package pdftex.def Info: picture/18.png used on input line 651.
(pdftex.def) Requested size: 318.66948pt x 551.37389pt.
[28 <./picture/18.png>]
<picture/19.png, id=541, 632.3625pt x 1103.12125pt>
<picture/19.png, id=537, 632.3625pt x 1103.12125pt>
File: picture/19.png Graphic file (type png)
<use picture/19.png>
Package pdftex.def Info: picture/19.png used on input line 659.
(pdftex.def) Requested size: 318.66948pt x 555.902pt.
[29 <./picture/19.png>]
<picture/20.png, id=547, 632.3625pt x 791.95876pt>
<picture/20.png, id=543, 632.3625pt x 791.95876pt>
File: picture/20.png Graphic file (type png)
<use picture/20.png>
Package pdftex.def Info: picture/20.png used on input line 667.
(pdftex.def) Requested size: 318.66948pt x 399.09616pt.
[30 <./picture/20.png>]
<picture/21.png, id=553, 614.295pt x 943.525pt>
<picture/21.png, id=549, 614.295pt x 943.525pt>
File: picture/21.png Graphic file (type png)
<use picture/21.png>
Package pdftex.def Info: picture/21.png used on input line 677.
(pdftex.def) Requested size: 204.85846pt x 314.64673pt.
<picture/22.png, id=554, 650.43pt x 991.705pt>
<picture/22.png, id=550, 650.43pt x 991.705pt>
File: picture/22.png Graphic file (type png)
<use picture/22.png>
Package pdftex.def Info: picture/22.png used on input line 682.
(pdftex.def) Requested size: 204.85846pt x 312.34334pt.
[31 <./picture/21.png> <./picture/22.png>]
<picture/23.png, id=561, 627.34375pt x 1003.75pt>
<picture/23.png, id=557, 627.34375pt x 1003.75pt>
File: picture/23.png Graphic file (type png)
<use picture/23.png>
Package pdftex.def Info: picture/23.png used on input line 699.
(pdftex.def) Requested size: 204.85846pt x 327.77711pt.
<picture/24.png, id=562, 573.14125pt x 858.20625pt>
<picture/24.png, id=558, 573.14125pt x 858.20625pt>
File: picture/24.png Graphic file (type png)
<use picture/24.png>
Package pdftex.def Info: picture/24.png used on input line 704.
(pdftex.def) Requested size: 204.85846pt x 306.75403pt.
[32 <./picture/23.png> <./picture/24.png>]
<picture/25.png, id=568, 612.2875pt x 1112.155pt>
<picture/25.png, id=564, 612.2875pt x 1112.155pt>
File: picture/25.png Graphic file (type png)
<use picture/25.png>
Package pdftex.def Info: picture/25.png used on input line 716.
(pdftex.def) Requested size: 204.85846pt x 372.10332pt.
<picture/26.png, id=569, 624.3325pt x 1053.9375pt>
<picture/26.png, id=565, 624.3325pt x 1053.9375pt>
File: picture/26.png Graphic file (type png)
<use picture/26.png>
Package pdftex.def Info: picture/26.png used on input line 721.
(pdftex.def) Requested size: 204.85846pt x 345.82239pt.
[33 <./picture/25.png> <./picture/26.png>]
<picture/27.png, id=575, 618.31pt x 1109.14375pt>
<picture/27.png, id=571, 618.31pt x 1109.14375pt>
File: picture/27.png Graphic file (type png)
<use picture/27.png>
Package pdftex.def Info: picture/27.png used on input line 733.
(pdftex.def) Requested size: 204.85846pt x 367.47404pt.
<picture/28.png, id=576, 618.31pt x 999.735pt>
<picture/28.png, id=572, 618.31pt x 999.735pt>
File: picture/28.png Graphic file (type png)
<use picture/28.png>
Package pdftex.def Info: picture/28.png used on input line 738.
(pdftex.def) Requested size: 204.85846pt x 331.22548pt.
[34 <./picture/27.png> <./picture/28.png>]
<picture/29.png, id=582, 612.2875pt x 958.58125pt>
<picture/29.png, id=578, 612.2875pt x 958.58125pt>
File: picture/29.png Graphic file (type png)
<use picture/29.png>
Package pdftex.def Info: picture/29.png used on input line 751.
(pdftex.def) Requested size: 318.66948pt x 498.90393pt.
[35 <./picture/29.png>]
<picture/30.png, id=589, 632.3625pt x 985.6825pt>
<picture/30.png, id=585, 632.3625pt x 985.6825pt>
File: picture/30.png Graphic file (type png)
<use picture/30.png>
Package pdftex.def Info: picture/30.png used on input line 761.
(pdftex.def) Requested size: 318.66948pt x 496.72043pt.
[36 <./picture/30.png>]
<picture/31.png, id=595, 362.35374pt x 156.585pt>
<picture/31.png, id=591, 362.35374pt x 156.585pt>
File: picture/31.png Graphic file (type png)
<use picture/31.png>
Package pdftex.def Info: picture/31.png used on input line 773.
(pdftex.def) Requested size: 318.66948pt x 137.7092pt.
<picture/32.png, id=596, 332.24126pt x 142.5325pt>
<picture/32.png, id=592, 332.24126pt x 142.5325pt>
File: picture/32.png Graphic file (type png)
<use picture/32.png>
Package pdftex.def Info: picture/32.png used on input line 778.
(pdftex.def) Requested size: 318.66948pt x 136.7187pt.
<picture/33.png, id=597, 359.3425pt x 145.54375pt>
<picture/33.png, id=593, 359.3425pt x 145.54375pt>
File: picture/33.png Graphic file (type png)
<use picture/33.png>
Package pdftex.def Info: picture/33.png used on input line 783.
(pdftex.def) Requested size: 318.66948pt x 129.08046pt.
<picture/34.png, id=598, 368.37625pt x 154.5775pt>
<picture/34.png, id=594, 368.37625pt x 154.5775pt>
File: picture/34.png Graphic file (type png)
<use picture/34.png>
Package pdftex.def Info: picture/34.png used on input line 788.
(pdftex.def) Requested size: 318.66948pt x 133.71947pt.
<picture/35.png, id=599, 364.36125pt x 154.5775pt>
<picture/35.png, id=595, 364.36125pt x 154.5775pt>
File: picture/35.png Graphic file (type png)
<use picture/35.png>
Package pdftex.def Info: picture/35.png used on input line 793.
(pdftex.def) Requested size: 318.66948pt x 135.19835pt.
[37 <./picture/31.png> <./picture/32.png> <./picture/33.png>] [38 <./picture/34.png> <./picture/35.png>]
<picture/36.png, id=614, 620.3175pt x 487.8225pt>
<picture/36.png, id=610, 620.3175pt x 487.8225pt>
File: picture/36.png Graphic file (type png)
<use picture/36.png>
Package pdftex.def Info: picture/36.png used on input line 804.
(pdftex.def) Requested size: 318.66948pt x 250.6024pt.
[39 <./picture/36.png>]
<picture/37.png, id=620, 635.37375pt x 1105.12875pt>
<picture/37.png, id=616, 635.37375pt x 1105.12875pt>
File: picture/37.png Graphic file (type png)
<use picture/37.png>
Package pdftex.def Info: picture/37.png used on input line 816.
(pdftex.def) Requested size: 204.85846pt x 356.31276pt.
<picture/38.png, id=621, 642.4pt x 1075.01625pt>
<picture/38.png, id=617, 642.4pt x 1075.01625pt>
File: picture/38.png Graphic file (type png)
<use picture/38.png>
Package pdftex.def Info: picture/38.png used on input line 821.
(pdftex.def) Requested size: 204.85846pt x 342.81479pt.
[40 <./picture/37.png> <./picture/38.png>]
<picture/39.png, id=629, 603.25375pt x 1054.94125pt>
<picture/39.png, id=625, 603.25375pt x 1054.94125pt>
File: picture/39.png Graphic file (type png)
<use picture/39.png>
Package pdftex.def Info: picture/39.png used on input line 832.
(pdftex.def) Requested size: 204.85846pt x 358.24066pt.
<picture/40.png, id=630, 635.37375pt x 1050.92625pt>
<picture/40.png, id=626, 635.37375pt x 1050.92625pt>
File: picture/40.png Graphic file (type png)
<use picture/40.png>
Package pdftex.def Info: picture/40.png used on input line 837.
(pdftex.def) Requested size: 204.85846pt x 338.83693pt.
[41 <./picture/39.png> <./picture/40.png>]
<picture/41.png, id=637, 638.385pt x 1041.8925pt>
<picture/41.png, id=633, 638.385pt x 1041.8925pt>
File: picture/41.png Graphic file (type png)
<use picture/41.png>
Package pdftex.def Info: picture/41.png used on input line 858.
(pdftex.def) Requested size: 204.85846pt x 334.3345pt.
<picture/42.png, id=638, 650.43pt x 1075.01625pt>
<picture/42.png, id=634, 650.43pt x 1075.01625pt>
File: picture/42.png Graphic file (type png)
<use picture/42.png>
Package pdftex.def Info: picture/42.png used on input line 863.
@ -1011,32 +1011,22 @@ Package pdftex.def Info: picture/42.png used on input line 877.
LaTeX2e <2023-11-01> patch level 1
L3 programming layer <2022/07/14>
***********
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
Package rerunfilecheck Info: File `小米便签泛读、标注和维护报告文档.out' has not changed.
(rerunfilecheck) Checksum: C0C02F4C440A828FECC3B85B47101BD2;3495.
)
Here is how much of TeX's memory you used:
17509 strings out of 476065
296031 string characters out of 5792786
17507 strings out of 476065
295993 string characters out of 5792786
2030190 words of memory out of 5000000
38833 multiletter control sequences out of 15000+600000
644401 words of font info for 350 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
80i,9n,83p,809b,619s stack positions out of 10000i,1000n,20000p,200000b,200000s
pdfTeX warning (dest): name{subsubsection.1.3.2} has been referenced but does not exist, replaced by a fixed one
pdfTeX warning (dest): name{subsubsection.1.3.1} has been referenced but does not exist, replaced by a fixed one
<c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simsun.ttc><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/Windows/Fonts/simhei.ttf><c:/texlive/2024/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb><c:/texlive/2024/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb><c:/texlive/2024/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb><c:/texlive/2024/texmf-dist/fonts/type1/public/cm-super/sfrm1200.pfb>
Output written on 小米便签泛读、标注和维护报告文档.pdf (44 pages, 6624327 bytes).
Output written on 小米便签泛读、标注和维护报告文档.pdf (44 pages, 6624150 bytes).
PDF statistics:
1076 PDF objects out of 1200 (max. 8388607)
770 compressed objects within 8 object streams
143 named destinations out of 1000 (max. 500000)
1072 PDF objects out of 1200 (max. 8388607)
766 compressed objects within 8 object streams
141 named destinations out of 1000 (max. 500000)
748 words of extra memory for PDF output out of 10000 (max. 10000000)

@ -109,13 +109,13 @@ public class NoteEditText extends androidx.appcompat.widget.AppCompatEditText {
private PopupWindow mFormatToolbar;
private View mFormatToolbarView;
private PopupWindow mSearchToolbar;
private View mSearchToolbarView;
private EditText mSearchEditText;
private List<Integer> mSearchResults = new ArrayList<>();
private int mCurrentSearchIndex = -1;
private BackgroundColorSpan mSearchHighlightSpan;
private static final int SEARCH_HIGHLIGHT_COLOR = Color.YELLOW;
private PopupWindow mSearchToolbar;//定义搜索工具栏
private View mSearchToolbarView;//定义搜索工具栏视图
private EditText mSearchEditText;//定义搜索编辑框
private List<Integer> mSearchResults = new ArrayList<>();//定义搜索结果列表
private int mCurrentSearchIndex = -1;//定义当前搜索索引
private BackgroundColorSpan mSearchHighlightSpan;//定义搜索高亮span
private static final int SEARCH_HIGHLIGHT_COLOR = Color.YELLOW;//定义搜索高亮颜色
private ImageButton mSearchButton; // 添加搜索按钮成员变量
@ -515,29 +515,47 @@ public class NoteEditText extends androidx.appcompat.widget.AppCompatEditText {
);
}
/**
*
*/
public void initSearchButton(View parentView) {
mSearchButton = parentView.findViewById(R.id.btn_search);
if (mSearchButton != null) {
mSearchButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
showSearchToolbar();
}
});
}
}
/**
*
*/
public void showSearchToolbar() {
//检查搜索工具栏是否初始化
if (mSearchToolbar == null) {
// 初始化搜索工具栏视图
mSearchToolbarView = LayoutInflater.from(getContext())
.inflate(R.layout.search_toolbar, null);
mSearchToolbarView = LayoutInflater.from(getContext())//LayoutInflater用于将布局文件转换为View对象,getContext()获取上下文
.inflate(R.layout.search_toolbar, null);//.inflate方法用于加载指定的布局文件这里是R.layout.search_toolbarnull表示不指定父视图
mSearchEditText = (EditText) mSearchToolbarView.findViewById(R.id.search_edit_text);
mSearchEditText.setHint("请输入搜索内容");
mSearchEditText.setSingleLine(true);
mSearchEditText = (EditText) mSearchToolbarView.findViewById(R.id.search_edit_text);//从mSearchToolbarView中查找ID为search_edit_text的EditText视图并将其引用赋值给mSearchEditText。这样后续代码就可以通过mSearchEditText来访问和操作这个输入框例如设置提示文本、获取用户输入等。
mSearchEditText.setHint("请输入搜索内容");//提示用户输入搜索内容
mSearchEditText.setSingleLine(true);//设置单行输入
// 添加取消按钮点击事件
Button btnCancel = (Button) mSearchToolbarView.findViewById(R.id.btn_search_cancel);
btnCancel.setOnClickListener(new OnClickListener() {
btnCancel.setOnClickListener(new OnClickListener() {//setOnclickListener用于设置按钮的点击事件监听器。当点击这个按钮是时会触发onClick中的方法。
@Override
public void onClick(View v) {
// 清除高亮并隐藏搜索工具栏
clearSearchHighlights();
hideSearchToolbar();
clearSearchHighlights();//自定义的方法
hideSearchToolbar();//自定义的方法
// 隐藏键盘
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
//InputMethodManager是用于管理输入法服务的类hideSoftInputFromWindow方法用于隐藏软键盘
if (imm != null) {
imm.hideSoftInputFromWindow(mSearchEditText.getWindowToken(), 0);
}
@ -548,10 +566,10 @@ public class NoteEditText extends androidx.appcompat.widget.AppCompatEditText {
Button btnConfirm = (Button) mSearchToolbarView.findViewById(R.id.btn_search_confirm);
btnConfirm.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
String searchText = mSearchEditText.getText().toString();
public void onClick(View v) { //View v是被点击的视图对象这里是确认按钮。可以通过这个参数获取被点击的视图的相关信息。
String searchText = mSearchEditText.getText().toString(); //getText()方法返回一个Editable对象表示当前输入框中的文本内容。toString()方法将Editable对象转换为String类型以便后续处理。
if (!TextUtils.isEmpty(searchText)) {
performSearch(searchText);
performSearch(searchText);//performSearch方法会在文本中查找匹配项并高亮显示。
}
// 隐藏键盘
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
@ -563,10 +581,10 @@ public class NoteEditText extends androidx.appcompat.widget.AppCompatEditText {
// 创建PopupWindow
mSearchToolbar = new PopupWindow(
mSearchToolbarView,
LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT,
true
mSearchToolbarView,//使用刚刚加载的搜索栏工具视图
LinearLayout.LayoutParams.MATCH_PARENT,//宽度设置
LinearLayout.LayoutParams.WRAP_CONTENT,//高度设置
true//可触摸
);
// 设置PopupWindow属性
@ -585,10 +603,10 @@ public class NoteEditText extends androidx.appcompat.widget.AppCompatEditText {
// 自动显示键盘并聚焦到搜索框
if (mSearchEditText != null) {
mSearchEditText.post(new Runnable() {
mSearchEditText.post(new Runnable() { //post方法用于将一个Runnable对象添加到消息队列中以便在UI线程中执行。这样可以确保在当前视图更新后再执行后续操作。
@Override
public void run() {
mSearchEditText.requestFocus();
public void run() { //run方法是Runnable接口中的一个抽象方法当post方法被调用时这个方法会被执行。
mSearchEditText.requestFocus();//requestFocus()方法用于请求焦点,使输入框获得焦点,以便用户可以开始输入。
InputMethodManager imm = (InputMethodManager) getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm != null) {
imm.showSoftInput(mSearchEditText, InputMethodManager.SHOW_IMPLICIT);
@ -614,23 +632,24 @@ public class NoteEditText extends androidx.appcompat.widget.AppCompatEditText {
private void performSearch(String searchText) {
clearSearchHighlights();
//使用TextUtils.isEmpty()检查搜索文本是否为空。如果为空,则直接返回,不执行后续搜索操作。
if (TextUtils.isEmpty(searchText)) {
return;
}
Editable editable = getText();
String content = editable.toString().toLowerCase();
searchText = searchText.toLowerCase();
Editable editable = getText(); //获取输入框的内容
String content = editable.toString().toLowerCase();//将输入框的内容转换为小写,以便进行搜索。
searchText = searchText.toLowerCase();//将搜索文本转换为小写,以便进行搜索。
int index = content.indexOf(searchText);
boolean found = false;
int index = content.indexOf(searchText);//使用indexOf()方法查找搜索文本在内容中的位置。如果找到,返回匹配项的起始索引;如果未找到,返回-1。
boolean found = false;//初始化一个布尔变量found用于标记是否找到匹配项。
// 高亮所有匹配项
while (index != -1) {
found = true;
// 使用更明显的高亮颜色
BackgroundColorSpan highlightSpan = new BackgroundColorSpan(Color.argb(100, 255, 255, 0));
editable.setSpan(
editable.setSpan( //使用setSpan()方法将高亮效果应用到文本中,指定高亮的起始和结束位置。
highlightSpan,
index,
index + searchText.length(),
@ -641,7 +660,8 @@ public class NoteEditText extends androidx.appcompat.widget.AppCompatEditText {
index = content.indexOf(searchText, index + 1);
}
if (found) {
//获取第一个匹配项的位置获取文本的布局计算匹配项所在行的顶部y坐标并滚动到该位置。
if (found) {
// 跳转到第一个匹配位置
index = content.indexOf(searchText);
Layout layout = getLayout();
@ -664,25 +684,13 @@ public class NoteEditText extends androidx.appcompat.widget.AppCompatEditText {
*/
private void clearSearchHighlights() {
Editable editable = getText();
//getSpans(int start, int end, Class<T> type)方法用于获取指定范围内的所有Span对象。在这里start为0end为文本的长度表示获取整个文本中的所有BackgroundColorSpan。
BackgroundColorSpan[] spans = editable.getSpans(0, editable.length(), BackgroundColorSpan.class);
for (BackgroundColorSpan span : spans) {
editable.removeSpan(span);
editable.removeSpan(span); //removeSpan(Span what)方法用于从Editable对象中移除指定的Span。在这里移除每个遍历到的高亮Span从而清除文本中的高亮效果。
}
}
/**
*
*/
public void initSearchButton(View parentView) {
mSearchButton = parentView.findViewById(R.id.btn_search);
if (mSearchButton != null) {
mSearchButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
showSearchToolbar();
}
});
}
}
}

Loading…
Cancel
Save