#304 A question about extension advice and online.

v1.2.*
closed
nobody
question (5)
2014-02-03
2014-01-11
No

In fact, I would like to say why it must prohibit online ? In the absence of images and other media files offline situations , as long as the user allows the user networking and online networking will certainly be achieved . Then, add some online functions Why not? Like translators , Rss and other online features , users can easily use xowa, like when deploying xowa, I do not understand English , and no translation function which can only help a section of the content and settings are copied to Google Translate inside , really troublesome. These increases do not affect offline use online features of his other functions , you can still use the normal line , but when the network can use more convenient point only.
You can also detect whether the user has network (ping), have displayed these features, there is no network or prohibit access hidden on the line .
Or you to plug-in (extension) in the form of implementation, to open up some api, api through the contents (html code) of the page that is transferred to the plug and allow the plug-in creates a temporary page to display the contents of the plug-in storage or processing . Or to the plugin parameter at the end URl plus this parameter, the function of this plugin is called this parameter . For example, I have a Translator plugin , I need Translator "wikimediafoundation.org/wiki/Home", then I can directly enter in the address bar "wikimediafoundation.org/wiki/Home{plugin:Translator{en2zh-hant}}", and word frequency statistics and so on.
Then you can consider allowing direct xowa api command .
So for example, the address of the page wikimediafoundation.org , Category output to generate a list of plug-ins ( filter or search ( regular expressions ) ) , the wikimediafoundation.org pages or so designated ( list ) page output to him, allowing plug- generated files on the outside ( if you are calling an external program to realize the way the plug can be ignored ) ( in conjunction with the above plugin can batch output html file , and only turn into a relative address , it can be used as offline viewing , used in Andrews phone ) , close the program ( time off ) , so users may be less used functions .
You know why I do not watch directly on the page , because I do not want to use the browser , my browser is too slow, open to 2 min, I just want to enumeration data , do not want to wait a long time , so I used xowa it.
This is the Chinese , the above is translated using Google Translate text .
其实我很想说为什么一定要禁止在线呢?在没有图片和其他媒体的离线文件的情况下,只要用户联网和用户允许联网肯定要在线取得的。那么,增加一些在线功能也为什么不行呢?就像翻译、Rss等在线功能,可以方便用户使用xowa,就像在部署xowa时,我看不懂英文,里面又没有翻译功能,只能一段一段的把帮助和设置的内容拷贝到谷歌翻译里面,真的很麻烦。增加这些在线功能并不影响他的其他功能的离线使用,依旧可以正常离线使用,只是有网络时能够使用起来更方便点而已。
你也可以检测用户是否有网络(ping),有就显示这些功能,没有网络或禁止访问时隐藏起来就行了.
或者你以插件(扩展)的形式实现,开放一些api,通过api把页面的内容(html代码)传送到插件那,并允许插件创建一个临时页面来存放或显示插件处理后的内容。或者给插件一个参数,在URl的结尾加上这个参数,就调用这个插件的这个参数的功能。例如我有在线翻译的插件,我需要在线翻译“wikimediafoundation.org/wiki/Home”,那么我可以直接在地址栏输入“wikimediafoundation.org/wiki/Home{插件:在线翻译}”,还有词频统计等等。
然后,你可以考虑允许api直接对xowa下命令。
例如把wikimediafoundation.org的所以页面的地址、所属分类生成一个列表输出给插件(过滤或搜索(正则表达式)),把wikimediafoundation.org所以的页面或指定(列表中)的页面输出给他,允许插件在外面生成文件(如果你是以调用外部程序的方式实现插件的,可以忽略)(与上面的插件结合可以批量输出html文件,只有转成相对地址,就可以用作离线查看,用在安卓手机上),关闭程序(定时关闭),等等用户可能较少用到的功能.
你知道为什么我不直接在网页上看,因为我不想用浏览器,我的浏览器太慢了,打开要2min,我只想查点资料,不想等半天,所以就用xowa了。

Discussion

  • zjzengdongyang

    zjzengdongyang - 2014-01-11

    If you allow api directly xowa command, then, you need to pay attention to security issues, requires the user to use repeatedly confirmed (to install).

     
    • gnosygnu

      gnosygnu - 2014-01-12

      I'm not sure what you're asking, but I don't want to install any software packages (XOWA only requires a handful). In addition, they must be free, open-source software.


      我不知道你问什么,但我不想安装任何软件包(XOWA只需要极少数)。此外,他们必须是自由的,开放源码的软件。

       
      • Comment has been marked as spam. 
        Undo

        You can see all pending comments posted by this user  here

        Anonymous - 2014-01-19

        It is used in the description of the way the plug, the plug-in itself must be a script or program, you use the plug-in to run the script or program, passing the parameters and content, he then came content. When called to remind you to install and use, or for the first time using the plug-in and allows users to multiple users, and determine the consequences borne by the user.
        Program is not xowa own or dependence, but comes with plug-ins or dependence, does not violate the treaty. Like firefox.


        这是在说明插件的使用方式,插件本身必须是一个脚本或程序,你使用插件就在运行这个脚本或程序,传入参数和内容,他再传出内容。这叫你在用户安装并使用或首次使用插件时要提醒用户并让用户多次确定,说明后果由用户自负。
        程序不是xowa自带或依赖的,而是插件自带或依赖的,不违反条约。就像firefox.

         
        • zjzengdongyang

          zjzengdongyang - 2014-01-19

          Why look at sourceforge login, but the release is not logged in the text becomes too annoying.

           
  • gnosygnu

    gnosygnu - 2014-01-12

    Thanks for the English translation

    In fact, I would like to say why it must prohibit online?

    XOWA is meant to be an application used in offline situations. Any online functions would simply not work if offline. As such, these online functions would not be useful to most XOWA users, including myself.

    Then, add some online functions Why not? Like translators , Rss and other online features

    My time is limited, and there are a lot of offline features that need to be completed first in XOWA. For example: https://sourceforge.net/p/xowa/tickets/267/.

    Or you to plug-in (extension) in the form of implementation, to open up some api, api through the contents (html code) of the page that is transferred to the plug and allow the plug-in creates a temporary page to display the contents of the plug-in storage or processing

    If you're adventurous, you can try to experiment on your own. The HTML for a page is in xowa.gfs. Search for "page_read".

    Schnark was able to use this to MathJax, sortable columns (via JQuery), a Wikidata skin, and a custom Timeline procedure. It offers a lot of flexibility

    Or to the plugin parameter at the end URl plus this parameter, the function of this plugin is called this parameter . For example, I have a Translator plugin , I need Translator "wikimediafoundation.org/wiki/Home", then I can directly enter in the address bar "wikimediafoundation.org/wiki/Home{plugin:Translator{en2zh-hant}}", and word frequency statistics and so on.

    This would probably only work in Firefox (or whatever browser you use). Plugins don't work in XUL Runner (what XOWA uses)

    So for example, the address of the page wikimediafoundation.org , Category output to generate a list of plug-ins ( filter or search ( regular expressions ) ) , the wikimediafoundation.org pages or so designated ( list ) page output to him, allowing plug- generated files on the outside ( if you are calling an external program to realize the way the plug can be ignored ) ( in conjunction with the above plugin can batch output html file , and only turn into a relative address , it can be used as offline viewing , used in Andrews phone ) , close the program ( time off ) , so users may be less used functions .

    This sounds fairly complicated. Again, I really only have limited time, and there are other items which are higher priority. Sorry.

    You know why I do not watch directly on the page , because I do not want to use the browser , my browser is too slow, open to 2 min, I just want to enumeration data , do not want to wait a long time , so I used xowa it.

    Your browser sounds like it has issues. Unfortunately XOWA is not meant to be a browser substitute. Your best option is to look at other browsers, rather than try to have XOWA work like a full-fledged internet browser.


    感谢您的英语翻译

    其实,我想说,为什么它必须在网上禁止?

    XOWA ,就是要在离线的情况下使用的应用程序。任何在线功能将根本无法如果脱机工作。因此,这些在线功能不会有用到最XOWA用户,包括我自己。

    然后,添加一些在线功能,为什么不呢?像翻译人员, RSS等在线功能

    我的时间是有限的,而且有很多是需要在XOWA首先完成脱机功能。例如: https://sourceforge.net/p/xowa/tickets/267/

    或者你插件(扩展)的形式实现,以打开被转移到插头页面的一些API ,通过API的内容( HTML代码) ,并允许插件创建一个临时页面显示的插件存储或处理的内容

    如果你喜欢冒险,你可以尝试尝试你自己的。在HTML的页面是xowa.gfs 。搜索“ page_read ” 。

    Schnark能够用这个来MathJax ,可排序的列(通过JQuery ) ,一个Wikidata皮肤,和一个自定义时间轴程序。它提供了很大的灵活性

    还是要在年底URL中的插件参数加上这个参数,这个插件的功能被称为这个参数。例如,我有一个翻译插件,我需要翻译“ wikimediafoundation.org /维基/家” ,然后我就可以直接在地址栏中输入“ wikimediafoundation.org /维基/家居{ :翻译{ en2zh - HANT } }插件”进入和词频统计等。

    这可能只适用于Firefox (或者你使用任何浏览器) 。插件没有在XUL运行工作(什么XOWA使用)

    因此,例如,在页面wikimediafoundation.org ,分类生成的输出插件(过滤器或搜索(正则表达式) )列表的地址,该wikimediafoundation.org页左右指定(名单)页面输出给他,允许在外面插件生成的文件(如果要调用外部程序来实现的方式插头可以忽略不计)(与上述插件可以批量输出html文件相结合,只有变成一个相对地址,也可以是作为离线浏览,在安卓手机中使用) ,关闭程序(定时关机) ,因此用户可能不太常用的功能。

    这听起来相当复杂。同样,我真的只有有限的时间,还有其他的项目,须优先级越高。抱歉。

    你知道我为什么不直接在网页上不看,因为我不想使用浏览器,浏览器速度太慢,开到2分钟,我只是想查点资料,不想等待很长的时间,所以我用xowa它。

    您的浏览器听起来就像是有问题的。不幸的是XOWA不意味着是一个浏览器的替代品。你最好的选择是看其他的浏览器,而不是试图让XOWA工作就像一个成熟的互联网浏览器。

     
    Last edit: gnosygnu 2014-01-12
  • gnosygnu

    gnosygnu - 2014-01-12
    • labels: --> question
    • status: new --> investigating
    • Milestone: PFE --> v1.1.*
     
  • gnosygnu

    gnosygnu - 2014-01-12
    • status: investigating --> question
     
  • gnosygnu

    gnosygnu - 2014-01-15

    That's a good idea, and worth mentioning. I assumed that when
    zjzengdongyang said "my browser is too slow, open to 2 min" he meant it took 2 minutes for the browser to open. He could have meant 2 minutes for the Wikimedia page to load.

     
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous - 2014-01-17

      Sorry, I accidentally changed the text following, which was not from me. I undo the changes (Anselm):

      I tried seven or more browsers, and some may be my problem, or the application of computer network functions needed but my speed is not very good, it seems to be most simply click on the browser icon after waiting about 2 minutes only open (you can enter your own URL), open a Web page on a little faster, but I need to open xowa page and enter it almost two minutes, you say I use which?

       
      Last edit: Anselm D 2014-01-17
      • Anselm D

        Anselm D - 2014-01-17

        it seems to be most simply click on the browser icon after waiting about 2 minutes only open

        The browser should open faster after the click on the browser icon. My browser needs only a few seconds at my computer to start. I tried it with Internet Explorer and Mozilla Firefox (http://www.mozilla.org/zh-CN/firefox/new/). Google Chrome browser also exists in Chinese. http://www.google.com/intl/zh-TW/chrome/

        How long does Xowa needs to start at your computer?

        Reedit: I have to correct it, my firefox browser needs > 30 seconds to start at the first time. The second time it is much faster.

         
        Last edit: Anselm D 2014-01-18
      • gnosygnu

        gnosygnu - 2014-01-19

        I'm on Firefox 25 and it loads in less than 10 seconds.

        Some more questions:

        • Which browser are you using?
        • Which page are you opening?
        • How long does it take to open that page after the browser opens?
        • How long does it take to open a page like http://archive.org?
         
        • Comment has been marked as spam. 
          Undo

          You can see all pending comments posted by this user  here

          Anonymous - 2014-01-19

          http://archive.org/? --5s
          Which browser are you using? -sougou
          Which page are you opening? --www.hao123.com
          How long does it take to open that page after the browser opens? --10s-30s
          I have firefox and Chrome.But I have about 300 Bookmarks in Sougou.

           
          • gnosygnu

            gnosygnu - 2014-01-20

            Thanks for the responses:

            Which browser are you using? -sougou

            Sorry, but I have no experience with the sougou browser. It looks like it's aimed for a Chinese audience.

            I have firefox and Chrome.But I have about 300 Bookmarks in Sougou.

            Understood. You can import bookmarks into Firefox. It takes an HTML like format. I'd think Chrome has something similar.

            In the end, I really think you should try to fix your browser situation. As I said above, it's going to be much hard to get XOWA to act like a browser, than to get a browser to act like a browser.

            Which page are you opening? --www.hao123.com
            How long does it take to open that page after the browser opens? --10s-30s

            Hmm... It takes about 20 seconds for it to finish loading for me as well. It looks like a slow page

            http://archive.org/? --5s

            Ok. Have you tried downloading any of the image databases from archive.org: https://archive.org/search.php?query=xowa. If so...

            • What did you download?
            • How long did it take?

            We're just trying to get a sense of your download speed.

            Thanks.

             
  • Anselm D

    Anselm D - 2014-01-15

    Yes, i think zjzengdongyang meant the loading of the page. He additional said he has a translator plugin. If it is a browser plugin for offline or online use, he is able to use it with xowa-webbrowser. Depending on how the online translator plugin works, it will not work with the local address of the xowa-webserver and it has to be changed to the real address.

    I think he wants to have a software package for offline internet services which can be used with the computer or phone. At this moment i asked myself what is "Andrew Phone". After putting the chinese text to "http://www.bing.com/translator/" and "http://fanyi.youdao.com/", now i know it is "Android Mobile Phone".

    So he asked for an open official api between the application tier of xowa and the presentation tier of xowa. He wants to parse and to manipulate (tamper?) the html before the presentation. I suppose with xowa-webserver he has a bundle of new new possibilities to plugin. He can write an own proxy server between xowa-webserver and the browser or he can write plugins for the browser.

    @zjzengdongyang: Hello zjzengdongyang. I'm curious, why do you need word frequency statistics? For Linguistic? To determine the importance of each word (for learning vocabulary)? Which is your prefered programming language?

     
    Last edit: Anselm D 2014-01-15
    • Comment has been marked as spam. 
      Undo

      You can see all pending comments posted by this user  here

      Anonymous - 2014-01-17

      For "So he asked for an open official api between the application tier of xowa and the presentation tier of xowa. He wants to parse and to manipulate (tamper?) the html before the presentation. I suppose with xowa-webserver he has a bundle of new new possibilities to plugin. He can write an own proxy server between xowa-webserver and the browser or he can write plugins for the browser."
      This can force the lock you can make gnosygnu some pages, such as copyright information, xowa itself with what the plug-in, the official compression md5 (at home can be explained) package.

       
  • gnosygnu

    gnosygnu - 2014-01-16

    So he asked for an open official api between the application tier of xowa and the presentation tier of xowa.

    I think an API may be useful, but it could also be overkill. I don't think it's absolutely necessary. As an example, Schnark used javascript for Timeline and Wikidata. Both examples take the XOWA HTML, run javascript on it, and output something significantly different. The same approach can be applied to the translator as well.

    At any rate, let's wait to hear what zjzengdongyang says.

     
  • gnosygnu

    gnosygnu - 2014-01-28
    • status: question --> done
     
  • gnosygnu

    gnosygnu - 2014-01-28

    I'm marking this question done for now, and will close it this Sunday. If there is further discussion, please comment within and I'll reopen.

     
    Last edit: gnosygnu 2014-01-28
  • gnosygnu

    gnosygnu - 2014-02-03
    • status: done --> closed
    • Milestone: v1.1. --> v1.2.
     


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks