-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating Publisher.zip/Format.zip #62
Comments
There is an option in the installer to not install "Additional images, icons and backgrounds". This should do what you want. I can't access my computer right now, but I will gladly update the Publisher file the moment I can. |
From #63 by @killo3967
|
Ok regarding the accented characters not appearing in the new version. This is a change from the SharpZipLib in the new versions. The way character encoding as changed from the default. Now you can either set character encoding manually when reading: ComicRackCE/cYo.Common/Compression/ZipFileFolder.cs Lines 20 to 23 in cb76e9b
could be changed to: public ZipFileFolder(string zipFile)
{
//437 is the default Zip char Encoding. 850 is the default western windows
this.zipFile = new ZipFile(zipFile, StringCodec.FromCodePage(437));
} Or when creating the Zip file force the UTF-8 flag for the entry and that way it will be detected automatically. This can be achieve (at least with 7-Zip), by either:
You can confirm the file is correctly created by opening it in 7-Zip and clicking on an entry that had accents and pressing info. Under characteristics you will see Try this file: Publishers.zip Also regarding your initial remark about not overwriting the Publisher file, in addition to the option I mentioned. You can actually have multiples files. The search pattern is You can also add them into your data folder. It supports, alternate configuration (-ac) and portable mode also (-local). Some folder the program will look into:
|
I've updated the Publishers.zip based on yours in fc2947d, but There are still a lot that might need updating. I will let this issue open as a place to update the Publishers.zip |
I follow your instruction to add "cu" parameter when compressing the folder, but dont work. I don't know why your file works and mine no. I checked the headers of both pulishers.zp files and they are complete diferent. What software do you use to compress the folder? I use 7-zip 23.01(x64) in windows 11. |
I use the same software. 1 thing I've discovered is that you can't rename a file after it is compressed with And I can confirm it is the |
I'm sorry if I didn't make myself clear, but don't rename it afterwards, rename it before recompressing it. What surprises me is that with the file you sent me it does show the logos in all the variations, that's why I say that either I'm not doing something or the programs or procedures we are using are different. |
In the file I sent, I've added Glénat to the line. Because you had Glenat (without the é), but not Glénat (with the é), which is what the scrapper returns for most Glénat comics. Maybe that is why mine is working on more comics. |
After some test with Japanese characters, i've updated the default Code Page to OEM (437). This should permit wide compatibility with pretty much all Zip software, without any special settings (aka the WIth either 7-zip or WinRAR when using Japanese character it will force it to be UTF8, as there is no choice. Windows will just say that it can't create the zip. Since the Japanese entry is UTF8 it is still read correctly alongside entries like Glénat, which are also read correctly even if they aren't UTF8. With this change e1a7a1b all accented character are read correctly regardless of the software used, at least WinRAR, 7-Zip & Windows works correctly. |
Tested and now CR could display the logos, anyway i'll use cn option in future. |
I've added some myself. I didn't resize them, because they would lose too much detail and the program doesn't seem to care. |
Can use this thread to bring other Publisher Icons to be added in future updates for Publishers.zip? I also had some icons for Book Formats as well (e.g: Omnibus, Series instead of the standars Limited Series...) |
Yes that's the point to share our files so we can update it. |
Hi, I created some icons for Formats: Series.png (icon: SER): For Series (So, the original file "Limite Series#Series.png") was renamed to #Limited Series.png") |
For this Publishers.zip file, I added a few more from the collection I have: Globo.png |
Your Publishers.zip didn't upload. |
Sorry, Here it goes For this Publishers.zip file, I added a few more from the collection I have: Globo.png |
Question about multiple publishers: There are plenty of books that have more than one publisher (Amalgam Comics, for example, are from DC and Marvel). How do you get CR to recognize that in the icons? I've tried a couple of methods, but they don't seem to work. For reference, I have the individual publishers separated by a comma, that way they also show under the individual publisher when I narrow my library down. I tried to have the icon names match the field name (i.e. DC, Marvel), but I realized that didn't work because CR isn't recognizing them as one entity that gets a special icon. Also, I've noticed that the "/" character has no replacement value when it comes to the icons. For example, AiT/Planet Lar won't show up. I've tried substituting the "/" with "-" and just leaving a space instead. Neither worked for displaying the icon. Any thoughts or ideas for either of these? |
The Publisher field isn't a multi value field like Tags for example. So adding a comma will not give you 2 value just a value that has a comma in it. But when parsing the Publisher filenames it does split it by comma and #. ComicRackCE/ComicRack/Program.cs Lines 946 to 969 in f8cf2f4
The program returns an array of icons when checking them, so technically it might be possible. I am looking at the tags section, it checks for text in the Tags section in the ComicRackCE/ComicRack.Engine/ComicBook.cs Lines 1861 to 1943 in f8cf2f4
ComicRackCE/ComicRack.Engine/ComicBook.cs Lines 1841 to 1849 in f8cf2f4
Solution may be to have 1 be the Imprint the other the Publisher, have a special icon with the 2 and use the I don't know if multiple publisher are very prominent that it would require changing how they work internally, but implementing a way to spit out more than 1 icon, seems to be possible without any UI work. |
Hi, During my Collection Catalog process, I added some more publishers to Publisher.zip. All the previous icons were kept. In addition we have: Amigo Comics#Amigo.png
|
Any reason to update "Zenescope Entertainment"? In the original archive of old ComicRack there was a transparent background, now white |
Same with "Drawn and Quarterly#Drawn & Quarterly" if I'm not mistaken. |
Probably resolution was a bit better at those. But I'll remove the white background and update the zip content. |
Here they come, All the latest additions as previous mentioned, plus the removal background from "Drawn and Quarterly#Drawn & Quarterly" and "Zenescope Entertainment". |
I've updated the way the build is done in regard to these icons. The icons are not stored as zip files anymore, they are now stored as individual icons instead. So it is way easier to see what as been updated, added or removed. So if you check the commit 0340ab4, you can even see the icons directly on github now. For example the icon for Avatar Press shows the icon that was removed and the one that was added. It will make cooperating easier, anyone that wants to contribute can just change the icons in the The project files will take any folder that is in |
Great @maforget, Thanks a lot for this way of working to update the Resources\Icon folder. |
I ended up making a fork of ComicRackCE, so I could add, commit and pushed the proposed Format icons to my own Fork. But I am note sure if this is what was exactly proposed here or if there is a better practice. |
@ucapato Yes that is the proper way to do it. You can use GitHub directly for basic things like uploading new files, renaming. Using a git client for local changes is required for more features. If you don't have or require the whole Visual Studio program just to edit icons, the Github desktop client is pretty good at using the git features with a GUI.
Warning If you do any contribution, I suggest that you make sure the checkbox, keep your email private is enabled in Github settings or your email address will be attached to each and every commit you do. With that setting enabled a github email address proxy will be used instead. |
Hi @maforget , Appreciate your assistance and patience in explaining how Git and Github work. I am still sometimes lost with the technical words and behavior, but to ride a bike we need to fall sometimes, right? Here we go:
|
@ucapato When I talk about the Github Client I was referring to the Desktop client you can install on your computer. You can do the same thing with your IDE, although it may be more straight forward to use the client. https://github.com/apps/desktop
The setting I was referring too was this one. It just determines how a new branch will be created either from your master or from mine. If from yours it would be necessary to do what you did in point 2. With the option to contribute, like you can see in the help message on the screenshots, it just creates a branch based on my master. So if I push something new and your master lags behind the new branches will still be based on the newest code. On the website when creating a branch you can choose from which repo/branch to create it. In the Github desktop client a upstream/master is automatically added or your need to do it manually like you did. Your assumption in point 5 are correct except the contribute option like I talked about earlier. It doesn't do anything until you push something to your repo. At that point it will suggest to merge your NewUpdatedIcons to my master. But you need to push code before that becomes an option. But yes a PR is like asking to add changes to my repo. Git is very confusing, I am just starting to be somewhat knowledgeable enough to use it effectively. It also doesn't help that all the help all refers to the command line. I am conformable using the command line, but doing something via 2 click in a GUI is easier than having me trying to use a command I will forget anyway. Suggestion I can give you is that you can create as much branches that you want locally and test things out. You can create a backup branch based on another in case you mess up. As long as you don't push code, it stays local. For example on your error in point 1, where you committed in master. If you didn't push to Github, you could just have done a Reset (mixed keeps your changed file but removes your commit). Stash the changes (keep for later) so that you can change branches and then push those changes to that new branch. Or create a new branch and cherry-picking the changes from your master and resetting it (with hard, so it deleted changes). |
Ok, I think I got it now (I hope). I added the new format icons in addition to two new ones (Main Series and Year Zero), set my branch as a contributor to yours, committed, pushed, and did the PR. Definitely from the Desktop Client, the whole Git process looks much easier, but I'll try my chances (sometimes) in the regular command prompt to see how to do this PR. Thanks a lot for all the advice and way forward here. |
The Andrews-McMeel icon change is a downgrade, IMO. It's an icon -- the text is unnecessary. Also, the transparency has been removed. |
Hi @chowbok , The latest merge brings the suggested change: |
I've moved the files that where in Resources to The Resources directory now contains the program icons that were previously embedded instead. |
Just a FYI when adding publisher icons, adding an icon with no date along with those with dates, like in this commit b62cd2c. The icon without a date should be the latest one. The reason is that when adding comics where the date is proposed (pale grey), it will consider the date empty and show the old icon. At least for those that have these dates in proposed value, we should at least show the latest one and not the old one. |
ok, So I can "invert" the naming convention from the proposed Publisher Icons I have sent, like Dark Horse's Example, today is like: Dark Horse#Dark Horse Comics.png ==> Oldest Icon It should be like: Indeed it makes much more sense and makes us not try to "guess" what is the ending date for the latest/newest Publisher Icon. Note: For the future, it would be nice if we could determine the Icons date by Year and Month instead, but I am not sure how complex it is to implement in the code. Publisher names could be like: "Publisher(YYYYMM-YYYYMM).png". But it is just a thought. |
Please add Caliber Comics logo when you could. |
Done |
Please add "Best Jackett Press" logo when you could |
done, the winget update should be automated now. Just waiting for approval. |
Done in b6392f3 |
Please add 'Vault' to 'Vault Comics' logo name when you could. |
Describe the bug
When updating the program in windows the installation overwrite publisher.zip
Could be posible to not ovewrite the files on this path "C:\Program Files\ComicRack Community Edition\Resources\Icons" if the files are newer?
I added a more complete publisher.zip if you want to update it.
Publishers.zip
The text was updated successfully, but these errors were encountered: