antonycorbett / jwlmerge Goto Github PK
View Code? Open in Web Editor NEWUtility to merge jwlibrary backup files
License: MIT License
Utility to merge jwlibrary backup files
License: MIT License
Hi Antony,
after installing .NET I keep getting the message that I need to install it and JWLMerge doesn’t start.
Tested on 2 machines with window 10
Thanks.
Is there any way to tag the imported notes?
For example, you could implement a title line for each note enclosed in {{}}, which could in addition include a comma-separated list of tags? Something like: {{Title|Tag1,Tag2}}
In the past, dragging and dropping the JW Library backup files onto the JWLMerge window has always worked as expected.
Each one appears as a box within the program window, and I could merge them successfully.
However, this latest version appears to be broken on my system.
I cannot drag and drop the JW Library backup files from either my Android phone or my iPad.
Both, the Android and the iPad files consistently cause an error as shown in the attached screenshot.
I can only drag and drop the backup made from the Windows version of JW Library.
Android and iPad JW Library versions are both latest updates, version 12.3.4 (98062)
The Windows JW Library is 12.3.118 (96175)
I've tried dragging the backups onto the JWLMerge window in various orders, (iPad first, phone first, Windows first...), and it makes no difference to the outcome.
I've also tried creating brand new backups in the iPad and the Android devices, just in case they might have been corrupted in some way.
The error message persists.
The error popup claims that details follow, but there's nothing.
I've tried completely uninstalling JWLMerge, including registry entries, and reinstalling. The same issue persists.
Windows10 Home 1909
OS Build 18363.1441
Hello brother Colbett.
I'm having an issue with two Android tablets from two brothers in my congregation. The tablets have been force closing since the new 11.5 version update. I've tried everything but this new version definitely doesn't work so I created a backup file of their notes and rolled back the app to version 11.4.2. However, because of the new v7 database, I can't restore it. I would need to "downgrade" the backup file. Do you have any ideas on how I can do this?
I'm an advanced user so feel free to guide me on how I could do this.
So, I've tried to import some notes on Genesis and the app crashes. I limited to file to only a handful of notes (see attachment), thinking that maybe the file was too large (my Genesis notes are over 2,000 lines).
Any idea what is wrong? Are the notes too long? Do the lines have to have a line-break after x number of characters?
This is my notes file:
[BibleKeySymbol=Rbi8]
[MepsLanguageId=1]
[1:1:1]
Dios
en las Escrituras Hebreas la palabra *’elóh·ah* (dios) tiene dos formas plurales, a saber, *’elo·hím* (dioses) y *’elo·héh* (dioses de); por lo general estas formas plurales aluden a Jehová, y en ese caso se traducen en singular, "Dios"; en *A Dictionary of the Bible*, William Smith dice: "La caprichosa idea de que [*’elo·hím*] se refería a la trinidad de personas en la Deidad difícilmente cuenta ahora con apoyo entre los eruditos. Es o lo que los gramáticos llaman el plural mayestático, o denota la plenitud de fortaleza divina, la suma de los poderes que Dios despliega"; *The American Journal of Semitic Languages and Literatures* dice de *’elo·hím*: "Se construye casi invariablemente con un predicado verbal en singular, y toma un atributo adjetival en singular"; para ilustrar esto, el título *’elo·hím* aparece 35 veces por sí solo en el relato de la creación, y en cada ocasión el verbo que describe lo que Dios dijo e hizo está en singular; por eso, esa revista llega a esta conclusión: "[*’Elo·hím*] tiene que ser explicado más bien como un plural intensivo, que denota grandeza y majestad";
el griego no tiene un ‘plural de majestad o excelencia’; por consiguiente, en Gén 1:1 los traductores de la LXX usaron *ho The·os´* (Dios, en singular) como el equivalente de *’Elo·him´*
[1:1:1]
principio
el universo fue creado mucho antes del primer día
[1:1:2]
la fuerza activa de Dios se movía
los vocablos bíblicos (en griego y hebreo) que se traducen por "espíritu" pueden verterse en otros contextos "viento", "ráfaga", "soplo" y "aliento"; según los lexicógrafos, estos términos originales transmiten la idea de una fuerza dinámica invisible; el espíritu santo, igual que el aire en movimiento, escapa al ojo humano, pero sus efectos son reales y perceptibles;
en 1879, el biblista Charles L. Ives ilustró con maestría la capacidad que Dios tiene de ejercer su poder desde el lugar que ocupa: "Por ejemplo, nosotros decimos: ‘Abre las contraventanas para que entre el sol en la habitación’. No nos referimos al cuerpo celeste, el Sol, sino a la radiación solar, los rayos procedentes del Sol"; así mismo, Dios no tiene que viajar a cada sitio donde va a usar su fuerza activa; sencillamente se vale de su espíritu santo, con el que puede alcanzar hasta los puntos más lejanos de su creación
[1:1:2]
oscuridad
algo, quizá una mezcla de vapor de agua, otros gases y polvo volcánico, debió impedir que la luz del Sol llegara hasta la superficie de la Tierra
[1:1:3]
llegó a haber luz
esta luz provenía del Sol, pero el Sol mismo no podría divisarse a través de la nubosidad; por eso, la luz que llegaba a la Tierra era "luz difusa"; la intensidad de la luz que penetró hasta la superficie terrestre fue aumentando, y ese proceso continuó en el futuro; "gradualmente llegó a" - expresión que refleja con exactitud un estado del verbo hebreo que denota una acción progresiva que tarda un tiempo en completarse; todo el que lea el primer capítulo de Génesis en hebreo puede hallar unas cuarenta veces esta forma, la cual es un factor clave para la comprensión de dicho capítulo; lo que Dios empezó en la tarde figurativa de un período creativo se hizo progresivamente claro o evidente en la mañana de ese "día"; por otra parte, lo que se empezaba en un período no tenía que estar completamente terminado antes de comenzar el siguiente período; así que, el primer día, una luz opaca llegó a la superficie terrestre; la atmósfera de la Tierra debió aclararse en el cuarto "día", de modo que llegaría más luz del Sol y de otros cuerpos celestes a la Tierra
Describe the bug
I have four different devices, three Win10 and one Android 9. All four have current versions of JW Library. The backup file for one of the Win10 devices, "Vision" is not being accepted by JWL. JWL was updated at the date of writing this report. Each Win10 device is up to date with Microsoft updates and have no issues.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To see all four backups indicated in JWL ready to be merged.
Screenshots
Screenshot provided.
Desktop (please complete the following information):
Thank you for considering my problem.
Graham.
Would like to know if there is already a version for Android available or if there are plans / knowledge to do so in future?
My thoughts are that with Virtualbox and Android all 3 Operating systems could be served already today. And maybe it would accelerate a sync function itself in JWL?
If someone knows already other projects who achieve the same as JWLMerge please let me know.
I am also on Twitter with the same nickname.
Hello my brother! Thank you so much for an amazing tool!
Would it be possible to do the same merge function for the playlists in the JW Sign Language app (JWSL)?
They are still .jwlibrary files but instead of Notes, Bookmarks, Underlining, and Tags the JWSL app only has playlists containing media entries with start/stop times and a end of file functionality (continue, stop, freeze, repeat). I've attached an example of an exported file containing 2 such playlists.
JWSL_UserdataBackup_2021-03-25.jwlibrary.txt
I tried importing JWSL into JWLmerge but it threw an error as I'm sure there are some significant differences in the content of the exported files. Just an idea that would probably benefit plenty of those involved in sign language groups and congregations.
Thank you!
Describe the bug
When merging between Windows and Android, following things are lost:
Expected behavior
Until recently the underlining have been merged too.
Version information
After merging two JW Library backup files, it seems that my favorites have a little bug. I am not able to remove a favorite that was added prior to the merge (on any device). Not sure if this is a known issue? Using a windows 10 PC, iPad Pro 5 12.9, iPad Mini 5, iPhone 11 Pro.
Hi,
Thanks for creating this useful application.
Would it be possible to view the notes individually and be able to export them to excel, or also to have a feature wherein we can import specific notes/bookmarks?
For example, a table having the below columns can be designed:
Publication | Chapter | Verse/Para | Note | Tags
Thanks
Dear Brother Corbett,
I Have an issue with the JWLMerge, that i can't drag and drop any .jwlibrary files. old and new files (before and after jw library have 2 new color of highlighters)
please help me.
I am using Win10 64
JW Library 11.5
Thank you in advance
Alfred
Hi Antony!
I'm very happy with your project. Thank you for all the effort on this. It really helped me a lot. That's why I want to create a web version of it (for linux/mac users for ex.) Could you please provide some documentation on CLI and how to use it?
I'm not really C# guy. I've tried to go through code but did not understand how should it work.
I also saw you wanted to add a few new options to CLI. But for this issue I'd just document what you already have, without implementing new functionality.
If you need any help with that, please let me know. I can try to help on my own or find someone who knows C# better than me 🙂
I use JW Library on my Samsung phone (Android 9), Samsung tablet (Android 11) and laptop (Windows 10). On each device, I have configured a different set of Favourites. I have found that once the JWL backup files are in JWL Merge, using the Remove Favourites options worked well (see screenshot below).
However, because the Favourites section of the resulting merge file is blank, when I import the merged file into the JWL app, my Favourites configuration is wiped out.
Add a setting to JWL Merge to remove the Favourites section from the resulting merged file to preventing overwriting the Favourites configuration within the JWL app.
Any other option to prevent the merge file overwriting the Favourites configuration upon restoring the merge file
If I do not use the Remove Favourites function, all the Favourites get merged and I end up with a colossal collection of Favourites across all devices. This undoes the work that I have gone to individualise the Favourites section of the app per device.
Hello, I'm having problems creating backup files using the application. When the program creates the file it no longer exists or is unreadable and shows up in my recent files as having no data. I don't understand why.
I follow the main steps:
Can you help me please? Thank you so much!
Windows 10 version 1809
Lenovo 720 Yoga
Describe the bug
Thanks for this nice software.
when I import a .txt file with Bible notes and choose a tag, this tag is then not associated with any notes in JWL.
To Reproduce
Expected behavior
each note should have the tag chosen when importing
Screenshots
Desktop (please complete the following information):
thank you
When using the Remove Notes by Tag
command, add an option to also remove the tag. (From GW by email, 21/05/21)
Cool idea.
What possibility is there of a similar project where one can import personal notes? Here is what I mean:
I have hundreds of Bible notes (with exact verse, phrase and comment) that are in text files. I would love to have them in the JW Library app, but redoing them one by one would be soooo tedious. I need a tool to import them automatically at the appropriate verse. Is something like that possible?
I have merged 2 jwlibrary files with bookmarks not being present for one of the two. The one with bookmarks was the iPad and the bookmarks for my Bible look like this:
On my Pixel 2 XL, which was the source of the other backup file and where there were no bookmarks for my Bible, this is the result of restoring that merged backup:
So it looks like perhaps the way of calculating the slot number for the bookmarks needs a bit of tweaking as it almost seems random. The slot numbers seem ok in the iPad's backup:
Ein ausstehendes Update (eines älteren Arbeitsheftes-Dez 2019) will sich einfach nicht aktualisieren.
Immer und immer wieder lädt er es herunter. Am Ende steht es aber immer wieder als Update drinnen?
Hat jemand eine Lösung?
Hi.
I have to take many notes in next 2 months because I attend a theocratic school and I think that I can't attach every note where exactly I desire, because I have not a lot of time between one answer and other.
I think that I will create many notes without attaching it to a specific text or paragraph. If I will do it maybe my notes will not be very useful.
My question is:
It's possible to enter in the backup code and insert a part of code to declare the "place" (a Bible text or paragraph of some pubblication...) where I desire to visualize my note?
Thanks a lot
I know this has been requested a couple of times, and closed, however, I've been able to get JWLMerge to run under wine. I created a wiki page with some brief instructions should you care to merge it into your wiki...
They are here: https://github.com/SuperJC710e/JWLMerge/wiki/Running-Under-Wine (This is the URL to clone it: https://github.com/SuperJC710e/JWLMerge.wiki.git )
The full forked repo is here: https://github.com/SuperJC710e/JWLMerge
I think you could use the instructions provided here to pull the changes: https://stackoverflow.com/a/56810747
Dear Anthony. Fantastic work as always.
This is not an issue at all but just an idea that others may find useful. If we could selectively merge notes with only certain tags that would be fantastic.
Feel free to delete as I mentioned this is not a "bug"
Many thanks,
Your brother,
Luke
The program doesn't seem to want to work within the wine environment.....Bummer
328/5000
The files generated by the new version of JW Library (11.5) are not loaded into the program. The files generated by the previous version (11.4.2) work correctly. The problem may be caused by the fact that 2 new colors of highlighters have been added in the new version.
Sorry for my bad English
Thank you!
Thanks for the tool :)
I would like to set something up so my dropbox / onedrive folder account can be monitored and "wait" for new files, it will then process those files into a specified output.
Something like this would be good:
jwlmerge.exe --files="pcFile.jwlibrary,ipadfile.jwlibrary" --output="mergedFile.jwlibrary"
I know this would lack the choosing of options but that could be factored in or just use this when you want a complete merge.
I could then write something to monitor my folder and run the merge automatically.
I have a lot of files that I wanted to merge and it seems that files older than January 2020 don't merge. Is it possible to add or enable capability for older files?
Will not start in Windows 10 Ent 20H2
No window for the app open and no error messages either.
hello antony,
while searching for a solution how to migrate jw library metro app from one windows machine to a different one i found jwlmerge. whenever i am about to try out a new (windows) software first step is to upload the file at virustotal. a quick check brought 4 (not that common known) av-enginges to drop an alarm. so i am a little concerned about installing it. can you comment on this?
thanks a lot and greetings to the uk :-)
peter
Gibt es die Möglichkeit bei einem Gerätewechsel sich den umständlichen Download aller Bücher, Broschüren usw. zu sparen?
Kann man ein bestimmtes Verzeichnis kopieren und JW Library erkennt es und installiert damit auromatisch die bereits installierte Literatur?
Hat jemand schon mal Erfahrungen damit gemacht?
Aktuell mal geht es um ein Windows Gerät. Vielleicht wäre es auch interessant für ein Android oder Apple.
Vielen Dank vorab.
Peter
When attempting to build this project the following output is produced:
Error Unable to find manifest signing certificate in the certificate store. JWLMergeCLI
Warning Unable to find code signing certificate in the current user’s Windows certificate store. To correct this, either disable signing of the ClickOnce manifest or install the certificate into the certificate store. JWLMergeCLI
To get around this I'm having to go into the JWLMergeCLI project properties and uncheck the Sign the ClickOnce manifests option under the Signing tab. So either the certificate needs to be added to the repo or this option needs to be disabled, not sure which route you want to go.
Is the 50-character limit for the titles set in stone (limited by the field size in the JWLibrary file), or is there a possibility you could remove/increase it, perhaps taking every first line as note title?
Hi!
Thank you very much for your hard work in developing and maintaining this app so useful to us!
I would like to know if it would be possible to adapt or create an application that merges the backup files of the JW Library Sign Language. It would be very useful for us!
Thanks for listening!
After updating program (April version) then merging my ios files in JWL on my desktop I uploaded it to icloud
The file does not show up in JW library restore a backup list.
To Reproduce
Steps to reproduce the behavior:
After merging files in windows 10
Expected behavior
Once uploaded to icloud, hit restore a backup in JW library and uploaded file should be present then click it to initiate backup.
Screenshots
Last Merged file named Merge#5 not on list in JW Library
(bottom shows image of file in icloud drive)
Desktop (Lenovo ideapad s145):
Is your feature request related to a problem? Please describe.
If you add a note on a confidential publication, text from the confidential document will be included in the note. If this note is merged although the confidential publication may not be accessed, text can still be read. Selective tags to merge would filter out any notes that have been tagged but this is unlikely to catch everything.
Describe the solution you'd like
Exporting Bible Notes is fantastic. The only notes exported in the Bible itself. If the excel exported could be imported this would enable me to have a backup that only contains notes in my Bible.
Describe alternatives you've considered
Selective tags to merge would work to a certain extent but you would need to have a tag that you would remember to add everytime you make a note in a confidential publication.
Selective publication merges is another possiblilty but I would imagine this far more complex (similar to the other current enhancement request.
Additional context
Add any other context or screenshots about the feature request here.
When highlighting my current study WT on my iPhone and then saving both it and my iPad data files, merging them and then restoring that new singular file, I'm keeping all my notes, and tabs but losing my highlights. Looking back, I see that I've lost a bit of my highlights in my Bible and study publications, but all the person study notes are there.
I'm not using the JW Library Windows app, just between my two devices.
The class InputField
is never instantiated.
To Reproduce
Steps to reproduce the behavior:
InputField
.Expected behavior
I'm not sure what the meaning is of InputField
, but it should not get lost during merging. Some code like this could be added:
result.InputFields.AddRange(ReadAllRows(connection, ReadInputField));
Version
Git ref 2644a34
Thanks for this useful project!
Hello,
Sorry for posting here, but i didn't see where i can pm you personnlay.
I'm wondering what structure are the .jwlibrary files
Maybe you can tell me ? how can i open it, and read it ?
I test your program, it's amazing !
Thanks a lot,
And sorry if it is not the place....
Jordan
Describe the bug
Three files from iPhone 7, iPad pro 10.5 and Windows JWLibrary… did not completely merge apparently...
To Reproduce
Steps to reproduce the behavior:
Expected behavior
expected all three to merge into one file... it shows that is has with merge but tested first on Windows JWLibrary and, for ex: all the highlights from Jn 20 & 21 were not available... also, tag number in Windows was 73 not 74 as shown in Merged...
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Thanks in advance for any help or suggestions....
I just installed JWLMerge, and the application opens fine. But every time I try to drag and drop the JWLibrary files nothing happens, it never copies over. Any ideas?
I was trying to setup JWLMerge on Parallels and somehow selected the wrong program to associate with the install (accidentally selected Adobe) and can't go back to the page where I select programs. Adobe just errors out. I've deleted, uninstalled JWLMerge several times and restarted the computer but I still get the error. Please Help?
Also, can you direct me to directions on the correct way to install the program?
Thanks!
Hallo,
leider ist mein Englisch sehr schlecht und ich hoffe dennoch euf eine kleine Hilfe von Euch.
Ich habe seit Monaten das Problem, dass in der Favoritenanzeige meiner JW Library die Bibel (Rbi8) angezeig wird und sich nicht löschen/ausblenden lässt. (Fragt mich bitte nicht, wie sie dahin gekommen ist. Ich weiß es nicht)
Auch wenn ich den Download der Bibel als ganzes gelöscht hatte, wurde sie nach dem erneuten Download wieder unter Favoriten angezeigt.
Das gleiche Problem tritt auf, wenn ich bei einem Neuen Gerät (Android oder Windows) die Library komplett neu installiere und danach meine Sicherung einspiele. Danach wird die Rbi8 wieder in meinen Favoriten angezeigt.
Gibt es eine Möglichkeit die Sicherungsdatei zu bearbeiten und die importierten Favoriten zu bearbeiten?
Kann mir jemand helfen diesen Bug zu lösen?
Aktuelle Ansicht meiner Favoriten
Vielen Dank vorab
As shown in image when Tags is not ticked, the merge files is created.
It seems to be an issue with my Tags, but unsure how I can fix this.
I encountered the following error while trying to merge two backups.
At first i though that my backup's were old ( which they were, like 5-6 months ), but then again i tried with backups made today. Still the same error.
Let me know if I can provide anything else except this error log
Hi,
Thanks a lot for your work!
Would you consider making a full backup of JW Library to transfer for another PC? Let's say I want to get all the publications on the new pc (some of the publications are not public and are time consuming to get. Talks for example are 180 plus...)
It would be nice to get all the publications transferable to a new pc (or a way to backup!)
Thanks
Hi Anthony. Great work. Nice to see the portable download in the latest prerelease. Sorry to check but it still isnt possible to import from the excel Bible notes that JWLMerge produces. Only from a text file.
If you meant it was solved because you implemented the selective publication removal then again excellent work. I did notice this behaviour though is a note is not accompanied by an underline:
@AntonyCorbett . Good work as always. UI works well. Seems to work well with one exception. It does as described and removes the note if associated with an underlining. But it leaves notes for publications if it is not associated with an underline. For example a note on a paragraph, heading etc. If you need screenshots please let me know.
@lukefarr please see the latest pre-release. Marking as closed, but please reopen if needed
Originally posted by @AntonyCorbett in #45 (comment)
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
I'd like an interface (or property file option) to remove yellow user marks from a specific publication type, such as "w", but not "nwt" or "nwtsty".
The use case is that once I study a WT, I don't want the clutter of old user marks in those older WT's and study publications. However, I DO want to retain marks in bibles and books where they are associated with notes.
Another related request is that I wish to delete all YELLOW user marks not associated with a note in a publication type. The reasoning here is that I may mark an answer in yellow (and not make a note) or I may create a note with a BLUE user mark, which I want to keep. I want to remove all YELLOW user marks in this case. Color can be a configurable option.
Describe alternatives you've considered
I went into the JWLMerge code base and performed the operation to remove yellow user marks not attached to notes but I did it outside your structure. I merged and everything resulted as I wanted it. I am proposing a declarative solution for various publications. The code I used for my purposes is here:
private HashSet<int> GetUserMarkIdsInUse()
{
var newUserMarkList = new List<UserMark>();
var result = new HashSet<int>();
//ADDED WW 3/28/2021 to remove yellow highlighting in bible not attached to notes
var userMarkIdsWithNotes = _database.Notes.Where(n => n.UserMarkId.HasValue).Select(n => n.UserMarkId.Value).ToHashSet();
var publicationByLocationId = _database.Locations.ToDictionary(l => l.LocationId, l => l.KeySymbol);
foreach (var userMark in _database.UserMarks)
{
// if not yellow, keep it
if (userMark.ColorIndex != 1)
{
result.Add(userMark.UserMarkId);
newUserMarkList.Add(userMark);
continue;
}
// if it has a note, keep it
if (userMarkIdsWithNotes.Contains(userMark.UserMarkId))
{
result.Add(userMark.UserMarkId);
newUserMarkList.Add(userMark);
continue;
}
// if it is not in a bible, keep it.
var pub = publicationByLocationId[userMark.LocationId];
if (!(pub == "nwt" || pub == "nwtsty"))
{
result.Add(userMark.UserMarkId);
newUserMarkList.Add(userMark);
continue;
}
}
// you're not going to like this but it's fine for my purposes
_database.UserMarks = newUserMarkList;
return result;
}
Additional context
A UI idea here might be a page that lists the set of all key symbols in all Locations in the DB. Let the user check which symbols (i.e. publication types) they want to target.
Hi there
To automate the merger of files from various devices I'm writing a powershell script to run the merge but I can't specify the output folder as CLI only writes to the program folder and needs elevated rights.
I want to specify the output folder so that my devices can get the latest file from the merge output. The source and output files are all on OneDrive.
Hi Antony,
could an excel file be used to import notes into other publications and the Bible?
Or use the same procedure as the .txt file to import notes into other publications?
thanks for your help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.