https://bugs.kde.org/show_bug.cgi?id=406328

            Bug ID: 406328
           Summary: Kmouth imports "%f" as "%25f" for alternative command
                    string for speaking
           Product: kmouth
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: gun...@schmi-dt.de
          Reporter: opensuse.lietuviu.ka...@gmail.com
  Target Milestone: ---

Created attachment 119296
  --> https://bugs.kde.org/attachment.cgi?id=119296&action=edit
full kmouthrc config

SUMMARY

While reading kmouthrc, Kmouth replace  "%f" into "%25f". According Kmouth
documentation, %f is special placeholder – name of a temporary file that
contains the text that should be spoken, thus should not changed.


STEPS TO REPRODUCE
1. In kmouthrc (~/.config/kmouthrc or /etc/xdg/kmouthrc) put:

[TTS System]
Codec=Local
Command[$e]=/usr/bin/my_command.sh "%f"
StdIn=true
useQtSpeech=false

2. Opening TTS settings in Kmouth

OBSERVED RESULT
I see for alternative command string:
/usr/bin/my_command.sh "%25f"

EXPECTED RESULT
I would like to see for alternative command string:
/usr/bin/my_command.sh "%f"

SOFTWARE/OS VERSIONS
KMouth 1.2.0
Operating System: openSUSE Tumbleweed 20190403
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Kernel Version: 5.0.5-1-default
OS Type: 32-bit

ADDITIONAL INFORMATION
This configuration import worked fine in KDE4 days, but no longer in KF5 days.

Kmouth MANUAL says:
 KMouth knows two ways of passing the text: If the command expects the text as
standard input you select the check box. 
 The other way is to pass the text as a parameter: Before calling the command
KMouth replaces certain placeholders with actual content: 

Placeholder           Replaced with
  %t  The actual text that should be spoken
  %f  The name of a temporary file that contains the text that should be spoken
  %l  The language code associated with the current word completion dictionary
  %%  A percent sign


I also tried change 
StdIn=true
to 
StdIn=false
but without success

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to