MorphixLog

From IndLinux
Jump to: navigation, search

The whats where in morphix. Log of changes made to it to make it indic enabled. This is all random, adding stuff coming to mind or discovered.

!Morphix/Knoppix/Debian stuff

  • Base module has knoppix-autoconfig & morphix-start in /etc/init.d , they seem to do most work.
  • morphix tries 1600x1200 straight away, need to bring that to 1024x768
  • Morphix customizing howto is at

!Boot image customization

Convert you image to 640x400 size and save in ppm format using netpbm.
I converted from png -> pcx -> ppm (pcxtoppm) -> lss16
  • Modifying default boot options

http://am.xs4all.nl/phpwiki/index.php/AddingDefaultBootoptions

  • Changing splash screens (sugested by Sayamindu)

mount the boot.img, gunzip the miniroot.gz, mount miniroot, replace the files in the /bootsplash directory


!Main Module customization

  • Some modifications done
    • In Mainmod (MorphixMain-Gnome.mod) - assuming ur chrooted into mainmod tree
      • Copy fonts into /usr/share/fonts/indic/OpenType , and run fc-cache -f
      • Copy gkb keyprops for Indic in /usr/share/gnome/gkb/ , flag (in.png) goes into /usr/share/pixmaps/gkb
      • Build the locales *_IN in /usr/lib/locale
      • copy updated translations in /usr/share/locale/LANG/LC_MESSAGES (LANG=hi, kn, ..etc)
      • default user is morph, /home/morph is built from contents of /etc/skel
      • Gkb applet configuration (.gconf/gnome/desktop/peripherals/keyboard/layout/%gconf.xml )
      • Desktop links are in /etc/skel/Desktop . Put translated & other links there
    • Background image used while starting X is /morphix/background.png .
    • Background image for desktop is set from /etc/skel/.gconf/desktop/gnome/background/%gconf.xml . Change following entry with appropriate filename & path
      • <entry name="picture_filename" mtime="1064834578" muser="morph" type="string"> <stringvalue>/home/morph/IndLinuxLogo.jpg</stringvalue></entry>
    • Freefonts from /usr/share/fonts/truetype/freefont have been removed, since they get default instead of indic otf fonts.
      • Need to fix this in /etc/fonts/fonts.conf
    • Customising the menu structure.

This structure is defined by the freedesktop.org Desktop Entry Specification. These files are stored in $(prefix)/share/applications . Every user has the possibility to add or override entries in the system-wide configuration. The easiest way to edit a menu entry is right-clicking it in the GNOME Menu and selecting Properties from the popup menu. The changes will be stored under ~/.gnome2/vfolders.


!Base module Modifications

    • In base module (morphix) - boot time options, language default etc set here (paths relative to basemod tree)
      • Much of stuff is done in /etc/init.d/knoppix-autoconfig
      • Add Language options here in following format
                      hi)
                      # Hindi version
                         COUNTRY="in"
                         LANG="hi_IN.UTF-8"
                         KEYTABLE="us"
                         XKEYBOARD="us"
                         KDEKEYBOARD="dev"
                         CHARSET="UTF-8"
                         KDEKEYBOARDS="us,dev"
                         ;;
      • Language options for all major Indian languages added. Hindi (hi) -default, Bengali (bn), Gujarati (gu), Kannada (kn), Malayalam (ml), Marathi (mr), Oriya (or), Punjabi (pa), Tamil (ta), Telugu (te).
      • Language can be selected boot time by passing lang=code parameter eg.
        • for Bengali, give morphix lang=bn
      • to fix X resolution problem, edit /usr/sbin/mkxf86config & /usr/sbin/mkxf86config2 and add below lines. (yet to test if it really works, but now defaul modes shown are only 1024x768, 800x600, 640x480 )
                        # Build line of allowed modes
                        MODES=""
                        ADDMODE="-firstmode 1024x768"



!Application customization - (+) means app was added to Mainmodule.

!! Yudit (+)

Can be installed by 'apt-get install yudit' .
Fonts can be copied into /usr/share/yudit/fonts (so that they are avialable globally).
Fonts names will have to be added in /etc/yudit/yudit.properties as below.
yudit.font.TrueType=gargi.ttf,Sampige.ttf,ani.ttf,akruti1.ttf,MalOtf.ttf,padma.ttf,
arial.ttf,kochi-gothic.ttf,gulim.ttf,raghu.ttf,tsckanna.ttf:tscii,dc-font.ttf,
code2000.ttf,code2001.ttf:unicode:RL,cyberbit.ttf,yudit.ttf
Fontnames can also be added in yudit.font.Full, yudit.font.default .
For Input following helps
yudit.editor.inputs=straight,Devanagari-Inscript,Devanagari-Phonetic,Bengali-Inscript,
Gujarati-Inscript,Gurmukhi-Inscript,Kannada-Inscript,Malayalam-Inscript,Tamil-Inscript,
Telugu-Inscript,Telugu-Rts,Oriya-Inscript
running yudit as user 'morph' will generate the req files in /home/morph/.yudit
modify ~/.yudit/yudit.properties with above lines.

! Pfaedit (+) apt-get install pfaedit . Not customized

! Gtranslator (+) apt-get install gtranslator. Not customized

! Kbabel (+) apt-get install kbabel. Not customized

! OpenOffice OpenOffice 1.1rc3 is available. Not yet customized (indic not working properly yet)

Its a font issue, default font for unicode is lucidasans, which doesnt exist,
(adding font from jdk jre makes it work - using jdk fonts for now - but need to change this soon). (deprecated)
Installed font into OpenOffice through /usr/lib/openoffice/spadmin.
Fonts go into /usr/lib/openoffice/share/fonts/truetype
Added avaialble indic otf fonts & Shusha TTF fonts collection.
Enabling , CTL give choice of CTL fonts in Options -> Text Document -> Basic Fonts (CTL).
Indic fonts can be added into fontlists here (default,heading,list,caption.index). Using this method for now
Only Hindi working properly this way. For other langs one has to select appropriate font
Settings go in ~/.openoffice/1.1.0/user/registry/data/org/openoffice/Office/Writer.xcu
Copied whole ~/.openoffice & ~/.sversionrc into /etc/skel
Fonts list:
 Bengali - likhan, ani, mukti, Akaash
 Devanagari - Raghindi, Gargi
 Gujarati - Padmaa
 Kannada - Sampige
 Malayalam - MalOtf , malayalam
 Tamil - akruti1, akruti2 (opentype)

! Balsa (+) apt-get install balsa. Not customized

! Mozilla build with Indic rendering enabled. Used build made by Rajkumar S, available at http://www.linuxense.com/oss/render/mozilla/index.html http://www.linuxense.com/oss/render/mozilla/mozilla-i686-pc-linux-gnu.tar.gz

Untarred in /usr/local. A desktop link to it added.