Feature request (various things)

Discussion in 'Future Products' started by Peter, Mar 5, 2015.

  1. mikelove

    mikelove 皇帝 Staff Member

    Good idea, thanks.
     
  2. Abun

    Abun 探花

    I’m not sure if this is supported already and I just didn’t find it:

    How about an option to strip an entry of all html (barring entities) when exporting it to Anki as a flashcard? I have my own card format so I find myself having to delete the a bunch of html from every card I export from Pleco. Not that I wouldn’t have to edit them a bit anyway (putting word class in a separate field, adding examples etc.) but stripping the html sounds like a relatively simple modification which could save me a few very mechanical steps.
     
  3. mikelove

    mikelove 皇帝 Staff Member

    Not too tricky, but which formatting are you trying to remove? Unless you've turned on the option to format cards like dictionary entries there shouldn't be any formatting anywhere except the definition field, and most of that if of a sort that seems unlikely to conflict with your format (bold tags around sub-definitition numbers, gray part of speech labels, e.g.) - is that nonetheless something you'd prefer to have in plaintext?
     
  4. Abun

    Abun 探花

    I have the formatting as Pleco headers off for all fields if that’s what you mean.

    When I export a card (from, say ABC), I get: a <div> element for alignment around the whole thing, multiple <b> elements (around the word class, the numbering for meanings etc.), <span> elements which adjust the font size of word class labels, as well as a <plecoentry /> tag at the end which I’m not quite sure what it does (just an ID maybe?). I’m pretty sure I also saw <br /> tags in other dictionaries (although that may be limited to custom ones, not sure…). Of course, they don’t conflict in the technical sense of the word, but they don’t fit the formatting I use on my flashcards. So it’s mostly a question of consistency (although I imagine that in the case of very long entries, the line breaks – be they caused by <div>’s or <br />’s could make a card annoying to use because it’s too long vertically). My suggestion would be to provide an option which would first add a space after anything that would case a line break (i.e. all block elements as well as <br />) and then strip away everything which has <>’s around it. Entities like &#8764; (∼) are probably best left alone because most of them stand for characters important to the text. The only exception could be invisible things like non-breaking spaces or maybe the &#9; control character (which I’m not completely sure what it does) after numbering.
     
  5. Dodoxo

    Dodoxo 举人

    It would be great if when you convert a card to custom card to mantain the dicionary format. I would just like to edit the definitions, delete some examples and maybe add new ones without altering the entire structure of the flashcard
     
  6. mikelove

    mikelove 皇帝 Staff Member

    That's definitely coming in 4.0 - everything is HTML now, basically :)
     
    alex_hk90 likes this.
  7. Dodoxo

    Dodoxo 举人

    Love this app. Thank you so much for your great job
     
  8. rizen suha

    rizen suha 举人

    option to configure dictionaries individually. concrete thing im thinking about: having cantonese audio and phonetics enabled for cantonese dicts only; and mandarin for mandarin...
     
  9. mikelove

    mikelove 皇帝 Staff Member

    @rizen suha - Maybe with two separate search groups? We are planning to put some more customizability into those, could feasibly include configuring how results are displayed.

    @Dodoxo - thanks.

    Small clarification: it'll be HTML but a limited subset of it, akin to an EPUB; even in 2017 we're still not entirely happy with the performance of rendering entries as web pages (particularly when we're overlaying other stuff like our tap text selection system on them), so it'll still be running in a custom Pleco text renderer just as now, but we've replaced our old private use character formatting tag system for that with HTML.
     
  10. rizen suha

    rizen suha 举人

    thanks, yes, independent search groups would be a good idea. and for most purposes 2 would probably suffice
     
  11. Dodoxo

    Dodoxo 举人

    I don't know if it is supported already and I didn’t find this: a function to select one definition/meaning for a word/character in a flashcard. For example in the Hsk5 deck for the word 批 I would like just to show that is used as a measure word because in the Hsk5 test it is present like this and not as "slap" or "scrape" or other definitions.
     
  12. mikelove

    mikelove 皇帝 Staff Member

    In the works for 4.0, but right now the only way to do that would be to edit the card definition (and create two cards if you want one for the old definition too).
     
  13. pdwalker

    pdwalker 探花

    Or, as a workaround, pick a dictionary entry that has a meaning closer to the one you are interested in. Or create your own custom user dictionary entry for this card with the meaning you are most interested in.

    That works for me.
     

Share This Page