diff -Ncr gv-3.5.8/README.I18N gv-3.5.8-I18N_MB/README.I18N *** gv-3.5.8/README.I18N Thu Jan 1 09:00:00 1970 --- gv-3.5.8-I18N_MB/README.I18N Sat Jan 23 19:31:19 1999 *************** *** 0 **** --- 1,28 ---- + GV I18N Fontset Patch for Japanese + Keio University in Japan + 1998 Yasuyuki Furukawa + + This patch make gv to support Japanese NLS. + + if you can not see Japanese GV, please install + 10/12pt kanji fonts to X Window System, or edit + file `$(SRC)/source/gv_font_res-I18N_mb.dat' and + recompile. + + NEED: + Xaw3d 1.4, 1.5 has a fatal bug in MultiSrc.c line 735-740. + This GV's patch need Xaw3d library patched follow: + + diff -Ncr xc/lib/Xaw3d/MultiSrc.c xc-fix/lib/Xaw3d/MultiSrc.c + *** xc/lib/Xaw3d/MultiSrc.c Fri May 15 04:03:23 1998 + --- xc-fix/lib/Xaw3d/MultiSrc.c Fri Dec 18 09:59:52 1998 + *** 735,740 **** + --- 735,741 ---- + + if ( string_set || (old_src->multi_src.type != src->multi_src.type) ) { + RemoveOldStringOrFile(old_src, string_set); + + src->multi_src.allocated_string = old_src->multi_src.allocated_string; + file = InitStringOrFile(src, string_set); + + /* Load pieces does this logic for us, but it shouldn't. Its messy.*/ + diff -Ncr gv-3.5.8/config.Unix gv-3.5.8-I18N_MB/config.Unix *** gv-3.5.8/config.Unix Sat Jun 7 07:00:00 1997 --- gv-3.5.8-I18N_MB/config.Unix Sat Jan 23 19:32:14 1999 *************** *** 115,120 **** --- 115,127 ---- #endif XCOMM -------------------------------------------------------------------- + XCOMM --- Fontset support for I18N (multibyte charactor) + XCOMM -------------------------------------------------------------------- + #define I18N_MB + #define NLS + LINGUAS = ja_JP.ujis + + XCOMM -------------------------------------------------------------------- XCOMM --- Compiler flags. XCOMM -------------------------------------------------------------------- XCOMM CC = gcc diff -Ncr gv-3.5.8/source/Imakefile gv-3.5.8-I18N_MB/source/Imakefile *** gv-3.5.8/source/Imakefile Sat Jun 21 07:00:00 1997 --- gv-3.5.8-I18N_MB/source/Imakefile Sat Jan 23 19:31:19 1999 *************** *** 154,165 **** USER_DEFS_9 = -DUSE_FALLBACK_STYLES #endif SYS_LIBS_1 = -lm XawClientLibs USER_DEFINES = $(USER_DEFS_0) $(USER_DEFS_1) $(USER_DEFS_2) $(USER_DEFS_3)\ $(USER_DEFS_4) $(USER_DEFS_5) $(USER_DEFS_6) $(USER_DEFS_7)\ $(USER_DEFS_8) $(USER_DEFS_9) $(USER_DEFS_10) $(USER_DEFS_11)\ ! $(USER_DEFS_12) $(USER_DEFS_13) $(USER_DEFS_14) $(USER_DEFS_15) SRCS = $(SRCS_0) $(SRCS_1) $(SRCS_2) $(SRCS_3) $(SRCS_4) $(SRCS_5)\ $(SRCS_6) $(SRCS_7) $(SRCS_8) $(SRCS_9) $(SRCS_10) $(SRCS_11)\ $(SRCS_12) $(SRCS_13) $(SRCS_14) $(SRCS_15) --- 154,172 ---- USER_DEFS_9 = -DUSE_FALLBACK_STYLES #endif + #ifdef I18N_MB + I18NMB = -I18N_mb + I18N_DEFS = -DI18N_MB + #else + #undef NLS + #endif + SYS_LIBS_1 = -lm XawClientLibs USER_DEFINES = $(USER_DEFS_0) $(USER_DEFS_1) $(USER_DEFS_2) $(USER_DEFS_3)\ $(USER_DEFS_4) $(USER_DEFS_5) $(USER_DEFS_6) $(USER_DEFS_7)\ $(USER_DEFS_8) $(USER_DEFS_9) $(USER_DEFS_10) $(USER_DEFS_11)\ ! $(USER_DEFS_12) $(USER_DEFS_13) $(USER_DEFS_14) $(USER_DEFS_15) $(I18N_DEFS) SRCS = $(SRCS_0) $(SRCS_1) $(SRCS_2) $(SRCS_3) $(SRCS_4) $(SRCS_5)\ $(SRCS_6) $(SRCS_7) $(SRCS_8) $(SRCS_9) $(SRCS_10) $(SRCS_11)\ $(SRCS_12) $(SRCS_13) $(SRCS_14) $(SRCS_15) *************** *** 175,181 **** --- 182,192 ---- DEPLIBS = XawClientDepLibs INSTDATFLAGS = -m 0644 + #ifdef I18N_MB + GV_FONT_RES_DAT = gv_font_res-I18N_mb.dat + #else GV_FONT_RES_DAT = gv_font_res.dat + #endif GV_MAKE_RES_DAT = gv_make_res.dat GV_MISC_RES_DAT = gv_misc_res.dat GV_USER_RES_DAT = gv_user_res.dat *************** *** 216,221 **** --- 227,252 ---- InstallNonExec($(GV_USER_AD),$(GV_LIBDIR)) InstallNonExec($(GV_CLASS_AD),$(GV_LIBDIR)) InstallAppDefaults($(GV_CLASS_NAME)) + + #ifdef NLS + install:: $(GV_SYSTEM_AD) + @for LNG in $(LINGUAS);do \ + [ -f gv_nls_$$LNG.dat ] || continue; \ + cat $(GV_SYSTEM_AD) > GV_$$LNG.ad; \ + cat gv_nls_$$LNG.dat >> GV_$$LNG.ad; \ + [ -d $(LIBDIR)/$$LNG/app-defaults ] || \ + $(MKDIRHIER) $(LIBDIR)/$$LNG/app-defaults; \ + $(INSTALL) $(INSTALLFLAGS) \ + GV_$$LNG.ad $(LIBDIR)/$$LNG/app-defaults/GV; \ + done + + clean:: + @for LNG in $(LINGUAS);do \ + [ -f GV_$$LNG.ad ] && rm -f GV_$$LNG.ad; \ + done + + #endif + #ifndef USE_FALLBACK_STYLES InstallNonExec($(GV_STYLE_1_DAT),$(GV_LIBDIR)) #endif diff -Ncr gv-3.5.8/source/Vlist.c gv-3.5.8-I18N_MB/source/Vlist.c *** gv-3.5.8/source/Vlist.c Sat Jun 7 07:00:00 1997 --- gv-3.5.8-I18N_MB/source/Vlist.c Sat Jan 23 19:31:19 1999 *************** *** 317,328 **** --- 317,337 ---- if (s) { char *nl = strchr(s,'\n'); if (nl) *nl = '\0'; + #ifdef I18N_MB + XmbDrawString(XtDisplay(w), XtWindow(w), + vw->label.fontset, vw->label.normal_GC, + vw->label.label_x, + vw->label.label_y+entry*vw->label.label_height/vw->vlist.entries + - XExtentsOfFontSet(vw->label.fontset)->max_logical_extent.y +1, + s, (int)strlen(s)); + #else XDrawString(XtDisplay(w), XtWindow(w), vw->label.normal_GC, vw->label.label_x, vw->label.label_y+entry*(vw->label.font->max_bounds.ascent + vw->label.font->max_bounds.descent) + vw->label.font->max_bounds.ascent, s, (int)strlen(s)); + #endif if (nl) *nl = '\n'; } ENDMESSAGE1(PaintEntryString) diff -Ncr gv-3.5.8/source/callbacks.c gv-3.5.8-I18N_MB/source/callbacks.c *** gv-3.5.8/source/callbacks.c Sat Jun 21 07:00:00 1997 --- gv-3.5.8-I18N_MB/source/callbacks.c Sat Jan 23 19:31:19 1999 *************** *** 764,775 **** BEGINMESSAGE(cb_openFile) XawFileSelectionRemoveButton(FileSel, 3); - n=0; - XtSetArg(args[n], XtNtitle, "Open File"); ++n; - XtSetValues(FileSel_popup, args, n); - n=0; - XtSetArg(args[n], XtNlabel, "Open File"); ++n; - XtSetValues(button, args, n); XtRemoveAllCallbacks(button, XtNcallback); XtAddCallback(button, XtNcallback,cb_doOpenFile,NULL); --- 764,769 ---- diff -Ncr gv-3.5.8/source/dialog.c gv-3.5.8-I18N_MB/source/dialog.c *** gv-3.5.8/source/dialog.c Sat Jun 7 07:00:00 1997 --- gv-3.5.8-I18N_MB/source/dialog.c Sat Jan 23 19:31:19 1999 *************** *** 271,277 **** --- 271,281 ---- # define DIALOG_POPUP_TEXT_MIN_WIDTH 100 String os; Dimension lm,rm,bw,nw; + #ifdef I18N_MB + XFontSet fontset; + #else XFontStruct *font; + #endif BEGINMESSAGE(DialogPopupSetText) if (!s) {INFMESSAGE(no text) ENDMESSAGE(DialogPopupSetText) return;} *************** *** 279,285 **** --- 283,293 ---- response = XtNameToWidget(DIALOG_POPUP, "*dialog_text"); n=0; + #ifdef I18N_MB + XtSetArg(args[n], XtNfontSet, &fontset); n++; + #else XtSetArg(args[n], XtNfont, &font); n++; + #endif XtSetArg(args[n], XtNleftMargin, &lm); n++; XtSetArg(args[n], XtNrightMargin, &rm); n++; XtSetArg(args[n], XtNborderWidth, &bw); n++; *************** *** 287,294 **** --- 295,307 ---- XtSetArg(args[n], XtNwidth, &width); n++; XtGetValues(response, args, n); n=0; + #ifdef I18N_MB + nw= XmbTextEscapement( fontset, s, strlen(s)) + #else nw= ((font->max_bounds.width+font->min_bounds.width)*((Dimension)strlen(s))+1)/2 + #endif +lm+rm+DIALOG_POPUP_FREE_SPACE+2*bw; + if (nwwidth) { INFIMESSAGE(new width,nw) diff -Ncr gv-3.5.8/source/gv_font_res-I18N_mb.dat gv-3.5.8-I18N_MB/source/gv_font_res-I18N_mb.dat *** gv-3.5.8/source/gv_font_res-I18N_mb.dat Thu Jan 1 09:00:00 1970 --- gv-3.5.8-I18N_MB/source/gv_font_res-I18N_mb.dat Sat Jan 23 19:31:19 1999 *************** *** 0 **** --- 1,66 ---- + + !########## gv_font_res_linux.dat + GV*international: True + + !##### Fonts + + GV*fontSet: -*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--14 + GV*SmeBSB.fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*Button.fontSet: -*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--14 + + GV.?.processButton.fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV.?.Label*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV.?.Button*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV.?.locator*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV.?.dateButton*fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV.?.titleButton*fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV.?.prevPage*fontSet: -*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--14 + GV.?.nextPage*fontSet: -*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--14 + + GV*newtoc.fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + + GV*fileSel*fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*fileSel*button1.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*fileSel*button2.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*fileSel*button3.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*fileSel*button4.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*fileSel*pathtext*fontSet: -*-Helvetica-Medium-R-Normal--*-140-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--14 + + GV*optionsetupPopup*Label*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV*optionsetupPopup*confirmButton.fontSet:-*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*-10 + GV*optionsetupPopup*Switch*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV*optionsetupPopup*fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*optionsetupPopup*Button.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + + GV*optiongvPopup*Label*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV*optiongvPopup*Switch*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV*optiongvPopup*fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*optiongvPopup*Button.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + + GV*optionfsPopup*Label*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV*optionfsPopup*Switch*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV*optionfsPopup*fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*optionfsPopup*Button.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + + GV*optiongsPopup*Label*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV*optiongsPopup*Switch*fontSet: -*-Helvetica-Medium-R-Normal--*-100-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--10 + GV*optiongsPopup*fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*optiongsPopup*Button.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + + GV*dialogPopup*fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*dialogPopup*Button.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*dialogPopup*message*fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + + GV*notePopup*Button.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*notePopup*message*fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + + GV*confirmPopup*fontSet: -*-Helvetica-Medium-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + GV*confirmPopup*Button.fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + + GV*versionPopup*Label*fontSet: -*-Courier-Medium-R-Normal--*-100-*-*-M-*-ISO8859-1,-*-*-Medium-*-*--10 + GV*versionPopup*versionTexta*fontSet: -*-Helvetica-Bold-R-Normal--*-180-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--18 + GV*versionPopup*versionTextb*fontSet: -*-Helvetica-Bold-R-Normal--*-120-*-*-P-*-ISO8859-1,-*-*-Medium-*-*--12 + + GV*infoPopup*Text*fontSet: -*-Courier-Medium-R-Normal--*-100-*-*-M-*-ISO8859-1,-*-*-Medium-*-*--10 + + diff -Ncr gv-3.5.8/source/gv_misc_res.dat gv-3.5.8-I18N_MB/source/gv_misc_res.dat *** gv-3.5.8/source/gv_misc_res.dat Sat Jun 21 07:00:00 1997 --- gv-3.5.8-I18N_MB/source/gv_misc_res.dat Sat Jan 23 19:31:19 1999 *************** *** 220,225 **** --- 220,229 ---- GV*optionsetupPopup*mediasFrame.forcedWidth: 240 GV*optionsetupPopup*mediasFrame.forcedHeight: 400 + !##### FileSet Popup + + GV*fileSelPopup.title: Open File + !##### Panner GV*pannerFrame.frameType: sunken *************** *** 317,322 **** --- 321,327 ---- GV*filters.label: Filters: GV*dirs.label: Directories GV*button1.label: Cancel + GV*button2.label: Open File GV*rescan.label: Rescan Directory GV*screenSizeLabel.label: Screen Size (mm) diff -Ncr gv-3.5.8/source/gv_nls_ja_JP.ujis.dat gv-3.5.8-I18N_MB/source/gv_nls_ja_JP.ujis.dat *** gv-3.5.8/source/gv_nls_ja_JP.ujis.dat Thu Jan 1 09:00:00 1970 --- gv-3.5.8-I18N_MB/source/gv_nls_ja_JP.ujis.dat Sat Jan 23 19:32:03 1999 *************** *** 0 **** --- 1,202 ---- + ! + !** Copyright (C) 1995, 1996, 1997 Johannes Plass + ! + ! This program is free software; you can redistribute it and/or modify + ! it under the terms of the GNU General Public License as published by + ! the Free Software Foundation; either version 2 of the License, or + ! (at your option) any later version. + ! + ! This program is distributed in the hope that it will be useful, + ! but WITHOUT ANY WARRANTY; without even the implied warranty of + ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + ! GNU General Public License for more details. + ! + ! You should have received a copy of the GNU General Public License + ! along with this program; if not, write to the Free Software + ! Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + ! + ! Author: Johannes Plass (plass@thep.physik.uni-mainz.de) + ! Department of Physics + ! Johannes Gutenberg-University + ! Mainz, Germany + ! + ! + ! gv_ja_JP.ujis.ad + ! Japanese NLS label for gv by + ! 1998 Yasuyuki Furukawa (yasu@on.cs.keio.ac.jp) + ! + + + !##### Zoom Popup + + GV*zoomPopup.title: GV - 拡大画面 + + !##### Info Popup + + GV*infoPopup.title: GhostScriptメッセージ + + !##### Dialog Popup + + GV*dialogPopup.title: ダイアログ + + !##### Note Popup + + GV*notePopup.title: メッセージ + + !##### Confirm Popup + + GV*confirmPopup.title: 確認 + + !##### OptionsSetup Popup + + GV*optionfsPopup.title: ファイル選択オプション + + !##### OptionsGS Popup + + GV*optiongsPopup.title: Ghostscriptオプション + + !##### OptionsGV Popup + + GV*optiongvPopup.title: GVオプション + + !##### OptionsSetup Popup + + GV*optionsetupPopup.title: セットアップオプション + + !##### FileSet Popup + + GV*fileSelPopup.title: ファイルを開く + + !################################################ + !##### Labels + !################################################ + + GV*cancel.Label: キャンセル + GV*dismiss.Label: 閉じる + GV*apply.label: 適用 + GV*copyright.Label: 著作 + GV*quit.Label: 終了 + GV*fileButton.Label: ファイル + GV*open.Label: 開く ... + GV*reopen.Label: 再オープン + GV*update.Label: 更新 + GV*printAllPages.Label: 文章印刷 ... + GV*printMarkedPages.Label: マークしたページの印刷... + GV*saveAllPages.Label: 文章保存 ... + GV*saveMarkedPages.Label: マークしたページの保存... + GV*stateButton.Label: 環境設定 + GV*stop.Label: 割り込み停止 + GV*dsc.Label: 文書構造によるスペクト調整 + GV*eof.Label: EOFコメントを無視 + GV*antialias.Label: アンチエイリアス + GV*watchFile.Label: 自動ファイル更新 + GV*showTitle.Label: タイトル表示 + GV*pixmap.Label: Backing Pixmap + GV*size.Label: 自動サイズ変更 + GV*watch.Label: 自動ファイル更新 + GV*optionsgv.Label: GVオプション... + GV*optionsfs.Label: ファイル選択オプション... + GV*optionsgs.Label: Ghostscriptオプション... + GV*optionssetup.Label: セットアップオプション... + GV*pageButton.Label: ページ + GV*next.Label: 次へ + GV*show.Label: 再表示 + GV*prev.Label: 前へ + GV*center.Label: 中央 + GV*pageButton*current.Label: 現在のページマーク/解除 + GV*pageButton*even.Label: 偶数ページマーク/解除 + GV*pageButton*odd.Label: 奇数ページマーク/解除 + GV*pageButton*unmark.Label: 全マーク解除 + GV*processButton.Label: \ 実行 + GV*mark.Label: マーク + GV*prevPage.Label: << + GV*nextPage.Label: >> + GV*unmark.Label: マーク解除 + GV*automatic.Label: 自動 + GV*portrait.Label: Portrait + GV*landscape.Label: Landscape + GV*upsidedown.Label: 上下反転 + GV*seascape.Label: Seascape + GV*swap.Label: Landscape変換 + GV*toggleCurrent.label: 現在のページマーク/解除 + GV*toggleEven.label: 偶数ページマーク/解除 + GV*toggleOdd.label: 奇数ページマーク/解除 + GV*unmarkAll.label: 全マーク解除 + GV*printAll.label: 全印刷 + GV*printMarked.label: マーク部分印刷 + GV*saveAll.label: 全保存 + GV*saveMarked.label: マーク部分保存 + GV*openFile.label: 開く + GV*redisplay.label: 再表示 + GV*updateFile.label: ファイル更新 + GV*checkFile.label: ファイルチェック + + GV*filters.label: フィルタ: + GV*dirs.label: ディレクトリ + GV*button1.label: キャンセル + GV*button2.label: ファイルを開く + GV*rescan.label: ディレクトリ読み直し + GV*screenSizeLabel.label: 画面サイズ[mm] + + GV*versionPopup*versionDone*label: 閉じる + GV*dialogPopup*cancel.label: キャンセル + GV*notePopup*done.label: 了解 + + GV*confirmPopup*cancel.label: キャンセル + GV*confirmPopup*done.label: 終了 + GV*save.label: 保存 + + GV*optiongvPopup*mediaLabel.label: \ 用紙サイズ \ + GV*optiongvPopup*fmediaLabel.label: 判別不明時の用紙サイズ + GV*optiongvPopup*orientLabel.label: \ 用紙の向き \ + GV*optiongvPopup*forientLabel.label: 判別不明時の用紙向き + GV*optiongvPopup*magLabel.label: 拡大縮小 + GV*optiongvPopup*antialias.label: アンチエイリアス + GV*optiongvPopup*respectDSC.label: DSCを有効 + GV*optiongvPopup*eof.label: EOFを無視 + GV*optiongvPopup*autoResize.label: 可変サイズ + GV*optiongvPopup*swapLandscape.label: Landscape変換 + GV*optiongvPopup*scalesLabel.label: \ スケール \ + + GV*miscmenuLabel.label: その他メニューエントリ + GV*magmenuLabel.label: 拡大メニューエントリ + GV*mediasLabel.label: メディアの大きさ + GV*confirmLabel.label: 終了時の確認 + GV*misc.label: その他 + GV*scrolling.label: スクロール反転 + GV*eyeGuide.label: スクロールガイド + GV*confirmPrint.label: 印刷時の確認 + GV*uncompressLabel.label: 圧縮展開 + GV*autoCenter.label: 自動的に中央へ + GV*printCommandLabel.label: 印刷コマンド + GV*scratchDirLabel.label: スクラッチディレクトリ + GV*saveDirLabel.label: 保存ディレクトリ + GV*scalesLabel.label: スケール + GV*scaleBaseLabel.label: スケールベース + + GV*safer.label: より安全に + GV*quiet.label: 終了 + GV*defaults.label: システム標準値 + GV*scanLabel.label: PDF読み込み + GV*convLabel.label: PDF変換 + GV*gsLabel.label: Postscriptエンジン + GV*x11devLabel.label: デバイス + GV*x11alphadevLabel.label: アンチエイリアスデバイス + GV*argumentsLabel.label: 引数 + + GV*filtersLabel.label: ファイル選択フィルタ + GV*dirsLabel.label: ファイル選択ディレクトリ + GV*filterLabel.label: 標準フィルタ + + GV*miscMenu.update.label: ファイル更新 + GV*miscMenu.redisplay.label: 再表示 + GV*miscMenu.stop.label: 割り込み停止 + GV*miscMenu.toggle_current.label: 現在のページマーク/解除 + GV*miscMenu.toggle_odd.label: 奇数ページマーク/解除 + GV*miscMenu.toggle_even.label: 偶数ページマーク/解除 + GV*miscMenu.unmark.label: 全マーク解除 + GV*miscMenu.print_all.label: 全印刷 + GV*miscMenu.print_marked.label: マーク部分印刷 + GV*miscMenu.save_all.label: 全保存 + GV*miscMenu.save_marked.label: マーク部分保存 + diff -Ncr gv-3.5.8/source/info.c gv-3.5.8-I18N_MB/source/info.c *** gv-3.5.8/source/info.c Sat Apr 26 07:00:00 1997 --- gv-3.5.8-I18N_MB/source/info.c Sat Jan 23 19:31:19 1999 *************** *** 64,69 **** --- 64,85 ---- static Bool infoPopupVisible = False; static int info_length; + #ifdef I18N_MB + static int FontSetWidth( XFontSet fnt ) { + XRectangle ink_array_return, logical_array_return; + XRectangle overall_ink_return, overall_logical_return; + int num_chars_return; + XmbTextPerCharExtents( fnt, "A", 1, + &ink_array_return, + &logical_array_return, 1, + &num_chars_return, + &overall_ink_return, + &overall_logical_return ); + return( overall_logical_return.width ); + } + #define FontSetHeight(fnt) (XExtentsOfFontSet(fnt)->max_logical_extent.height) + #endif + /*############################################################################### cb_popupInfoPopup ###############################################################################*/ *************** *** 178,184 **** --- 194,204 ---- Cardinal n; Dimension bottomMargin, leftMargin, rightMargin, topMargin; Dimension width, height; + #ifdef I18N_MB + XFontSet fontset; + #else XFontStruct *font; + #endif BEGINMESSAGE(makeInfoPopup) *************** *** 209,223 **** --- 229,252 ---- XtAddCallback(infodismiss, XtNcallback, cb_popdownInfoPopup,NULL); n=0; + #ifdef I18N_MB + XtSetArg(args[n], XtNfontSet, &fontset); n++; + #else XtSetArg(args[n], XtNfont, &font); n++; + #endif XtSetArg(args[n], XtNbottomMargin, &bottomMargin); n++; XtSetArg(args[n], XtNleftMargin, &leftMargin); n++; XtSetArg(args[n], XtNrightMargin, &rightMargin); n++; XtSetArg(args[n], XtNtopMargin, &topMargin); n++; XtGetValues(infotext,args,n); + #ifdef I18N_MB + width = FontSetWidth(fontset) * 80 + leftMargin + rightMargin; + height = FontSetHeight(fontset) * 22 + topMargin + bottomMargin; + #else width = font->max_bounds.width * 80 + leftMargin + rightMargin; height = (font->ascent + font->descent) * 22 + topMargin + bottomMargin; + #endif n=0; XtSetArg(args[0], XtNwidth, width); n++; diff -Ncr gv-3.5.8/source/main.c gv-3.5.8-I18N_MB/source/main.c *** gv-3.5.8/source/main.c Sat Jun 21 07:00:00 1997 --- gv-3.5.8-I18N_MB/source/main.c Sat Jan 23 19:31:19 1999 *************** *** 257,262 **** --- 257,265 ---- /*### initializing toolkit and the application context #################*/ + #ifdef I18N_MB + XtSetLanguageProc(NULL, NULL, NULL); + #endif INFMESSAGE(initializing toolkit and the application context) XtToolkitInitialize(); app_con = XtCreateApplicationContext(); diff -Ncr gv-3.5.8/source/misc_private.c gv-3.5.8-I18N_MB/source/misc_private.c *** gv-3.5.8/source/misc_private.c Sat Jun 7 07:00:00 1997 --- gv-3.5.8-I18N_MB/source/misc_private.c Sat Jan 23 19:31:19 1999 *************** *** 72,89 **** --- 72,103 ---- if (text) { /* most of the following comes from X11/Xaw/Label.c */ Position x,y; INFSMESSAGE(update_label,text) + #ifdef I18N_MB + y = w->label.label_y - XExtentsOfFontSet(w->label.fontset)->max_logical_extent.y; + #else y = w->label.label_y + w->label.font->max_bounds.ascent; + #endif if (w->label.justify == XtJustifyCenter) { unsigned int width; int len = (int) strlen(text); + #ifdef I18N_MB + XFontSet fs = w->label.fontset; + width = XmbTextEscapement(fs, text, (int)len ); + #else XFontStruct *fs = w->label.font; if (w->label.encoding) width = XTextWidth16 (fs, (XChar2b*)text, (int)(len/2) ); else width = XTextWidth (fs, text , (int)(len) ); + #endif x = (Position) ((w->core.width-width)/2); } else { x = w->label.internal_width + w->threeD.shadow_width; } + #ifdef I18N_MB + XmbDrawString(XtDisplay(widget), XtWindow(widget), + w->label.fontset, w->label.normal_GC, + x, y, text, (int)(strlen(text))); + #else if (w->label.encoding) { XDrawString16(XtDisplay(widget), XtWindow(widget), w->label.normal_GC, *************** *** 93,98 **** --- 107,113 ---- w->label.normal_GC, x, y, text, (int)(strlen(text))); } + #endif } ENDMESSAGE1(update_label)