Commit graph

245 commits

Author SHA1 Message Date
shenleban tongying 76aaed116b
clean: delete gddebug 2024-11-21 12:17:03 -05:00
shenleban tongying 0680edd1e9
clean: delete unused QSemaphore and do a header cleanup
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-21 13:06:17 +00:00
shenleban tongying d3700f2926
refactor: move transliteration code to src/dict/transliteration
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-21 07:21:57 +00:00
shenleban tongying f2ce85cda2
clean: remove duplicated getName overrides
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-20 07:50:43 -05:00
atauzki 9c46e5c317
fix: wrong use of QBtyeArrayView::compare (#1971)
* fix wrong use of `QBtyeArrayView::compare`

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-20 20:02:36 +08:00
shenleban tongying 5b9a1611ff
clean: delete stub_msvc.h 2024-11-20 05:27:01 -05:00
shenleban tongying 112874b0e3
clean: unify a common idx file read pattern uint32_t size + data
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-20 03:22:08 -05:00
shenleban tongying fa9ad2fdf7
clean: delete useless fopen style mode char* API from File::Index
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-20 03:56:23 +00:00
shenleban tongying 8f42e2e073
refactor: port StarDict -> Ifo away from File::Index 2024-11-19 22:39:36 -05:00
shenleban tongying c892083b00
fix: stardict format's description HTML display (.ifo file) 2024-11-20 02:30:17 +00:00
xiaoyifang 808d857602
fix: [dictserver] some word does not got displayed (#1958)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
* fix: [dictserver] some word does not got displayed


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-17 01:19:07 +00:00
shenleban tongying c5d682c993
clean: fix some issues found by the code analysis of Visual Studio
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
2024-11-14 12:24:46 +00:00
shenleban tongying beef6dd138 clean: delete most Qt5 & <=6.3 conditional compiled code (QT_VERSION)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-14 00:07:15 -05:00
shenleban tongying 6865b02547 fix: a DICT crash caused by string out of bound access
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-13 17:18:04 -05:00
shenleban tongying c8af0450f1 clean: remove redundant gd::toWString 2024-11-12 19:32:13 -05:00
shenleban tongying 8fd5b37335 clean: remove unused DEF_EX
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-12 01:29:12 -05:00
shenleban tongying d4db51f278 opt: mdx -> avoid duplicated Adler-32 checksum in zlib decompression 2024-11-10 22:32:22 -05:00
shenleban tongying c864a9a897
clean: remaning deprecated QCryptographicHash::addData usages 2024-11-07 02:05:54 -05:00
shenleban tongying 618310f772
clean: just use #pragma once
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-06 22:53:04 -05:00
shenleban tongying d15081e723 clean: apply clang-tidy's modernize-use-using (replace most typedef) 2024-11-06 00:48:35 -05:00
shenleban tongying 6efdb09b1a clean: add override to satisfy clang's Winconsistent-missing-override
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
2024-11-05 17:27:15 -05:00
xiaoyifang 39aef4c4de
opt: extract GDWORD replace logic (#1889)
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
* opt: extract GDWORD replace logic


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-02 20:18:11 +08:00
xiaoyifang b7406e0f6f
opt: hide website [as link] column (#1893)
* opt: hide the [As link] column
2024-11-02 20:14:08 +08:00
xiaoyifang 3909b59d9f
opt: refactor code in articleview (#1888)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
refactor code 

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-11-01 18:02:06 +08:00
YiFang Xiao 2ca5568b84 fix: [mdx] use file name as dictionary name when title has not been set 2024-10-28 00:04:53 +08:00
alex4814 7229faeec7
fix: default content directory in portable mode (#1872)
* fix: default `content` directory in portable mode

* [autofix.ci] apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-26 19:29:39 +08:00
xiaoyifang 939e786331
opt: [mdx]js script with defer attribute (#1869)
* fix: [mdx] dictionary script element with defer
2024-10-26 19:28:16 +08:00
xiaoyifang 01b9814760
opt: rewrite the logic of determine the existence of audio link (#1860)
* opt: rewrite the logic of determine the existence of audio link



---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-24 13:32:21 +00:00
xiaoyifang e749a6077f
fix: disable anchor default behavior (#1857)
* fix: prevent anchor link default behavior (in mdx dictionary)
2024-10-24 21:05:59 +08:00
xiaoyifang 66a45f975e
opt:optimize the openLink method (#1853)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
* opt: optimize the resourcedownload logic


---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-23 21:29:28 +08:00
Xiao Yi Fang 389471f5fa opt: remove unused parameter 2024-10-22 18:06:43 +08:00
xiaoyifang 60adc6ef75
opt: remove audio search logic in the current group (#1851)
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run
* opt: remove audio search logic in the current group
2024-10-22 14:15:17 +08:00
shenleban tongying 9f13188973
clean: simplify loadDictionaries & Initializing dialog's showInitialy parameter (#1833) 2024-10-17 23:08:20 -04:00
shenleban tongying 40670d8197
feat: decode program dicts as UTF-8 instead of local8bit (#1821)
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
2024-10-12 22:05:38 -04:00
shenleban tongying a11c9e3aec clean: mass apply clang-tidy's readability-braces-around-statements 2024-10-10 03:21:27 -04:00
shenleban tongying 94ea6c570c clean: deprecated QCryptographicHash::addData 2024-10-06 17:24:36 -04:00
shenleban tongying 997f24d62f fix: dictd's description display (00databaseinfo) 2024-10-06 17:20:12 -04:00
shenleban tongying 1c2f93e393
clean: port DSL encoding guessing away from QTextCodec (#1799) 2024-10-06 15:59:07 -04:00
shenleban tongying 58f346f23e
fix: mark all Idxheader packed explicitly
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
2024-09-25 06:09:01 -04:00
shenleban tongying 2a918d5fdd
refactor: reorganize dictionary processing related code 2024-09-24 21:29:59 -04:00
shenleban tongying 5e62b1c567
fix: consider devicePixelRatio when scaling icons (#1751) 2024-09-09 20:19:56 +00:00
Konstantin aaaeb585b6
feature: High-quality dictionary icons in toolbar (#1750)
* better procedure of image scaling and size choosing
* allow user to set toolbar icon size via qt style sheet

---------

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-09-09 14:48:33 -04:00
xiaoyifang c599bbfb73
Merge pull request #1743 from shenlebantongying/feat/program-stdin-utf8
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
deploy_website / deploy (push) Has been cancelled
feat: write word to Program dictionary's stdin in UTF-8 instead of local 8 bit
2024-09-04 08:48:28 +08:00
shenleban tongying 05c1c1f927 feat: write word to Program dictionary's stdin in UTF-8 instead of local 8 bit 2024-09-03 17:09:34 -04:00
shenleban tongying 0a5827fd20 opt: remove parsecmdline.cc by using QProcess::splitCommand 2024-09-03 12:54:50 -04:00
shenleban tongying 44853544f8 clean: replace QVector & QPair in headers 2024-09-01 20:09:22 -04:00
shenleban tongying 3273f39dd7 clean: replace removed Qt5/QList and QPair 2024-09-01 19:45:06 -04:00
shenleban tongying ac43018f68
clean: port away from QTextCodec in slob.cc 2024-08-30 04:09:05 -04:00
shenleban tongying 5cdac6be4d fix: slob description html display
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
2024-08-28 22:21:39 -04:00
xiaoyifang fc3ea0045e
opt: remove fulltext unused logic (#1733)
* opt: remove fulltext unused logic

the firstIteration is not used any more
2024-08-24 07:45:45 +08:00