Code Monkey home page Code Monkey logo

safarikai's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

safarikai's Issues

Safari no longer supports unsafe extensions.

Hello, I'm getting the following error:

“Safarikai” is no longer supported. You can find newer extensions reviewed by Apple in the App Store or Safari Extensions Gallery

I'm using Mojave Public Beta 5, I'm not sure when this extension stopped working, since i just found it recently. Would it be possible to submit it to the app store as an official extension?

Toggle translation popup via hotkey

It would be helpful to be able to toggle the translation overlay via a hotkey. When navigating webpages with lots of Japanese text that is placed all over place (ie, Rakuten) the popup can cover other parts of the page. If this already exists I just haven't been able to find how to enable it the settings or documentation.

CDICT

Would it be possible to update this to include support for Chinese characters (Simplified and Traditional) via CDICT?

Improve JSON parsing performance

Decoding DictData with default Decodable for data.json takes about 6 seconds. This would become worse when we add names and other data.

Update dictionary, add names and/or more

I believe this requires some tool to convert EDICT, ENAMDICT to the JS format (or find a better than SQLite solution to store). Now that this extension is alive again, it makes sense to continue updating.

  • Remove JS implementation of dictionary. Use Swift with JSON data instead.
  • Update EDICT, ENAMDICT and convert to JSON. (moved to #32)

Rid of CoffeeScript

It's a history thing.

  • dictionary.coffee (will be replace by Swift implementation)
  • injected.coffee

Feature request: Adding word to a word list

It will be great if there is a future we can add a word to a word list (tabular.txt or something) so we can use such list to make Anki deck afterwards. This will ad way more productivity to the learning process!

Update EDICT

Fetch newest EDICT from edrdg.org and write a script to convert to JSON, or just read directly to Swift.

Note: prefer the JMdict or EDICT2 format. As:

There are now two EDICT versions:

A. the plain EDICT file. This is the original format, where there is only one kanji form and one reading per entry. I regard this as a legacy format, and only provide it for older applications. PLEASE do not use this format for new applications, as I would like to withdraw it one day.
B. the enhanced "EDICT2" format. This can have multiple kanji forms and readings in an entry, and also has other information such as cross-references, restrictions, etc. and also uses kanji from the extensions in the JIS X 0212 standard. It has almost all the information in the full JMdict format. This form should be used for all new applications.

Source: http://www.edrdg.org/jmdict/edict.html

edict2u should be used since it's UTF8 encoded, while edict2 is EUC-JP.

Issue with Facebook messenger text input

When typing a message in Japanese in Facebook messenger, if the mouse is moved over some Japanese text (for example a previous message) the message being typed (if still underlined for kanji selection) disappears. A simple fix would be to have the option to blacklist sites from using the extension (If this is already possible please let me know!).

older versions of Safarikai are available anywhere?

A friend writes:

Do you know if older versions of Safarikai are available anywhere? The one at the AppStore requires
OSX 10.13 but I am using an older MacPro that won't let me install anything above 10.11.

V2.0: Safari App Extension

Started making v2.0 as a Safari App Extension.

If it goes well, the new version will be released on Mac App Store.

It's very likely the dictionary lookup logic will go to native Swift part, and by doing so it might be able to use a more recent copy of EDICT.

Ideally, the EDICT will be a SQLITE3 bundled and queried with native code. This means the injected JavaScript only handles pointing and picking Japanese word, looking up and showing result with the HTML page.

The WIP branch is app-extension.

Feature request: Dark mode

Thank you for developing this great extension. Is there any chance of a dark mode, or custom colour settings? The current white window is quite jarring when you've customised your OS and browser to be as dark as possible.

Disabling Safarikai does not gray out the icon

This behavior has changed since the new app-extension version. In the old version clicking the icon would make it grayer as to indicate it was turned off.

Is it possible to restore this behavior?

Duplicate result popup added to iframe

When hovering over a word, result popup also appears in child iframe documents.

I noticed this when viewing a page with several ads embedded via iframes.
Seeing multiple result boxes was very distracting.

I used W3Schools' iframe test page to reproduce this.

HTML typed into the editor will show within an iframe.
When hovering over a word (that I type into the test editor), a Safarikai popup is added to the main test result's iframe, as well as any iframes within that one.

In short, popups are added recursively to all iframes within the document hierarchy.

OS Version: 10.13.5 (17F77)
Safari Version: 11.1.1 (13605.2.8)

Breaks drag-drop (in roundcube)

Safari 7.0.4, if I enable the plugin, it breaks drag&drop in Roundcube. Might be breaking other apps too, in my case it was Roundcube.

I will also try to investigate what's the problem if I have time.

Publish japanese-kit to npm registry

I was just about to create my own, but found yours instead!

This plugin would be more developer friendly if it was written in vanilla JavaScript, but I guess some people like their coffee 😄

However, it would make contributions easier if you publish japanese-kit to the NPM registry in order to be able to npm install without the hassle of downloading that other repo directly.

👍

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.