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

mozc_tool should have usage information #169

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 4 comments
Closed

mozc_tool should have usage information #169

GoogleCodeExporter opened this issue Apr 22, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

@GoogleCodeExporter GoogleCodeExporter commented Apr 22, 2015

What steps will reproduce the problem?
1. /usr/lib/mozc/mozc_tool # About Dialog shown
2. /usr/lib/mozc/mozc_tool --help # About Dialog shown again
3. # give up

What is the expected output?
/usr/lib/mozc/mozc_tool --help
The above command should give usage information. You may also support -h even 
-?.

What do you see instead?
Same About Dialog.

What version of the product are you using? On what operating system?
Check the attachment for the version.
OS is Ubuntu 12.04 with GNOME Shell.

Please provide any additional information below.
Sometimes the Mozc settings are quite hard to find:
http://askubuntu.com/questions/169835/where-are-mozc-settings

Original issue reported on code.google.com by damage3...@gmail.com on 14 Aug 2012 at 5:41

Attachments:

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Apr 22, 2015

The behavior you reported is by design.
We haven't intended that mozc_tool is launched with manually specified options 
from terminal by an end user.
Basically only Mozc code should depend on this kind of knowledge of command 
line flags and ideally an end user can access to Mozc setting dialog from GUI.

Regarding "Preference" button on ibus-setup, you can enable the button by 
adding <setup> section into /usr/share/ibus/component/mozc.xml as follows.

<component>
  <version>1.3.975.102-2</version>
  <name>com.google.IBus.Mozc</name>
  <license>New BSD</license>
  <exec>/usr/lib/ibus-mozc/ibus-engine-mozc --ibus</exec>
  <textdomain>ibus-mozc</textdomain>
  <author>Google Inc.</author>
  <homepage>http://code.google.com/p/mozc/</homepage>
  <description>Mozc Component</description>
<engines>
<engine>
  <rank>80</rank>
  <description>Mozc (Japanese Input Method)</description>
  <language>ja</language>
  <icon>/usr/share/ibus-mozc/product_icon.png</icon>
  <layout>jp</layout>
  <name>mozc-jp</name>
  <longname>Mozc</longname>
  <setup>/usr/lib/mozc/mozc_tool --mode=config_dialog</setup>
</engine>
</engines>
</component>

We are planning to add this section in the next release.

You can also access to the setting dialog via IBus language panel.
See the attached screen shot.
(There are some duplicated items in the language panel as of Mozc 1.3.975.102 
on Ubuntu 12.04; it's a bug introduced by the Debian maintainer.)

Thanks.

Original comment by yukawa@google.com on 16 Aug 2012 at 2:45

  • Changed state: WontFix
  • Added labels: Component-UI, OpSys-Linux

Attachments:

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Apr 22, 2015

If you really want to get some instructions via --help command, please try 
Debug build or unset IGNORE_HELP_FLAG defined in base/flags.cc.
http://code.google.com/p/mozc/source/browse/trunk/src/base/flags.cc#224 

Release build sets this flag. 

Original comment by t...@google.com on 16 Aug 2012 at 4:04

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Apr 22, 2015

Thank you for your replies!

Original comment by damage3...@gmail.com on 16 Aug 2012 at 4:10

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Apr 22, 2015

FYI, starting with r124, mozc.xml contains <setup> section.

Original comment by yukawa@google.com on 31 Aug 2012 at 6:37

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

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.