เนื้อหาเก่าๆ

รูปภาพของ Foggy_Ritchy

พิมพ์ไทยได้แต่ต้องกด ctrl ค้างไว้ ใน OpenOffice 1.1.2

ผมพยายามทำให้ openoffice เป็น TLE โดยการ แก้ไขเอาครับ ผมทำตามหนังสือ หนังสือที่ผมอ่านประกอบด้วยคือ Linux redhat ฉบับผู้เริ่มต้น สำนักพิมพ์ info press ผู้แต่ง ประภาพร ช่างไม้ changmai@infopress2000.com บรรณาธิการ สัจจะ จรัสรุ่งรวีวร sajja@infopress2000.com พิมพ์ครั้งที่ 1 มีนาคม 2547 ปัญหาของผมคือ openoffice พิมพ์ไทยไม่ได้ครับ แต่หากคัดลอกคำไทยมาวาง จะอ่านได้ครับ (ส่วนโปรแกรม text editor อื่นๆ ใช้งานได้ดี)โดยผมทำการติดตั้งตามหนังสือดังนี้ครับ ผมลองใช้ TE-0.02 แล้วโดยทำตามหนังสือคือให้แตกไฟล์ออกมาก่อนแล้วจึงทำการ ./install.sh ผมได้ผลเป็นอย่างนี้ครับ [root@2penguin TE-0.02]# ls downloads install.sh rh9_msfonts.sh rh9_xkb.sh files README rh9_tle.sh te.conf [root@2penguin TE-0.02]# ./install.sh ************************************* Thai extension (TE) for Linux, v0.02 ************************************* 1) Red Hat 9 Enter the number of your distribution: 1 mv: cannot stat `/etc/X11/XF86Config': No such file or directory grep: /etc/X11/XF86Config.backup: No such file or directory Preparing... ########################################### [100%] 1:cabextract ########################################### [100%] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.77013 + umask 022 + cd /usr/src/redhat/BUILD + LANG=C + export LANG + unset DISPLAY + rm -rf msttcorefonts + mkdir msttcorefonts + cd msttcorefonts + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + for i in andale32.exe webdin32.exe trebuc32.exe georgi32.exe verdan32.exe comic32.exe arialb32.exe impact32.exe arial32.exe times32.exe courie32.exe + true + test yes = yes + wget http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/... --01:55:59-- http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/... => `IELPKTH.CAB' Resolving download.microsoft.com... failed: Host not found. error: Bad exit status from /var/tmp/rpm-tmp.77013 (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.77013 (%prep) error: open of /usr/src/redhat/RPMS/noarch/msttcorefonts-1.3-4.noarch.rpm failed: No such file or directory fc-cache: "/usr/share/fonts": caching, 0 fonts, 6 dirs fc-cache: "/usr/share/fonts/zh_CN": caching, 0 fonts, 1 dirs fc-cache: "/usr/share/fonts/zh_CN/TrueType": caching, 2 fonts, 0 dirs fc-cache: "/usr/share/fonts/default": caching, 0 fonts, 2 dirs fc-cache: "/usr/share/fonts/default/ghostscript": caching, 8 fonts, 0 dirs fc-cache: "/usr/share/fonts/default/Type1": caching, 35 fonts, 0 dirs fc-cache: "/usr/share/fonts/openoffice": caching, 1 fonts, 0 dirs fc-cache: "/usr/share/fonts/bitstream-vera": caching, 10 fonts, 0 dirs fc-cache: "/usr/share/fonts/bitmap-fonts": caching, 32 fonts, 0 dirs fc-cache: "/usr/share/fonts/zh_TW": caching, 0 fonts, 1 dirs fc-cache: "/usr/share/fonts/zh_TW/TrueType": caching, 2 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 29 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/OTF": caching, 0 fonts, 0 dirs fc-cache: "/root/.fonts": skipping, no such directory fc-cache: "/usr/local/share/fonts": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts": caching, 0 fonts, 11 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/OTF": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/local": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 56 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/CID": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 29 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/util": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 308 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": caching, 0 fonts, 1 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": caching, 308 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/TTF": caching, 0 fonts, 0 dirs fc-cache: "/usr/X11R6/lib/X11/fonts/Speedo": caching, 0 fonts, 0 dirs fc-cache: succeeded Preparing... ########################################### [100%] 1:thaixfonts ########################################### [100%] error: Failed dependencies: XFree86 > 3.2 is needed by thai-ttf-0.3.0-2_4tle.noarch XFree86 > 3.2 is needed by thai-ttf-js-0.0.1-1.noarch XFree86 > 3.2 is needed by thai-ttf-js_write-0.0.1-1.noarch Preparing... ########################################### [100%] 1:xiterm+thai warning: user mrchoke does not exist - using root) warning: group mrchoke does not exist - using root warning: user mrchoke does not exist - using root warning: group mrchoke does not exist - using root warning: user mrchoke does not exist - using root) warning: group mrchoke does not exist - using root warning: user mrchoke does not exist - using root warning: group mrchoke does not exist - using root ########################################### [100%] Reloading xfs: [ OK ] *** If you are using X, please log off or restart X *** [root@2penguin TE-0.02]# ผลคือภาษาไทยไม่ได้ติดตั้งเข้าไปครับ ***ผมสังเกตว่าไม่มี /usr/share/fonts/TIS-620/ ครับ ซึ่งผมคิดว่าการติดตั้งวิธีแรกนี้ "ล้มเหลว" ผมจึงตัดสินในติดตั้ง rpm ด้วยมือทีละตัวๆ แต่พบว่าต้องใช้ rpm ตัวอื่นๆ เป็นแผง ซึ่งผมก็ไม่ลดละครับ หาทางติดตั้งแต่อ่านๆ ไปพบว่าสุดสายของตั้งที่ต้องการมีรุ่นต่ำกว่า fc3 เพราะแผ่นที่ผมนำมาเป็นของ RH9 จึงถอยทัพ จากนั้นผมจึงทำตามหนังสือ หน้า 223-226 อย่างนี้ครับ 1. หา tis-620-2.enc จาก cd-rom ที่ได้มาจากหนังสือ 2. เอาไปเขียนทับของเดิม ณ คำแหน่ง /usr/X11R6/lib/X11/fonts/encoding/tis-620-2.enc 3. สร้างตัวชี้ไปยังฟอนต์ใหม่ โดยพิมพ์ mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings/ 4. สร้างที่เก็บฟอนต์ภาษาไทยโดยใช้ชื่อ "thai" mkdir /usr/share/fonts/thai/ 5. นำฟอนต์ <xx>.ttf มาใส่ใน "thai" ที่ได้ทำไว้ 6. ติดตั้งบน cache โดยพิมพ์ fc-cache /usr/share/fonts/thai และเปิด OO.o writer Tools -> Options ->Language settings ตาม http://th.openoffice.org/files/documents/128/2478/ooo1.1-thai-howto.pdf แต่ของผมแตกต่างจากที่มีให้เลือก Complex Tesx Layout (CTL) เป็นเครื่องหมายถูกตัวเทาๆ ครับซึ่งแก้ไขอะไรไม่ได้ พอพิมพ์ภาษาไทยก็เป็นตัวสี่เหลี่ยมๆ ครับ ถ้าจะให้เป็นภาษาไทยต้องกด ctrl ค้างไว้ครับจึงจะได้ภาษาไทยที่ถูกต้องตามขนาดและชนิด font ที่ตั้งไว้ แต่โปรแกรมอื่นๆ เช่น kate, firefox, taskbar ใช้ภาษาไทยได้ดีครับ และผมได้หาตาม internet พบว่ามีการ คอนฟิกต์ฟอนต์ ให้ office TLE เป็นดังนี้ครับ http://www.opentle.org/FAQ-index-myfaq-yes-id_cat-12.html#q120 (แต่ที่เลือกทำตามหนังสือเพราะในเครื่องผมไม่มีคำสั่ง tmkfdir ครับ) สถานการณ์ปัจจุบันคือ ผมต้องกด ctrl ค้างไว้แล้วตามด้วยแป้นภาษาไทยครับ ไม่ทราบว่าจะเกี่ยวกันหรือเปล่าคือผมใช้ ctrl+alt+k ในการเปลี่ยนจาก en-> th ส่วน ctrl+alt+า (สระ -า) ในการเปลี่ยนคืนครับ และไม่เคยแก้ไขอะไรเลยให้เครื่องใช้ปุ่ม ~ ในการเปลี่ยนภาษาครับ ผมไม่รู้จะใช้ keyword ไหนถามเลยครับ ขอผู้รู้ช่วยชี้แนะด้วยครับ (จะให้เปลี่ยนใจใช้ M$_office ขอเป็นวิธีสุดท้ายนะครับ) :?