Commit graph

10719 commits

Author SHA1 Message Date
Wendi Gan 322fd2d54e fix Unicode Normalization: replace NFKC to NFC
Use NFC in copy, makeWord, and export functions, and NFKC for search operations.
NFKC may alter characters when copied or exported. For example ⑥ in pdf will be pasted as 6. So most instances are replaced with NFC.
To simplify matching during search operation, NFKC is used.

BUG: 466521
CCBUG: 473495
2024-05-24 10:02:50 +00:00
David Faure 784c1db9df Simplify PageGroupProxyModel, no need for mixIndex
The parentIndex was always invalid so this would always store
4294967295 as internal ID (and never use it).
2024-05-24 08:30:28 +00:00
David Faure bcbfa0c7ac Annotation tree: preserve expanded state on change
When adding/removing an annotation, the tree would collapse
completely every time, due to the model being fully reset().

Handling row insertion/removal in the proxies would lead to
very complicated code, so instead use KViewStateSerializer to
save/restore the expanded state, based on displayed texts
(e.g. "Page 4 / David Faure").

This required splitting up rebuildIndexes() so we can save on
aboutToBeReset and restore on reset().
2024-05-24 07:15:21 +00:00
l10n daemon script 2578de59e1 GIT_SILENT Sync po/docbooks with svn 2024-05-22 01:25:52 +00:00
l10n daemon script 8c7b7d7e23 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-05-22 01:18:54 +00:00
l10n daemon script 98792fb2b4 GIT_SILENT made messages (after extraction) 2024-05-22 00:38:21 +00:00
l10n daemon script 82fd57be09 GIT_SILENT Sync po/docbooks with svn 2024-05-20 01:23:09 +00:00
l10n daemon script 51a173c8b4 GIT_SILENT made messages (after extraction) 2024-05-17 00:38:00 +00:00
Heiko Becker 34ed45308b GIT_SILENT Update Appstream for new release
(cherry picked from commit 8dcb7568b4)
2024-05-17 00:11:10 +02:00
l10n daemon script 4c328aa098 GIT_SILENT Sync po/docbooks with svn 2024-05-16 01:32:25 +00:00
Pratham Gandhi a475974024 Typo fix for correct doc rendering in form.h 2024-05-13 10:45:23 +00:00
Albert Astals Cid d54c138be8 CI: More 6.6 -> 6.7
GIT_SILENT
2024-05-13 12:42:12 +02:00
Albert Astals Cid ed2bf2b5c4 CI: Qt5 -> Qt6 2024-05-13 12:31:35 +02:00
Albert Astals Cid 316304e038 CI: Use newer image for build_clazy_clang_tidy
GIT_SILENT
2024-05-13 12:29:21 +02:00
l10n daemon script b8438b7cf7 GIT_SILENT made messages (after extraction) 2024-05-13 00:37:52 +00:00
l10n daemon script e27018286b GIT_SILENT Sync po/docbooks with svn 2024-05-12 01:28:13 +00:00
l10n daemon script 1b9c679c1d GIT_SILENT Sync po/docbooks with svn 2024-05-09 01:27:37 +00:00
l10n daemon script 47485f0b3f GIT_SILENT made messages (after extraction) 2024-05-09 00:38:12 +00:00
l10n daemon script 3751ba58d4 GIT_SILENT Sync po/docbooks with svn 2024-05-08 01:28:34 +00:00
l10n daemon script dd827862a7 GIT_SILENT Sync po/docbooks with svn 2024-05-07 01:23:57 +00:00
David Faure 2592879c4a AnnotationModel: don't emit layoutChanged from inside reset
rebuildTree's only caller is notifySetup() which does a reset,
don't emit layoutChanged() between beginResetModel and endResetModel.

Caught by QAbstractItemModelTester (after instanciating one
in the AnnotationModel constructor to debug something else)
2024-05-05 13:32:25 +02:00
l10n daemon script 8733e544e3 GIT_SILENT Sync po/docbooks with svn 2024-05-04 01:31:20 +00:00
l10n daemon script 718269703f SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-05-04 01:20:39 +00:00
l10n daemon script 81bae7f4cd GIT_SILENT made messages (after extraction) 2024-05-04 00:39:00 +00:00
Volker Krause ef3db458df Restore the Android APK build 2024-05-02 15:17:39 +00:00
l10n daemon script 0265ad4bbf GIT_SILENT Sync po/docbooks with svn 2024-04-30 01:23:15 +00:00
Volker Krause 2fa738d949 Unify usage of WITH_K7ZIP
We should either check its value or its definedness, not mix both.
Standardize on the former.

Fixes the build without LZMA support in KArchive.
2024-04-27 15:19:03 +02:00
Sune Vuorela 803d6e04d5 Xml lint include certain rc files 2024-04-25 09:00:29 +00:00
l10n daemon script 36020898d4 GIT_SILENT Sync po/docbooks with svn 2024-04-25 01:20:28 +00:00
l10n daemon script 6f39a9d455 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-04-25 01:15:35 +00:00
l10n daemon script a49d4173b8 GIT_SILENT made messages (after extraction) 2024-04-25 00:37:34 +00:00
l10n daemon script 95a171b556 GIT_SILENT Sync po/docbooks with svn 2024-04-24 01:27:08 +00:00
Sune Vuorela e4166fb773 Test xml lint thingie on CI run 2024-04-23 10:52:28 +00:00
Albert Astals Cid 460a5c112c Fix sidebar status not being respected when opening the first file
BUGS: 484938
2024-04-23 09:11:24 +00:00
Albert Astals Cid 8256832e2d we want to create appx packages for windows 2024-04-23 10:38:28 +02:00
l10n daemon script 9280a26688 GIT_SILENT Sync po/docbooks with svn 2024-04-23 01:26:19 +00:00
bob sayshilol 0bc8c76c3c Fix strikethrough rendering in markdown converter
Previously the `<del>` tag that Discount emits would be removed by Qt
since it's not in the subset of HTML that it understands. It does know
about `<s>` though, so replace `<del>` with `<s>` to render strikethroughs
correctly.

Note that I couldn't get Okular to build locally (PEBCAK issue) so I split out this file to debug it. I've tested against http://daringfireball.net/projects/downloads/MarkdownTest_1.0.zip and ff866f73d4/tests/data and the only difference is that trailing whitespace is now trimmed from the end of a line:
```diff
8c8
< <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Dashes:</p>
---
> <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Dashes: </p>
```
A quick search suggests this isn't a problem though https://stackoverflow.com/a/27026403:
> Within block tags (i.e. `<p>`, `<h1>`, `<div>`, ...) spaces as well as line breaks at the beginning or end of the tags should always be ignored (i.e. `<p>test</p>` should look the same as `<p> test </p>`).

I also tried https://doc.qt.io/qt-5/qtextdocument.html#setMarkdown which solves the strikethrough problem, though there are many visible differences with that approach. Most notably, everything is squashed together and code blocks lose their formatting.
2024-04-22 17:00:02 +00:00
l10n daemon script ee947e2783 GIT_SILENT Sync po/docbooks with svn 2024-04-22 01:25:40 +00:00
Max Buchholz b7c5f14021 Complement org.kde.okular.kirigami.appdata.xml
Based on what is already available in the [LinuxPhoneApps listing](https://linuxphoneapps.org/apps/org.kde.okular.kirigami.desktop/) I added some missing metainfo:
- Adds vcs-browser url
- Adds developer information
- Adds categories
2024-04-21 15:17:30 +00:00
Albert Astals Cid 6439552170 GIT_SILENT Upgrade release service version to 24.07.70. 2024-04-21 12:11:44 +02:00
l10n daemon script 193a016b66 GIT_SILENT Sync po/docbooks with svn 2024-04-21 01:21:33 +00:00
Sune Vuorela 460cf6123e Remove CHM generator; disabled for 4 months 2024-04-20 15:58:58 +00:00
Andras Mantia 4435325e5a Load certificates delayed
Showing a dialog from a Paint event handler is something Qt doesn't like.

BUG: 472356
2024-04-20 13:44:54 +00:00
l10n daemon script ac1f1c964d GIT_SILENT Sync po/docbooks with svn 2024-04-20 01:21:33 +00:00
l10n daemon script 5221c3716c GIT_SILENT Sync po/docbooks with svn 2024-04-19 01:23:38 +00:00
Nicolas Fella 3a6988d9ee Add unit test for AFNumber_Format
Based on work from João Netto

Co-authored-by: João Netto <joaonetto901@gmail.com>
2024-04-17 06:54:22 +00:00
l10n daemon script bf39c06a84 GIT_SILENT Sync po/docbooks with svn 2024-04-17 01:23:22 +00:00
Albert Astals Cid b4f449a3a4 djvu: Remove support for old djvu library version
The previous commit broke compilation but our CI passes, which
means we don't support such an old version anymore
2024-04-17 01:42:11 +02:00
Albert Astals Cid 0c121c0ff8 remove extra ; 2024-04-17 01:41:44 +02:00
Sune Vuorela 4509b7bc42 Various minor fixes
Mostly derived from cppcheck runs
2024-04-16 15:44:19 +02:00