Saturday, February 23, 2013

Enche' Biskut Halia Blender

Created: 22nd February 2013M / 12 Rabiulakhir 1434H, Sa. [Ubuntu 12.04 Precise Pangolin]
Published: 23rd February 2013M / 12 Rabiulakhir 1434H, Sa.
Updated: -


Assalamualaikum.

This is Eche' Biskut Halia, see Pic 1, my gingerbread man created using Blender 2.62 (see Pic 2). Somehow my gingerbread man reminds me of biskut kopi (coffee biscuit) sprinkled with coffee powder ^_^

Compare Enche' Biskut with the other gingerbread man in Pic 3.

Pic 1 - Enche' Biskut Halia the biskut kopi man.


Pic 2 - Splash screen. Blender 2.62.


Pic 3 - Gus the Blender Wiki gingerbread man.


Enche' Biskut's texture wasn't created on purpose to look that way. I just don't know where I got the steps wrong.


Tryout the gingerbread man tutorial here:
Your First Animation in 30 plus 30 Minutes Part I
http://wiki.blender.org/index.php/Doc:2.6/Manual/Your_First_Animation/1.A_static_Gingerbread_Man


More about Blender, here:
blender.org
http://www.blender.org/



Wassalam.

Wednesday, February 20, 2013

Installing fonts for Z Notation symbols

Created: 7th February 2013M / 26 Rabiulawal 1434H, Th. [Ubuntu 12.04 Precise Pangolin]
Published: 20th February 2013M / 9 Rabiulakhir 1434H, We.
Updated: -


Assalamualaikum warahmatullah. My husband wanted to use the Z Notation domain antirestriction symbol, see Pic 1, in his assignment.

Pic 1 - Domain antirestriction symbol of the Z Notation using the Code2000 font as displayed here:
Unicode Character 'Z NOTATION DOMAIN ANTIRESTRICTION' (U+2A64)
http://www.fileformat.info/info/unicode/char/2a64/index.htm


I was unable to do a thorough search in the list of fonts in LibreOffice Writer because the Special Character dialog hang for unknown reasons. Up to that point there was no similar symbol to be found. I shutdown his laptop then moved-on to my laptop to do an online search.

Scrolling through the list of symbols here:
Unicode Characters in the 'Symbol, Math' Category
http://www.fileformat.info/info/unicode/category/Sm/list.htm
... I finally found the symbol. See Pic 2.

Pic 2 - List of math symbols, before installing the necessary font. In the rightmost column are images of the symbol. In the column next to the images are the symbols as displayed by the browser.



Part A: Test your browser

To check whether or not your brower supports the symbol in Pic 1, simply click this link:
Browser Test Page for Unicode Character 'Z NOTATION DOMAIN ANTIRESTRICTION' (U+2A64)
http://www.fileformat.info/info/unicode/char/2a64/browsertest.htm

The unsupported symbol will look pixeled like in Pic 3 while the supported symbol will look smooth like in Pic 4; that is unless the symbol is originally created to have a pixeled-look like the GNU Unifont in Pic 6.

Pic 3 means:
"You don't have the font in your system so the symbol is not displayed correctly in the browser."

Pic 4 means:
"You have the font in your system so the symbol is displayed correctly in the browser."

Proceed if you need to install the font.

Pic 3 - Unsupported. Pixeled. From the FileFormat.Info website.


Pic 4 - Supported. Smooth. From the FileFormat.Info website.



Part B: Local fonts check

To check the fonts in your system that supports the symbol in Pic 1, see Pic 5, simply click this link:
Local Font List
http://www.fileformat.info/info/unicode/font/fontlist.htm?text=⩤+-+Unicode+Character+'Z+NOTATION+DOMAIN+ANTIRESTRICTION'+(U%2B2A64)

Pic 5 - Checking local fonts, after installing a font that supports the symbol in Pic 1.


Prior to this post, no fonts in my system can display the symbol correctly. So a font that supports this symbol needs to be installed.



Part C: List of fonts that supports the Z Notation characters

Click the View All text-link to preview the symbols in the list of fonts installed on the FileFormat.Info server that supports the Z Notation symbols, see Pic 6, here:
Z NOTATION DOMAIN ANTIRESTRICTION (U+2A64) Font Support
http://www.fileformat.info/info/unicode/char/2a64/fontsupport.htm

Pic 6 - Among the fonts that support the Z Notation symbols. From the FileFormat.Info website.


Among the fonts that supports the Z Notation characters are:
  • Code2000
  • EversonMono
  • EversonMono-Oblique
  • GNU Unifont
  • LastResort
  • Quivira
  • STIXGeneral-Regular
  • Symbola
  • Unicode BMP Fallback SIL

Note that only the bolded fonts are available in Ubuntu Software Center.



Part D: Installing a font that supports the Z Notation characters

In Part C, I chose to use the STIXGeneral-Regular font.


1. Run Ubuntu Software Center.


2. In the search field, type-in the search term, see Pic 7:
stix
The search results will auto-filter.

Pic 7 - Refer to Step 2. Searching for the package.


3. Click the...
Scientic and Technical Information eXchange fonts
fonts-stix
... package. See Pic 7.

Then choose either:


A. Click the Install button (see Pic 7) to install right-away.


or


B. Click the More Info button (see Pic 7) to read more about the package and click the Install button later. See Pic 8.

Pic 8 - Refer to Step 3.B. More information about the STIX (Scientic and Technical Information eXchange) font package.


4. The Authenticate dialog will pop-up. See Pic 9.

Enter the password in the Password: field then click the Authenticate button.

Allow the installation process to take place.

Pic 9 - Refer to Step 4. Authenticating the installation.


5. After the installation process is completed, either:
- test your browser, refer to Part A; or
- try the local font check, refer to Part B, (the STIXGeneral font is used in Pic 5); or
- try-out the newly-installed font in LibreOffice Writer.



Alhamdulillah. Wassalam.

Sunday, February 17, 2013

How To: Solve Warnings and Badboxes in LaTeX

Created: 8th December 2012M / 24 Muharam 1434H, Sa.
Published: 17th February 2013M / 6 Rabiulakhir 1434H, Su.
Updated:


Assalamualaikum warahmatullah. Inspired by this statement:
... I would never accept a final PDF where there's some Overfull \hbox.

Source: Do I have to care about bad boxes?
In answer by egreg
http://tex.stackexchange.com/a/50838
... I decided to solve all the warnings and badboxes in my thesis although there is no problem at all to produce a PDF output (PDFLaTeX).

Starting with about 0 errors, 31 warnings, 212 badboxes (see Pic 1), I've managed to trim them down to 0 errors, 0 warnings, 3 badboxes (see Pic 2). The remaining badboxes are in the generated bibliography which I don't know how to solve.

Pic 1 - Starting with 0 errors, 31 warnings, 212 badboxes.


Pic 2 - Ending with 0 errors, 0 warnings, 3 badboxes.


Badboxes, according to egreg:
1. Overfull \hbox messages tell you that some line sticks out over the right margin;

2. Underfull \hbox messages tell you that some line is poorly typeset (or that you've improperly used \\ to leave a vertical space (for example, typing two \\ in a row);

3. Underfull \vbox messages usually tell you that a page is poorly typeset.

Source: Do I have to care about bad boxes?
In answer by egreg
http://tex.stackexchange.com/a/50838


Read the answers here to know a little bit more about the badboxes:
What are underfull hboxes and vboxes and how can I get rid of them?
http://tex.stackexchange.com/questions/138/what-are-underfull-hboxes-and-vboxes-and-how-can-i-get-rid-of-them


About the badness number:
Similar are \hbadness and vbadness which are a measure of how bad a box is, typically how much white space has had to be stretched. the exact number is not usually that relevant but 0 is good and 10000 is infinitely bad (TeX's badness calculation arbitrarily forces any very bad boxes to this amount).

Source: Do I have to care about bad boxes?
In answer by David Carlisle
http://tex.stackexchange.com/a/50850

My suggestion is to solve the warnings as much as possible first, and then solve the badboxes.



Part A: The draft

As suggested by Otis:
If you use draft mode (\documentclass[draft]{article}) you can see black lines on the side of your document where there is overfull hbox badness. This is a convenient way to find and fix these errors. – Otis Jul 26 '10 at 19:54

Source: What does “overfull hbox” mean?
In comment by Otis
http://tex.stackexchange.com/questions/35/what-does-overfull-hbox-mean#comment21_39


1. In the preamble, add the term (see Pic 3):
draft
...in the \documentclass.

Pic 3 - Refer to Step 1. Creating the draft.


2. Compile the document by Build > Compile > PDFLaTeX for the first compile. See Pic 4.

The following compiles can use the Build > QuickBuild. See Pic 5.

Pic 4 - Refer to Step 2. Compiling the PDF output.


Pic 5 - Refer to Step 2.


Don't worry when the figures in the output document are substituted with a thin black-bordered hollow rectangle, see Pic 6. Compare Pic 6 with Pic 7.

If you seem to get errors when previously there weren't any errors, try running this step (QuickBuild compile) a few times. Try about 3 to 4 times or more until you get about the same amount of warnings and badboxes as you had before changing the document into a draft.

Pic 6 - Refer to Step 2. The draft as viewed in Okular.


Pic 7 - Refer to Step 2. The original/finished document as viewed in Okular.


3. Make the necessary corrections to solve the warnings and badboxes. Refer to Part B to Part G in this post.


4. As this "drafting" step is temporary, the draft term added in Step 1 should be removed after the required corrections are completed in order to return to the 'print'/'real' mode.



Part B: "Shell escape feature is not enabled."

One of the warnings that might arise in Kile from Step 2 is the "Shell escape feature is not enabled." warning. See Pic 8.

Pic 8 - "Shell escape feature is not enabled." warning.


By solving the shell escape warning, this deducted 1 warning for me. See Pic 9.

Pic 9 - Progressing with 0 errors, 30 warnings, 212 badboxes.


See also:
Development of LaTeX frontend kile. () > eps && pdf
http://comments.gmane.org/gmane.comp.kde.devel.kile/1410


5. Go to Settings > Configure Kile... . See Pic 10.

Pic 10 - Refer to Step 5. Accessing the Configure - Kile dialog.


6. In the Configure - Kile dialog, see Pic 11,
in the leftmost column, go to Tools > Build.

Then under the Select a tool column, select PDFLaTeX.

Go to the General tab. In the Options: field, change from this:
-interaction=nonstopmode '%source'

... to this:
-interaction=nonstopmode -shell-escape '%source'

Source: Forward & Reverse DVI with multiple file document
In reply by dj_bridges
http://www.latex-community.org/viewtopic.php?f=20&t=3380#p13225

Then click the OK button.

Pic 11 - Refer to Step 6. Enabling the shell escape option.


7. Compile the document. Refer to Step 2.



Part C: `!h' float specifier changed to `!ht'.

Fixing the "`!h' float specifier changed to `!ht'." warning (see Pic 12) should reduce the number of warnings.

Pic 12 - The "`!h' float specifier changed to `!ht'." warning.


The float specifiers:
h means here allowed,
t means top,
b means bottom,
p means on a float-page,
! means try harder! to place it earlier.

Source: `h' float specifier changed to `ht' warning when not attempting to specify a float
In answer by Stefan Kottwitz
http://tex.stackexchange.com/a/1527

Usually h is too strict. This way you don't allow top, bottom or page placement. Use at least ht instead, or relax it to htbp or even !htbp if you like. If you really need it to be exactly "here", use the H option together with the float package. There are further ways. But adding placement options is usually fine.

Source: LaTeX Warning About Height, \hbox, and \vbox, and ht
In answer by Stefan Kottwitz
http://tex.stackexchange.com/a/6983

Read more about floats, here:
LaTeX/Floats, Figures and Captions > Floats
http://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Floats


8. Check the float specifiers in the *.tex files.

Change from [!h] or [h!]
to [!ht] or [!hb] or any specifier combination you want depending on your needs. See Pic 13 and Pic 15.

Pic 13 - Refer to Step 8. Float specifier for a figure in my thesis.


9. Compile the document. Refer to Step 2.

My suggestion is: change the float specifier for one figure or table at a time then compile. If the number of warning goes down, only then proceed to the next figure or table.



Part D: "No positions in optional float specifier."

Fixing the "No positions in optional float specifier." warning (see Pic 14) should reduce the number of warnings.

Pic 14 - The "No positions in optional float specifier." warning.


I use sidewaysfigure and sidewaystable. Previously i didn't use the float specifier for the sideways because if I used an unsuitable specifier, LaTeX will lump all the figures at the end of the chapter instead of placing them where I have placed them throughout the chapter.

If you put in a suitable specifier, the warning goes away and the object (figure/ table) stays where you want it to be.


10. For the sidewaysfigure or sidewaystable, instead of using [!h] or [!ht], I used [!p]. See Pic 15.

Pic 15 - Refer to Step 10. The float specifier for a sidewaysfigure in my thesis.


11. Compile the document. Refer to Step 2.

My suggestion is: change the float specifier for one figure or table at a time then compile. If the number of warning goes down, only then proceed to the next figure or table.

The draft for Pic 15 is shown in Pic 16, and the "real" page is shown in Pic 17.

Pic 16 - Refer to Step 11. The sidewaysfigure in draft mode.


Pic 17 - Refer to Step 11. The sidewaysfigure in print mode.



Part E: "Font shape `OT1/cmr/bx/sc' undefined(Font) using `OT1/cmr/bx/n' instead on input line ##."

Fixing the "Font shape `OT1/cmr/bx/sc' undefined(Font) using `OT1/cmr/bx/n' instead on input line ##." warning (see Pic 18) should reduce the number of warnings.

Pic 18 - The "Font shape `OT1/cmr/bx/sc' undefined(Font) using `OT1/cmr/bx/n' instead on input line 6." warning.


About the warning:
You did nothing wrong. TeX tells you that it does not have Small Caps bold Computer Modern font, so it switches to bold normal font. This is a design decision by font author (Knuth) not to have this variant; you may try to find fonts that have bold small caps (not that I know of such) or to fake the effect using uppercase.

Actually your line is already in uppercase, so I wonder whether you really need small caps: usually people use small caps with lowercase letters, with \textsc{\MakeLowercase{...}}

Source: A problem with \textsc
In answer by Boris
http://tex.stackexchange.com/a/37620


12. There are 2 solutions I can think of, attemped, and worked for me:

A. The solution I used in my thesis is to remove the Small Caps code, \textsc and simply type in all capitals. See Pic 19.


B. Another way is as Boris mentioned. The code is shown in Pic 19 and the output is shown in Pic 20.

Pic 19 - Refer to Step 12. The Small Caps code. All caps (above) and Small Caps (below).


Pic 20 - Refer to Step 12. The output for Pic 19 at 150% zoom in Okular. All caps (above) and Small Caps (below).


13. Compile the document. Refer to Step 2.



Part F: "Overfull \hbox (##pt too wide) in paragraph"

Fixing the "Overfull \hbox (##pt too wide) in paragraph" badbox (see Pic 21) should reduce the number of badboxes.

Pic 21 - The "Overfull \hbox (##pt too wide) in paragraph" badbox.


About fixing the Overfull \hbox:
but what can be done about Overfull \hbox? – alfC Apr 5 at 18:10
http://tex.stackexchange.com/questions/50830/do-i-have-to-care-about-bad-boxes#comment105354_50838

@alfC Some small text editing usually solves the problem. I use to say that very rarely the first or even the fourth version of a text has so polished a prose that it's become untouchable. :) – egreg Apr 5 at 19:40
http://tex.stackexchange.com/questions/50830/do-i-have-to-care-about-bad-boxes#comment105386_50838

small text editing means changing the choice of words? (just asking). – alfC Apr 6 at 7:08
http://tex.stackexchange.com/questions/50830/do-i-have-to-care-about-bad-boxes#comment105496_50838

@alfC That's one of the possibilities. In some case just altering the word order can help; adding or removing a "that"; applying a hyphenation that TeX wouldn't have chosen; … – egreg Apr 6 at 8:58
http://tex.stackexchange.com/questions/50830/do-i-have-to-care-about-bad-boxes#comment105507_50838

Source: Do I have to care about bad boxes?
In comments to egreg's answer
http://tex.stackexchange.com/a/50838


14. Scroll in the drafted output (refer to Part A) to look for a thick black vertical (with respect to the text direction) line. These thick lines mark the items that exceed the right-hand margin.

See Pic 22 for an example of an overfull figure,
Pic 23 for an overfull sidewaysfigure,
Pic 24 for an overfull table, and
Pic 25 for an overfull text.

Pic 22 - Refer to Step 14. Example of an overfull figure.


Pic 23 - Refer to Step 14. Example of an overfull sidewaysfigure.


Pic 24 - Refer to Step 14. Example of an overfull table.


Pic 25 - Refer to Step 14. Example of an overfull text.


15. When you see the thick line, go the related *.tex file.

Note that these are only suggestions of what-to-do to overcome the badboxes. Adjust accordingly to suit your needs.

A. If it's a figure, scale-down the figure.


B. If it's a table, adjust the cell size, or font size, or wording.


C. If it's texts, adjust the horizontal space for the text, or change the wording, or add hyphenation.


16. Compile the document. Refer to Step 2.



Part G: Fixing the Underfull \hbox badboxes

This fix was inspired by this post:
You should rarely need to use \\ in documents apart from its use in alignments (where it is a macro based on the \cr primitive), and you should rarely need \par in documents as a blank line should suffice.

Source: When to use \par and when \\
In reply by David Carlisle
http://tex.stackexchange.com/a/82666


The usual mistakes:
The usual mistake is *ending* a paragraph with \\

As I did just above -- with a blank line or \par following after \\. People do this to increase the paragraph separation, when they should instead set \parskip.  The underfull box arises because the paragraph-fill space (\parfillskip) is discarded when a totally empty line occurs.

If you *begin* a paragraph with \\ (\\ after a blank line) LaTeX complains explicitly.

Source: Underfull \hbox (badness 10000) warning
In reply by Donald Arseneau
https://groups.google.com/d/msg/comp.text.tex/5LZ06meo80s/sm3UwYPAYGYJ


About the \\ (double backslash):
The intent of \\ is to fill with whitespace and produce a linebreak. Maybe you are thinking of \linebreak rather than \\ (or \newline).

Source: Underfull \hbox (badness 10000) warning
In reply by Donald Arseneau
https://groups.google.com/d/msg/comp.text.tex/5LZ06meo80s/sm3UwYPAYGYJ


Initially I used \\ at the end of paragraphs like in Pic 26.

Then I used \vspace and \par at the beginning of paragraphs like in Pic 27.

In the end I used \vspace and blank lines. I didn't use \setlength{\parskip} because it upsets the spacing-between-paragraphs of the whole document whereas I want it to effect only the chapters; fine-writing the template might be able to make it work as needed. So to obtain the spacing-between-paragraphs, I used \vspace{8.0 mm}. The extra blank lines are for my own readability.

Pic 26 - Using \\ at the end of a paragraph.


Pic 27 - Using \vspace{8.0 mm} \par at the beginning of a paragraph.


17. In the *.tex file, I deleted all \\ and \par and rearranged \vspace{8.0 mm} to be above paragraphs. See Pic 28.

Note that I use \\ in a list or any text that has no blank lines in between. See Pic 29.

Pic 28 - Refer to Step 17. Using \vspace{8.0 mm} and blank lines.
The "Naturals fibers" paragraph is on a new page after a sidewaysfigure, thus explains the absent \vspace{8.0 mm} above the paragraph.


Pic 29 - Refer to Step 17. Using \\ in a list.


18. Compile the document. Refer to Step 2.

The output of Pic 28 is shown in Pic 30. 

Pic 30 - Refer to Step 18. The output of the paragraph at 100% zoom in Okular.



Alhamdulillah. Wassalam.

Wednesday, November 21, 2012

How to solve wireless-disabled-by-hardware-switch problem

29 Zulhijah 1433H, Rabu.

The problem

Assalamualaikum. Being back in my hometown (balik kampung!), i tried to establish a connection from my laptop to my mother's Wi-Fi. Unfortunately, it shows in the Network Connections menu that, see Pic 1:
wireless is disabled by hardware switch

Pic 1 - The Network Connections menu in the Panel. No wireless connection.


Searching for the nearest LAN (local area network) cable i can get my hands on, my brother borrowed me his USB wireless adapter instead but the device was not detected by my laptop. So i had to borrow my brother's LAN cable. The cable was detected upon being plugged-in.



The background

The only switches on this laptop, a Lenovo IdeaPad Z470, are two; one for graphic acceleration and one for network (bluetooth and wireless).

The network switch on this laptop (and probably on other laptops as well) controls both the bluetooth and wireless connection. In other words, flick this network switch OFF, you switch off both the bluetooth and wireless connection. But somehow, when the network switch is ON, only the bluetooth has connection but not the wireless.

In the BIOS (Basic Input/Output System) I even tried disabling something (forgot what it was :D), reboot, then enabled what i disabled, reboot and gave the wireless a try -- didn't work.

This problem has probably been around me for sometime, only i didn't notice it because i use cable all the time. I even insisted that my husband setup a second router nearby so that i can plug-in from there ^^



The solution

This solution is for those who have Ubuntu setup to dual boot with Windows. Yes, Microsoft Windows!

Could this wireless problem be something faced by those who have dual boot?


1. Reboot the device to startup in Windows.


2. Flick the the physical (hardware) network switch ON. See Pic 2.

If it's already ON, switch it OFF (see Pic 3) then ON again.

Pic 2 - Refer to Step 2. The network switch turned ON.


Pic 3 - Refer to Step 2. The network switch turned OFF.


3. Try connecting to a wireless network. --This is to make sure there is no problem your computer's network card.


4. Reboot to startup in Ubuntu.


5. Check the wireless connection. It should work this time. See Pic 4.

Pic 4 - Refer to Step 5. The Network Connections menu in the Panel. Welcome back, wirelesses!



The simulation

To simulate the problem:

i - reboot into Windows

ii - physically turn OFF the network switch

iii - reboot into Ubuntu

iv - try to connect via wireless



Note 1

The only downside if i leave the network switch ON is, i have to softly (software, via the Panel) disable the bluetooth after every startup. Otherwise i can turn OFF the switch and forget about the bluetooth.



Note 2

If somehow you flick the network switch OFF then after the next startup you want to use the wireless: flick the switch ON then Log Out then Log In. Reboot if logging in and out does not work.


Wassalam.

Monday, September 10, 2012

Keyboard input for Japanese Hiragana and Chinese Pinyin

21 Syawal 1433H, Sa.

Assalamualaikum warahmatullah.


Part A: The Japanese Hiragana

My cousin asked how to make the Hiragana script (one of the Japanese scripts) available on Ubuntu because the script is available on Gwibber but not available system-wide. She noted that it was Katakana that is available system-wide.

The modern Japanese writing is dividable into three scripts:
  1. Hiragana which looks like this: ひらがな (reads: hiragana)
  2. Katakana which looks like this: カタカナ (reads: katakana)
  3. Kanji which looks like this: 漢字 (reads: kanji)
Romanized Japanese is called Romaji.

Read more about the Japanese writing system, here:
Japanese writing system - Wikipedia, the free encyclopedia
(http://en.wikipedia.org/wiki/Japanese_writing_system)

You may find this webpage (one of Jim Breen's webpages) to be useful:
WWWJDIC: Text/Word Translation
(http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?9T)



Part B: The Chinese Pinyin

Romanized Chinese is called Pinyin.

You may find this online dictionary to be very helpful:
Xiaoma Cidian - Chinese English Dictionary
(http://www.xiaoma.info/)

"Romaji is to Japanese as Pinyin is to Chinese"



Part C: How to "activate" Hiragana

After some googling, i found this blog:
Japanese Input on Ubuntu Linux 10.04 LTS Lucid Lynx - Localizing Japan
(http://www.localizingjapan.com/blog/2010/06/15/setting-up-japanese-input-on-ubuntu-linux-10-04-lts-lucid-lynx/)

which was mentioned, here:
How do I get keyboard to write hiragana instead of katakana? - Ask Ubuntu
(http://askubuntu.com/questions/28669/how-do-i-get-keyboard-to-write-hiragana-instead-of-katakana)


1. Accessing the Language Support window.


1.1. In the Launcher, see Pic 1, click the Dash Home icon, see Pic 2.

Pic 1 - Refer to Step 1.1. Accessing the Language Support window.


Pic 2 - Refer to Step 1.1. The Dash Home icon in the Launcher.


1.2. In the Search field, type-in "language", see Pic 1.


1.3. Click the Language Support icon, see Pic 3.

The Language Support window will appear, see Pic 4.

Pic 3 - Refer to Step 1.3. The Language Support icon.


2. Step 2 to Step 4 is to install the packages for the language.

In the Language Support window, under the Language tab, click the Install/Remove Languages... button, see Pic 4,.

The Installed Languages window will appear, see Pic 5.

Pic 4 - Refer to Step 2. The Language Support window.


3. In the Installed Languages window, see Pic 5, search for the Japanese language.

Put a tick in the box under the Installed column for the Japanese language.

Then click the Apply Changes button.

Pic 5 - Refer to Step 3. The Installed Languages window.


4. The Authenticate window, see Pic 6, will appear to ask for your password.

Key-in you password in the Password field.

Then click the Authenticate button.

The Applying changes window, see Pic 7, will appear to show the progress. Allow some time for the process.

Pic 6 - Refer to Step 4. The Authenticate window.


Pic 7 - Refer to Step 4. The Applying changes window.


5. Step 5 to Step 9 is to setup the input method.

In the Language Support window, see Pic 8, under the:
Keyboard input method system:
choose:
ibus
Then the Language Support window can be closed.

Pic 8 - Refer to Step 5. Setting the keyboard input method system.


6. Setting up the input method.


6.1. In the Launcher, see Pic 9, click the Dash Home icon, see Pic 2.

Pic 9 - Refer to Step 6.1. Accessing the IBus Preferences window.


6.2. In the Search field, type-in "ibus", see Pic 9.


6.3. Click the Keyboard Input Methods icon, see Pic 10.

Pic 10 - Refer to Step 6.3. The Keyboard Input Methods icon.


7. A nameless window, see Pic 11, will appear with:
Keyboard Input Methods (IBus Daemon) has not been started. Do you want to start it now?
Click the Yes button.

The IBus icon, see Pic 12, will appear in the Panel.

Pic 11 - Refer to Step 7. Nameless window-1.


Pic 12 - Refer to Step 7. The IBus icon which appears in the Panel. Note that the Keyboard Layout icon has nothing to do with the IBus icon.


8. Another nameless window, see Pic 13, will appear with:
IBus has been started! If you can not use IBus, please open System Menu -> System Settings -> Language Support and set the "Keyboard Input Method" to "ibus", then log out and back in again.
Click the OK button.

Pic 13 - Refer to Step 8. Nameless window-2.


9. The IBus Preferences window, see Pic 14, will appear.

Go to the Input Method tab.

Put a tick in the box next to:
Customize active input methods

From the Select an input method menu, choose Japanese > Anthy.

Click the Add button.

Then close the window.

Pic 14 - Refer to Step 9. Adding the input method.


10. Giving Hiragana a try.

Open LibreOffice Writer or any other program.

Click the IBus icon in the Panel, see Pic 15.

In the menu, change from Input method Off to Japanese - Anthy then type-away.

To write, you type in romaji, e.g. nihongo. As you type, that would be replaced by hirigana にほんご. Hit space and that would be replaced with the kanji 日本語. Hit space again and you get a menu of other ways to represent it, which is important as Japanese has many homonyms.

Source: How do I get keyboard to write hiragana instead of katakana? - Ask Ubuntu
(http://askubuntu.com/questions/28669/how-do-i-get-keyboard-to-write-hiragana-instead-of-katakana)

When you're done, remember to change the input method back to Input method Off.

Pic 15 - Refer to Step 10. Changing the input method.



Part D: Starting IBus the next time

11. If the input method is giving you trouble, try restarting the application automatically by choosing Restart from the menu, see Pic 15.

If the problem persists, simply Quit the application, see Pic 15, and restart it manually, see Step 12.


12. Next time, to start the application, in the Launcher, see Pic 9, click the Dash Home icon, see Pic 2.

In the Search field, type-in "ibus".

Click the IBus icon, see Pic 16.

Pic 16 - Refer to Step 12. The IBus icon.



Part E: How to "activate" Pinyin

I don't think the Pinyin input in my system came with the Japanese language package shown in Step 3 to Step 4. i think it came with some other packages that were installed in the previous version of Ubuntu.

Pic 17 - The added input methods.


13. If you need to add Pinyin, repeat Step 3 to add the package.

Search for the Chinese (simplified) language package see, Pic 18.

Pic 18 - Refer to Step 13. Adding the language package.


14. Repeat Step 9 to add the input method.

In the IBus Preferences window, see Pic 17, go to the Input Method tab.

In the Select an input method menu, add Chinese > Pinyin.

Then click the Add button.



Wassalam.