ogkalu2 / comic-translate

Desktop app for automatically translating comics - BDs, Manga, Manhwa, Fumetti and more in a variety of formats (Image, Pdf, Epub, cbr, cbz, etc) and in multiple languages.
Apache License 2.0
964 stars 87 forks source link

Improved Manual Mode #103

Closed Andrews54757 closed 2 months ago

Andrews54757 commented 2 months ago

Thought I might share some improvements I've made to my own copy to improve the manual translating experience.

New Features

  1. Blocks are rendered even if you undo/redo the image
  2. get_best_render_area is disabled for manual mode because it moves block positions. This is not ideal as it will undo manually correctly placed block from an earlier step.
  3. Reworked font renderer to now accept a minimum font size. A slider controls it. TODO: add it for automatic mode and use a text field.

Bug fixes

  1. Fixed pan gesture by using delta.toPoint() to convert to a qpoint before adding.
  2. Rectangle objects on the screen are now cleared when blk_list is reloaded (fixes ghost rectangles).

Performance Improvements

  1. Most models are now cached after initial run. This increases processing speed, especially OCR, manyfold.
ogkalu2 commented 2 months ago

Hi @Andrews54757 When i edited the files myself, i didn't quite realize i was altering your personal fork also. Should have asked if you were fine with me doing that first. Sorry about that.

Andrews54757 commented 2 months ago

No worries, I gave you edit permissions on purpose. the fork is made just for this PR