網路城邦
上一篇 回創作列表 下一篇   字體:
[ubuntu] 替 LibreOffice3 安裝符號表
2011/05/07 20:41:25瀏覽833|回應0|推薦1
「中文拼點包3」原本的安裝批次檔(install)只將符號表安裝在OpenOffice3的Writer中,但因為目前沒安裝OpenOffice3而是裝了LibreOffice3,故試著修改原作者的install檔案,將符號表裝到LibreOffice3的Writer、Clac和Impress中。

1) 到 中文拼點包3 (http://www.linqi.org/ooopdb下載 中文拼點包。
    wget http://www.linqi.org/ooopdb/ooopdb-3.01-ooo3.tar
2) 解壓縮 
    tar xvf ooopdb-3.01-ooo3.tar
3) 切換子目錄
    cd ooopdb-3
4) 修正 install 的內容  - 因為想要安裝到 LibreOffice3,故修正這個批次執行檔
    gedit install
將原本的內容更改為下述內容(二行###間藍色字體)後存檔
#######
#!/bin/sh
echo
echo "ooopdb3 installation script (for linux only)"
echo
echo "Copying ooopdb3 files ..."
echo
echo "   (1) Install to OpenOffice3"
echo " * (2) Install to LibreOffice3"
echo "Choice 1 or 2(default choice)"
read choice
case $choice in
  1*)
  echo "Installing to OpenOffice3..."
# Install to Writer
  cp -f toolbar/custom_toolbar_2b11d03e.xml ~/.openoffice.org/3/user/config/soffice.cfg/modules/swriter/toolbar/
  cp -f images/*_imagelist.xml ~/.openoffice.org/3/user/config/soffice.cfg/modules/swriter/images/
  cp -f images/Bitmaps/*_userimages.png ~/.openoffice.org/3/user/config/soffice.cfg/modules/swriter/images/Bitmaps/
# Install to Clac
  cp -f toolbar/custom_toolbar_2b11d03e.xml ~/.openoffice.org/3/user/config/soffice.cfg/modules/scalc/toolbar/
  cp -f images/*_imagelist.xml ~/.openoffice.org/3/user/config/soffice.cfg/modules/scalc/images/
  cp -f images/Bitmaps/*_userimages.png ~/.openoffice.org/3/user/config/soffice.cfg/modules/scalc/images/Bitmaps/
# Install to Impress
  cp -f toolbar/custom_toolbar_2b11d03e.xml ~/.openoffice.org/3/user/config/soffice.cfg/modules/simpress/toolbar/
  cp -f images/*_imagelist.xml ~/.openoffice.org/3/user/config/soffice.cfg/modules/simpress/images/
  cp -f images/Bitmaps/*_userimages.png ~/.openoffice.org/3/user/config/soffice.cfg/modules/simpress/images/Bitmaps/
  cp -rf basic/* ~/.openoffice.org/3/user/basic/
  ;;
  2*)
  echo "Installing to LibreOffice3..."
# Install to Writer
  cp -f toolbar/custom_toolbar_2b11d03e.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/swriter/toolbar/
  cp -f images/*_imagelist.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/swriter/images/
  cp -f images/Bitmaps/*_userimages.png ~/.libreoffice/3/user/config/soffice.cfg/modules/swriter/images/Bitmaps/
# Install to Clac
  cp -f toolbar/custom_toolbar_2b11d03e.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/scalc/toolbar/
  cp -f images/*_imagelist.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/scalc/images/
  cp -f images/Bitmaps/*_userimages.png ~/.libreoffice/3/user/config/soffice.cfg/modules/scalc/images/Bitmaps/
# Install to Impress
  cp -f toolbar/custom_toolbar_2b11d03e.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/simpress/toolbar/
  cp -f images/*_imagelist.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/simpress/images/
  cp -f images/Bitmaps/*_userimages.png ~/.libreoffice/3/user/config/soffice.cfg/modules/simpress/images/Bitmaps/
  cp -rf basic/* ~/.libreoffice/3/user/basic/
  ;;
  *)
  echo "Installing to LibreOffice3..."
# Install to Writer
  cp -f toolbar/custom_toolbar_2b11d03e.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/swriter/toolbar/
  cp -f images/*_imagelist.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/swriter/images/
  cp -f images/Bitmaps/*_userimages.png ~/.libreoffice/3/user/config/soffice.cfg/modules/swriter/images/Bitmaps/
# Install to Clac
  cp -f toolbar/custom_toolbar_2b11d03e.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/scalc/toolbar/
  cp -f images/*_imagelist.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/scalc/images/
  cp -f images/Bitmaps/*_userimages.png ~/.libreoffice/3/user/config/soffice.cfg/modules/scalc/images/Bitmaps/
# Install to Impress
  cp -f toolbar/custom_toolbar_2b11d03e.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/simpress/toolbar/
  cp -f images/*_imagelist.xml ~/.libreoffice/3/user/config/soffice.cfg/modules/simpress/images/
  cp -f images/Bitmaps/*_userimages.png ~/.libreoffice/3/user/config/soffice.cfg/modules/simpress/images/Bitmaps/
  cp -rf basic/* ~/.libreoffice/3/user/basic/
  ;;
esac
echo "All done. No news is good news."
echo "Please visit http://www.linqi.org/ooopdb/ for more details."
echo
#######

5) 執行 sh install
( 興趣嗜好電腦3C )
回應 推薦文章 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=dietitian&aid=5182977