Commit Graph

72 Commits

Author SHA1 Message Date
Nikola Kotur
ca660f3b55 [exporter] support multiple authors in Nextcloud (#13005)
Some checks are pending
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (10.15, 13, x86-64, 15.2) (push) Waiting to run
macos / macOS ${{ matrix.image }} ${{ matrix.platform }} 🔨${{ matrix.xcode_version }} 🎯${{ matrix.deployment_target }} (11.0, 14, ARM64, 15.4) (push) Waiting to run
Fixes #12821.
2025-01-06 19:40:35 +01:00
Frans de Jonge
a94a2e07ce [lang] Exporter → Nextcloud: use proper arrow (#12970) 2024-12-31 11:44:26 +01:00
Martín Fernández
e503cc4b9c add provider module (#12641)
* implements a Provider singleton, to be used by thirdparty plugins
* exporter: support for thirdparty providers
* splits plugin loading into two steps: discovery and load
  1. get a list of all candidate plugins to load for the different paths
  2. sort providers before on the rest of them and try to load them
2024-12-18 19:40:22 +01:00
Martín Fernández
a43c9ab535 [exporter] drop unsupported targets: flomo, memos (#12808) 2024-12-06 21:30:18 +01:00
Nikola Kotur
7c166a294e Add Nextcloud Notes to exporter plugin (#12301) 2024-11-08 19:29:36 +01:00
Martín Fernández
f34f9207e9 exporter: add deprecation notice for unmaintained targets (#12620) 2024-10-23 10:44:42 +02:00
Frans de Jonge
706ab3bdfe [plugin] Exporter: fix typo (#12592)
Fixes #12591.
2024-10-04 11:27:05 +02:00
hius07
cb84dbd552 Exporter: export to book folder, register to Dispatcher (#12569) 2024-10-01 17:08:41 +03:00
bitterlox
491e24ea25 Fix Joplin export (#12446)
turn highlight & notes table into string before sending to joplin
2024-09-02 10:53:07 +02:00
hius07
49e885321a Exporter: choose highlight styles to be exported (#12431) 2024-08-31 19:28:48 +03:00
hius07
a24bb70066 Annotations: fix exporting (#12261) 2024-08-01 13:14:46 +03:00
hius07
8cb221c6c6 Annotations: pageno honors reference pages and hidden flows (#12214) 2024-07-24 18:35:48 +03:00
Martín Fernández
4f75e41636 exporter: fix remaining OOM (#12126) 2024-07-03 21:55:42 +02:00
Arpan Ghosh
e88bfbed97 [plugin] Exporter: include book author name in myclippings export format (#12106) 2024-06-28 14:19:08 +02:00
Mochitto
138e26a4fc [plugin] Exporter: solved my_clippings OOM (#12107)
Closes #10745.
2024-06-28 12:03:54 +02:00
Piotrek Marciniak
9b1a21ef82 Export highlights: empty annotations as nil instead of empty string (#11912)
Fixes Readwise exports
2024-05-27 19:18:11 +02:00
hius07
d82815952e Annotations, part 1 (#11563)
New format to handle annotations (page bookmarks, highlights, notes) and store them in the book metadata files.
2024-05-03 09:08:57 +03:00
lbesnard
5a3f73766c Exporter: memos, replace space with underscore for # tag creation (#11107)
Creating tags on memos looked like "#This is a book title" meaning only "#This" would become a Tag. Replacing spaces with underscore to be more usable so that the following tag would be created "#This_is_a_book_title"
2024-01-10 20:25:16 +01:00
mergen3107
9ba66ac382 Exporter - fix android shares (#11259) 2023-12-24 17:17:46 +01:00
hius07
f765fe3070 Screenshot: set as book custom cover (#11227) 2023-12-16 10:36:57 +02:00
Ben Bell
f92c0eae3b Exporter: fix XMNote export, add author field (#11134)
Optimize #11087 :

1. In `isReadyToExport`, check if the ip is set. If not, then the user cannot enable xmnote export.
2. Add author field in highlights.
2023-11-20 10:53:19 +01:00
WangKe
dea94026f1 Exporter: add XMNote export (#11087) 2023-11-19 10:32:27 +01:00
Frans de Jonge
9e82761c45 [lang] Exporter: minor stylistic changes to Memos capitalization and dialog titles (#11032) 2023-10-20 22:15:06 +02:00
Frans de Jonge
edf9798bb7 [lang] Exporter: add translator's note about Flomo (#11031) 2023-10-20 22:08:33 +02:00
夏鲁豫
ff6ee69753 Exporter: fix memos export, add flomo export (#10988) 2023-10-12 14:54:31 +02:00
hius07
cbcf03b1af Exporter: custom metadata (#10874) 2023-09-05 07:42:18 +03:00
hius07
f4f5af5f2d Exporter: fix order for Readwise (#10824)
Exported highlights are good sorted by position, page numbers could be wrong.
Closes #10817.

For reference: https://readwise.io/api_deets
2023-08-17 15:22:47 +02:00
melyux
493a60faef Exporter: Replace newlines with commas in HTML, Readwise (#10788)
Resolves #10755.
2023-08-06 18:19:19 +02:00
hius07
7164bc2bd9 Exporter: fixes (#10765) 2023-08-01 08:46:38 +03:00
Frans de Jonge
710614752d [doc, plugin] Exporter: manually specify module name (#10465)
Follow-up to <https://github.com/koreader/koreader/pull/10464>.
2023-05-19 21:43:12 +02:00
hius07
09425ea729 Exporter: fix comment for ldoc (#10464) 2023-05-19 21:26:07 +03:00
hius07
3d5775241d Exporter: selected files (#10453)
Export highlights for selected files.
Having a button "Select all files in folder", it is easy to export the whole folder.
So, closes #10402.

To keep even number of buttons, added a feature "Show selected files list". May be useful to check selections before an operation. Just a sorted list, no titlebar or popup menu, tapping a file jumps to its folder.
2023-05-19 09:55:49 +02:00
hius07
7ab832081b [plugin] Exporter: choose folder (#10448)
Default is still koreader/clipboard.
2023-05-18 22:11:35 +02:00
夏鲁豫
4c9231a8f8 [plugin] Exporter: add memos export (#10411)
Add an export method for memos, which originates from [flomo](https://flomoapp.com/) and now has an open-source self-deployment solution:[memos](https://github.com/usememos/memos)
2023-05-18 13:10:09 +02:00
hius07
8665929a5e Exporter: correct access to doc settings (#10407) 2023-05-10 13:41:23 +03:00
Frans de Jonge
3da24046c0 [plugin] Exporter: avoid passing newlines to translators (#10400) 2023-05-07 18:36:09 +02:00
Mochitto
0db042fd0c Fix crash exporting to Markdown with missing authors (#10278) 2023-04-29 01:22:47 +02:00
Mochitto
53079441f9 Fix: exporting all notes and single doc now both use metadata for author and title (#10280) 2023-04-29 01:21:00 +02:00
Mochitto
c0615c3bda Feature: Export to kindle's myClippings (#10263)
* Feature: Added the possibility to export using kindle's myClippings formatting
* Fix: files that have the same extension don't collide anymore
2023-04-29 01:19:13 +02:00
Mochitto
d39cc78f9c [plugin] Exporter: use util.getSafeFilename() to remove illegal characters from output filename (#10282)
Fixes #10281.
2023-04-01 23:32:30 +02:00
Mochitto
3a894f954c Fix: Updated legacy directory, which crashed the program (#10260)
Fixes #10259
2023-03-29 15:19:49 +02:00
Frans de Jonge
03a9551565 [i18n, plugin] Exporter: fix some incorrect uses of translation (#10159)
Fixes #9231.
2023-02-25 00:05:26 +01:00
hius07
d1081fa982 Docsettings: add centralized sdr storage (#10074)
Added an option to choose a new location to save document settings, highlights and bookmarks 
(koreader/docsettings folder).
2023-02-17 08:35:49 +02:00
Utsob Roy
c9007b1e29 Exporter: add seconds in markdown export (#10065) 2023-02-12 23:24:46 +01:00
Utsob Roy
64fefc7a22 Exporter: add highlight markdown style (#9976) 2023-01-23 14:49:11 +01:00
hius07
1b066cf1de Exporter: fix orphan highlights (#9802) 2022-11-18 21:24:55 +02:00
Martín Fernández
9473c70dcc exporter: prevent exporting documents when they're not open (#9753)
Fixes #9740

thanks to @hius07 for the hint!
2022-11-06 11:01:59 +01:00
Martín Fernández
3530aef891 exporter.koplugin: send the right mimetype when sharing text. (#9194)
Add an option to send title too. Currently unused.
2022-10-26 11:18:27 +02:00
sp4ke
f3620b6d1f Exporter plugin: allow adding book md5 checksum when exporting highlights (#9610)
This allows interoperability between different readers who want to
import highlights on different devices/file systems. All that is
needed then to import highlights is to match the local books and
their path based on the checksum.
2022-10-12 23:50:44 +02:00
NiLuJe
fadee1f5dc Clarify our OOP semantics across the codebase (#9586)
Basically:

* Use `extend` for class definitions
* Use `new` for object instantiations

That includes some minor code cleanups along the way:

* Updated `Widget`'s docs to make the semantics clearer.
* Removed `should_restrict_JIT` (it's been dead code since https://github.com/koreader/android-luajit-launcher/pull/283)
* Minor refactoring of LuaSettings/LuaData/LuaDefaults/DocSettings to behave (mostly, they are instantiated via `open` instead of `new`) like everything else and handle inheritance properly (i.e., DocSettings is now a proper LuaSettings subclass).
* Default to `WidgetContainer` instead of `InputContainer` for stuff that doesn't actually setup key/gesture events.
* Ditto for explicit `*Listener` only classes, make sure they're based on `EventListener` instead of something uselessly fancier.
* Unless absolutely necessary, do not store references in class objects, ever; only values. Instead, always store references in instances, to avoid both sneaky inheritance issues, and sneaky GC pinning of stale references.
  * ReaderUI: Fix one such issue with its `active_widgets` array, with critical implications, as it essentially pinned *all* of ReaderUI's modules, including their reference to the `Document` instance (i.e., that was a big-ass leak).
* Terminal: Make sure the shell is killed on plugin teardown.
* InputText: Fix Home/End/Del physical keys to behave sensibly.
* InputContainer/WidgetContainer: If necessary, compute self.dimen at paintTo time (previously, only InputContainers did, which might have had something to do with random widgets unconcerned about input using it as a baseclass instead of WidgetContainer...).
* OverlapGroup: Compute self.dimen at *init* time, because for some reason it needs to do that, but do it directly in OverlapGroup instead of going through a weird WidgetContainer method that it was the sole user of.
* ReaderCropping: Under no circumstances should a Document instance member (here, self.bbox) risk being `nil`ed!
* Kobo: Minor code cleanups.
2022-10-06 02:14:48 +02:00