JosephMillsAtWork / voicetogoog

Automatically exported from code.google.com/p/voicetogoog
1 stars 0 forks source link

Allow regional and/or user customization of external application launchers #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps come close to solving your problem?
1. web search using http://www.google.com/m/
2. google map search using http://www.google.com/m/local/
3. YouTube video search using http://m.youtube.com/#/results?q=
(which has unfortunately resulted in VoiceToGoog being unavailable in China on 
until I remove this feature ... see: 
http://www.mail-archive.com/meego-dev@meego.com/msg10899.html )
4. Use Harmattan 'drive' app to navigate to the geolocation position of the 
selected voice note.
5. Use Harmattan 'drive' app to navigate to the text transcription of the voice 
note.
6. Show the contact associated with the voice-to-text entry using Harmattan 
contacts app -- from which the contact can then be 
emailed/smsed/called/navigated to, etc, using existing platform capabilities.
7. Mail/SMS the transcribed voice notes using platform messaging application. 
Future: http://code.google.com/p/voicetogoog/issues/detail?id=1

What additional functionality is needed to satisfy your needs?

Provide some abstraction and customization of the above. For example, to work 
around regions with different search or media engines available, it makes sense 
to use allow users to have regional "settings" files which specify the "format" 
of externally launched programs via 
http://doc.qt.nokia.com/stable/qstring.html#arg . That way, you could have an 
extensible list of external programs that can be launched with appropriate 
custom parametrization. And this user-extensible list of regional or 
user-customized "launchers' would be incorporated automatically into the 
VoiceToGoog main menu....

Original issue reported on code.google.com by NielsMa...@gmail.com on 11 Nov 2011 at 4:18

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
May need to make more adjustments than just replacing YouTube with YouKu for 
China ( 
http://searchenginewatch.com/article/2078969/Video-Search-in-China-Baidu-vs.-You
ku ). May also want to replace Google searches with Baidu: 
http://en.techorange.com/microsoft-powered-baidu-spin/ ...

Original comment by NielsMa...@gmail.com on 16 Nov 2011 at 10:57

GoogleCodeExporter commented 8 years ago

The YouKu video search site is http://3g.youku.com/smartphone/index.jsp . It 
has a search button which requires a POST to 
http://3g.youku.com/smartphone/result.jsp

<div id="search_box" >
    <form action="result.jsp" method="post">
    <div id="search_input"><input type="text" id="keyword" name="keyword" /></div>
    <div id="search_submit">
    <input id="search_submit_input" type="image" src="./img/searchbution.png" />
    </div>
    </form>
</div>

However, by accident, I discovered that it also accepts a keyword parameter
http://3g.youku.com/smartphone/result.jsp?keyword=nokia%20n9
which is the same search as http://www.soku.com/search_video/q_nokia%20n9
except the 3g.youku.com version doesn't require flash for viewing video.

When a 3g.youku.com video is browsed on Harmattan, it brings up platform media 
browser and shows the video in that application, just like for YouTube.

Thus, for China version of VoiceToGoog, can replace the YouTube searching code:
            CMD.openUrlExternally("http://m.youtube.com/#/results?q="
                                 + encodeURIComponent(ut)
                                 + "&location="
                                 + uttersModel.get(i).lat + ","
                                 + uttersModel.get(i).lng
                                 +"&location-radius=1000km");

With something like:

           CMD.openUrlExternally("http://3g.youku.com/smartphone/result.jsp?keyword="
                                 + encodeURIComponent(ut));

Similarly, the following may need replacement w/ non-google alternatives, for 
China:

"Web Search Selection(s)" -->
        CMD.openUrlExternally("http://www.google.com/m/search?uipref=3&mrestrict=xhtml&q="
                             + encodeURIComponent(ut));

"Google Map Selection(s)" -->
         CMD.openUrlExternally("http://www.google.com/m/local/?q="
                               + encodeURIComponent(ut)
                              );

However, may want to use soku to aggregate search across all chinese video 
sites. Unfortunately the resulting search page is not suitable for mobile 
usage, and browsing a video requires flash: 
http://www.soku.com/v?keyword=nokia%20n9 

The following gives some background on the search/video situation in China:

http://searchenginewatch.com/article/2078969/Video-Search-in-China-Baidu-vs.-You
ku
.................
If you look at search globally, Google rules and YouTube is the second largest 
search engine in the world, but YouTube was blocked in China starting in 2009.

So when it comes to video search in China, the key players would most likely be 
Baidu or Youku.

This becomes apparent when Youku launched its specialized video search engine 
Soku in May, that allows users to search for video files under its network as 
well as from 10 other video sites in China such as Tudou, Qiyi, Sohu, Sina, 
56.com and joy.cn.
..............

This article suggests that google is "out" and baidu is in as a search engine 
for China. 

http://en.techorange.com/microsoft-powered-baidu-spin/

................
Earlier this week it was announced that Microsoft inked a deal with Chinese 
search giant Baidu to power the site’s English searches. With Baidu handling 
83% of searches in China, it’s a big deal for Microsoft, who now has a major 
competitive advantage over search rival Google who bowed out of China in 2010.
................

Original comment by NielsMa...@gmail.com on 17 Nov 2011 at 2:32

GoogleCodeExporter commented 8 years ago
Fixed "regional customization" in voicetogoog 0.2.2. "user customization" 
should be a separate feature as this one is closed w/ the following changes:

  * Moved externally launched programs, and their associated labels and icons to properties in main.qml; which may get an override on a per-region basis via file Region<RegionName>.qml and call to the method "region.doOverrides()".
  * Added RegionNull.qml (No-Op) and RegionCN.qml (for Chinese-preferred search/video/map sites), alongside voicetogoog.pro which sets compilation $DEFINES APP_REGION="Null" or "CN" to invoke appropriate regional override which is invariant over system language or any other user-adjustable parameter. In version 0.2.1, using $LANG to enable regional overrides did not pass Nokia QA for China since users apparently change their $LANG in N9's options.

Original comment by NielsMa...@gmail.com on 21 Nov 2011 at 5:12

GoogleCodeExporter commented 8 years ago

Original comment by NielsMa...@gmail.com on 21 Nov 2011 at 5:13