Re: Crow Translate

2024-07-16 Thread Albert Astals Cid
El diumenge, 14 de juliol del 2024, a les 2:31:00 (CEST), Kevin Kofler va 
escriure:
> Hennadii Chernyshchyk wrote:
> > Regardless of the warning. I think that the only translation engine that
> > fully respects privacy is LibreTranslate.
> > But it doesn't support automatic language detection and can't do TTS. It's
> > also disabled on the main Mozhi instance (instances can disable specific
> > engines if they want).
> > So I can add a warning, but there is not much to choose from :(
> > Do you still think it's a good idea?
> 
> The issue is inherently that your application is relying on a web service
> (Mozhi) to do the translations. That service then either forwards the
> requests to yet another (typically proprietary) web service (e.g., Google
> Translate) or to something local to the Mozhi server instance (e.g., a
> LibreTranslate instance running on the same server as the Mozhi instance).
> In the first case, there are two services that see your data, in the second
> case, there is still one service that sees your data and that you have to
> trust.
> 
> The only thing that is guaranteed to be privacy-friendly is to run (either
> as a separate process or embedded as a library) a local instance of
> something like LibreTranslate (or Argos Translate directly) or Bergamot (or
> Marian directly) on the same device as your application. And libmozhi is
> probably not the library you would want to use for that (though technically
> I guess you could theoretically run and point libmozhi to a local Mozhi
> instance and in turn point that to a local LibreTranslate instance).
> 
> As for:
> > But it doesn't support automatic language detection and can't do TTS.
> 
> there are separate libraries for that.
> 
> For automatic language detection, see, e.g., cld2 or cld3, or one of several
> Python or Perl modules.
> 
> For TTS, see eSpeak NG (or its library libespeakng) if you want something
> simple and compact that supports many languages out of the box, or one of
> the local modern AI-based TTS tools (Mozilla TTS, OpenAI Whisper, etc.) if
> you want something that sounds better.
> 
> And, while you did not ask for it, for STT, there is the old PocketSphinx,
> the newer Mozilla DeepSpeech, etc.
> 
> The Free Software implementations that you can run locally all focus on
> doing one thing well, not on offering a complete solution like the Google
> Translate web service does. Integrating that all into a complete solution is
> then your job as the application developer.

You're asking them to do a totally different application of the application 
that they are doing, that makes no sense.

Cheers,
  Albert

> 
> Kevin Kofler






Re: Crow Translate

2024-07-16 Thread Albert Astals Cid
El divendres, 12 de juliol del 2024, a les 0:17:35 (CEST), Hennadii 
Chernyshchyk va escriure:
> > Thanks for the report, I will take a look!
> 
> Fixed!
> 
> 
> Regardless of the warning. I think that the only translation engine that
> fully respects privacy is LibreTranslate.
> But it doesn't support automatic language detection and can't do TTS. It's
> also disabled on the main Mozhi instance (instances can disable specific
> engines if they want).
> So I can add a warning, but there is not much to choose from :(
> Do you still think it's a good idea?

Yes, the warning is about making the user understand their data is leaving 
their computer and going into someone elses computer and we can't control what 
happens once its in someone elses computer.

Cheers,
  Albert

> 
> We can alternatively add this information to the project description in the
> appdata and README. And also inform that some instances can disable
> specific engines. What do you think about it?
> 
> чт, 11 июл. 2024 г. в 01:38, Hennadii Chernyshchyk :
> > > Where it says "Traducció auto" it is just "Traducció automàtica" but the
> > 
> > text is cut.
> > 
> > Thanks for the report, I will take a look!
> > 
> > > But which one are we using?
> > 
> > We pick a random default instance to spread the load. But users can set a
> > preferred one in settings.
> > 
> > > Could I ask for a dialog that has a "don't show again" check and the
> > 
> > check is not checked?
> > 
> > Makes sense, I will add!
> > 
> > чт, 11 июл. 2024 г. в 01:27, Albert Astals Cid :
> >> El dimarts, 9 de juliol del 2024, a les 0:48:12 (CEST), Hennadii
> >> Chernyshchyk
> >> 
> >> va escriure:
> >> > > No I mean link to BrezeIcons library.
> >> > 
> >> > Ah, I didn't know that there was a library for it! Will change it,
> >> > thank
> >> > you.
> >> > 
> >> > > The problem is that the defaultLocale() function returns the C
> >> > > QLocale
> >> > 
> >> > which is wrong since that's not the default locale on my user.
> >> > 
> >> > I never apply QLocale::c(). I see how it could be confusing, but I
> >> 
> >> actually
> >> 
> >> > use it as a special value to apply a system locale here:
> >> https://invent.kde.org/office/crow-translate/-/blob/master/src/settings/a
> >> pps>> 
> >> > ettings.cpp#L63 (I may need to refactor this part)
> >> 
> >> Fixed in 62e49303157cdfdf2758b09ff7b4530ff1eb921c :)
> >> 
> >> Possibly related to translations, the sizing could be a bit better, see
> >> https://i.imgur.com/wvSrGc0.png
> >> 
> >> Where it says "Traducció auto" it is just "Traducció automàtica" but the
> >> text
> >> is cut. You can see the text if you make the window wider.
> >> 
> >> This is not critical, but would be nice that a user doesn't get cut text
> >> on
> >> startup.
> >> 
> >> > By any chance you run a flatpak? If yes, I know about this issue and I
> >> 
> >> am
> >> 
> >> > working on it right now:
> >> > https://invent.kde.org/office/crow-translate/-/merge_requests/724.
> >> > For some reason it doesn't work when packaged as flatpak, I am
> >> > investigating it right now.
> >> > 
> >> > > Self hosted by who?
> >> > 
> >> > Can be self-hosted by anyone. Here is the list of known instances:
> >> > https://codeberg.org/aryak/mozhi#instances
> >> 
> >> But which one are we using?
> >> 
> >> Or is it a random one each time?
> >> 
> >> > > How does that matter?
> >> > > If i add the text of my potentially Nobel winning research for
> >> > 
> >> > translation, it
> >> > 
> >> > > will still end up in NonFreeSoftwareService and
> >> > > NonFreeSoftwareService
> >> > 
> >> > can
> >> > 
> >> > > read it and potentially steal it.
> >> > 
> >> > Ah, it's a valid concern.
> >> > What I tried to say is that it doesn't spy on specific users since data
> >> > basically goes through an instance instead of talking to a non-free
> >> 
> >> service
> >> 
> >> > directly.
> >> > Would you prefer to add a warning on a first startup?
> >> 
> >> A warning on first startup sounds good to me :) Could I ask for a dialog
> >> that
> >> has a "don't show again" check and the check is not checked?
> >> 
> >> Cheers,
> >> 
> >>   Albert
> >>   
> >> > вт, 9 июл. 2024 г. в 01:26, Albert Astals Cid :
> >> > > El dimarts, 9 de juliol del 2024, a les 0:12:48 (CEST), Hennadii
> >> > > Chernyshchyk
> >> > > 
> >> > > va escriure:
> >> > > > Thanks for looking into the app!
> >> > > > 
> >> > > > > Please remove the submodule of breeze-icons and replace it by a
> >> > > > 
> >> > > > dependency to breeze-icons.
> >> > > > 
> >> > > > Could you elaborate? You mean to use something like FetchContent
> >> 
> >> from
> >> 
> >> > > CMake?
> >> > > 
> >> > > > I use it to bundle icons for Windows since on Windows there are no
> >> 
> >> icon
> >> 
> >> > > > themes.
> >> > > 
> >> > > No I mean link to BrezeIcons library.
> >> > > 
> >> > > > > Translations are not loaded properly. (i.e. i get the UI in
> >> 
> >> English
> >> 
> >> > > > instead of
> >> > > > Catalan)
> >> > > > 
> >> > > > Are you run

Re: "Logout Screen" only shows shutdown when pressing the power button

2024-07-16 Thread Michael Reeves
looks like I had a packaging issue powerdevil was never updated to soeak to the 
new logout widget. That answers my question.

Jul 15, 2024 2:00:27 AM Kai Uwe Broulik :

> Hi,
> 
> I guess that’s the same issue I had where I had a leftover “default logout 
> option” in settings, so the “Leave” screen defaulted to that option (e.g. 
> only Shutdown) without the other options.
> 
> Cheers
> Kai uwe
> 
> Am 15.07.24 um 00:22 schrieb Nate Graham:
>> That's not what's supposed to be happening, and it's working for me: if I 
>> select "Show logout screen" for the "when power button pressed" combobox, I 
>> see the screen with all options when I press the power button.
>> Make sure you have this selected for all power states if your device has a 
>> battery.
>> If that's not working for you, it sounds like there's a bug, so I would 
>> recommend opening a bu report about it.
>> Nate


signature.asc
Description: PGP signature