GithubHelp home page GithubHelp logo

cschiller / zhongwen Goto Github PK

View Code? Open in Web Editor NEW
296.0 296.0 48.0 28.76 MB

Official source code of the "Zhongwen" Chrome extension

Home Page: https://chrome.google.com/webstore/detail/zhongwen-chinese-english/kkmlkkjojmombglmlpbpapmhcaljjkde

License: GNU General Public License v2.0

JavaScript 76.92% CSS 4.93% HTML 18.15%

zhongwen's People

Contributors

cschiller avatar hirse avatar

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  avatar  avatar  avatar

zhongwen's Issues

Support for Microsoft Edge

Can you please add support for Microsoft Edge?
Chrome and Firefox run really slowly on my system for some reason.
Thank you!

Remember the popup position

Hi there !
On some websites, hovering a word triggers a popup from the website, so I need to move the Zhongwen popup manually with X/Y . But when I hover on another word, the popup is back at its original position and I need to move it again.
Btw I also have the same problem because I use some other extensions that have their own popup windows which hide the Zhongwen popup.
On the pic below you can see Zhongwen partially hiding the dropdown menu, and Zhongwen itself is hidden by another black popup (that's my other extension: Flewent).

Could you add an option to save the position of the popup ?

Untitled1

(Android Firefox) enable/disable function

I'd like to replace the unofficial fork with yours but I noticed that the official one can't be enable/disable with a quick touch over the add-on in the kebab menu.

Could you add a quick enable/disable function there for Android Firefox? Many thanks!

Screenshot

Automatically add words to list

I would like the option to automatically add all words I look up to the word list. That way I won't have to press R every time.

Adding content.js to be available under Devtools

Image of Developer Panel
I've liked this extension for the ease of not having to commit to a google search each time I want to look up a word's pinyin. The translation has been helpful, but as an immersion learner, I want to remove it. I'm not sure how this is implemented, but content.js isn't on the DevTool panel while dict.js and background.js are (and I'm curious as to why / how this works). I'm sure I can find a way to remove the English in the dict.js section, but I already understand how to modify content.js for the same result. I'll probably just work around this issue by finding a modification in dict.js or cloning the repository, changing content.js myself, and installing the software as a new plugin. 同学们加油!

Please add donation option, this extention is too good

I've been using this extension for 5 months already, and it's stable, easy to use, and very useful! I came to the github page looking to donate some $/crypto as a thank you gesture, and couldn't find how! :)

If you don't want donations, accept my huge thanks and virtual love ❤️
amazing work!!

Dictionary shortcuts use selection instead of popup

This is similar to the second issue reported in #16.

To reproduce:

  1. Select some non-Chinese text
  2. Hover over Chinese characters to open the popup
  3. Use a dictionary keyboard shortcut
  4. The dictionary opens with the text in the selection instead of the popup-content.
    Expected: It should open with the characters in the popup.

Tone Colors

Hello,
Would it be possible to add an option to choose tone color; I learned all my Chinese with the "hanping tone colors". And it really bother me a lot the color used on your add-on.
https://resources.allsetlearning.com/chinese/pronunciation/Tone_colors
So my suggestion is to implement the most common combinations (or even better, be able to do custom color ?)
Otherwise, great job :)
Thanks

Cross device transfer of list

Currently moving from a laptop to another. How do I make sure the word list is transferred onto the new device on Chrome?

Make Available for Safari

I believe the latest version of Safari allows for simple conversion of Chrome extensions onto Safari. Zhongwen is my most used extension, and it would be great if you could look into it.

Link to Skritter outdated

Hey guys! Just found this and very excited to share with my Chinese students. I have a skritter account for each student and would love to use the add to skritter function but it seem like you have an old link?

Thanks!

Need to click on the extension logo to make it works

Hello,
When I open my browser, the extension does not work right away (Even if the logo Zhongwen" indicate "on" in red). I need to click on the extension logo, only thereafter it starts displaying when I hover over text. (It seems like the extension is by default off when opening the browser even though the logo says it is on)
Best regards,

Extension Type?

Hello,

We work in a controlled environment where by default we blacklist every Google Chrome extension, and then whitelist ones that our sec team has approved. I have this added to our whitelist, but can not install. My assumption is the app_type is off somehow.

Can you confirm what "type" of extension this is? https://www.chromium.org/administrators/policy-list-3#ExtensionAllowedTypes

"extension", "theme", "user_script", "hosted_app", "legacy_packaged_app", "platform_app".

Can you also confirm the extension ID is still kkmlkkjojmombglmlpbpapmhcaljjkde?

Pop-up Definitions Don't Show Phrases

I noticed recently that the pop-up doesn't sense phrases/multiple words anymore on Google Docs. I tried this with known phrases that have been defined using the extension before and the pop-up only defines each word one by one.

'c' for clipboard does not work under Google doc

Hi,

Which 'c' for copying to clipboard works for many tools, I've found under google doc. It didn't copy popup text to clipboard. Is there a escape key for copying under google doc?

Thanks.

Text-To-Speech pronunciation?

I use an app called Pleco on iPhone with offline text-to-speech pronunciation. I was wondering if the same can be done on a Firefox/Chrome browser with an extension like zhongwen? (e.g. right click to hear the pronunciation of a character/vocabulary)

Stopped working in Google Docs.

I've been using Zhongwen for years and it has been a great help with my work. I use it mostly within Google docs for my work. Today it suddenly stopped working on Google Docs even though it still works on other sites. Help!

Feature to pop-up on demand

Thank you for this great app.

It seems the only way to use is to manually activate/deactivate Zhongwen app, then all mouse-over text gets a popup. I was wondering if it would be possible to pop-up only when pressing a hotkey (e.g. by pressing SHIFT), so that Zhongwen can stay turned on most of the time but not distract with popups when not needed.

Just passing the idea! Sorry if it doesn't work this way as I am new to the GitHub!

Keyboard shortcuts can be activated without popup

  1. The R key add the last opened word(s) to the Word List even when the popup is
    not open.
    B1A5A2FE-E104-4D4E-A475-1B67ED195304
  2. The Alt + number shortcuts work on any selected text. (Even when the popup is open on something else.)
    292E43A6-733B-44B5-B8B7-B816C987095D

I am not sure if either are intentional, but imho it would make more sense to only allow shortcuts when the popup is opened.

"Download All" Button

When being in the word list page, it would be nice to have a "download all" button. Right now it is a little bit inconvenient to do so. (Currently I need to do: Show 100 entries => Select all rows => next => Select all rows => ... => Save selected rows)

Publish your extension to Microsoft Edge Addons website

Microsoft Edge is the second most used browser on the web, making the browsing experience more flexible, offering many more services for users and optimized for Windows devices.

Microsoft Edge supports Chromium extensions, and you can publish your extensions to Microsoft Edge Add-ons website with minimal code changes. Find out more here.

If you have any more queries about porting Chrome extension to Microsoft Edge or anything else, you can contact the relevant teams whose links are given here.

Let me know if this was helpful. I am happy to provide you with more information.

Text in textboxes does not layout properly

Using alt to highlight the text in textboxes results in improper layout. This started with recent new versions and did not affect the older versions. I am using 5.10.0

This is not confined to Google Translate. From what I've found, it behaves this way on all edit boxes equally, regardless the website

image

cannot turn on the extension

I tried closing and re-opening Chrome and resetting my computer, but I couldn't turn on the extension when I click it.

ZhongWen not just for browser

Hi Christian,
Thank you very much for creating Zhongwen, it is a tool that has helped me a lot over the years.
I just wanted to ask you if you have any plans for developing Zhongwen in a way that it works on EVERY character one comes across (be it PDF, Word, Excel, Mail etc..).
Meaning, is there any way that ZhongWen could work not just on texts appearing within the browser, but everywhere on the computer?
Please let mew know,
Thank you
Alessio

Adding custom dictionaries

I often find words I want translated later, but which aren't in CC-CEDICT. Primarily technical words, but also various neologisms and place names.

It would be nice to be able to collect these in a separate dictionary file, so that they can later be submitted to CC-CEDICT (or if not suitable for CC-CEDICT, kept locally).

Add CedPane dictionary supplement?

Hi, I maintain a public-domain Chinese-English dictionary supplement (currently about 64,000 entries), it's data that is not usually in "normal" dictionaries but still useful to have in a reader (mostly names of people and places). If including these extra entries, I would suggest labelling them in some way to differentiate them from the "main" CEDICT, as it seems the CEDICT editors are not sure they want to merge in CedPane entries en-masse (and anyway I'm still writing it).

If you do want to merge in, I think the best starting point would be the CedPane ChinaScribe file because the format of that is quite similar to CEDICT. The main difference is that some of the pinyin syllables are separated with _ instead of space: this indicates a word boundary in a multi-word phrase; if you can't cope with multi-word phrases then these entries are possibly best dropped. And some of the definitions are in <...> to indicate an environment (e.g. PRC, TW, netspeak, etc). Other than that it's basically the same apart from the sort order.

I don't know what is your current method of generating cedict.idx and your modified cedict_ts.u8 from upstream (do you have scripts to do this / can you put them in the repo for reference?), but I'd imagine merging in another source (and perhaps labelling every definition with [CedPane] or similar so as to differentiate them from mainline CEDICT) shouldn't be difficult.

It's nice that you are able to push out several updates a year. I currently tend to publish my CedPane edits on the last day of each month, although that's not a guarantee. If you do a git pull from my repo as part of your normal update script, that should work. Alternatively on the CedPane home page there's always a "Last update" and entry count.

(I used to make a text file of CedPane available for download from the home page, but then a developer in China thought it was a good idea to write a lookup extension that re-downloads CedPane from my server every time it was used, which caused hundreds of gigabytes of traffic—when I say “keep up to date” I don't mean that much☺ You can still get it from the home page but it's now a ZIP file which I hope will discourage our extension-writing friend from hammering my server. Meanwhile it also lives on the major Git providers which have more bandwidth. Including the data in the extension with periodic updates, as you do, does seem to be a better way.)

Read pdf's

Hello, I really love your extension and saves a lot of time.
Unfortunately I didn't find a way to use your tool in pdfs opened in Chrome. The text can be copied (it's a text pdf), but still I cannot activate the addon within the document?

Is there a way to fix this?

I am really looking forward to an answer

Thanks!

Keybaord shortcut for Firefox?

I can set a keyboard shortcut to enable/disable the zhongwen extension in Chrome. May I ask is there a way to do the same in Firefox? (e.g. in Firefox's "Manage Extension Shortcuts" menu)

Thank you!

Dictionary look up when hovering over Youtube subtitle doesn't work

Zhongwen pop up dictionary works even when hovering mouse over chinese subtitle in Youtube video (thank you very much for this amazing feature!). However when I open dictionary using Alt+5 (for example), it only opens the dictionary website but the chinese text did not get passed to the URL.

Doesn't work on linux

This is it. Nothing happens when hover on Chinese word. Sometimes selection is updating, but popup doesn't appear. Extension is active, no error messages appear.

Add support to capture the sentence of the word

It would be very useful if this could be added. Basically when I save words, I also want to know what the sentence it was in. Perhaps some clever regex stuff might be required to determine what a sentence actually is. Then when I export it, I have a whole list of sentences that can go into Anki.

Forvo Integration

Would you consider adding Forvo integration? It's a great site for getting native pronunciations, and I assume would require little effort to implement - it could work like one of the dictionaries available by shortcut. Alternatively, you could allow users to customize the dictionaries/websites accessible by the shortcuts.

Display over full screen mode

I wanted to know if it is possible to add a functionality where I can force the application to display over full screen mode; for example, I am currently watching courses on www.xuetangx.com. When I am not in FS mode, everything is displayed correctly, however, when I put the video in FS, the pop up doesn't show up anymore (It happens on other platform, but I do not remember which one)
Thanks!
Thomas

Feature to hide pinyin

Hi, I have been using this extension for ages, thank you!

I'd like to request a feature to be able to hide the pinyin, for example, when Zhuyin is turned on. It is helpful for learning and memorisation.

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.