Giter Club home page Giter Club logo

Comments (4)

mkiol avatar mkiol commented on May 31, 2024 1

Thanks for reporting.

Unfortunately, Bergamot (library that is used for translations) does not directly supports Markdown, but it supports HTML formatting. Thanks to your report, I've discovered that I didn't enable "keeping of HTML tags", so this will be fixed in the next release.

Just thinking... Since HTML formatting works (or will be), maybe I can implement simple Markdown <=> HTML conversion in pre and post processing of the text. This might work 🤔 Looking for the right library...

from dsnote.

mkiol avatar mkiol commented on May 31, 2024 1

I guess the all-time popular pandoc might be our friend

Indeed pandoc is a very powerful library but it has one "flaw" - it is written in Haskell! I didn't find any easy way to integrate it to c/c++ program. Fortunately, I've managed to find two nice c++ libraries for html2md and md2html... and everything works quite well :)

but you give the user an option in the interface

Exactly

Additionally I also added support for SRT Subtitles, so you can translate subtitles without breaking the format.

I have to resolve few bugs I found and I'm ready to push new beta for testing.

from dsnote.

devSJR avatar devSJR commented on May 31, 2024

Okay, I guess the all-time popular pandoc might be our friend in this case.
But I think this will not be trivial because it would be challenging to guess the mime type before you process something.

Edit: If I understand your commit 7e8217b correctly, you are not using a heuristic to guess the mime type, but you give the user an option in the interface. This is a practical solution.

from dsnote.

mkiol avatar mkiol commented on May 31, 2024

Added in: 64191fa

Change is included in v4.4.0.

from dsnote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.