Comments (4)
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.
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.
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.
Added in: 64191fa
Change is included in v4.4.0.
from dsnote.
Related Issues (20)
- Punctuation model no longer available HOT 2
- Enhancement: Parler-TTS, a new open source model with steerable voice characteristics HOT 2
- Unable to add Custom TTS model (i.e Coqui TTS) HOT 3
- Guidance about settings for realtime STT on GPU HOT 2
- Flatpak Runtime End-of-Life HOT 5
- AppImage HOT 1
- mimic3 voices fail to download HOT 5
- I hope this app can use llms to chat to do more things HOT 1
- Read only selected text. HOT 4
- Added dictionary support HOT 1
- Error: “translation engine initialization has failed”. HOT 3
- Speech Note instantly crashes when opened on KDE Plasma. HOT 3
- Crashes when clicking listen with any whisper model HOT 23
- Start listening, text to active window not working HOT 4
- App stuck in tray icon HOT 4
- runtime org.kde.Platform branch 5.15-22.08 is end-of-life HOT 2
- The app is crashing when GPU acceleration is enabled using any Whisper model HOT 11
- flatpak v4.5.0 won't start showing `std::runtime error pa failed` HOT 12
- Flatpak Add-ons are missing HOT 4
- Add a good voice? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dsnote.