2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00
Commit Graph

62 Commits

Author SHA1 Message Date
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
NiLuJe
62059f8d68
Misc: Get rid of the legacy defaults.lua globals (#9546)
* This removes support for the following deprecated constants: `DTAP_ZONE_FLIPPING`, `DTAP_ZONE_BOOKMARK`, `DCREREADER_CONFIG_DEFAULT_FONT_GAMMA`
* The "Advanced settings" panel now highlights modified values in bold (think about:config in Firefox ;)).
* LuaData: Isolate global table lookup shenanigans, and fix a few issues in unused-in-prod codepaths.
* CodeStyle: Require module locals for Lua/C modules, too.
* ScreenSaver: Actually garbage collect our widget on close (ScreenSaver itself is not an instantiated object).
* DateTimeWidget: Code cleanups to ensure child widgets can be GC'ed.
2022-09-28 01:10:50 +02:00
NiLuJe
83a2965d6b
Misc: Unify error logging on network errors (#9523)
Making sure we get the relevant information in the logs, and that the UI feedback (if any), is meaningful and readable.
2022-09-17 00:08:00 +02:00
Utsob Roy
6e647a6f4d
[plugin] Exporter getTitle Fix fix (#9255)
replaced getTitle with newer parseTitleFromPath

Fixes #9253
2022-06-26 09:27:42 +02:00
Utsob Roy
74ca6fb317
Better meta parsing for exporter (#9220)
* Get title, author and number of pages from document's metadata
* Add exportable_title parsed from document's title, used in export file generation.
* JSON: export number of pages
2022-06-16 13:54:14 +02:00
Martín Fernández
2213e6410f
[plugin] Exporter: fix crash on joplin when token is invalid (#9203)
https://github.com/koreader/koreader/issues/9197#issuecomment-1153129147
2022-06-12 13:12:26 +02:00
Utsob Roy
6918d62bad
Pretty JSON export (#9165) 2022-06-05 16:52:05 +02:00
Utsob Roy
aa4cc6da56
Exporter: fix remote error (#9167) 2022-06-04 22:10:07 +02:00
Utsob Roy
c71167fc6b
[plugin] Exporter: add info messages with status (#9166) 2022-06-04 09:37:26 +02:00
Utsob Roy
71c7a8a042
[Android] Highlights share (#9153) 2022-06-03 19:56:10 +02:00
Utsob Roy
6804b77251
Markdown export (#9076)
Enables users to export markdown locally with some configuration options to allow users to format the output to a certain extent.
2022-05-28 10:32:36 +02:00