[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-devel:09780] Will you merge the i18n patch ?



Hi. I am a menber of Debian Project, and I wish to register
the Debian package of your xcalendar with i18n patch written 
by H. Satoh.

Now I managed to contact the author of i18n patch, H. Satoh, 
and he endorse that patch can be distributed under following license.

 ---

Copyright (C) 1995-1999  Hiroaki Satoh  All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is fur-
nished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FIT-
NESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CON-
NECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of the author shall not
be used in advertising or otherwise to promote the sale, use or other deal-
ings in this Software without prior written authorization from the author.

The author hopes (not insists) that if you make modifications of the software,
please place your modifications in the Public Domain or otherwise make them 
Freely Available, such as by posting said modifications to Usenet or
an equivalent medium, or placing the modifications on a major archive
site such as uunet.uu.net, or by allowing the Copyright Holder to include
your modifications in the Standard Version of the Package.

 ---

So I ask you that, if you can, please merge the following patch into 
your source archive. It helps people using xcalendar under the multi-byte
characters environment. Thanks.

 (This patch is posted on NetNews fj.sources several years ago)

 === === === === === === === === === === === === === === === === ===

xcalender v4.0 のI18N化のためのパッチ:

# The I18N patch for xcalendar v4.0:

xcalender v4.0 のソースは最初からI18N化されているとREADMEなどには
記述されているが Motif ツールキットへの対応?のためか R5 用の
インプリメンテーションが行なわれているようである.

# Though README shows that the source code of xcalendar v4.0 supports
# I18N originally, but it seems that the implementation is for R5
# (maybe because of supporting Motif tool kit ?).

これをX11R6でのI18Nのインプリメンテーションに変更したのがこのパッチである.

# This patch is to change the I18N implementation for X11R6.

X11R6 のcontribからxcalender v4.0 を用意して,

               cd  xcalender
               patch < this_file

する.ただし,このパッチと同時にパッチ適応済みのソース

	xcalendar-4.0+i18n.tar.gz

を投稿するので,そちらを利用すると便利であろう.

# This patch can be used by
#      cd xcalendar
#      patch < this_file
# for xcalendar v4.0 from X11R6 contrib.
# And I post the full source code already applied this patch
# xcalendar-4.0+i18n.tar.gz as well as the patch itself,
# so you can use that for your convenient.

ソースを用意したら,後は

	xmkmf; make; make install; make install.man

などで作成する.オリジナルのREADMEも参照すること.

# After you prepare the source tree, then make by
#      xmkmf; make; make install; make install.man
# You should refer the README file in original xcalendar source archive.

===
                                   神奈川県  相模原市
                                   (Sagamihara-si, Knagawa-ken)
                                   == hsato@xxxxxxxxxxxxxxxx ==
                                    佐藤 宏明   (Hiroaki Satoh)


*** Imakefile.Bak	Sun Oct  1 12:14:02 1995
--- Imakefile	Sun Oct  1 12:19:17 1995
***************
*** 12,18 ****
  #
  # for Internationalization
  #
! #EXTRA_DEFINES = -DXI18N
  ##if !SharedLibXwchar
  #       _UseCat($(USRLIBDIR),$(CONTRIBSRC)/lib/Xwchar,/libXwchar.a)
  #       XWCHARLIB = LoaderLibPrefix _Use(-lXwchar,$(DEPXWCHARLIB))
--- 12,18 ----
  #
  # for Internationalization
  #
! EXTRA_DEFINES = -DXI18N -DATHENA
  ##if !SharedLibXwchar
  #       _UseCat($(USRLIBDIR),$(CONTRIBSRC)/lib/Xwchar,/libXwchar.a)
  #       XWCHARLIB = LoaderLibPrefix _Use(-lXwchar,$(DEPXWCHARLIB))
***************
*** 39,54 ****
  #
  # for Internationalization
  #
! #XCal-uj.ad: XCal-uj.sed
! #	sed 's;%%XCALENDAR_LIBDIR%%;$(XCALENDAR_LIBDIR);'\
! #	< $? \
! #	> $@
! #install:: XCal-uj.ad
  #	MakeDir($(LIBDIR)/ja_JP.ujis/app-defaults)
  #	$(INSTALL) -c $(INSTAPPFLAGS) XCal-uj.ad $(LIBDIR)/ja_JP.ujis/app-defaults/XCalendar
! #
! #clean::
! #	$(RM) XCal-uj.ad
  
  MakeDirectories(install, $(XCALENDAR_LIBDIR))
  InstallMultipleFlags($(LIBFILES), $(XCALENDAR_LIBDIR), $(INSTDATFLAGS))
--- 39,57 ----
  #
  # for Internationalization
  #
! XCal-uj.ad: XCal-uj.sed
! 	sed 's;%%XCALENDAR_LIBDIR%%;$(XCALENDAR_LIBDIR);'\
! 	< $? \
! 	> $@
! install:: XCal-uj.ad
! 	MakeDir($(LIBDIR)/ja_JP.EUC/app-defaults)
! 	$(INSTALL) -c $(INSTAPPFLAGS) XCal-uj.ad $(LIBDIR)/ja_JP.EUC/app-defaults/XCalendar
! 
  #	MakeDir($(LIBDIR)/ja_JP.ujis/app-defaults)
  #	$(INSTALL) -c $(INSTAPPFLAGS) XCal-uj.ad $(LIBDIR)/ja_JP.ujis/app-defaults/XCalendar
! 
! clean::
! 	$(RM) XCal-uj.ad
  
  MakeDirectories(install, $(XCALENDAR_LIBDIR))
  InstallMultipleFlags($(LIBFILES), $(XCALENDAR_LIBDIR), $(INSTDATFLAGS))
*** XCal-uj.sed.Bak	Sun Oct  1 14:15:00 1995
--- XCal-uj.sed	Sun Oct  1 14:31:06 1995
***************
*** 1,3 ****
--- 1,4 ----
+ *international: TRUE
  !
  *showGrip:		False
  *calendar*internalBorderWidth: 0
***************
*** 73,78 ****
--- 74,84 ----
  
  *setMarkBackground: True
  *markOnStartup: True
+ !
+ *markCurrent: True
+ *currentForeground: Blue
+ *markHoliday: True
+ *holidayForeground: Red
  
  *BorderWidth:		2
  *calendar.borderWidth:	1
***************
*** 116,121 ****
--- 122,134 ----
  
  *Scrollbar.borderWidth: 1
  *editor.scrollVertical: whenNeeded
+ ! *scrollHorizontal: False
+ ! *helpWindow*scrollHorizontal: True
+ *holiday*cursorPositionVisible: False
+ *holiday*displayCaret: False
+ *helpWindow*cursorPositionVisible: False
+ *helpWindow*displayCaret: False
+ 
  
  *dayEditor*fontSet:			-*--14-*
  *controls*fontSet:			-*--14-*
*** dayeditor.c.Bak	Sun Oct  1 13:38:28 1995
--- dayeditor.c	Sun Oct  1 13:54:55 1995
***************
*** 1051,1064 ****
      n++;
  #endif				/* XI18N */
      XawTextSetSource(editor->editor,
  		     XtCreateWidget("textSource", asciiSrcObjectClass,
  			     editor->editor, args, n), (XawTextPosition) 0);
      if (!clear) {
          XtSetArg(args[0], XtNstring, newhol);
          XtSetArg(args[1], XtNlength, strlen(newhol));
          XawTextSetSource(editor->holiday,
!                          XtCreateWidget("holSource", asciiSrcObjectClass,
!                          editor->holiday, args, n), (XawTextPosition) 0);
          XtDestroyWidget(oldhol);
      }
      XtDestroyWidget(old);
--- 1051,1082 ----
      n++;
  #endif				/* XI18N */
      XawTextSetSource(editor->editor,
+ #ifdef XI18N
+ 			(XtIsSubclass(old, multiSrcObjectClass) ?
+ 			 XtCreateWidget("textSource", multiSrcObjectClass,
+ 							editor->editor, args, n) :
+ 		     XtCreateWidget("textSource", asciiSrcObjectClass,
+ 							editor->editor, args, n) ),
+ 					 (XawTextPosition) 0);
+ #else
  		     XtCreateWidget("textSource", asciiSrcObjectClass,
  			     editor->editor, args, n), (XawTextPosition) 0);
+ #endif				/* XI18N */
      if (!clear) {
          XtSetArg(args[0], XtNstring, newhol);
          XtSetArg(args[1], XtNlength, strlen(newhol));
          XawTextSetSource(editor->holiday,
! #ifdef XI18N
! 			    (XtIsSubclass(old, multiSrcObjectClass) ?
! 				 XtCreateWidget("holSource", asciiSrcObjectClass,
! 								editor->holiday, args, n) :
! 				 XtCreateWidget("holSource", asciiSrcObjectClass,
! 								editor->holiday, args, n) ),
! 						 (XawTextPosition) 0);
! #else
!                  XtCreateWidget("holSource", asciiSrcObjectClass,
! 					 editor->holiday, args, n), (XawTextPosition) 0);
! #endif				/* XI18N */
          XtDestroyWidget(oldhol);
      }
      XtDestroyWidget(old);
*** xcalendar.h.Bak	Sun Oct  1 12:20:07 1995
--- xcalendar.h	Sun Oct  1 12:21:42 1995
***************
*** 71,77 ****
  #include <Xm/TextF.h>
  #endif
  
! #ifdef XI18N
  #include <X11/Xaw/Xawi18n.h>
  #endif
  
--- 71,77 ----
  #include <Xm/TextF.h>
  #endif
  
! #if defined XI18N && ProjectX == 5 
  #include <X11/Xaw/Xawi18n.h>
  #endif
  
 === === === === === === === === === === === === === === === === ===

Thanks.

-- 
  Taketoshi Sano: <kgh12351@xxxxxxxxxxx>,<sano@debian.org>