Reply to post

Hot!Delete text

Author
pbhaynsworth
User
  • Total Posts : 0
  • Reward points: 0
  • Joined: 2021/11/30 17:16:02
  • Status: offline
2022/08/12 08:56:17 (permalink)

Delete text

How can blocks of text - e.g. XML strings - be deleted within @Voice?

4 Replies Related Threads

    Admin
    Administrator
    • Total Posts : 275
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Delete text 2022/08/17 13:40:36 (permalink)
    Not sure why you see or hear XML strings in @Voice. Normally they should not be visible nor heard, unless you downloaded some damaged file, or used the "Edit speech" feature under @Voice "Settings" menu, and entered some incorrect speech replacements (if you did, disable them all and try reading aloud again, should work fine).
     
    If you really need to edit your files, please use a dedicated text editing app. @Voice is a READER app, not an EDITOR.
     
    Greg
    CorbettMD
    User
    • Total Posts : 0
    • Reward points: 0
    • Joined: 2021/08/28 10:59:32
    • Location: Toronto, Canada
    • Status: offline
    Re: Delete text 2022/09/14 14:01:50 (permalink)
    I think this is happening for some users because @voice text replacement (edit speech menu) sees the raw XML/HTML version, even though it displays and speaks readable text by default. It's pretty easy to accidentally break that functionality inadvertently with a regular expression that creates broken HTML that can't be converted into text as it should be. Similarly, HTML code can break regular expressions that would be functional on text that did not come from an XML/HTML source.

    I wonder if a simple solution could be to provide a user setting to choose whether text replacement sees the raw version of a file (advanced) or one that has been converted into readable text (basic)?
    Admin
    Administrator
    • Total Posts : 275
    • Reward points: 0
    • Joined: 2010/11/22 00:00:00
    • Location: USA
    • Status: offline
    Re: Delete text 2022/09/14 14:13:22 (permalink)
    It is often necessary to modify text by HTML tags, for example to exclude references or other marks in <sup></sup> elements etc. If you double tap the sentence in which you want to make any changes with replacement, the "Original" text sample on the speech replacement shows that sentence with all its HTML markup, so it's easy to see how the replacement works.
    CorbettMD
    User
    • Total Posts : 0
    • Reward points: 0
    • Joined: 2021/08/28 10:59:32
    • Location: Toronto, Canada
    • Status: offline
    Re: Delete text 2022/09/19 15:33:07 (permalink)
    That is true.  It's also true that designing text replacement regex becomes vastly more complex when having to account for the variance introduced by HTML code e.g. hyperlinks, script tags, etc.  There would be situations where working on the HTML would be preferable, and others where dealing only with as-displayed text would be best.  In my case, in the vast majority of cases I do not want to deal with the raw HTML for anything, as it often necessitates cumbersome extra steps to provide @voice with clean non-html text (the app is very good at displaying even difficult HTML from EPUB or web sources).  @voice with a good set of regex rules is so good at text processing that I sometimes wish I could output the end-product text to a file as well as generate audio from it!
     
    Just my two cents as someone who uses your app extensively.
    Jump to:
    © 2022 APG vNext Commercial Version 5.1