summaryrefslogtreecommitdiff
path: root/ext/tk/sample
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-25 03:29:39 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-25 03:29:39 +0000
commita25fbe3b3e531bbe479f344af24eaf9d2eeae6ea ()
tree055e58ed569fb28012fadade94f518e0a888e47d /ext/tk/sample
parent0ada813abfe3a049da29bd423ba34606a00777bd (diff)
* encoding.c: provide basic features for M17N.
* parse.y: encoding aware parsing. * parse.y (pragma_encoding): encoding specification pragma. * parse.y (rb_intern3): encoding specified symbols. * string.c (rb_str_length): length based on characters. for older behavior, bytesize method added. * string.c (rb_str_index_m): index based on characters. rindex as well. * string.c (succ_char): encoding aware succeeding string. * string.c (rb_str_reverse): reverse based on characters. * string.c (rb_str_inspect): encoding aware string description. * string.c (rb_str_upcase_bang): encoding aware case conversion. downcase, capitalize, swapcase as well. * string.c (rb_str_tr_bang): tr based on characters. delete, squeeze, tr_s, count as well. * string.c (rb_str_split_m): split based on characters. * string.c (rb_str_each_line): encoding aware each_line. * string.c (rb_str_each_char): added. iteration based on characters. * string.c (rb_str_strip_bang): encoding aware whitespace stripping. lstrip, rstrip as well. * string.c (rb_str_justify): encoding aware justifying (ljust, rjust, center). * string.c (str_encoding): get encoding attribute from a string. * re.c (rb_reg_initialize): encoding aware regular expression * sprintf.c (rb_str_format): formatting (i.e. length count) based on characters. * io.c (rb_io_getc): getc to return one-character string. for older behavior, getbyte method added. * ext/stringio/stringio.c (strio_getc): ditto. * io.c (rb_io_ungetc): allow pushing arbitrary string at the current reading point. * ext/stringio/stringio.c (strio_ungetc): ditto. * ext/strscan/strscan.c: encoding support. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/tk/sample/demos-jp/anilabel.rb1
-rw-r--r--ext/tk/sample/demos-jp/aniwave.rb1
-rw-r--r--ext/tk/sample/demos-jp/arrow.rb1
-rw-r--r--ext/tk/sample/demos-jp/bind.rb1
-rw-r--r--ext/tk/sample/demos-jp/bitmap.rb1
-rw-r--r--ext/tk/sample/demos-jp/button.rb1
-rw-r--r--ext/tk/sample/demos-jp/check.rb1
-rw-r--r--ext/tk/sample/demos-jp/check2.rb1
-rw-r--r--ext/tk/sample/demos-jp/clrpick.rb1
-rw-r--r--ext/tk/sample/demos-jp/colors.rb1
-rw-r--r--ext/tk/sample/demos-jp/cscroll.rb1
-rw-r--r--ext/tk/sample/demos-jp/ctext.rb1
-rw-r--r--ext/tk/sample/demos-jp/dialog1.rb1
-rw-r--r--ext/tk/sample/demos-jp/dialog2.rb1
-rw-r--r--ext/tk/sample/demos-jp/entry1.rb1
-rw-r--r--ext/tk/sample/demos-jp/entry2.rb1
-rw-r--r--ext/tk/sample/demos-jp/entry3.rb1
-rw-r--r--ext/tk/sample/demos-jp/filebox.rb1
-rw-r--r--ext/tk/sample/demos-jp/floor.rb1
-rw-r--r--ext/tk/sample/demos-jp/floor2.rb1
-rw-r--r--ext/tk/sample/demos-jp/form.rb1
-rw-r--r--ext/tk/sample/demos-jp/goldberg.rb1
-rw-r--r--ext/tk/sample/demos-jp/hello1
-rw-r--r--ext/tk/sample/demos-jp/hscale.rb1
-rw-r--r--ext/tk/sample/demos-jp/icon.rb1
-rw-r--r--ext/tk/sample/demos-jp/image1.rb1
-rw-r--r--ext/tk/sample/demos-jp/image2.rb1
-rw-r--r--ext/tk/sample/demos-jp/image3.rb1
-rw-r--r--ext/tk/sample/demos-jp/items.rb1
-rw-r--r--ext/tk/sample/demos-jp/ixset21
-rw-r--r--ext/tk/sample/demos-jp/label.rb1
-rw-r--r--ext/tk/sample/demos-jp/labelframe.rb2
-rw-r--r--ext/tk/sample/demos-jp/menu.rb1
-rw-r--r--ext/tk/sample/demos-jp/menu84.rb1
-rw-r--r--ext/tk/sample/demos-jp/menu8x.rb1
-rw-r--r--ext/tk/sample/demos-jp/menubu.rb1
-rw-r--r--ext/tk/sample/demos-jp/msgbox.rb1
-rw-r--r--ext/tk/sample/demos-jp/paned1.rb2
-rw-r--r--ext/tk/sample/demos-jp/paned2.rb2
-rw-r--r--ext/tk/sample/demos-jp/pendulum.rb1
-rw-r--r--ext/tk/sample/demos-jp/plot.rb1
-rw-r--r--ext/tk/sample/demos-jp/puzzle.rb1
-rw-r--r--ext/tk/sample/demos-jp/radio.rb1
-rw-r--r--ext/tk/sample/demos-jp/radio2.rb2
-rw-r--r--ext/tk/sample/demos-jp/radio3.rb2
-rw-r--r--ext/tk/sample/demos-jp/rolodex-j1
-rw-r--r--ext/tk/sample/demos-jp/ruler.rb1
-rw-r--r--ext/tk/sample/demos-jp/sayings.rb1
-rw-r--r--ext/tk/sample/demos-jp/search.rb1
-rw-r--r--ext/tk/sample/demos-jp/spin.rb2
-rw-r--r--ext/tk/sample/demos-jp/states.rb1
-rw-r--r--ext/tk/sample/demos-jp/style.rb1
-rw-r--r--ext/tk/sample/demos-jp/tcolor1
-rw-r--r--ext/tk/sample/demos-jp/text.rb1
-rw-r--r--ext/tk/sample/demos-jp/twind.rb1
-rw-r--r--ext/tk/sample/demos-jp/twind2.rb1
-rw-r--r--ext/tk/sample/demos-jp/unicodeout.rb2
-rw-r--r--ext/tk/sample/demos-jp/vscale.rb1
-rw-r--r--ext/tk/sample/demos-jp/widget1
-rw-r--r--ext/tk/sample/tkextlib/vu/canvSticker2.rb1
60 files changed, 67 insertions, 0 deletions
@@ -1,3 +1,4 @@
#
# animated label widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# animated wave demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# arrowhead widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# text (tag bindings) widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# bitmap widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# button widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# checkbutton widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# checkbutton widget demo2 (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# widget demo prompts the user to select a color (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# listbox widget demo 'colors' (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# simple scrollable canvas widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# Canvas Text widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# a dialog box with a local grab (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# a dialog box with a global grab (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# entry (no scrollbars) widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# entry (with scrollbars) widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
# entry3.rb --
#
# This demonstration script creates several entry widgets whose
@@ -1,3 +1,4 @@
#
# widget demo prompts the user to select a file (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# floorDisplay widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# floorDisplay widget demo 2 (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# form widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# Ruby/Tk Goldverg demo (called by 'widget')
#
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
require 'tk'
TkButton.new(nil,
@@ -1,3 +1,4 @@
require "tkcanvas"
if defined?($hscale_demo) && $hscale_deom
@@ -1,3 +1,4 @@
#
# iconic button widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# two image widgets demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# widget demo 'load image' (called by 'widget')
#
@@ -1,3 +1,4 @@
# image3.rb
#
# This demonstration script creates a simple collection of widgets
@@ -1,3 +1,4 @@
#
# canvas item types widget demo (called by 'widget')
#
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
#
# ixset --
# A nice interface to "xset" to change X server settings
@@ -1,3 +1,4 @@
#
# label widget demo (called by 'widget')
#
@@ -1,3 +1,5 @@
# labelframe.rb
#
# This demonstration script creates a toplevel window containing
@@ -1,3 +1,4 @@
#
# menus widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# menus widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# menus widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
require "tkcanvas"
def optionMenu(menubutton, varName, firstValue, *rest)
@@ -1,3 +1,4 @@
#
# message boxes widget demo (called by 'widget')
#
@@ -1,3 +1,5 @@
# paned1.rb
#
# This demonstration script creates a toplevel window containing
@@ -1,3 +1,5 @@
# paned2.rb --
#
# This demonstration script creates a toplevel window containing
@@ -1,3 +1,4 @@
#
# This demonstration illustrates how Tcl/Tk can be used to construct
# simulations of physical systems.
@@ -1,3 +1,4 @@
#
# 2-D plot widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# widet demo 'puzzle' (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# radiobutton widget demo (called by 'widget')
#
@@ -1,3 +1,5 @@
# radio2.rb
#
# This demonstration script creates a toplevel window containing
@@ -1,3 +1,5 @@
# radio3.rb
#
# This demonstration script creates a toplevel window containing
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
#
# rolodex --
# ���Υ�����ץȤ� Tom LaStrange �� rolodex �ΰ����Ǥ���
@@ -1,3 +1,4 @@
#
# ruler widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# listbox widget demo 'sayings' (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# Text Search widget demo (called by 'widget')
#
@@ -1,3 +1,5 @@
# spin.rb --
#
# This demonstration script creates several spinbox widgets.
@@ -1,3 +1,4 @@
#
# listbox widget demo 'states' (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# text (display styles) widget demo (called by 'widget')
#
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
#
# tcolor --
# ���Υ�����ץȤ�RGB,HSB,CYM�����򥵥ݡ��Ȥ���
@@ -1,3 +1,4 @@
#
# text (basic facilities) widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# text (embedded windows) widget demo (called by 'widget')
#
@@ -1,3 +1,4 @@
#
# text (embedded windows) widget demo 2 (called by 'widget')
#
@@ -1,3 +1,5 @@
# unicodeout.rb --
#
# This demonstration script shows how you can produce output (in label
@@ -1,3 +1,4 @@
require "tkcanvas"
if defined?($vscale_demo) && $vscale_demo
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# �������������� ( tk.rb �Υ����ɻ��� encoding ����/����˻Ȥ��� )
$KCODE = 'euc'
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
require 'tk'
require 'tkextlib/vu/charts'