Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Ability to Merge Two Dictionaries #922

Closed
gdwaynewarner opened this issue Mar 19, 2018 · 5 comments
Closed

Feature Request: Ability to Merge Two Dictionaries #922

gdwaynewarner opened this issue Mar 19, 2018 · 5 comments

Comments

@gdwaynewarner
Copy link

gdwaynewarner commented Mar 19, 2018

Summary

I have an .rtf dictionary that has my outlines for writing Cheap and Sleazy, which require the "keep with next" symbol (you know ... {^} which I use to ensure there are no extra spaces anywhere, basically).

Somewhere along the way, that feature stopped working in Plover, so this --

{^}<p class="body">{^} {-|}

-- became this:

{^ <p class="body"> ^} {^} {-|}

I followed Ted's recommendation and created a .json dictionary for that, so all of those entries exist in that dictionary.

Now that support for most of the dictionary formats is coming, I would like to be able to basically merge those two dictionaries, so that I could make them available to one of the professional CATs, should the need arise ... preferably without having to copy and paste each entry one by one.

In digitalCAT's Dictionary Maintenance program, I would just right-click the entry and select either "Copy to" or "Move to," which would then present me with a file navigation window so I could select the appropriate dictionary.

In the case of multiple entries, the Dictionary Maintenance program has "Merge Dictionaries," which works as you would expect.

Ultimately what I'm trying to do is copy all of the entries in the big dictionary (.rtf) to the smaller dictionary (.json), without having to do it one entry at a time.

Reproducing

No real way to reproduce this one, other than using the outlines I posted up there in an .rtf dictionary, quit Plover, start it again, and check to see if the outline works correctly.

Plover Version

Plover 4.0.0.dev6+5.ga564116

System

Mac OS X 10.10.5

@gdwaynewarner
Copy link
Author

So ... is anything going on with this one?

@SeaLiteral
Copy link

It sounds/looks like a plugin could be made for it...

@morinted
Copy link
Member

morinted commented May 2, 2019

One way I've pictured this in the dictionary editor:

  • Have the ability to open multiple dictionaries at once in the editor. (conflicts between dictionaries should be highlighted some way)
  • Include a "Save as..." which will save the current view, including filters, of the dictionary editor.
    • e.g. you filter for translations with {# in them and then save-as to get a commands dictionary.
    • after saving, you are given the option to add the newly created dictionary to the list of dictionaries.

@gdwaynewarner
Copy link
Author

gdwaynewarner commented May 3, 2019

Sounds good, Ted!

On a (slightly) nother matter, I noticed that a few of my mode strokes weren't working, so I re-defined the first one, and as I was trying to add it to the .json dictionary vice the RTF dictionary, I found that the .json dictionary somehow was made inactive.

As I was having other problems at that point (slow browser, Finder not responding at one point, etc.), I decided to quit everything and run Onyx, so hopefully that took care of whatever issue was going on there.

@benoit-pierre
Copy link
Member

Implemented in #1244.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants