Skip to content

Conversation

@schu96
Copy link
Collaborator

@schu96 schu96 commented May 19, 2025

  1. Add type docs to properties of TranslatePlugin Class
  2. Take translated paragraphs and divide into chunks using '.' as delimiter to show translations as lines to allow for graphics in digital works.
    • Grabs CSS values from existing .BRlineElement and .BRparagraphElement to attempt to keep translated text within the bounds of the paragraph text being translated.
    • Currently using overflow-y: auto to let overflow text be visible via scrolling
    • font-size property for spans are adjusted to be slightly smaller (5px smaller for now) since text from passages tends to go past the height of the container.

image
image

@schu96 schu96 force-pushed the GSoC-auto-translate branch from 93189e5 to 69d344e Compare May 20, 2025 20:41
Copy link
Contributor

@cdrini cdrini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, great start @schu96 !

@cdrini
Copy link
Contributor

cdrini commented Jun 4, 2025

(Closing/re-opening to try to trigger netlify)

@cdrini cdrini closed this Jun 4, 2025
@cdrini cdrini reopened this Jun 4, 2025
@cdrini cdrini merged commit a3695f4 into internetarchive:auto-translate Jun 17, 2025
4 checks passed
cdrini added a commit that referenced this pull request Jul 27, 2025
[GSoC] Auto-Translate: Add Properties, Show Translations as Lines
cdrini added a commit that referenced this pull request Jul 27, 2025
[GSoC] Auto-Translate: Add Properties, Show Translations as Lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants